cortex-react-components 3.2.2 → 4.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 (543) hide show
  1. package/dist/{chunk-5GFRQ4NR.mjs → chunk-2BKXIIFJ.mjs} +183 -36
  2. package/dist/{chunk-LQPN7L4Z.mjs → chunk-3DWDGYDG.mjs} +1 -1
  3. package/dist/{chunk-PTDP7PZK.mjs → chunk-3G7VLQG5.mjs} +1 -1
  4. package/dist/{chunk-56NFUKPK.mjs → chunk-3K6EVFOW.mjs} +1 -1
  5. package/dist/{chunk-PFA2P52R.mjs → chunk-3RYHYKVQ.mjs} +1 -1
  6. package/dist/{chunk-XDV7AVPQ.mjs → chunk-4JSM5VYZ.mjs} +2 -2
  7. package/dist/{chunk-VMYEV3FG.mjs → chunk-4YRR74Y4.mjs} +1 -1
  8. package/dist/{chunk-I4MTJN23.mjs → chunk-6A7T3O6T.mjs} +6 -5
  9. package/dist/{chunk-G46GZ57S.mjs → chunk-6LF4K7ER.mjs} +5 -5
  10. package/dist/{chunk-2363JAWB.mjs → chunk-6S7EQDLL.mjs} +1 -1
  11. package/dist/{chunk-ZBCZGWDU.mjs → chunk-7HHLKQE4.mjs} +1 -1
  12. package/dist/{chunk-YUBPY7L4.mjs → chunk-7LM2P6N3.mjs} +1 -1
  13. package/dist/{chunk-VMDVXNP5.mjs → chunk-AKMJBGUU.mjs} +16 -16
  14. package/dist/{chunk-V4I6U2SE.mjs → chunk-AVNBD2X5.mjs} +1 -1
  15. package/dist/{chunk-2L6AWG6R.mjs → chunk-AZ5MV7NO.mjs} +2 -2
  16. package/dist/{chunk-YOKF4FEM.mjs → chunk-BMZG77IE.mjs} +1 -1
  17. package/dist/chunk-BXEALHGJ.mjs +142 -0
  18. package/dist/{chunk-V6YEUAIH.mjs → chunk-CV7GOXGO.mjs} +2 -2
  19. package/dist/{chunk-YKX5AGFQ.mjs → chunk-D3AHBPI5.mjs} +1 -1
  20. package/dist/{chunk-2VF2D4DL.mjs → chunk-DGDELNS3.mjs} +1 -1
  21. package/dist/{chunk-RJZMTP7J.mjs → chunk-DHB2L7O2.mjs} +1 -1
  22. package/dist/{chunk-ZED4UNH7.mjs → chunk-DPTILX6A.mjs} +2 -2
  23. package/dist/{chunk-RQGM66Q4.mjs → chunk-DRLNETNN.mjs} +1 -1
  24. package/dist/{chunk-673GELPP.mjs → chunk-DVWMM7AI.mjs} +3 -3
  25. package/dist/{chunk-O633TXQG.mjs → chunk-EEVXIKNB.mjs} +1 -1
  26. package/dist/{chunk-EQYJUXKZ.mjs → chunk-EGCBZZGV.mjs} +1 -1
  27. package/dist/{chunk-HK2DQNBU.mjs → chunk-ETV6EEYB.mjs} +4 -4
  28. package/dist/{chunk-ORWAJNJO.mjs → chunk-F6SQTC6R.mjs} +3 -3
  29. package/dist/{chunk-25EF7VEC.mjs → chunk-F7JPOQIC.mjs} +1 -1
  30. package/dist/{chunk-JQNNFILH.mjs → chunk-FWRVXOCU.mjs} +1 -1
  31. package/dist/{chunk-4YSV633W.mjs → chunk-GAWBCR4S.mjs} +1 -1
  32. package/dist/{chunk-ZWV2O6CK.mjs → chunk-GR45UN4U.mjs} +3 -3
  33. package/dist/chunk-GXN5ZNBZ.mjs +135 -0
  34. package/dist/{chunk-CIFGBEFV.mjs → chunk-HNBHBFLY.mjs} +1 -1
  35. package/dist/{chunk-USEHRJFR.mjs → chunk-HNVHGBNE.mjs} +1 -1
  36. package/dist/{chunk-QPO45D6F.mjs → chunk-I2MVZVXE.mjs} +1 -1
  37. package/dist/chunk-IC4N2KYF.mjs +401 -0
  38. package/dist/{chunk-QOYK2HBL.mjs → chunk-IM5B557Z.mjs} +19 -19
  39. package/dist/{chunk-J5ZETWHG.mjs → chunk-IQ67MHAY.mjs} +2 -2
  40. package/dist/{chunk-UFBLZW2N.mjs → chunk-IWQEM5KO.mjs} +2 -2
  41. package/dist/{chunk-UJI3Y73K.mjs → chunk-J5GM5CJK.mjs} +3 -3
  42. package/dist/chunk-JCSRFM37.mjs +595 -0
  43. package/dist/{chunk-QMFGV3M5.mjs → chunk-JOGVCBYP.mjs} +1 -1
  44. package/dist/{chunk-K6N5K2A7.mjs → chunk-JWMQOARK.mjs} +4 -4
  45. package/dist/{chunk-DSVXGGGV.mjs → chunk-K5ZNBHQO.mjs} +1 -1
  46. package/dist/{chunk-UYUP2DAL.mjs → chunk-KHFPDDTO.mjs} +1 -1
  47. package/dist/{chunk-CVH5TDS6.mjs → chunk-KJVAS4I7.mjs} +27 -12
  48. package/dist/{chunk-4PC77ZEN.mjs → chunk-KMGTUNRZ.mjs} +1 -1
  49. package/dist/{chunk-LVLEZS7Q.mjs → chunk-KYY7BMXI.mjs} +1 -1
  50. package/dist/{chunk-GDMWNNYC.mjs → chunk-LRMDRQRJ.mjs} +2 -2
  51. package/dist/{chunk-CIXAM7LW.mjs → chunk-LRTEGIZ7.mjs} +12 -12
  52. package/dist/{chunk-XGHUG2WQ.mjs → chunk-MDG2I4PB.mjs} +1 -1
  53. package/dist/{chunk-S27KJUKF.mjs → chunk-N5HTSJLI.mjs} +1 -1
  54. package/dist/{chunk-MPFWWJYT.mjs → chunk-N5Q2DYUR.mjs} +2 -2
  55. package/dist/{chunk-3W5H36HK.mjs → chunk-NNH7EC5Z.mjs} +1 -1
  56. package/dist/{chunk-5Z7JRCOM.mjs → chunk-NSYYRG6A.mjs} +1 -1
  57. package/dist/{chunk-JD7SR5V3.mjs → chunk-NUAJQK4H.mjs} +64 -8
  58. package/dist/{chunk-SSF2CAW7.mjs → chunk-OR3XMMEK.mjs} +9 -9
  59. package/dist/{chunk-RC6YHGVV.mjs → chunk-PE7KJR4A.mjs} +1 -1
  60. package/dist/{chunk-V2BZ7RE7.mjs → chunk-PLFX66EX.mjs} +1 -1
  61. package/dist/{chunk-E6M7XAYT.mjs → chunk-Q45EN2QB.mjs} +1 -1
  62. package/dist/{chunk-22E2TZBE.mjs → chunk-QDO6BAAN.mjs} +13 -5
  63. package/dist/{chunk-P4P6J2SW.mjs → chunk-QJGBUBSB.mjs} +2 -2
  64. package/dist/{chunk-TIGSOXUA.mjs → chunk-QJQ66DYZ.mjs} +1 -1
  65. package/dist/{chunk-ZF2DELZ5.mjs → chunk-QXOHY4AT.mjs} +39 -3
  66. package/dist/{chunk-NF4JWFAZ.mjs → chunk-RFMER577.mjs} +1 -1
  67. package/dist/{chunk-PIGOOCU6.mjs → chunk-RNHGLZYP.mjs} +1 -1
  68. package/dist/{chunk-QUGB53Z3.mjs → chunk-RV4VRLGN.mjs} +1 -1
  69. package/dist/{chunk-KCPLIAIF.mjs → chunk-SJI6X5DK.mjs} +2 -2
  70. package/dist/{chunk-B63AROCU.mjs → chunk-SMX6BH2N.mjs} +1 -1
  71. package/dist/{chunk-L3SZS7PC.mjs → chunk-SNUES6JA.mjs} +1 -1
  72. package/dist/{chunk-6R3QP53O.mjs → chunk-TZH6L2OH.mjs} +2 -2
  73. package/dist/{chunk-EJJNYV7C.mjs → chunk-U6ZFUE5O.mjs} +2 -2
  74. package/dist/{chunk-OPJMXB4K.mjs → chunk-UCK4TW63.mjs} +4 -4
  75. package/dist/{chunk-HI6QOZHR.mjs → chunk-V6VAVPKH.mjs} +1 -1
  76. package/dist/{chunk-PRMR24PY.mjs → chunk-WAR2OXXK.mjs} +4 -4
  77. package/dist/{chunk-4PFDNMLD.mjs → chunk-WEIPDZOJ.mjs} +1 -1
  78. package/dist/{chunk-TLCSKAWQ.mjs → chunk-WZBXR7J3.mjs} +5 -5
  79. package/dist/{chunk-FECAR2TE.mjs → chunk-X4GP2O3Y.mjs} +2 -2
  80. package/dist/{chunk-UNEYYMLL.mjs → chunk-XCZCWSOY.mjs} +2 -2
  81. package/dist/{chunk-QE3XE3LW.mjs → chunk-Y4KJTMKO.mjs} +1 -1
  82. package/dist/{chunk-AOSO2JVA.mjs → chunk-YUZYLKBD.mjs} +1 -1
  83. package/dist/{chunk-YFOEG4PP.mjs → chunk-Z6MYLHDW.mjs} +1 -1
  84. package/dist/{chunk-TP5AUT7W.mjs → chunk-ZJB7AFL5.mjs} +2 -2
  85. package/dist/components/AdvancedComponents/AppSidebar.d.ts +1 -1
  86. package/dist/components/AdvancedComponents/AppSidebar.js +480 -301
  87. package/dist/components/AdvancedComponents/AppSidebar.mjs +3 -3
  88. package/dist/components/AdvancedComponents/index.js +480 -301
  89. package/dist/components/AdvancedComponents/index.mjs +3 -3
  90. package/dist/components/AdvancedComponents/user-selection.d.ts +1 -1
  91. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  92. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  93. package/dist/components/Blocks/Banner.mjs +3 -3
  94. package/dist/components/Blocks/CallToAction.mjs +3 -3
  95. package/dist/components/Blocks/CollapsibleArea.mjs +4 -4
  96. package/dist/components/Blocks/Content.mjs +4 -4
  97. package/dist/components/Blocks/FeaturesBlock.mjs +3 -3
  98. package/dist/components/Blocks/RelatedPosts.mjs +4 -4
  99. package/dist/components/Blocks/RenderBlocks.mjs +6 -6
  100. package/dist/components/Blocks/ReusableContentBlock.mjs +6 -6
  101. package/dist/components/Blocks/index.mjs +7 -7
  102. package/dist/components/Cards/ContentCard.mjs +3 -3
  103. package/dist/components/Cards/FeatureCard.mjs +3 -3
  104. package/dist/components/Cards/index.mjs +3 -3
  105. package/dist/components/Chat/CopilotInterface.d.ts +1 -1
  106. package/dist/components/Chat/CopilotInterface.js +527 -330
  107. package/dist/components/Chat/CopilotInterface.mjs +5 -5
  108. package/dist/components/Chat/chat-session-sidebar.d.ts +1 -1
  109. package/dist/components/Chat/demo-long-messages.js +527 -330
  110. package/dist/components/Chat/demo-long-messages.mjs +5 -5
  111. package/dist/components/Chat/demo-tests.js +527 -330
  112. package/dist/components/Chat/demo-tests.mjs +5 -5
  113. package/dist/components/Chat/demo.js +527 -330
  114. package/dist/components/Chat/demo.mjs +5 -5
  115. package/dist/components/Chat/example-usage.js +527 -330
  116. package/dist/components/Chat/example-usage.mjs +6 -6
  117. package/dist/components/Chat/example-with-vercel-ai.js +527 -330
  118. package/dist/components/Chat/example-with-vercel-ai.mjs +5 -5
  119. package/dist/components/Chat/index.js +527 -330
  120. package/dist/components/Chat/index.mjs +8 -8
  121. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -2
  122. package/dist/components/DeliveryLead/index.mjs +4 -4
  123. package/dist/components/DigitalColleagues/Views/TeamsIndexView.d.ts +1 -9
  124. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +22 -27
  125. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +4 -6
  126. package/dist/components/DigitalColleagues/index.d.ts +0 -18
  127. package/dist/components/DigitalColleagues/index.js +0 -16754
  128. package/dist/components/DigitalColleagues/test-data.d.ts +1 -112
  129. package/dist/components/DigitalColleagues/test-data.js +482 -308
  130. package/dist/components/DigitalColleagues/test-data.mjs +1 -5
  131. package/dist/components/{Foundary → Foundry}/AppSidebarLeft.js +3 -3
  132. package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.mjs +3 -3
  133. package/dist/components/{Foundary → Foundry}/DashboardHeader.js +2 -2
  134. package/dist/components/{Foundary → Foundry}/DashboardHeader.mjs +1 -1
  135. package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.js +2 -2
  136. package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.mjs +4 -4
  137. package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.js +3 -3
  138. package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.mjs +4 -4
  139. package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.js +2 -2
  140. package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.mjs +1 -1
  141. package/dist/components/{Foundary → Foundry}/LandingMenu.js +2 -2
  142. package/dist/components/{Foundary → Foundry}/LandingMenu.mjs +1 -1
  143. package/dist/components/{Foundary → Foundry}/Login.js +2 -2
  144. package/dist/components/{Foundary → Foundry}/Login.mjs +1 -1
  145. package/dist/components/{Foundary → Foundry}/MainPage.js +4 -4
  146. package/dist/components/{DigitalColleagues → Foundry}/MainPage.mjs +9 -9
  147. package/dist/components/{DigitalColleagues → Foundry}/ManagementSidebar.d.ts +2 -2
  148. package/dist/components/{Foundary → Foundry}/ManagementSidebar.js +12 -4
  149. package/dist/components/{DigitalColleagues → Foundry}/ManagementSidebar.mjs +1 -1
  150. package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.js +1860 -2162
  151. package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.mjs +42 -41
  152. package/dist/components/{Foundary → Foundry}/README-document-edit.js +1 -1
  153. package/dist/components/{Foundary → Foundry}/README-document-edit.mjs +1 -1
  154. package/dist/components/{Foundary → Foundry}/README-document-preview.js +1 -1
  155. package/dist/components/{Foundary → Foundry}/README-document-preview.mjs +1 -1
  156. package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.js +1 -1
  157. package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.mjs +1 -1
  158. package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.js +1 -1
  159. package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.mjs +1 -1
  160. package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.js +1 -1
  161. package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.mjs +1 -1
  162. package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.js +1 -1
  163. package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.mjs +1 -1
  164. package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.js +1 -1
  165. package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.mjs +1 -1
  166. package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.js +1 -1
  167. package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.mjs +1 -1
  168. package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.js +1 -1
  169. package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.mjs +1 -1
  170. package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.js +2 -2
  171. package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.mjs +1 -1
  172. package/dist/components/{Foundary → Foundry}/RichText/index.js +18 -18
  173. package/dist/components/{Foundary → Foundry}/RichText/index.mjs +12 -12
  174. package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.js +4 -4
  175. package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.mjs +2 -2
  176. package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.js +7 -7
  177. package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.mjs +3 -3
  178. package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.js +16 -16
  179. package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.mjs +11 -11
  180. package/dist/components/{Foundary → Foundry}/SearchableSelect.js +2 -2
  181. package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.mjs +1 -1
  182. package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.d.ts +4 -2
  183. package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.js +526 -211
  184. package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.mjs +12 -10
  185. package/dist/components/Foundry/Views/KnowledgeView.docs.js +2 -0
  186. package/dist/components/Foundry/Views/KnowledgeView.docs.mjs +7 -0
  187. package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.js +29 -29
  188. package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.mjs +21 -21
  189. package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.js +9 -8
  190. package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.mjs +4 -4
  191. package/dist/components/{Foundary → Foundry}/Views/index.js +2929 -2050
  192. package/dist/components/{Foundary → Foundry}/Views/index.mjs +64 -61
  193. package/dist/components/Foundry/add-colleague-to-team-form.d.ts +10 -0
  194. package/dist/components/{DigitalColleagues/colleague-type-selection.js → Foundry/add-colleague-to-team-form.js} +156 -91
  195. package/dist/components/{DigitalColleagues/colleague-card.mjs → Foundry/add-colleague-to-team-form.mjs} +3 -4
  196. package/dist/components/{.archive → Foundry}/app-card.d.ts +1 -1
  197. package/dist/components/Foundry/app-card.js +2669 -0
  198. package/dist/components/{DigitalColleagues/digital-colleague-options.mjs → Foundry/app-card.mjs} +5 -3
  199. package/dist/components/{Foundary → Foundry}/colleague-card.js +2 -2
  200. package/dist/components/{Foundary → Foundry}/colleague-card.mjs +1 -1
  201. package/dist/components/{Foundary → Foundry}/colleague-form.js +4 -4
  202. package/dist/components/{Foundary → Foundry}/colleague-form.mjs +2 -2
  203. package/dist/components/{Foundary → Foundry}/colleague-type-selection.js +2 -2
  204. package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.mjs +1 -1
  205. package/dist/components/Foundry/digital-colleague-selection.d.ts +9 -0
  206. package/dist/components/{DigitalColleagues/digital-colleague-clone.js → Foundry/digital-colleague-selection.js} +59 -100
  207. package/dist/components/{DigitalColleagues/digital-colleague-clone.mjs → Foundry/digital-colleague-selection.mjs} +3 -3
  208. package/dist/components/{Foundary → Foundry}/document-edit.js +20 -20
  209. package/dist/components/{Foundary → Foundry}/document-edit.mjs +13 -13
  210. package/dist/components/{Foundary → Foundry}/document-preview-examples.js +24 -24
  211. package/dist/components/{Foundary → Foundry}/document-preview-examples.mjs +15 -15
  212. package/dist/components/{Foundary → Foundry}/document-preview.js +22 -22
  213. package/dist/components/{Foundary → Foundry}/document-preview.mjs +14 -14
  214. package/dist/components/{Foundary → Foundry}/file-edit.js +20 -20
  215. package/dist/components/{Foundary → Foundry}/file-edit.mjs +16 -16
  216. package/dist/components/{Foundary → Foundry}/foundary-clone.js +3 -3
  217. package/dist/components/{Foundary → Foundry}/foundary-clone.mjs +1 -1
  218. package/dist/components/{Foundary → Foundry}/foundary-layout.d.ts +3 -3
  219. package/dist/components/{Foundary → Foundry}/foundary-layout.js +485 -306
  220. package/dist/components/{Foundary → Foundry}/foundary-layout.mjs +6 -6
  221. package/dist/components/{Foundary → Foundry}/foundary-options.d.ts +2 -1
  222. package/dist/components/{Foundary → Foundry}/foundary-options.js +39 -3
  223. package/dist/components/{Foundary → Foundry}/foundary-options.mjs +1 -1
  224. package/dist/components/{Foundary → Foundry}/index.d.ts +3 -1
  225. package/dist/components/{Foundary → Foundry}/index.js +3465 -3267
  226. package/dist/components/{Foundary → Foundry}/index.mjs +102 -95
  227. package/dist/components/{Foundary → Foundry}/knowledge-browser.js +24 -24
  228. package/dist/components/{Foundary → Foundry}/knowledge-browser.mjs +15 -15
  229. package/dist/components/{Foundary → Foundry}/knowledge-search.js +2 -2
  230. package/dist/components/{DigitalColleagues → Foundry}/knowledge-search.mjs +1 -1
  231. package/dist/components/{Foundary → Foundry}/team-form.js +2 -2
  232. package/dist/components/{Foundary → Foundry}/team-form.mjs +1 -1
  233. package/dist/components/{Foundary → Foundry}/test-data.js +1 -1
  234. package/dist/components/{Foundary → Foundry}/test-data.mjs +1 -1
  235. package/dist/components/{Foundary → Foundry}/types.d.ts +26 -0
  236. package/dist/components/{Foundary → Foundry}/types.js +1 -1
  237. package/dist/components/HeaderFooter/Header.mjs +1 -1
  238. package/dist/components/HeaderFooter/SectionHeading.mjs +4 -4
  239. package/dist/components/HeaderFooter/index.mjs +11 -11
  240. package/dist/components/Heros/DashboardHero/DashboardHero.js +5 -4
  241. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +2 -2
  242. package/dist/components/Heros/DashboardHero/index.js +5 -4
  243. package/dist/components/Heros/DashboardHero/index.mjs +2 -2
  244. package/dist/components/Heros/HighImpact/index.mjs +4 -4
  245. package/dist/components/Heros/LowImpact/index.mjs +4 -4
  246. package/dist/components/Heros/MediumImpact/index.mjs +4 -4
  247. package/dist/components/Heros/PostHero/index.mjs +3 -3
  248. package/dist/components/Heros/RenderHero.mjs +7 -7
  249. package/dist/components/Heros/index.js +5 -4
  250. package/dist/components/Heros/index.mjs +14 -14
  251. package/dist/components/Layouts/OutputHeaderFooter.mjs +4 -4
  252. package/dist/components/Layouts/Print.mjs +8 -8
  253. package/dist/components/Layouts/SlideShow.mjs +9 -9
  254. package/dist/components/Layouts/index.mjs +13 -13
  255. package/dist/components/Menus/SidebarLeft.mjs +3 -3
  256. package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
  257. package/dist/components/Menus/SidebarRight.mjs +3 -3
  258. package/dist/components/Menus/index.mjs +5 -5
  259. package/dist/components/Payload/RichText/index.mjs +3 -3
  260. package/dist/components/Payload/RichText/serialize.mjs +3 -3
  261. package/dist/components/Payload/index.mjs +3 -3
  262. package/dist/components/Projects/AddEpicModal.d.ts +1 -1
  263. package/dist/components/Projects/AddSprintModal.d.ts +1 -1
  264. package/dist/components/Projects/AddTaskModal.d.ts +1 -1
  265. package/dist/components/Projects/EpicFilter.d.ts +6 -2
  266. package/dist/components/Projects/EpicFilter.js +6 -6
  267. package/dist/components/Projects/EpicFilter.mjs +6 -6
  268. package/dist/components/Projects/EpicsView.d.ts +12 -2
  269. package/dist/components/Projects/EpicsView.js +3980 -736
  270. package/dist/components/Projects/EpicsView.mjs +46 -4
  271. package/dist/components/Projects/FileView.d.ts +1 -1
  272. package/dist/components/Projects/FileView.js +24 -23
  273. package/dist/components/Projects/FileView.mjs +20 -20
  274. package/dist/components/Projects/GanttView.d.ts +13 -0
  275. package/dist/components/{DigitalColleagues/colleague-card.js → Projects/GanttView.js} +559 -260
  276. package/dist/components/Projects/GanttView.mjs +20 -0
  277. package/dist/components/Projects/KanbanBoardView.d.ts +1 -1
  278. package/dist/components/Projects/KanbanBoardView.js +25 -24
  279. package/dist/components/Projects/KanbanBoardView.mjs +26 -26
  280. package/dist/components/Projects/KanbanColumn.d.ts +1 -1
  281. package/dist/components/Projects/PlanningView.d.ts +1 -1
  282. package/dist/components/Projects/PlanningView.js +5 -4
  283. package/dist/components/Projects/PlanningView.mjs +3 -3
  284. package/dist/components/Projects/ProjectPage.d.ts +3 -3
  285. package/dist/components/Projects/ProjectPage.js +1744 -983
  286. package/dist/components/Projects/ProjectPage.mjs +39 -38
  287. package/dist/components/Projects/ProjectView.d.ts +2 -2
  288. package/dist/components/Projects/ProjectView.js +1227 -662
  289. package/dist/components/Projects/ProjectView.mjs +34 -33
  290. package/dist/components/Projects/ProjectsIndexView.d.ts +1 -1
  291. package/dist/components/Projects/ProjectsIndexView.js +5 -4
  292. package/dist/components/Projects/ProjectsIndexView.mjs +4 -4
  293. package/dist/components/Projects/SprintBoardView.d.ts +4 -1
  294. package/dist/components/Projects/SprintBoardView.js +271 -129
  295. package/dist/components/Projects/SprintBoardView.mjs +26 -26
  296. package/dist/components/Projects/TaskCard.d.ts +1 -1
  297. package/dist/components/Projects/TaskDetailsModal.d.ts +1 -1
  298. package/dist/components/Projects/TaskDetailsModal.js +20 -20
  299. package/dist/components/Projects/TaskDetailsModal.mjs +20 -20
  300. package/dist/components/Projects/TaskSidebar.d.ts +1 -1
  301. package/dist/components/Projects/TaskSidebar.js +2 -2
  302. package/dist/components/Projects/TaskSidebar.mjs +2 -2
  303. package/dist/components/Projects/TasksView.d.ts +1 -1
  304. package/dist/components/Projects/TasksView.js +5 -4
  305. package/dist/components/Projects/TasksView.mjs +3 -3
  306. package/dist/components/Projects/business-unit-switcher.d.ts +1 -1
  307. package/dist/components/Projects/business-units.d.ts +1 -1
  308. package/dist/components/Projects/file-list.d.ts +1 -1
  309. package/dist/components/Projects/file-list.js +19 -19
  310. package/dist/components/Projects/file-list.mjs +17 -17
  311. package/dist/components/Projects/index.js +557 -250
  312. package/dist/components/Projects/index.mjs +35 -35
  313. package/dist/components/Projects/project-card.d.ts +1 -1
  314. package/dist/components/Projects/project-form.d.ts +1 -1
  315. package/dist/components/Projects/team-card.d.ts +1 -1
  316. package/dist/components/Projects/team-switcher-bar.d.ts +1 -1
  317. package/dist/components/Projects/test-data.d.ts +448 -29
  318. package/dist/components/dc-temp/dashboard-integration-example.js +497 -325
  319. package/dist/components/dc-temp/dashboard-integration-example.mjs +6 -6
  320. package/dist/components/dc-temp/index.d.ts +3 -3
  321. package/dist/components/dc-temp/index.js +3773 -3007
  322. package/dist/components/dc-temp/index.mjs +35 -33
  323. package/dist/components/dc-temp/mock-data.d.ts +2 -2
  324. package/dist/components/index.d.ts +1 -1
  325. package/dist/components/index.js +3337 -3100
  326. package/dist/components/index.mjs +163 -157
  327. package/dist/components/ui/index.mjs +9 -9
  328. package/dist/components/ui/sidebar.mjs +2 -2
  329. package/dist/decorators/Intranet.css +54 -14
  330. package/dist/decorators/Intranet.mjs +99 -99
  331. package/dist/globals.css +54 -14
  332. package/dist/hooks/use-local-storage.d.ts +2 -1
  333. package/dist/hooks/use-local-storage.js +5 -4
  334. package/dist/hooks/use-local-storage.mjs +1 -1
  335. package/dist/index.js +3345 -3108
  336. package/dist/index.mjs +174 -168
  337. package/dist/metafile-cjs.json +1 -1
  338. package/dist/metafile-esm.json +1 -1
  339. package/dist/pages/Blog.mjs +12 -12
  340. package/dist/pages/Documentation.mjs +9 -9
  341. package/dist/pages/IndexPage.mjs +17 -17
  342. package/dist/pages/Intranet.mjs +3 -3
  343. package/dist/pages/LandingPage.mjs +111 -111
  344. package/dist/pages/Page.mjs +16 -16
  345. package/dist/pages/Publish.mjs +100 -100
  346. package/dist/pages/Website.mjs +19 -19
  347. package/dist/sections/AboutSection.mjs +5 -5
  348. package/dist/sections/BlogDetail.mjs +4 -4
  349. package/dist/sections/BlogList.mjs +5 -5
  350. package/dist/sections/BlogListSection.mjs +5 -5
  351. package/dist/sections/ContactSection.mjs +5 -5
  352. package/dist/sections/PageSections.mjs +109 -109
  353. package/dist/sections/PricingSection.mjs +5 -5
  354. package/dist/sections/ServiceDetail.mjs +4 -4
  355. package/dist/sections/ServiceDetailSection.mjs +4 -4
  356. package/dist/sections/ServiceSection.mjs +100 -100
  357. package/dist/sections/form/index.mjs +2 -2
  358. package/dist/sections/index.mjs +109 -109
  359. package/package.json +5 -2
  360. package/dist/chunk-5MMSWFVA.mjs +0 -364
  361. package/dist/chunk-7TDXZ32Q.mjs +0 -197
  362. package/dist/chunk-APXXTGT4.mjs +0 -424
  363. package/dist/chunk-BZENEU5C.mjs +0 -160
  364. package/dist/chunk-CNQTT5P3.mjs +0 -276
  365. package/dist/chunk-CQKCEXF2.mjs +0 -82
  366. package/dist/chunk-EKQB7NJA.mjs +0 -194
  367. package/dist/chunk-G4WW3ZTX.mjs +0 -1063
  368. package/dist/chunk-G7SFQSC7.mjs +0 -306
  369. package/dist/chunk-IWG2URAU.mjs +0 -74
  370. package/dist/chunk-IWSATDRG.mjs +0 -118
  371. package/dist/chunk-JRNDRMIC.mjs +0 -73
  372. package/dist/chunk-K2C4VMGF.mjs +0 -121
  373. package/dist/chunk-M6ELOAGS.mjs +0 -136
  374. package/dist/chunk-NAUBZM7P.mjs +0 -183
  375. package/dist/chunk-NHDPHK6D.mjs +0 -72
  376. package/dist/chunk-R5MJWISX.mjs +0 -194
  377. package/dist/chunk-RKYMAFRJ.mjs +0 -92
  378. package/dist/chunk-SZBUXY6L.mjs +0 -121
  379. package/dist/chunk-UHOCECJY.mjs +0 -365
  380. package/dist/chunk-VY6L37RQ.mjs +0 -103
  381. package/dist/chunk-X6UI73UN.mjs +0 -262
  382. package/dist/components/DigitalColleagues/AppSidebarLeft.js +0 -3407
  383. package/dist/components/DigitalColleagues/DashboardHeader.js +0 -2756
  384. package/dist/components/DigitalColleagues/DashboardHeader.mjs +0 -15
  385. package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +0 -28
  386. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +0 -4417
  387. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +0 -31
  388. package/dist/components/DigitalColleagues/MainPage.js +0 -4080
  389. package/dist/components/DigitalColleagues/ManagementSidebar.js +0 -99
  390. package/dist/components/DigitalColleagues/Pages/dashboardpage.d.ts +0 -18
  391. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +0 -8514
  392. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +0 -78
  393. package/dist/components/DigitalColleagues/README-document-edit.js +0 -2
  394. package/dist/components/DigitalColleagues/README-document-edit.mjs +0 -7
  395. package/dist/components/DigitalColleagues/README-document-preview.js +0 -2
  396. package/dist/components/DigitalColleagues/README-document-preview.mjs +0 -7
  397. package/dist/components/DigitalColleagues/SearchableSelect.js +0 -2745
  398. package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +0 -14
  399. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +0 -3795
  400. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +0 -28
  401. package/dist/components/DigitalColleagues/Views/KnowledgeView.d.ts +0 -11
  402. package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.js +0 -2
  403. package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.mjs +0 -7
  404. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +0 -3935
  405. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +0 -26
  406. package/dist/components/DigitalColleagues/Views/index.js +0 -12284
  407. package/dist/components/DigitalColleagues/Views/index.mjs +0 -114
  408. package/dist/components/DigitalColleagues/colleague-form.d.ts +0 -14
  409. package/dist/components/DigitalColleagues/colleague-form.js +0 -3086
  410. package/dist/components/DigitalColleagues/colleague-form.mjs +0 -22
  411. package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +0 -9
  412. package/dist/components/DigitalColleagues/digital-colleague-options.d.ts +0 -7
  413. package/dist/components/DigitalColleagues/digital-colleague-options.js +0 -2697
  414. package/dist/components/DigitalColleagues/document-edit.d.ts +0 -10
  415. package/dist/components/DigitalColleagues/document-edit.js +0 -3112
  416. package/dist/components/DigitalColleagues/document-edit.mjs +0 -20
  417. package/dist/components/DigitalColleagues/document-preview-examples.js +0 -3433
  418. package/dist/components/DigitalColleagues/document-preview-examples.mjs +0 -151
  419. package/dist/components/DigitalColleagues/document-preview.d.ts +0 -18
  420. package/dist/components/DigitalColleagues/document-preview.js +0 -3296
  421. package/dist/components/DigitalColleagues/document-preview.mjs +0 -21
  422. package/dist/components/DigitalColleagues/index.mjs +0 -200
  423. package/dist/components/DigitalColleagues/knowledge-browser.d.ts +0 -13
  424. package/dist/components/DigitalColleagues/knowledge-browser.js +0 -3581
  425. package/dist/components/DigitalColleagues/knowledge-browser.mjs +0 -23
  426. package/dist/components/DigitalColleagues/knowledge-search.d.ts +0 -12
  427. package/dist/components/DigitalColleagues/knowledge-search.js +0 -2819
  428. package/dist/components/DigitalColleagues/team-form.d.ts +0 -24
  429. package/dist/components/DigitalColleagues/team-form.js +0 -2836
  430. package/dist/components/DigitalColleagues/team-form.mjs +0 -20
  431. package/dist/components/DigitalColleagues/types.d.ts +0 -289
  432. package/dist/components/DigitalColleagues/types.js +0 -18
  433. package/dist/components/Foundary/AppSidebarLeft.css +0 -917
  434. package/dist/components/Foundary/AppSidebarLeft.d.ts +0 -47
  435. package/dist/components/Foundary/AppSidebarLeft.mjs +0 -23
  436. package/dist/components/Foundary/DashboardHeader.css +0 -917
  437. package/dist/components/Foundary/DashboardHeader.d.ts +0 -8
  438. package/dist/components/Foundary/MainPage.css +0 -917
  439. package/dist/components/Foundary/MainPage.d.ts +0 -3
  440. package/dist/components/Foundary/MainPage.mjs +0 -46
  441. package/dist/components/Foundary/ManagementSidebar.d.ts +0 -8
  442. package/dist/components/Foundary/ManagementSidebar.mjs +0 -9
  443. package/dist/components/Foundary/Pages/dashboardpage.css +0 -917
  444. package/dist/components/Foundary/SearchableSelect.css +0 -917
  445. package/dist/components/Foundary/SearchableSelect.d.ts +0 -16
  446. package/dist/components/Foundary/SearchableSelect.mjs +0 -16
  447. package/dist/components/Foundary/Views/ColleaguesView.css +0 -917
  448. package/dist/components/Foundary/Views/KnowledgeView.css +0 -917
  449. package/dist/components/Foundary/Views/KnowledgeView.docs.js +0 -2
  450. package/dist/components/Foundary/Views/KnowledgeView.docs.mjs +0 -7
  451. package/dist/components/Foundary/Views/index.css +0 -917
  452. package/dist/components/Foundary/Views/index.d.ts +0 -7
  453. package/dist/components/Foundary/colleague-card.d.ts +0 -12
  454. package/dist/components/Foundary/colleague-form.css +0 -917
  455. package/dist/components/Foundary/colleague-type-selection.css +0 -917
  456. package/dist/components/Foundary/colleague-type-selection.d.ts +0 -7
  457. package/dist/components/Foundary/colleague-type-selection.mjs +0 -16
  458. package/dist/components/Foundary/document-edit.css +0 -917
  459. package/dist/components/Foundary/document-preview-examples.css +0 -917
  460. package/dist/components/Foundary/document-preview-examples.d.ts +0 -12
  461. package/dist/components/Foundary/document-preview.css +0 -917
  462. package/dist/components/Foundary/index.css +0 -917
  463. package/dist/components/Foundary/knowledge-browser.css +0 -917
  464. package/dist/components/Foundary/knowledge-search.css +0 -917
  465. package/dist/components/Foundary/knowledge-search.mjs +0 -20
  466. package/dist/components/Foundary/team-form.css +0 -917
  467. package/dist/{chunk-AEFGMCK3.mjs → chunk-D5KV6INF.mjs} +3 -3
  468. package/dist/{chunk-SNG6OKEL.mjs → chunk-FTVOJKVA.mjs} +3 -3
  469. package/dist/{chunk-OT2SSFKS.mjs → chunk-GSG52WU5.mjs} +3 -3
  470. /package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.css +0 -0
  471. /package/dist/components/{DigitalColleagues → Foundry}/AppSidebarLeft.d.ts +0 -0
  472. /package/dist/components/{DigitalColleagues → Foundry}/DashboardHeader.css +0 -0
  473. /package/dist/components/{DigitalColleagues → Foundry}/DashboardHeader.d.ts +0 -0
  474. /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.css +0 -0
  475. /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.d.ts +0 -0
  476. /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.css +0 -0
  477. /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.d.ts +0 -0
  478. /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.css +0 -0
  479. /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.d.ts +0 -0
  480. /package/dist/components/{Foundary → Foundry}/LandingMenu.css +0 -0
  481. /package/dist/components/{Foundary → Foundry}/LandingMenu.d.ts +0 -0
  482. /package/dist/components/{Foundary → Foundry}/Login.css +0 -0
  483. /package/dist/components/{Foundary → Foundry}/Login.d.ts +0 -0
  484. /package/dist/components/{DigitalColleagues → Foundry}/MainPage.css +0 -0
  485. /package/dist/components/{DigitalColleagues → Foundry}/MainPage.d.ts +0 -0
  486. /package/dist/components/{DigitalColleagues → Foundry}/Pages/dashboardpage.css +0 -0
  487. /package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.d.ts +0 -0
  488. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.d.ts +0 -0
  489. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.d.ts +0 -0
  490. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.d.ts +0 -0
  491. /package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.d.ts +0 -0
  492. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.d.ts +0 -0
  493. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.d.ts +0 -0
  494. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.d.ts +0 -0
  495. /package/dist/components/{DigitalColleagues/Views → Foundry/RichText/components/RawUploadComponent}/index.css +0 -0
  496. /package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.d.ts +0 -0
  497. /package/dist/components/{DigitalColleagues → Foundry/RichText}/index.css +0 -0
  498. /package/dist/components/{Foundary → Foundry}/RichText/index.d.ts +0 -0
  499. /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.css +0 -0
  500. /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.d.ts +0 -0
  501. /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.css +0 -0
  502. /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.d.ts +0 -0
  503. /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.css +0 -0
  504. /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.d.ts +0 -0
  505. /package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.css +0 -0
  506. /package/dist/components/{DigitalColleagues → Foundry}/SearchableSelect.d.ts +0 -0
  507. /package/dist/components/{DigitalColleagues → Foundry}/Views/ColleaguesView.css +0 -0
  508. /package/dist/components/{DigitalColleagues → Foundry}/Views/KnowledgeView.css +0 -0
  509. /package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.d.ts +0 -0
  510. /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.css +0 -0
  511. /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.d.ts +0 -0
  512. /package/dist/components/{Foundary/RichText/components/RawUploadComponent → Foundry/Views}/index.css +0 -0
  513. /package/dist/components/{DigitalColleagues → Foundry}/Views/index.d.ts +0 -0
  514. /package/dist/components/{DigitalColleagues/DigitalColleageusLayout.css → Foundry/add-colleague-to-team-form.css} +0 -0
  515. /package/dist/components/{DigitalColleagues/colleague-card.css → Foundry/app-card.css} +0 -0
  516. /package/dist/components/{Foundary → Foundry}/colleague-card.css +0 -0
  517. /package/dist/components/{DigitalColleagues → Foundry}/colleague-card.d.ts +0 -0
  518. /package/dist/components/{DigitalColleagues → Foundry}/colleague-form.css +0 -0
  519. /package/dist/components/{Foundary → Foundry}/colleague-form.d.ts +0 -0
  520. /package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.css +0 -0
  521. /package/dist/components/{DigitalColleagues → Foundry}/colleague-type-selection.d.ts +0 -0
  522. /package/dist/components/{DigitalColleagues/digital-colleague-clone.css → Foundry/digital-colleague-selection.css} +0 -0
  523. /package/dist/components/{DigitalColleagues → Foundry}/document-edit.css +0 -0
  524. /package/dist/components/{Foundary → Foundry}/document-edit.d.ts +0 -0
  525. /package/dist/components/{DigitalColleagues → Foundry}/document-preview-examples.css +0 -0
  526. /package/dist/components/{DigitalColleagues → Foundry}/document-preview-examples.d.ts +0 -0
  527. /package/dist/components/{DigitalColleagues → Foundry}/document-preview.css +0 -0
  528. /package/dist/components/{Foundary → Foundry}/document-preview.d.ts +0 -0
  529. /package/dist/components/{Foundary → Foundry}/file-edit.css +0 -0
  530. /package/dist/components/{Foundary → Foundry}/file-edit.d.ts +0 -0
  531. /package/dist/components/{Foundary → Foundry}/foundary-clone.css +0 -0
  532. /package/dist/components/{Foundary → Foundry}/foundary-clone.d.ts +0 -0
  533. /package/dist/components/{Foundary → Foundry}/foundary-layout.css +0 -0
  534. /package/dist/components/{Foundary → Foundry}/foundary-options.css +0 -0
  535. /package/dist/components/{Foundary/RichText → Foundry}/index.css +0 -0
  536. /package/dist/components/{DigitalColleagues → Foundry}/knowledge-browser.css +0 -0
  537. /package/dist/components/{Foundary → Foundry}/knowledge-browser.d.ts +0 -0
  538. /package/dist/components/{DigitalColleagues → Foundry}/knowledge-search.css +0 -0
  539. /package/dist/components/{Foundary → Foundry}/knowledge-search.d.ts +0 -0
  540. /package/dist/components/{DigitalColleagues → Foundry}/team-form.css +0 -0
  541. /package/dist/components/{Foundary → Foundry}/team-form.d.ts +0 -0
  542. /package/dist/components/{Foundary → Foundry}/test-data.d.ts +0 -0
  543. /package/dist/components/{DigitalColleagues/digital-colleague-options.css → Projects/GanttView.css} +0 -0
@@ -1,3433 +0,0 @@
1
- "use client";
2
- "use strict";
3
- 'use client'
4
-
5
- "use strict";
6
- var __create = Object.create;
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __getProtoOf = Object.getPrototypeOf;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __export = (target, all) => {
13
- for (var name in all)
14
- __defProp(target, name, { get: all[name], enumerable: true });
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
- mod
31
- ));
32
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
-
34
- // src/components/DigitalColleagues/document-preview-examples.tsx
35
- var document_preview_examples_exports = {};
36
- __export(document_preview_examples_exports, {
37
- DocumentPreviewExample: () => DocumentPreviewExample,
38
- DocumentPreviewWithPayloadRichText: () => DocumentPreviewWithPayloadRichText,
39
- DocumentPreviewWithReactMarkdown: () => DocumentPreviewWithReactMarkdown,
40
- customRenderers: () => customRenderers,
41
- sampleDocuments: () => sampleDocuments
42
- });
43
- module.exports = __toCommonJS(document_preview_examples_exports);
44
-
45
- // src/components/DigitalColleagues/document-preview.tsx
46
- var import_react4 = require("motion/react");
47
- var import_lucide_react4 = require("lucide-react");
48
- var import_react5 = require("react");
49
-
50
- // src/utils/cn.ts
51
- var import_clsx = require("clsx");
52
-
53
- // node_modules/.pnpm/tailwind-merge@2.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
54
- var CLASS_PART_SEPARATOR = "-";
55
- var createClassGroupUtils = (config) => {
56
- const classMap = createClassMap(config);
57
- const {
58
- conflictingClassGroups,
59
- conflictingClassGroupModifiers
60
- } = config;
61
- const getClassGroupId = (className) => {
62
- const classParts = className.split(CLASS_PART_SEPARATOR);
63
- if (classParts[0] === "" && classParts.length !== 1) {
64
- classParts.shift();
65
- }
66
- return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
67
- };
68
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
69
- const conflicts = conflictingClassGroups[classGroupId] || [];
70
- if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
71
- return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
72
- }
73
- return conflicts;
74
- };
75
- return {
76
- getClassGroupId,
77
- getConflictingClassGroupIds
78
- };
79
- };
80
- var getGroupRecursive = (classParts, classPartObject) => {
81
- if (classParts.length === 0) {
82
- return classPartObject.classGroupId;
83
- }
84
- const currentClassPart = classParts[0];
85
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
86
- const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
87
- if (classGroupFromNextClassPart) {
88
- return classGroupFromNextClassPart;
89
- }
90
- if (classPartObject.validators.length === 0) {
91
- return void 0;
92
- }
93
- const classRest = classParts.join(CLASS_PART_SEPARATOR);
94
- return classPartObject.validators.find(({
95
- validator
96
- }) => validator(classRest))?.classGroupId;
97
- };
98
- var arbitraryPropertyRegex = /^\[(.+)\]$/;
99
- var getGroupIdForArbitraryProperty = (className) => {
100
- if (arbitraryPropertyRegex.test(className)) {
101
- const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
102
- const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(":"));
103
- if (property) {
104
- return "arbitrary.." + property;
105
- }
106
- }
107
- };
108
- var createClassMap = (config) => {
109
- const {
110
- theme,
111
- prefix
112
- } = config;
113
- const classMap = {
114
- nextPart: /* @__PURE__ */ new Map(),
115
- validators: []
116
- };
117
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
118
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
119
- processClassesRecursively(classGroup, classMap, classGroupId, theme);
120
- });
121
- return classMap;
122
- };
123
- var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
124
- classGroup.forEach((classDefinition) => {
125
- if (typeof classDefinition === "string") {
126
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
127
- classPartObjectToEdit.classGroupId = classGroupId;
128
- return;
129
- }
130
- if (typeof classDefinition === "function") {
131
- if (isThemeGetter(classDefinition)) {
132
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
133
- return;
134
- }
135
- classPartObject.validators.push({
136
- validator: classDefinition,
137
- classGroupId
138
- });
139
- return;
140
- }
141
- Object.entries(classDefinition).forEach(([key, classGroup2]) => {
142
- processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
143
- });
144
- });
145
- };
146
- var getPart = (classPartObject, path) => {
147
- let currentClassPartObject = classPartObject;
148
- path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
149
- if (!currentClassPartObject.nextPart.has(pathPart)) {
150
- currentClassPartObject.nextPart.set(pathPart, {
151
- nextPart: /* @__PURE__ */ new Map(),
152
- validators: []
153
- });
154
- }
155
- currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
156
- });
157
- return currentClassPartObject;
158
- };
159
- var isThemeGetter = (func) => func.isThemeGetter;
160
- var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
161
- if (!prefix) {
162
- return classGroupEntries;
163
- }
164
- return classGroupEntries.map(([classGroupId, classGroup]) => {
165
- const prefixedClassGroup = classGroup.map((classDefinition) => {
166
- if (typeof classDefinition === "string") {
167
- return prefix + classDefinition;
168
- }
169
- if (typeof classDefinition === "object") {
170
- return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
171
- }
172
- return classDefinition;
173
- });
174
- return [classGroupId, prefixedClassGroup];
175
- });
176
- };
177
- var createLruCache = (maxCacheSize) => {
178
- if (maxCacheSize < 1) {
179
- return {
180
- get: () => void 0,
181
- set: () => {
182
- }
183
- };
184
- }
185
- let cacheSize = 0;
186
- let cache = /* @__PURE__ */ new Map();
187
- let previousCache = /* @__PURE__ */ new Map();
188
- const update = (key, value) => {
189
- cache.set(key, value);
190
- cacheSize++;
191
- if (cacheSize > maxCacheSize) {
192
- cacheSize = 0;
193
- previousCache = cache;
194
- cache = /* @__PURE__ */ new Map();
195
- }
196
- };
197
- return {
198
- get(key) {
199
- let value = cache.get(key);
200
- if (value !== void 0) {
201
- return value;
202
- }
203
- if ((value = previousCache.get(key)) !== void 0) {
204
- update(key, value);
205
- return value;
206
- }
207
- },
208
- set(key, value) {
209
- if (cache.has(key)) {
210
- cache.set(key, value);
211
- } else {
212
- update(key, value);
213
- }
214
- }
215
- };
216
- };
217
- var IMPORTANT_MODIFIER = "!";
218
- var createParseClassName = (config) => {
219
- const {
220
- separator,
221
- experimentalParseClassName
222
- } = config;
223
- const isSeparatorSingleCharacter = separator.length === 1;
224
- const firstSeparatorCharacter = separator[0];
225
- const separatorLength = separator.length;
226
- const parseClassName = (className) => {
227
- const modifiers = [];
228
- let bracketDepth = 0;
229
- let modifierStart = 0;
230
- let postfixModifierPosition;
231
- for (let index = 0; index < className.length; index++) {
232
- let currentCharacter = className[index];
233
- if (bracketDepth === 0) {
234
- if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
235
- modifiers.push(className.slice(modifierStart, index));
236
- modifierStart = index + separatorLength;
237
- continue;
238
- }
239
- if (currentCharacter === "/") {
240
- postfixModifierPosition = index;
241
- continue;
242
- }
243
- }
244
- if (currentCharacter === "[") {
245
- bracketDepth++;
246
- } else if (currentCharacter === "]") {
247
- bracketDepth--;
248
- }
249
- }
250
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
251
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
252
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
253
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
254
- return {
255
- modifiers,
256
- hasImportantModifier,
257
- baseClassName,
258
- maybePostfixModifierPosition
259
- };
260
- };
261
- if (experimentalParseClassName) {
262
- return (className) => experimentalParseClassName({
263
- className,
264
- parseClassName
265
- });
266
- }
267
- return parseClassName;
268
- };
269
- var sortModifiers = (modifiers) => {
270
- if (modifiers.length <= 1) {
271
- return modifiers;
272
- }
273
- const sortedModifiers = [];
274
- let unsortedModifiers = [];
275
- modifiers.forEach((modifier) => {
276
- const isArbitraryVariant = modifier[0] === "[";
277
- if (isArbitraryVariant) {
278
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
279
- unsortedModifiers = [];
280
- } else {
281
- unsortedModifiers.push(modifier);
282
- }
283
- });
284
- sortedModifiers.push(...unsortedModifiers.sort());
285
- return sortedModifiers;
286
- };
287
- var createConfigUtils = (config) => ({
288
- cache: createLruCache(config.cacheSize),
289
- parseClassName: createParseClassName(config),
290
- ...createClassGroupUtils(config)
291
- });
292
- var SPLIT_CLASSES_REGEX = /\s+/;
293
- var mergeClassList = (classList, configUtils) => {
294
- const {
295
- parseClassName,
296
- getClassGroupId,
297
- getConflictingClassGroupIds
298
- } = configUtils;
299
- const classGroupsInConflict = [];
300
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
301
- let result = "";
302
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
303
- const originalClassName = classNames[index];
304
- const {
305
- modifiers,
306
- hasImportantModifier,
307
- baseClassName,
308
- maybePostfixModifierPosition
309
- } = parseClassName(originalClassName);
310
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
311
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
312
- if (!classGroupId) {
313
- if (!hasPostfixModifier) {
314
- result = originalClassName + (result.length > 0 ? " " + result : result);
315
- continue;
316
- }
317
- classGroupId = getClassGroupId(baseClassName);
318
- if (!classGroupId) {
319
- result = originalClassName + (result.length > 0 ? " " + result : result);
320
- continue;
321
- }
322
- hasPostfixModifier = false;
323
- }
324
- const variantModifier = sortModifiers(modifiers).join(":");
325
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
326
- const classId = modifierId + classGroupId;
327
- if (classGroupsInConflict.includes(classId)) {
328
- continue;
329
- }
330
- classGroupsInConflict.push(classId);
331
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
332
- for (let i = 0; i < conflictGroups.length; ++i) {
333
- const group = conflictGroups[i];
334
- classGroupsInConflict.push(modifierId + group);
335
- }
336
- result = originalClassName + (result.length > 0 ? " " + result : result);
337
- }
338
- return result;
339
- };
340
- function twJoin() {
341
- let index = 0;
342
- let argument;
343
- let resolvedValue;
344
- let string = "";
345
- while (index < arguments.length) {
346
- if (argument = arguments[index++]) {
347
- if (resolvedValue = toValue(argument)) {
348
- string && (string += " ");
349
- string += resolvedValue;
350
- }
351
- }
352
- }
353
- return string;
354
- }
355
- var toValue = (mix) => {
356
- if (typeof mix === "string") {
357
- return mix;
358
- }
359
- let resolvedValue;
360
- let string = "";
361
- for (let k = 0; k < mix.length; k++) {
362
- if (mix[k]) {
363
- if (resolvedValue = toValue(mix[k])) {
364
- string && (string += " ");
365
- string += resolvedValue;
366
- }
367
- }
368
- }
369
- return string;
370
- };
371
- function createTailwindMerge(createConfigFirst, ...createConfigRest) {
372
- let configUtils;
373
- let cacheGet;
374
- let cacheSet;
375
- let functionToCall = initTailwindMerge;
376
- function initTailwindMerge(classList) {
377
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
378
- configUtils = createConfigUtils(config);
379
- cacheGet = configUtils.cache.get;
380
- cacheSet = configUtils.cache.set;
381
- functionToCall = tailwindMerge;
382
- return tailwindMerge(classList);
383
- }
384
- function tailwindMerge(classList) {
385
- const cachedResult = cacheGet(classList);
386
- if (cachedResult) {
387
- return cachedResult;
388
- }
389
- const result = mergeClassList(classList, configUtils);
390
- cacheSet(classList, result);
391
- return result;
392
- }
393
- return function callTailwindMerge() {
394
- return functionToCall(twJoin.apply(null, arguments));
395
- };
396
- }
397
- var fromTheme = (key) => {
398
- const themeGetter = (theme) => theme[key] || [];
399
- themeGetter.isThemeGetter = true;
400
- return themeGetter;
401
- };
402
- var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
403
- var fractionRegex = /^\d+\/\d+$/;
404
- var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
405
- var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
406
- var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
407
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
408
- var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
409
- var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
410
- var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
411
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
412
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
413
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
414
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
415
- var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
416
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
417
- var isTshirtSize = (value) => tshirtUnitRegex.test(value);
418
- var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
419
- var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
420
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
421
- var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
422
- var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
423
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
424
- var isAny = () => true;
425
- var getIsArbitraryValue = (value, label, testValue) => {
426
- const result = arbitraryValueRegex.exec(value);
427
- if (result) {
428
- if (result[1]) {
429
- return typeof label === "string" ? result[1] === label : label.has(result[1]);
430
- }
431
- return testValue(result[2]);
432
- }
433
- return false;
434
- };
435
- var isLengthOnly = (value) => (
436
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
437
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
438
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
439
- lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
440
- );
441
- var isNever = () => false;
442
- var isShadow = (value) => shadowRegex.test(value);
443
- var isImage = (value) => imageRegex.test(value);
444
- var getDefaultConfig = () => {
445
- const colors = fromTheme("colors");
446
- const spacing = fromTheme("spacing");
447
- const blur = fromTheme("blur");
448
- const brightness = fromTheme("brightness");
449
- const borderColor = fromTheme("borderColor");
450
- const borderRadius = fromTheme("borderRadius");
451
- const borderSpacing = fromTheme("borderSpacing");
452
- const borderWidth = fromTheme("borderWidth");
453
- const contrast = fromTheme("contrast");
454
- const grayscale = fromTheme("grayscale");
455
- const hueRotate = fromTheme("hueRotate");
456
- const invert = fromTheme("invert");
457
- const gap = fromTheme("gap");
458
- const gradientColorStops = fromTheme("gradientColorStops");
459
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
460
- const inset = fromTheme("inset");
461
- const margin = fromTheme("margin");
462
- const opacity = fromTheme("opacity");
463
- const padding = fromTheme("padding");
464
- const saturate = fromTheme("saturate");
465
- const scale = fromTheme("scale");
466
- const sepia = fromTheme("sepia");
467
- const skew = fromTheme("skew");
468
- const space = fromTheme("space");
469
- const translate = fromTheme("translate");
470
- const getOverscroll = () => ["auto", "contain", "none"];
471
- const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
472
- const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
473
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
474
- const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
475
- const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
476
- const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
477
- const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
478
- const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
479
- const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
480
- const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
481
- const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
482
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
483
- return {
484
- cacheSize: 500,
485
- separator: ":",
486
- theme: {
487
- colors: [isAny],
488
- spacing: [isLength, isArbitraryLength],
489
- blur: ["none", "", isTshirtSize, isArbitraryValue],
490
- brightness: getNumberAndArbitrary(),
491
- borderColor: [colors],
492
- borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
493
- borderSpacing: getSpacingWithArbitrary(),
494
- borderWidth: getLengthWithEmptyAndArbitrary(),
495
- contrast: getNumberAndArbitrary(),
496
- grayscale: getZeroAndEmpty(),
497
- hueRotate: getNumberAndArbitrary(),
498
- invert: getZeroAndEmpty(),
499
- gap: getSpacingWithArbitrary(),
500
- gradientColorStops: [colors],
501
- gradientColorStopPositions: [isPercent, isArbitraryLength],
502
- inset: getSpacingWithAutoAndArbitrary(),
503
- margin: getSpacingWithAutoAndArbitrary(),
504
- opacity: getNumberAndArbitrary(),
505
- padding: getSpacingWithArbitrary(),
506
- saturate: getNumberAndArbitrary(),
507
- scale: getNumberAndArbitrary(),
508
- sepia: getZeroAndEmpty(),
509
- skew: getNumberAndArbitrary(),
510
- space: getSpacingWithArbitrary(),
511
- translate: getSpacingWithArbitrary()
512
- },
513
- classGroups: {
514
- // Layout
515
- /**
516
- * Aspect Ratio
517
- * @see https://tailwindcss.com/docs/aspect-ratio
518
- */
519
- aspect: [{
520
- aspect: ["auto", "square", "video", isArbitraryValue]
521
- }],
522
- /**
523
- * Container
524
- * @see https://tailwindcss.com/docs/container
525
- */
526
- container: ["container"],
527
- /**
528
- * Columns
529
- * @see https://tailwindcss.com/docs/columns
530
- */
531
- columns: [{
532
- columns: [isTshirtSize]
533
- }],
534
- /**
535
- * Break After
536
- * @see https://tailwindcss.com/docs/break-after
537
- */
538
- "break-after": [{
539
- "break-after": getBreaks()
540
- }],
541
- /**
542
- * Break Before
543
- * @see https://tailwindcss.com/docs/break-before
544
- */
545
- "break-before": [{
546
- "break-before": getBreaks()
547
- }],
548
- /**
549
- * Break Inside
550
- * @see https://tailwindcss.com/docs/break-inside
551
- */
552
- "break-inside": [{
553
- "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
554
- }],
555
- /**
556
- * Box Decoration Break
557
- * @see https://tailwindcss.com/docs/box-decoration-break
558
- */
559
- "box-decoration": [{
560
- "box-decoration": ["slice", "clone"]
561
- }],
562
- /**
563
- * Box Sizing
564
- * @see https://tailwindcss.com/docs/box-sizing
565
- */
566
- box: [{
567
- box: ["border", "content"]
568
- }],
569
- /**
570
- * Display
571
- * @see https://tailwindcss.com/docs/display
572
- */
573
- display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
574
- /**
575
- * Floats
576
- * @see https://tailwindcss.com/docs/float
577
- */
578
- float: [{
579
- float: ["right", "left", "none", "start", "end"]
580
- }],
581
- /**
582
- * Clear
583
- * @see https://tailwindcss.com/docs/clear
584
- */
585
- clear: [{
586
- clear: ["left", "right", "both", "none", "start", "end"]
587
- }],
588
- /**
589
- * Isolation
590
- * @see https://tailwindcss.com/docs/isolation
591
- */
592
- isolation: ["isolate", "isolation-auto"],
593
- /**
594
- * Object Fit
595
- * @see https://tailwindcss.com/docs/object-fit
596
- */
597
- "object-fit": [{
598
- object: ["contain", "cover", "fill", "none", "scale-down"]
599
- }],
600
- /**
601
- * Object Position
602
- * @see https://tailwindcss.com/docs/object-position
603
- */
604
- "object-position": [{
605
- object: [...getPositions(), isArbitraryValue]
606
- }],
607
- /**
608
- * Overflow
609
- * @see https://tailwindcss.com/docs/overflow
610
- */
611
- overflow: [{
612
- overflow: getOverflow()
613
- }],
614
- /**
615
- * Overflow X
616
- * @see https://tailwindcss.com/docs/overflow
617
- */
618
- "overflow-x": [{
619
- "overflow-x": getOverflow()
620
- }],
621
- /**
622
- * Overflow Y
623
- * @see https://tailwindcss.com/docs/overflow
624
- */
625
- "overflow-y": [{
626
- "overflow-y": getOverflow()
627
- }],
628
- /**
629
- * Overscroll Behavior
630
- * @see https://tailwindcss.com/docs/overscroll-behavior
631
- */
632
- overscroll: [{
633
- overscroll: getOverscroll()
634
- }],
635
- /**
636
- * Overscroll Behavior X
637
- * @see https://tailwindcss.com/docs/overscroll-behavior
638
- */
639
- "overscroll-x": [{
640
- "overscroll-x": getOverscroll()
641
- }],
642
- /**
643
- * Overscroll Behavior Y
644
- * @see https://tailwindcss.com/docs/overscroll-behavior
645
- */
646
- "overscroll-y": [{
647
- "overscroll-y": getOverscroll()
648
- }],
649
- /**
650
- * Position
651
- * @see https://tailwindcss.com/docs/position
652
- */
653
- position: ["static", "fixed", "absolute", "relative", "sticky"],
654
- /**
655
- * Top / Right / Bottom / Left
656
- * @see https://tailwindcss.com/docs/top-right-bottom-left
657
- */
658
- inset: [{
659
- inset: [inset]
660
- }],
661
- /**
662
- * Right / Left
663
- * @see https://tailwindcss.com/docs/top-right-bottom-left
664
- */
665
- "inset-x": [{
666
- "inset-x": [inset]
667
- }],
668
- /**
669
- * Top / Bottom
670
- * @see https://tailwindcss.com/docs/top-right-bottom-left
671
- */
672
- "inset-y": [{
673
- "inset-y": [inset]
674
- }],
675
- /**
676
- * Start
677
- * @see https://tailwindcss.com/docs/top-right-bottom-left
678
- */
679
- start: [{
680
- start: [inset]
681
- }],
682
- /**
683
- * End
684
- * @see https://tailwindcss.com/docs/top-right-bottom-left
685
- */
686
- end: [{
687
- end: [inset]
688
- }],
689
- /**
690
- * Top
691
- * @see https://tailwindcss.com/docs/top-right-bottom-left
692
- */
693
- top: [{
694
- top: [inset]
695
- }],
696
- /**
697
- * Right
698
- * @see https://tailwindcss.com/docs/top-right-bottom-left
699
- */
700
- right: [{
701
- right: [inset]
702
- }],
703
- /**
704
- * Bottom
705
- * @see https://tailwindcss.com/docs/top-right-bottom-left
706
- */
707
- bottom: [{
708
- bottom: [inset]
709
- }],
710
- /**
711
- * Left
712
- * @see https://tailwindcss.com/docs/top-right-bottom-left
713
- */
714
- left: [{
715
- left: [inset]
716
- }],
717
- /**
718
- * Visibility
719
- * @see https://tailwindcss.com/docs/visibility
720
- */
721
- visibility: ["visible", "invisible", "collapse"],
722
- /**
723
- * Z-Index
724
- * @see https://tailwindcss.com/docs/z-index
725
- */
726
- z: [{
727
- z: ["auto", isInteger, isArbitraryValue]
728
- }],
729
- // Flexbox and Grid
730
- /**
731
- * Flex Basis
732
- * @see https://tailwindcss.com/docs/flex-basis
733
- */
734
- basis: [{
735
- basis: getSpacingWithAutoAndArbitrary()
736
- }],
737
- /**
738
- * Flex Direction
739
- * @see https://tailwindcss.com/docs/flex-direction
740
- */
741
- "flex-direction": [{
742
- flex: ["row", "row-reverse", "col", "col-reverse"]
743
- }],
744
- /**
745
- * Flex Wrap
746
- * @see https://tailwindcss.com/docs/flex-wrap
747
- */
748
- "flex-wrap": [{
749
- flex: ["wrap", "wrap-reverse", "nowrap"]
750
- }],
751
- /**
752
- * Flex
753
- * @see https://tailwindcss.com/docs/flex
754
- */
755
- flex: [{
756
- flex: ["1", "auto", "initial", "none", isArbitraryValue]
757
- }],
758
- /**
759
- * Flex Grow
760
- * @see https://tailwindcss.com/docs/flex-grow
761
- */
762
- grow: [{
763
- grow: getZeroAndEmpty()
764
- }],
765
- /**
766
- * Flex Shrink
767
- * @see https://tailwindcss.com/docs/flex-shrink
768
- */
769
- shrink: [{
770
- shrink: getZeroAndEmpty()
771
- }],
772
- /**
773
- * Order
774
- * @see https://tailwindcss.com/docs/order
775
- */
776
- order: [{
777
- order: ["first", "last", "none", isInteger, isArbitraryValue]
778
- }],
779
- /**
780
- * Grid Template Columns
781
- * @see https://tailwindcss.com/docs/grid-template-columns
782
- */
783
- "grid-cols": [{
784
- "grid-cols": [isAny]
785
- }],
786
- /**
787
- * Grid Column Start / End
788
- * @see https://tailwindcss.com/docs/grid-column
789
- */
790
- "col-start-end": [{
791
- col: ["auto", {
792
- span: ["full", isInteger, isArbitraryValue]
793
- }, isArbitraryValue]
794
- }],
795
- /**
796
- * Grid Column Start
797
- * @see https://tailwindcss.com/docs/grid-column
798
- */
799
- "col-start": [{
800
- "col-start": getNumberWithAutoAndArbitrary()
801
- }],
802
- /**
803
- * Grid Column End
804
- * @see https://tailwindcss.com/docs/grid-column
805
- */
806
- "col-end": [{
807
- "col-end": getNumberWithAutoAndArbitrary()
808
- }],
809
- /**
810
- * Grid Template Rows
811
- * @see https://tailwindcss.com/docs/grid-template-rows
812
- */
813
- "grid-rows": [{
814
- "grid-rows": [isAny]
815
- }],
816
- /**
817
- * Grid Row Start / End
818
- * @see https://tailwindcss.com/docs/grid-row
819
- */
820
- "row-start-end": [{
821
- row: ["auto", {
822
- span: [isInteger, isArbitraryValue]
823
- }, isArbitraryValue]
824
- }],
825
- /**
826
- * Grid Row Start
827
- * @see https://tailwindcss.com/docs/grid-row
828
- */
829
- "row-start": [{
830
- "row-start": getNumberWithAutoAndArbitrary()
831
- }],
832
- /**
833
- * Grid Row End
834
- * @see https://tailwindcss.com/docs/grid-row
835
- */
836
- "row-end": [{
837
- "row-end": getNumberWithAutoAndArbitrary()
838
- }],
839
- /**
840
- * Grid Auto Flow
841
- * @see https://tailwindcss.com/docs/grid-auto-flow
842
- */
843
- "grid-flow": [{
844
- "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
845
- }],
846
- /**
847
- * Grid Auto Columns
848
- * @see https://tailwindcss.com/docs/grid-auto-columns
849
- */
850
- "auto-cols": [{
851
- "auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
852
- }],
853
- /**
854
- * Grid Auto Rows
855
- * @see https://tailwindcss.com/docs/grid-auto-rows
856
- */
857
- "auto-rows": [{
858
- "auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
859
- }],
860
- /**
861
- * Gap
862
- * @see https://tailwindcss.com/docs/gap
863
- */
864
- gap: [{
865
- gap: [gap]
866
- }],
867
- /**
868
- * Gap X
869
- * @see https://tailwindcss.com/docs/gap
870
- */
871
- "gap-x": [{
872
- "gap-x": [gap]
873
- }],
874
- /**
875
- * Gap Y
876
- * @see https://tailwindcss.com/docs/gap
877
- */
878
- "gap-y": [{
879
- "gap-y": [gap]
880
- }],
881
- /**
882
- * Justify Content
883
- * @see https://tailwindcss.com/docs/justify-content
884
- */
885
- "justify-content": [{
886
- justify: ["normal", ...getAlign()]
887
- }],
888
- /**
889
- * Justify Items
890
- * @see https://tailwindcss.com/docs/justify-items
891
- */
892
- "justify-items": [{
893
- "justify-items": ["start", "end", "center", "stretch"]
894
- }],
895
- /**
896
- * Justify Self
897
- * @see https://tailwindcss.com/docs/justify-self
898
- */
899
- "justify-self": [{
900
- "justify-self": ["auto", "start", "end", "center", "stretch"]
901
- }],
902
- /**
903
- * Align Content
904
- * @see https://tailwindcss.com/docs/align-content
905
- */
906
- "align-content": [{
907
- content: ["normal", ...getAlign(), "baseline"]
908
- }],
909
- /**
910
- * Align Items
911
- * @see https://tailwindcss.com/docs/align-items
912
- */
913
- "align-items": [{
914
- items: ["start", "end", "center", "baseline", "stretch"]
915
- }],
916
- /**
917
- * Align Self
918
- * @see https://tailwindcss.com/docs/align-self
919
- */
920
- "align-self": [{
921
- self: ["auto", "start", "end", "center", "stretch", "baseline"]
922
- }],
923
- /**
924
- * Place Content
925
- * @see https://tailwindcss.com/docs/place-content
926
- */
927
- "place-content": [{
928
- "place-content": [...getAlign(), "baseline"]
929
- }],
930
- /**
931
- * Place Items
932
- * @see https://tailwindcss.com/docs/place-items
933
- */
934
- "place-items": [{
935
- "place-items": ["start", "end", "center", "baseline", "stretch"]
936
- }],
937
- /**
938
- * Place Self
939
- * @see https://tailwindcss.com/docs/place-self
940
- */
941
- "place-self": [{
942
- "place-self": ["auto", "start", "end", "center", "stretch"]
943
- }],
944
- // Spacing
945
- /**
946
- * Padding
947
- * @see https://tailwindcss.com/docs/padding
948
- */
949
- p: [{
950
- p: [padding]
951
- }],
952
- /**
953
- * Padding X
954
- * @see https://tailwindcss.com/docs/padding
955
- */
956
- px: [{
957
- px: [padding]
958
- }],
959
- /**
960
- * Padding Y
961
- * @see https://tailwindcss.com/docs/padding
962
- */
963
- py: [{
964
- py: [padding]
965
- }],
966
- /**
967
- * Padding Start
968
- * @see https://tailwindcss.com/docs/padding
969
- */
970
- ps: [{
971
- ps: [padding]
972
- }],
973
- /**
974
- * Padding End
975
- * @see https://tailwindcss.com/docs/padding
976
- */
977
- pe: [{
978
- pe: [padding]
979
- }],
980
- /**
981
- * Padding Top
982
- * @see https://tailwindcss.com/docs/padding
983
- */
984
- pt: [{
985
- pt: [padding]
986
- }],
987
- /**
988
- * Padding Right
989
- * @see https://tailwindcss.com/docs/padding
990
- */
991
- pr: [{
992
- pr: [padding]
993
- }],
994
- /**
995
- * Padding Bottom
996
- * @see https://tailwindcss.com/docs/padding
997
- */
998
- pb: [{
999
- pb: [padding]
1000
- }],
1001
- /**
1002
- * Padding Left
1003
- * @see https://tailwindcss.com/docs/padding
1004
- */
1005
- pl: [{
1006
- pl: [padding]
1007
- }],
1008
- /**
1009
- * Margin
1010
- * @see https://tailwindcss.com/docs/margin
1011
- */
1012
- m: [{
1013
- m: [margin]
1014
- }],
1015
- /**
1016
- * Margin X
1017
- * @see https://tailwindcss.com/docs/margin
1018
- */
1019
- mx: [{
1020
- mx: [margin]
1021
- }],
1022
- /**
1023
- * Margin Y
1024
- * @see https://tailwindcss.com/docs/margin
1025
- */
1026
- my: [{
1027
- my: [margin]
1028
- }],
1029
- /**
1030
- * Margin Start
1031
- * @see https://tailwindcss.com/docs/margin
1032
- */
1033
- ms: [{
1034
- ms: [margin]
1035
- }],
1036
- /**
1037
- * Margin End
1038
- * @see https://tailwindcss.com/docs/margin
1039
- */
1040
- me: [{
1041
- me: [margin]
1042
- }],
1043
- /**
1044
- * Margin Top
1045
- * @see https://tailwindcss.com/docs/margin
1046
- */
1047
- mt: [{
1048
- mt: [margin]
1049
- }],
1050
- /**
1051
- * Margin Right
1052
- * @see https://tailwindcss.com/docs/margin
1053
- */
1054
- mr: [{
1055
- mr: [margin]
1056
- }],
1057
- /**
1058
- * Margin Bottom
1059
- * @see https://tailwindcss.com/docs/margin
1060
- */
1061
- mb: [{
1062
- mb: [margin]
1063
- }],
1064
- /**
1065
- * Margin Left
1066
- * @see https://tailwindcss.com/docs/margin
1067
- */
1068
- ml: [{
1069
- ml: [margin]
1070
- }],
1071
- /**
1072
- * Space Between X
1073
- * @see https://tailwindcss.com/docs/space
1074
- */
1075
- "space-x": [{
1076
- "space-x": [space]
1077
- }],
1078
- /**
1079
- * Space Between X Reverse
1080
- * @see https://tailwindcss.com/docs/space
1081
- */
1082
- "space-x-reverse": ["space-x-reverse"],
1083
- /**
1084
- * Space Between Y
1085
- * @see https://tailwindcss.com/docs/space
1086
- */
1087
- "space-y": [{
1088
- "space-y": [space]
1089
- }],
1090
- /**
1091
- * Space Between Y Reverse
1092
- * @see https://tailwindcss.com/docs/space
1093
- */
1094
- "space-y-reverse": ["space-y-reverse"],
1095
- // Sizing
1096
- /**
1097
- * Width
1098
- * @see https://tailwindcss.com/docs/width
1099
- */
1100
- w: [{
1101
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1102
- }],
1103
- /**
1104
- * Min-Width
1105
- * @see https://tailwindcss.com/docs/min-width
1106
- */
1107
- "min-w": [{
1108
- "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1109
- }],
1110
- /**
1111
- * Max-Width
1112
- * @see https://tailwindcss.com/docs/max-width
1113
- */
1114
- "max-w": [{
1115
- "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1116
- screen: [isTshirtSize]
1117
- }, isTshirtSize]
1118
- }],
1119
- /**
1120
- * Height
1121
- * @see https://tailwindcss.com/docs/height
1122
- */
1123
- h: [{
1124
- h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1125
- }],
1126
- /**
1127
- * Min-Height
1128
- * @see https://tailwindcss.com/docs/min-height
1129
- */
1130
- "min-h": [{
1131
- "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1132
- }],
1133
- /**
1134
- * Max-Height
1135
- * @see https://tailwindcss.com/docs/max-height
1136
- */
1137
- "max-h": [{
1138
- "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1139
- }],
1140
- /**
1141
- * Size
1142
- * @see https://tailwindcss.com/docs/size
1143
- */
1144
- size: [{
1145
- size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1146
- }],
1147
- // Typography
1148
- /**
1149
- * Font Size
1150
- * @see https://tailwindcss.com/docs/font-size
1151
- */
1152
- "font-size": [{
1153
- text: ["base", isTshirtSize, isArbitraryLength]
1154
- }],
1155
- /**
1156
- * Font Smoothing
1157
- * @see https://tailwindcss.com/docs/font-smoothing
1158
- */
1159
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
1160
- /**
1161
- * Font Style
1162
- * @see https://tailwindcss.com/docs/font-style
1163
- */
1164
- "font-style": ["italic", "not-italic"],
1165
- /**
1166
- * Font Weight
1167
- * @see https://tailwindcss.com/docs/font-weight
1168
- */
1169
- "font-weight": [{
1170
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
1171
- }],
1172
- /**
1173
- * Font Family
1174
- * @see https://tailwindcss.com/docs/font-family
1175
- */
1176
- "font-family": [{
1177
- font: [isAny]
1178
- }],
1179
- /**
1180
- * Font Variant Numeric
1181
- * @see https://tailwindcss.com/docs/font-variant-numeric
1182
- */
1183
- "fvn-normal": ["normal-nums"],
1184
- /**
1185
- * Font Variant Numeric
1186
- * @see https://tailwindcss.com/docs/font-variant-numeric
1187
- */
1188
- "fvn-ordinal": ["ordinal"],
1189
- /**
1190
- * Font Variant Numeric
1191
- * @see https://tailwindcss.com/docs/font-variant-numeric
1192
- */
1193
- "fvn-slashed-zero": ["slashed-zero"],
1194
- /**
1195
- * Font Variant Numeric
1196
- * @see https://tailwindcss.com/docs/font-variant-numeric
1197
- */
1198
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
1199
- /**
1200
- * Font Variant Numeric
1201
- * @see https://tailwindcss.com/docs/font-variant-numeric
1202
- */
1203
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
1204
- /**
1205
- * Font Variant Numeric
1206
- * @see https://tailwindcss.com/docs/font-variant-numeric
1207
- */
1208
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1209
- /**
1210
- * Letter Spacing
1211
- * @see https://tailwindcss.com/docs/letter-spacing
1212
- */
1213
- tracking: [{
1214
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
1215
- }],
1216
- /**
1217
- * Line Clamp
1218
- * @see https://tailwindcss.com/docs/line-clamp
1219
- */
1220
- "line-clamp": [{
1221
- "line-clamp": ["none", isNumber, isArbitraryNumber]
1222
- }],
1223
- /**
1224
- * Line Height
1225
- * @see https://tailwindcss.com/docs/line-height
1226
- */
1227
- leading: [{
1228
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
1229
- }],
1230
- /**
1231
- * List Style Image
1232
- * @see https://tailwindcss.com/docs/list-style-image
1233
- */
1234
- "list-image": [{
1235
- "list-image": ["none", isArbitraryValue]
1236
- }],
1237
- /**
1238
- * List Style Type
1239
- * @see https://tailwindcss.com/docs/list-style-type
1240
- */
1241
- "list-style-type": [{
1242
- list: ["none", "disc", "decimal", isArbitraryValue]
1243
- }],
1244
- /**
1245
- * List Style Position
1246
- * @see https://tailwindcss.com/docs/list-style-position
1247
- */
1248
- "list-style-position": [{
1249
- list: ["inside", "outside"]
1250
- }],
1251
- /**
1252
- * Placeholder Color
1253
- * @deprecated since Tailwind CSS v3.0.0
1254
- * @see https://tailwindcss.com/docs/placeholder-color
1255
- */
1256
- "placeholder-color": [{
1257
- placeholder: [colors]
1258
- }],
1259
- /**
1260
- * Placeholder Opacity
1261
- * @see https://tailwindcss.com/docs/placeholder-opacity
1262
- */
1263
- "placeholder-opacity": [{
1264
- "placeholder-opacity": [opacity]
1265
- }],
1266
- /**
1267
- * Text Alignment
1268
- * @see https://tailwindcss.com/docs/text-align
1269
- */
1270
- "text-alignment": [{
1271
- text: ["left", "center", "right", "justify", "start", "end"]
1272
- }],
1273
- /**
1274
- * Text Color
1275
- * @see https://tailwindcss.com/docs/text-color
1276
- */
1277
- "text-color": [{
1278
- text: [colors]
1279
- }],
1280
- /**
1281
- * Text Opacity
1282
- * @see https://tailwindcss.com/docs/text-opacity
1283
- */
1284
- "text-opacity": [{
1285
- "text-opacity": [opacity]
1286
- }],
1287
- /**
1288
- * Text Decoration
1289
- * @see https://tailwindcss.com/docs/text-decoration
1290
- */
1291
- "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1292
- /**
1293
- * Text Decoration Style
1294
- * @see https://tailwindcss.com/docs/text-decoration-style
1295
- */
1296
- "text-decoration-style": [{
1297
- decoration: [...getLineStyles(), "wavy"]
1298
- }],
1299
- /**
1300
- * Text Decoration Thickness
1301
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1302
- */
1303
- "text-decoration-thickness": [{
1304
- decoration: ["auto", "from-font", isLength, isArbitraryLength]
1305
- }],
1306
- /**
1307
- * Text Underline Offset
1308
- * @see https://tailwindcss.com/docs/text-underline-offset
1309
- */
1310
- "underline-offset": [{
1311
- "underline-offset": ["auto", isLength, isArbitraryValue]
1312
- }],
1313
- /**
1314
- * Text Decoration Color
1315
- * @see https://tailwindcss.com/docs/text-decoration-color
1316
- */
1317
- "text-decoration-color": [{
1318
- decoration: [colors]
1319
- }],
1320
- /**
1321
- * Text Transform
1322
- * @see https://tailwindcss.com/docs/text-transform
1323
- */
1324
- "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1325
- /**
1326
- * Text Overflow
1327
- * @see https://tailwindcss.com/docs/text-overflow
1328
- */
1329
- "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1330
- /**
1331
- * Text Wrap
1332
- * @see https://tailwindcss.com/docs/text-wrap
1333
- */
1334
- "text-wrap": [{
1335
- text: ["wrap", "nowrap", "balance", "pretty"]
1336
- }],
1337
- /**
1338
- * Text Indent
1339
- * @see https://tailwindcss.com/docs/text-indent
1340
- */
1341
- indent: [{
1342
- indent: getSpacingWithArbitrary()
1343
- }],
1344
- /**
1345
- * Vertical Alignment
1346
- * @see https://tailwindcss.com/docs/vertical-align
1347
- */
1348
- "vertical-align": [{
1349
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
1350
- }],
1351
- /**
1352
- * Whitespace
1353
- * @see https://tailwindcss.com/docs/whitespace
1354
- */
1355
- whitespace: [{
1356
- whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1357
- }],
1358
- /**
1359
- * Word Break
1360
- * @see https://tailwindcss.com/docs/word-break
1361
- */
1362
- break: [{
1363
- break: ["normal", "words", "all", "keep"]
1364
- }],
1365
- /**
1366
- * Hyphens
1367
- * @see https://tailwindcss.com/docs/hyphens
1368
- */
1369
- hyphens: [{
1370
- hyphens: ["none", "manual", "auto"]
1371
- }],
1372
- /**
1373
- * Content
1374
- * @see https://tailwindcss.com/docs/content
1375
- */
1376
- content: [{
1377
- content: ["none", isArbitraryValue]
1378
- }],
1379
- // Backgrounds
1380
- /**
1381
- * Background Attachment
1382
- * @see https://tailwindcss.com/docs/background-attachment
1383
- */
1384
- "bg-attachment": [{
1385
- bg: ["fixed", "local", "scroll"]
1386
- }],
1387
- /**
1388
- * Background Clip
1389
- * @see https://tailwindcss.com/docs/background-clip
1390
- */
1391
- "bg-clip": [{
1392
- "bg-clip": ["border", "padding", "content", "text"]
1393
- }],
1394
- /**
1395
- * Background Opacity
1396
- * @deprecated since Tailwind CSS v3.0.0
1397
- * @see https://tailwindcss.com/docs/background-opacity
1398
- */
1399
- "bg-opacity": [{
1400
- "bg-opacity": [opacity]
1401
- }],
1402
- /**
1403
- * Background Origin
1404
- * @see https://tailwindcss.com/docs/background-origin
1405
- */
1406
- "bg-origin": [{
1407
- "bg-origin": ["border", "padding", "content"]
1408
- }],
1409
- /**
1410
- * Background Position
1411
- * @see https://tailwindcss.com/docs/background-position
1412
- */
1413
- "bg-position": [{
1414
- bg: [...getPositions(), isArbitraryPosition]
1415
- }],
1416
- /**
1417
- * Background Repeat
1418
- * @see https://tailwindcss.com/docs/background-repeat
1419
- */
1420
- "bg-repeat": [{
1421
- bg: ["no-repeat", {
1422
- repeat: ["", "x", "y", "round", "space"]
1423
- }]
1424
- }],
1425
- /**
1426
- * Background Size
1427
- * @see https://tailwindcss.com/docs/background-size
1428
- */
1429
- "bg-size": [{
1430
- bg: ["auto", "cover", "contain", isArbitrarySize]
1431
- }],
1432
- /**
1433
- * Background Image
1434
- * @see https://tailwindcss.com/docs/background-image
1435
- */
1436
- "bg-image": [{
1437
- bg: ["none", {
1438
- "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1439
- }, isArbitraryImage]
1440
- }],
1441
- /**
1442
- * Background Color
1443
- * @see https://tailwindcss.com/docs/background-color
1444
- */
1445
- "bg-color": [{
1446
- bg: [colors]
1447
- }],
1448
- /**
1449
- * Gradient Color Stops From Position
1450
- * @see https://tailwindcss.com/docs/gradient-color-stops
1451
- */
1452
- "gradient-from-pos": [{
1453
- from: [gradientColorStopPositions]
1454
- }],
1455
- /**
1456
- * Gradient Color Stops Via Position
1457
- * @see https://tailwindcss.com/docs/gradient-color-stops
1458
- */
1459
- "gradient-via-pos": [{
1460
- via: [gradientColorStopPositions]
1461
- }],
1462
- /**
1463
- * Gradient Color Stops To Position
1464
- * @see https://tailwindcss.com/docs/gradient-color-stops
1465
- */
1466
- "gradient-to-pos": [{
1467
- to: [gradientColorStopPositions]
1468
- }],
1469
- /**
1470
- * Gradient Color Stops From
1471
- * @see https://tailwindcss.com/docs/gradient-color-stops
1472
- */
1473
- "gradient-from": [{
1474
- from: [gradientColorStops]
1475
- }],
1476
- /**
1477
- * Gradient Color Stops Via
1478
- * @see https://tailwindcss.com/docs/gradient-color-stops
1479
- */
1480
- "gradient-via": [{
1481
- via: [gradientColorStops]
1482
- }],
1483
- /**
1484
- * Gradient Color Stops To
1485
- * @see https://tailwindcss.com/docs/gradient-color-stops
1486
- */
1487
- "gradient-to": [{
1488
- to: [gradientColorStops]
1489
- }],
1490
- // Borders
1491
- /**
1492
- * Border Radius
1493
- * @see https://tailwindcss.com/docs/border-radius
1494
- */
1495
- rounded: [{
1496
- rounded: [borderRadius]
1497
- }],
1498
- /**
1499
- * Border Radius Start
1500
- * @see https://tailwindcss.com/docs/border-radius
1501
- */
1502
- "rounded-s": [{
1503
- "rounded-s": [borderRadius]
1504
- }],
1505
- /**
1506
- * Border Radius End
1507
- * @see https://tailwindcss.com/docs/border-radius
1508
- */
1509
- "rounded-e": [{
1510
- "rounded-e": [borderRadius]
1511
- }],
1512
- /**
1513
- * Border Radius Top
1514
- * @see https://tailwindcss.com/docs/border-radius
1515
- */
1516
- "rounded-t": [{
1517
- "rounded-t": [borderRadius]
1518
- }],
1519
- /**
1520
- * Border Radius Right
1521
- * @see https://tailwindcss.com/docs/border-radius
1522
- */
1523
- "rounded-r": [{
1524
- "rounded-r": [borderRadius]
1525
- }],
1526
- /**
1527
- * Border Radius Bottom
1528
- * @see https://tailwindcss.com/docs/border-radius
1529
- */
1530
- "rounded-b": [{
1531
- "rounded-b": [borderRadius]
1532
- }],
1533
- /**
1534
- * Border Radius Left
1535
- * @see https://tailwindcss.com/docs/border-radius
1536
- */
1537
- "rounded-l": [{
1538
- "rounded-l": [borderRadius]
1539
- }],
1540
- /**
1541
- * Border Radius Start Start
1542
- * @see https://tailwindcss.com/docs/border-radius
1543
- */
1544
- "rounded-ss": [{
1545
- "rounded-ss": [borderRadius]
1546
- }],
1547
- /**
1548
- * Border Radius Start End
1549
- * @see https://tailwindcss.com/docs/border-radius
1550
- */
1551
- "rounded-se": [{
1552
- "rounded-se": [borderRadius]
1553
- }],
1554
- /**
1555
- * Border Radius End End
1556
- * @see https://tailwindcss.com/docs/border-radius
1557
- */
1558
- "rounded-ee": [{
1559
- "rounded-ee": [borderRadius]
1560
- }],
1561
- /**
1562
- * Border Radius End Start
1563
- * @see https://tailwindcss.com/docs/border-radius
1564
- */
1565
- "rounded-es": [{
1566
- "rounded-es": [borderRadius]
1567
- }],
1568
- /**
1569
- * Border Radius Top Left
1570
- * @see https://tailwindcss.com/docs/border-radius
1571
- */
1572
- "rounded-tl": [{
1573
- "rounded-tl": [borderRadius]
1574
- }],
1575
- /**
1576
- * Border Radius Top Right
1577
- * @see https://tailwindcss.com/docs/border-radius
1578
- */
1579
- "rounded-tr": [{
1580
- "rounded-tr": [borderRadius]
1581
- }],
1582
- /**
1583
- * Border Radius Bottom Right
1584
- * @see https://tailwindcss.com/docs/border-radius
1585
- */
1586
- "rounded-br": [{
1587
- "rounded-br": [borderRadius]
1588
- }],
1589
- /**
1590
- * Border Radius Bottom Left
1591
- * @see https://tailwindcss.com/docs/border-radius
1592
- */
1593
- "rounded-bl": [{
1594
- "rounded-bl": [borderRadius]
1595
- }],
1596
- /**
1597
- * Border Width
1598
- * @see https://tailwindcss.com/docs/border-width
1599
- */
1600
- "border-w": [{
1601
- border: [borderWidth]
1602
- }],
1603
- /**
1604
- * Border Width X
1605
- * @see https://tailwindcss.com/docs/border-width
1606
- */
1607
- "border-w-x": [{
1608
- "border-x": [borderWidth]
1609
- }],
1610
- /**
1611
- * Border Width Y
1612
- * @see https://tailwindcss.com/docs/border-width
1613
- */
1614
- "border-w-y": [{
1615
- "border-y": [borderWidth]
1616
- }],
1617
- /**
1618
- * Border Width Start
1619
- * @see https://tailwindcss.com/docs/border-width
1620
- */
1621
- "border-w-s": [{
1622
- "border-s": [borderWidth]
1623
- }],
1624
- /**
1625
- * Border Width End
1626
- * @see https://tailwindcss.com/docs/border-width
1627
- */
1628
- "border-w-e": [{
1629
- "border-e": [borderWidth]
1630
- }],
1631
- /**
1632
- * Border Width Top
1633
- * @see https://tailwindcss.com/docs/border-width
1634
- */
1635
- "border-w-t": [{
1636
- "border-t": [borderWidth]
1637
- }],
1638
- /**
1639
- * Border Width Right
1640
- * @see https://tailwindcss.com/docs/border-width
1641
- */
1642
- "border-w-r": [{
1643
- "border-r": [borderWidth]
1644
- }],
1645
- /**
1646
- * Border Width Bottom
1647
- * @see https://tailwindcss.com/docs/border-width
1648
- */
1649
- "border-w-b": [{
1650
- "border-b": [borderWidth]
1651
- }],
1652
- /**
1653
- * Border Width Left
1654
- * @see https://tailwindcss.com/docs/border-width
1655
- */
1656
- "border-w-l": [{
1657
- "border-l": [borderWidth]
1658
- }],
1659
- /**
1660
- * Border Opacity
1661
- * @see https://tailwindcss.com/docs/border-opacity
1662
- */
1663
- "border-opacity": [{
1664
- "border-opacity": [opacity]
1665
- }],
1666
- /**
1667
- * Border Style
1668
- * @see https://tailwindcss.com/docs/border-style
1669
- */
1670
- "border-style": [{
1671
- border: [...getLineStyles(), "hidden"]
1672
- }],
1673
- /**
1674
- * Divide Width X
1675
- * @see https://tailwindcss.com/docs/divide-width
1676
- */
1677
- "divide-x": [{
1678
- "divide-x": [borderWidth]
1679
- }],
1680
- /**
1681
- * Divide Width X Reverse
1682
- * @see https://tailwindcss.com/docs/divide-width
1683
- */
1684
- "divide-x-reverse": ["divide-x-reverse"],
1685
- /**
1686
- * Divide Width Y
1687
- * @see https://tailwindcss.com/docs/divide-width
1688
- */
1689
- "divide-y": [{
1690
- "divide-y": [borderWidth]
1691
- }],
1692
- /**
1693
- * Divide Width Y Reverse
1694
- * @see https://tailwindcss.com/docs/divide-width
1695
- */
1696
- "divide-y-reverse": ["divide-y-reverse"],
1697
- /**
1698
- * Divide Opacity
1699
- * @see https://tailwindcss.com/docs/divide-opacity
1700
- */
1701
- "divide-opacity": [{
1702
- "divide-opacity": [opacity]
1703
- }],
1704
- /**
1705
- * Divide Style
1706
- * @see https://tailwindcss.com/docs/divide-style
1707
- */
1708
- "divide-style": [{
1709
- divide: getLineStyles()
1710
- }],
1711
- /**
1712
- * Border Color
1713
- * @see https://tailwindcss.com/docs/border-color
1714
- */
1715
- "border-color": [{
1716
- border: [borderColor]
1717
- }],
1718
- /**
1719
- * Border Color X
1720
- * @see https://tailwindcss.com/docs/border-color
1721
- */
1722
- "border-color-x": [{
1723
- "border-x": [borderColor]
1724
- }],
1725
- /**
1726
- * Border Color Y
1727
- * @see https://tailwindcss.com/docs/border-color
1728
- */
1729
- "border-color-y": [{
1730
- "border-y": [borderColor]
1731
- }],
1732
- /**
1733
- * Border Color S
1734
- * @see https://tailwindcss.com/docs/border-color
1735
- */
1736
- "border-color-s": [{
1737
- "border-s": [borderColor]
1738
- }],
1739
- /**
1740
- * Border Color E
1741
- * @see https://tailwindcss.com/docs/border-color
1742
- */
1743
- "border-color-e": [{
1744
- "border-e": [borderColor]
1745
- }],
1746
- /**
1747
- * Border Color Top
1748
- * @see https://tailwindcss.com/docs/border-color
1749
- */
1750
- "border-color-t": [{
1751
- "border-t": [borderColor]
1752
- }],
1753
- /**
1754
- * Border Color Right
1755
- * @see https://tailwindcss.com/docs/border-color
1756
- */
1757
- "border-color-r": [{
1758
- "border-r": [borderColor]
1759
- }],
1760
- /**
1761
- * Border Color Bottom
1762
- * @see https://tailwindcss.com/docs/border-color
1763
- */
1764
- "border-color-b": [{
1765
- "border-b": [borderColor]
1766
- }],
1767
- /**
1768
- * Border Color Left
1769
- * @see https://tailwindcss.com/docs/border-color
1770
- */
1771
- "border-color-l": [{
1772
- "border-l": [borderColor]
1773
- }],
1774
- /**
1775
- * Divide Color
1776
- * @see https://tailwindcss.com/docs/divide-color
1777
- */
1778
- "divide-color": [{
1779
- divide: [borderColor]
1780
- }],
1781
- /**
1782
- * Outline Style
1783
- * @see https://tailwindcss.com/docs/outline-style
1784
- */
1785
- "outline-style": [{
1786
- outline: ["", ...getLineStyles()]
1787
- }],
1788
- /**
1789
- * Outline Offset
1790
- * @see https://tailwindcss.com/docs/outline-offset
1791
- */
1792
- "outline-offset": [{
1793
- "outline-offset": [isLength, isArbitraryValue]
1794
- }],
1795
- /**
1796
- * Outline Width
1797
- * @see https://tailwindcss.com/docs/outline-width
1798
- */
1799
- "outline-w": [{
1800
- outline: [isLength, isArbitraryLength]
1801
- }],
1802
- /**
1803
- * Outline Color
1804
- * @see https://tailwindcss.com/docs/outline-color
1805
- */
1806
- "outline-color": [{
1807
- outline: [colors]
1808
- }],
1809
- /**
1810
- * Ring Width
1811
- * @see https://tailwindcss.com/docs/ring-width
1812
- */
1813
- "ring-w": [{
1814
- ring: getLengthWithEmptyAndArbitrary()
1815
- }],
1816
- /**
1817
- * Ring Width Inset
1818
- * @see https://tailwindcss.com/docs/ring-width
1819
- */
1820
- "ring-w-inset": ["ring-inset"],
1821
- /**
1822
- * Ring Color
1823
- * @see https://tailwindcss.com/docs/ring-color
1824
- */
1825
- "ring-color": [{
1826
- ring: [colors]
1827
- }],
1828
- /**
1829
- * Ring Opacity
1830
- * @see https://tailwindcss.com/docs/ring-opacity
1831
- */
1832
- "ring-opacity": [{
1833
- "ring-opacity": [opacity]
1834
- }],
1835
- /**
1836
- * Ring Offset Width
1837
- * @see https://tailwindcss.com/docs/ring-offset-width
1838
- */
1839
- "ring-offset-w": [{
1840
- "ring-offset": [isLength, isArbitraryLength]
1841
- }],
1842
- /**
1843
- * Ring Offset Color
1844
- * @see https://tailwindcss.com/docs/ring-offset-color
1845
- */
1846
- "ring-offset-color": [{
1847
- "ring-offset": [colors]
1848
- }],
1849
- // Effects
1850
- /**
1851
- * Box Shadow
1852
- * @see https://tailwindcss.com/docs/box-shadow
1853
- */
1854
- shadow: [{
1855
- shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
1856
- }],
1857
- /**
1858
- * Box Shadow Color
1859
- * @see https://tailwindcss.com/docs/box-shadow-color
1860
- */
1861
- "shadow-color": [{
1862
- shadow: [isAny]
1863
- }],
1864
- /**
1865
- * Opacity
1866
- * @see https://tailwindcss.com/docs/opacity
1867
- */
1868
- opacity: [{
1869
- opacity: [opacity]
1870
- }],
1871
- /**
1872
- * Mix Blend Mode
1873
- * @see https://tailwindcss.com/docs/mix-blend-mode
1874
- */
1875
- "mix-blend": [{
1876
- "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
1877
- }],
1878
- /**
1879
- * Background Blend Mode
1880
- * @see https://tailwindcss.com/docs/background-blend-mode
1881
- */
1882
- "bg-blend": [{
1883
- "bg-blend": getBlendModes()
1884
- }],
1885
- // Filters
1886
- /**
1887
- * Filter
1888
- * @deprecated since Tailwind CSS v3.0.0
1889
- * @see https://tailwindcss.com/docs/filter
1890
- */
1891
- filter: [{
1892
- filter: ["", "none"]
1893
- }],
1894
- /**
1895
- * Blur
1896
- * @see https://tailwindcss.com/docs/blur
1897
- */
1898
- blur: [{
1899
- blur: [blur]
1900
- }],
1901
- /**
1902
- * Brightness
1903
- * @see https://tailwindcss.com/docs/brightness
1904
- */
1905
- brightness: [{
1906
- brightness: [brightness]
1907
- }],
1908
- /**
1909
- * Contrast
1910
- * @see https://tailwindcss.com/docs/contrast
1911
- */
1912
- contrast: [{
1913
- contrast: [contrast]
1914
- }],
1915
- /**
1916
- * Drop Shadow
1917
- * @see https://tailwindcss.com/docs/drop-shadow
1918
- */
1919
- "drop-shadow": [{
1920
- "drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
1921
- }],
1922
- /**
1923
- * Grayscale
1924
- * @see https://tailwindcss.com/docs/grayscale
1925
- */
1926
- grayscale: [{
1927
- grayscale: [grayscale]
1928
- }],
1929
- /**
1930
- * Hue Rotate
1931
- * @see https://tailwindcss.com/docs/hue-rotate
1932
- */
1933
- "hue-rotate": [{
1934
- "hue-rotate": [hueRotate]
1935
- }],
1936
- /**
1937
- * Invert
1938
- * @see https://tailwindcss.com/docs/invert
1939
- */
1940
- invert: [{
1941
- invert: [invert]
1942
- }],
1943
- /**
1944
- * Saturate
1945
- * @see https://tailwindcss.com/docs/saturate
1946
- */
1947
- saturate: [{
1948
- saturate: [saturate]
1949
- }],
1950
- /**
1951
- * Sepia
1952
- * @see https://tailwindcss.com/docs/sepia
1953
- */
1954
- sepia: [{
1955
- sepia: [sepia]
1956
- }],
1957
- /**
1958
- * Backdrop Filter
1959
- * @deprecated since Tailwind CSS v3.0.0
1960
- * @see https://tailwindcss.com/docs/backdrop-filter
1961
- */
1962
- "backdrop-filter": [{
1963
- "backdrop-filter": ["", "none"]
1964
- }],
1965
- /**
1966
- * Backdrop Blur
1967
- * @see https://tailwindcss.com/docs/backdrop-blur
1968
- */
1969
- "backdrop-blur": [{
1970
- "backdrop-blur": [blur]
1971
- }],
1972
- /**
1973
- * Backdrop Brightness
1974
- * @see https://tailwindcss.com/docs/backdrop-brightness
1975
- */
1976
- "backdrop-brightness": [{
1977
- "backdrop-brightness": [brightness]
1978
- }],
1979
- /**
1980
- * Backdrop Contrast
1981
- * @see https://tailwindcss.com/docs/backdrop-contrast
1982
- */
1983
- "backdrop-contrast": [{
1984
- "backdrop-contrast": [contrast]
1985
- }],
1986
- /**
1987
- * Backdrop Grayscale
1988
- * @see https://tailwindcss.com/docs/backdrop-grayscale
1989
- */
1990
- "backdrop-grayscale": [{
1991
- "backdrop-grayscale": [grayscale]
1992
- }],
1993
- /**
1994
- * Backdrop Hue Rotate
1995
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1996
- */
1997
- "backdrop-hue-rotate": [{
1998
- "backdrop-hue-rotate": [hueRotate]
1999
- }],
2000
- /**
2001
- * Backdrop Invert
2002
- * @see https://tailwindcss.com/docs/backdrop-invert
2003
- */
2004
- "backdrop-invert": [{
2005
- "backdrop-invert": [invert]
2006
- }],
2007
- /**
2008
- * Backdrop Opacity
2009
- * @see https://tailwindcss.com/docs/backdrop-opacity
2010
- */
2011
- "backdrop-opacity": [{
2012
- "backdrop-opacity": [opacity]
2013
- }],
2014
- /**
2015
- * Backdrop Saturate
2016
- * @see https://tailwindcss.com/docs/backdrop-saturate
2017
- */
2018
- "backdrop-saturate": [{
2019
- "backdrop-saturate": [saturate]
2020
- }],
2021
- /**
2022
- * Backdrop Sepia
2023
- * @see https://tailwindcss.com/docs/backdrop-sepia
2024
- */
2025
- "backdrop-sepia": [{
2026
- "backdrop-sepia": [sepia]
2027
- }],
2028
- // Tables
2029
- /**
2030
- * Border Collapse
2031
- * @see https://tailwindcss.com/docs/border-collapse
2032
- */
2033
- "border-collapse": [{
2034
- border: ["collapse", "separate"]
2035
- }],
2036
- /**
2037
- * Border Spacing
2038
- * @see https://tailwindcss.com/docs/border-spacing
2039
- */
2040
- "border-spacing": [{
2041
- "border-spacing": [borderSpacing]
2042
- }],
2043
- /**
2044
- * Border Spacing X
2045
- * @see https://tailwindcss.com/docs/border-spacing
2046
- */
2047
- "border-spacing-x": [{
2048
- "border-spacing-x": [borderSpacing]
2049
- }],
2050
- /**
2051
- * Border Spacing Y
2052
- * @see https://tailwindcss.com/docs/border-spacing
2053
- */
2054
- "border-spacing-y": [{
2055
- "border-spacing-y": [borderSpacing]
2056
- }],
2057
- /**
2058
- * Table Layout
2059
- * @see https://tailwindcss.com/docs/table-layout
2060
- */
2061
- "table-layout": [{
2062
- table: ["auto", "fixed"]
2063
- }],
2064
- /**
2065
- * Caption Side
2066
- * @see https://tailwindcss.com/docs/caption-side
2067
- */
2068
- caption: [{
2069
- caption: ["top", "bottom"]
2070
- }],
2071
- // Transitions and Animation
2072
- /**
2073
- * Tranisition Property
2074
- * @see https://tailwindcss.com/docs/transition-property
2075
- */
2076
- transition: [{
2077
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
2078
- }],
2079
- /**
2080
- * Transition Duration
2081
- * @see https://tailwindcss.com/docs/transition-duration
2082
- */
2083
- duration: [{
2084
- duration: getNumberAndArbitrary()
2085
- }],
2086
- /**
2087
- * Transition Timing Function
2088
- * @see https://tailwindcss.com/docs/transition-timing-function
2089
- */
2090
- ease: [{
2091
- ease: ["linear", "in", "out", "in-out", isArbitraryValue]
2092
- }],
2093
- /**
2094
- * Transition Delay
2095
- * @see https://tailwindcss.com/docs/transition-delay
2096
- */
2097
- delay: [{
2098
- delay: getNumberAndArbitrary()
2099
- }],
2100
- /**
2101
- * Animation
2102
- * @see https://tailwindcss.com/docs/animation
2103
- */
2104
- animate: [{
2105
- animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
2106
- }],
2107
- // Transforms
2108
- /**
2109
- * Transform
2110
- * @see https://tailwindcss.com/docs/transform
2111
- */
2112
- transform: [{
2113
- transform: ["", "gpu", "none"]
2114
- }],
2115
- /**
2116
- * Scale
2117
- * @see https://tailwindcss.com/docs/scale
2118
- */
2119
- scale: [{
2120
- scale: [scale]
2121
- }],
2122
- /**
2123
- * Scale X
2124
- * @see https://tailwindcss.com/docs/scale
2125
- */
2126
- "scale-x": [{
2127
- "scale-x": [scale]
2128
- }],
2129
- /**
2130
- * Scale Y
2131
- * @see https://tailwindcss.com/docs/scale
2132
- */
2133
- "scale-y": [{
2134
- "scale-y": [scale]
2135
- }],
2136
- /**
2137
- * Rotate
2138
- * @see https://tailwindcss.com/docs/rotate
2139
- */
2140
- rotate: [{
2141
- rotate: [isInteger, isArbitraryValue]
2142
- }],
2143
- /**
2144
- * Translate X
2145
- * @see https://tailwindcss.com/docs/translate
2146
- */
2147
- "translate-x": [{
2148
- "translate-x": [translate]
2149
- }],
2150
- /**
2151
- * Translate Y
2152
- * @see https://tailwindcss.com/docs/translate
2153
- */
2154
- "translate-y": [{
2155
- "translate-y": [translate]
2156
- }],
2157
- /**
2158
- * Skew X
2159
- * @see https://tailwindcss.com/docs/skew
2160
- */
2161
- "skew-x": [{
2162
- "skew-x": [skew]
2163
- }],
2164
- /**
2165
- * Skew Y
2166
- * @see https://tailwindcss.com/docs/skew
2167
- */
2168
- "skew-y": [{
2169
- "skew-y": [skew]
2170
- }],
2171
- /**
2172
- * Transform Origin
2173
- * @see https://tailwindcss.com/docs/transform-origin
2174
- */
2175
- "transform-origin": [{
2176
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
2177
- }],
2178
- // Interactivity
2179
- /**
2180
- * Accent Color
2181
- * @see https://tailwindcss.com/docs/accent-color
2182
- */
2183
- accent: [{
2184
- accent: ["auto", colors]
2185
- }],
2186
- /**
2187
- * Appearance
2188
- * @see https://tailwindcss.com/docs/appearance
2189
- */
2190
- appearance: [{
2191
- appearance: ["none", "auto"]
2192
- }],
2193
- /**
2194
- * Cursor
2195
- * @see https://tailwindcss.com/docs/cursor
2196
- */
2197
- cursor: [{
2198
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
2199
- }],
2200
- /**
2201
- * Caret Color
2202
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2203
- */
2204
- "caret-color": [{
2205
- caret: [colors]
2206
- }],
2207
- /**
2208
- * Pointer Events
2209
- * @see https://tailwindcss.com/docs/pointer-events
2210
- */
2211
- "pointer-events": [{
2212
- "pointer-events": ["none", "auto"]
2213
- }],
2214
- /**
2215
- * Resize
2216
- * @see https://tailwindcss.com/docs/resize
2217
- */
2218
- resize: [{
2219
- resize: ["none", "y", "x", ""]
2220
- }],
2221
- /**
2222
- * Scroll Behavior
2223
- * @see https://tailwindcss.com/docs/scroll-behavior
2224
- */
2225
- "scroll-behavior": [{
2226
- scroll: ["auto", "smooth"]
2227
- }],
2228
- /**
2229
- * Scroll Margin
2230
- * @see https://tailwindcss.com/docs/scroll-margin
2231
- */
2232
- "scroll-m": [{
2233
- "scroll-m": getSpacingWithArbitrary()
2234
- }],
2235
- /**
2236
- * Scroll Margin X
2237
- * @see https://tailwindcss.com/docs/scroll-margin
2238
- */
2239
- "scroll-mx": [{
2240
- "scroll-mx": getSpacingWithArbitrary()
2241
- }],
2242
- /**
2243
- * Scroll Margin Y
2244
- * @see https://tailwindcss.com/docs/scroll-margin
2245
- */
2246
- "scroll-my": [{
2247
- "scroll-my": getSpacingWithArbitrary()
2248
- }],
2249
- /**
2250
- * Scroll Margin Start
2251
- * @see https://tailwindcss.com/docs/scroll-margin
2252
- */
2253
- "scroll-ms": [{
2254
- "scroll-ms": getSpacingWithArbitrary()
2255
- }],
2256
- /**
2257
- * Scroll Margin End
2258
- * @see https://tailwindcss.com/docs/scroll-margin
2259
- */
2260
- "scroll-me": [{
2261
- "scroll-me": getSpacingWithArbitrary()
2262
- }],
2263
- /**
2264
- * Scroll Margin Top
2265
- * @see https://tailwindcss.com/docs/scroll-margin
2266
- */
2267
- "scroll-mt": [{
2268
- "scroll-mt": getSpacingWithArbitrary()
2269
- }],
2270
- /**
2271
- * Scroll Margin Right
2272
- * @see https://tailwindcss.com/docs/scroll-margin
2273
- */
2274
- "scroll-mr": [{
2275
- "scroll-mr": getSpacingWithArbitrary()
2276
- }],
2277
- /**
2278
- * Scroll Margin Bottom
2279
- * @see https://tailwindcss.com/docs/scroll-margin
2280
- */
2281
- "scroll-mb": [{
2282
- "scroll-mb": getSpacingWithArbitrary()
2283
- }],
2284
- /**
2285
- * Scroll Margin Left
2286
- * @see https://tailwindcss.com/docs/scroll-margin
2287
- */
2288
- "scroll-ml": [{
2289
- "scroll-ml": getSpacingWithArbitrary()
2290
- }],
2291
- /**
2292
- * Scroll Padding
2293
- * @see https://tailwindcss.com/docs/scroll-padding
2294
- */
2295
- "scroll-p": [{
2296
- "scroll-p": getSpacingWithArbitrary()
2297
- }],
2298
- /**
2299
- * Scroll Padding X
2300
- * @see https://tailwindcss.com/docs/scroll-padding
2301
- */
2302
- "scroll-px": [{
2303
- "scroll-px": getSpacingWithArbitrary()
2304
- }],
2305
- /**
2306
- * Scroll Padding Y
2307
- * @see https://tailwindcss.com/docs/scroll-padding
2308
- */
2309
- "scroll-py": [{
2310
- "scroll-py": getSpacingWithArbitrary()
2311
- }],
2312
- /**
2313
- * Scroll Padding Start
2314
- * @see https://tailwindcss.com/docs/scroll-padding
2315
- */
2316
- "scroll-ps": [{
2317
- "scroll-ps": getSpacingWithArbitrary()
2318
- }],
2319
- /**
2320
- * Scroll Padding End
2321
- * @see https://tailwindcss.com/docs/scroll-padding
2322
- */
2323
- "scroll-pe": [{
2324
- "scroll-pe": getSpacingWithArbitrary()
2325
- }],
2326
- /**
2327
- * Scroll Padding Top
2328
- * @see https://tailwindcss.com/docs/scroll-padding
2329
- */
2330
- "scroll-pt": [{
2331
- "scroll-pt": getSpacingWithArbitrary()
2332
- }],
2333
- /**
2334
- * Scroll Padding Right
2335
- * @see https://tailwindcss.com/docs/scroll-padding
2336
- */
2337
- "scroll-pr": [{
2338
- "scroll-pr": getSpacingWithArbitrary()
2339
- }],
2340
- /**
2341
- * Scroll Padding Bottom
2342
- * @see https://tailwindcss.com/docs/scroll-padding
2343
- */
2344
- "scroll-pb": [{
2345
- "scroll-pb": getSpacingWithArbitrary()
2346
- }],
2347
- /**
2348
- * Scroll Padding Left
2349
- * @see https://tailwindcss.com/docs/scroll-padding
2350
- */
2351
- "scroll-pl": [{
2352
- "scroll-pl": getSpacingWithArbitrary()
2353
- }],
2354
- /**
2355
- * Scroll Snap Align
2356
- * @see https://tailwindcss.com/docs/scroll-snap-align
2357
- */
2358
- "snap-align": [{
2359
- snap: ["start", "end", "center", "align-none"]
2360
- }],
2361
- /**
2362
- * Scroll Snap Stop
2363
- * @see https://tailwindcss.com/docs/scroll-snap-stop
2364
- */
2365
- "snap-stop": [{
2366
- snap: ["normal", "always"]
2367
- }],
2368
- /**
2369
- * Scroll Snap Type
2370
- * @see https://tailwindcss.com/docs/scroll-snap-type
2371
- */
2372
- "snap-type": [{
2373
- snap: ["none", "x", "y", "both"]
2374
- }],
2375
- /**
2376
- * Scroll Snap Type Strictness
2377
- * @see https://tailwindcss.com/docs/scroll-snap-type
2378
- */
2379
- "snap-strictness": [{
2380
- snap: ["mandatory", "proximity"]
2381
- }],
2382
- /**
2383
- * Touch Action
2384
- * @see https://tailwindcss.com/docs/touch-action
2385
- */
2386
- touch: [{
2387
- touch: ["auto", "none", "manipulation"]
2388
- }],
2389
- /**
2390
- * Touch Action X
2391
- * @see https://tailwindcss.com/docs/touch-action
2392
- */
2393
- "touch-x": [{
2394
- "touch-pan": ["x", "left", "right"]
2395
- }],
2396
- /**
2397
- * Touch Action Y
2398
- * @see https://tailwindcss.com/docs/touch-action
2399
- */
2400
- "touch-y": [{
2401
- "touch-pan": ["y", "up", "down"]
2402
- }],
2403
- /**
2404
- * Touch Action Pinch Zoom
2405
- * @see https://tailwindcss.com/docs/touch-action
2406
- */
2407
- "touch-pz": ["touch-pinch-zoom"],
2408
- /**
2409
- * User Select
2410
- * @see https://tailwindcss.com/docs/user-select
2411
- */
2412
- select: [{
2413
- select: ["none", "text", "all", "auto"]
2414
- }],
2415
- /**
2416
- * Will Change
2417
- * @see https://tailwindcss.com/docs/will-change
2418
- */
2419
- "will-change": [{
2420
- "will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
2421
- }],
2422
- // SVG
2423
- /**
2424
- * Fill
2425
- * @see https://tailwindcss.com/docs/fill
2426
- */
2427
- fill: [{
2428
- fill: [colors, "none"]
2429
- }],
2430
- /**
2431
- * Stroke Width
2432
- * @see https://tailwindcss.com/docs/stroke-width
2433
- */
2434
- "stroke-w": [{
2435
- stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2436
- }],
2437
- /**
2438
- * Stroke
2439
- * @see https://tailwindcss.com/docs/stroke
2440
- */
2441
- stroke: [{
2442
- stroke: [colors, "none"]
2443
- }],
2444
- // Accessibility
2445
- /**
2446
- * Screen Readers
2447
- * @see https://tailwindcss.com/docs/screen-readers
2448
- */
2449
- sr: ["sr-only", "not-sr-only"],
2450
- /**
2451
- * Forced Color Adjust
2452
- * @see https://tailwindcss.com/docs/forced-color-adjust
2453
- */
2454
- "forced-color-adjust": [{
2455
- "forced-color-adjust": ["auto", "none"]
2456
- }]
2457
- },
2458
- conflictingClassGroups: {
2459
- overflow: ["overflow-x", "overflow-y"],
2460
- overscroll: ["overscroll-x", "overscroll-y"],
2461
- inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
2462
- "inset-x": ["right", "left"],
2463
- "inset-y": ["top", "bottom"],
2464
- flex: ["basis", "grow", "shrink"],
2465
- gap: ["gap-x", "gap-y"],
2466
- p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
2467
- px: ["pr", "pl"],
2468
- py: ["pt", "pb"],
2469
- m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2470
- mx: ["mr", "ml"],
2471
- my: ["mt", "mb"],
2472
- size: ["w", "h"],
2473
- "font-size": ["leading"],
2474
- "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2475
- "fvn-ordinal": ["fvn-normal"],
2476
- "fvn-slashed-zero": ["fvn-normal"],
2477
- "fvn-figure": ["fvn-normal"],
2478
- "fvn-spacing": ["fvn-normal"],
2479
- "fvn-fraction": ["fvn-normal"],
2480
- "line-clamp": ["display", "overflow"],
2481
- rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
2482
- "rounded-s": ["rounded-ss", "rounded-es"],
2483
- "rounded-e": ["rounded-se", "rounded-ee"],
2484
- "rounded-t": ["rounded-tl", "rounded-tr"],
2485
- "rounded-r": ["rounded-tr", "rounded-br"],
2486
- "rounded-b": ["rounded-br", "rounded-bl"],
2487
- "rounded-l": ["rounded-tl", "rounded-bl"],
2488
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
2489
- "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2490
- "border-w-x": ["border-w-r", "border-w-l"],
2491
- "border-w-y": ["border-w-t", "border-w-b"],
2492
- "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2493
- "border-color-x": ["border-color-r", "border-color-l"],
2494
- "border-color-y": ["border-color-t", "border-color-b"],
2495
- "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
2496
- "scroll-mx": ["scroll-mr", "scroll-ml"],
2497
- "scroll-my": ["scroll-mt", "scroll-mb"],
2498
- "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2499
- "scroll-px": ["scroll-pr", "scroll-pl"],
2500
- "scroll-py": ["scroll-pt", "scroll-pb"],
2501
- touch: ["touch-x", "touch-y", "touch-pz"],
2502
- "touch-x": ["touch"],
2503
- "touch-y": ["touch"],
2504
- "touch-pz": ["touch"]
2505
- },
2506
- conflictingClassGroupModifiers: {
2507
- "font-size": ["leading"]
2508
- }
2509
- };
2510
- };
2511
- var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2512
-
2513
- // src/utils/cn.ts
2514
- function cn(...inputs) {
2515
- return twMerge((0, import_clsx.clsx)(inputs));
2516
- }
2517
-
2518
- // src/components/ui/button.tsx
2519
- var import_react_slot = require("@radix-ui/react-slot");
2520
- var import_class_variance_authority = require("class-variance-authority");
2521
- var React = __toESM(require("react"));
2522
- var import_jsx_runtime = require("react/jsx-runtime");
2523
- var buttonVariants = (0, import_class_variance_authority.cva)(
2524
- "inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
2525
- {
2526
- defaultVariants: {
2527
- size: "default",
2528
- variant: "default"
2529
- },
2530
- variants: {
2531
- size: {
2532
- clear: "",
2533
- default: "h-10 px-4 py-2",
2534
- icon: "h-10 w-10",
2535
- lg: "h-11 rounded px-8",
2536
- sm: "h-9 rounded px-3"
2537
- },
2538
- variant: {
2539
- default: "bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",
2540
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
2541
- ghost: "hover:bg-card hover:text-accent",
2542
- link: "text-primary items-start justify-start underline-offset-4 hover:underline",
2543
- outline: "border border-border bg-background hover:bg-card hover:text-accent",
2544
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent"
2545
- }
2546
- }
2547
- }
2548
- );
2549
- var Button = React.forwardRef(
2550
- ({ asChild = false, className, size, variant, ...props }, ref) => {
2551
- const Comp = asChild ? import_react_slot.Slot : "button";
2552
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { className: cn(buttonVariants({ className, size, variant })), ref, ...props });
2553
- }
2554
- );
2555
- Button.displayName = "Button";
2556
-
2557
- // src/components/DigitalColleagues/document-edit.tsx
2558
- var import_react2 = require("motion/react");
2559
- var import_lucide_react3 = require("lucide-react");
2560
- var import_react3 = require("react");
2561
-
2562
- // src/components/ui/textarea.tsx
2563
- var React2 = __toESM(require("react"));
2564
- var import_jsx_runtime2 = require("react/jsx-runtime");
2565
- var Textarea = React2.forwardRef(
2566
- ({ className, ...props }, ref) => {
2567
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2568
- "textarea",
2569
- {
2570
- className: cn(
2571
- "flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
2572
- className
2573
- ),
2574
- ref,
2575
- ...props
2576
- }
2577
- );
2578
- }
2579
- );
2580
- Textarea.displayName = "Textarea";
2581
-
2582
- // src/components/ui/input.tsx
2583
- var React3 = __toESM(require("react"));
2584
- var import_jsx_runtime3 = require("react/jsx-runtime");
2585
- var Input = React3.forwardRef(
2586
- ({ className, type, ...props }, ref) => {
2587
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2588
- "input",
2589
- {
2590
- type,
2591
- className: cn(
2592
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
2593
- className
2594
- ),
2595
- ref,
2596
- ...props
2597
- }
2598
- );
2599
- }
2600
- );
2601
- Input.displayName = "Input";
2602
-
2603
- // src/components/ui/select.tsx
2604
- var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
2605
- var import_lucide_react = require("lucide-react");
2606
- var React4 = __toESM(require("react"));
2607
- var import_jsx_runtime4 = require("react/jsx-runtime");
2608
- var Select = SelectPrimitive.Root;
2609
- var SelectValue = SelectPrimitive.Value;
2610
- var SelectTrigger = React4.forwardRef(({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2611
- SelectPrimitive.Trigger,
2612
- {
2613
- className: cn(
2614
- "flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
2615
- className
2616
- ),
2617
- ref,
2618
- ...props,
2619
- children: [
2620
- children,
2621
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
2622
- ]
2623
- }
2624
- ));
2625
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2626
- var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2627
- SelectPrimitive.ScrollUpButton,
2628
- {
2629
- className: cn("flex cursor-default items-center justify-center py-1", className),
2630
- ref,
2631
- ...props,
2632
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronUp, { className: "h-4 w-4" })
2633
- }
2634
- ));
2635
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2636
- var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2637
- SelectPrimitive.ScrollDownButton,
2638
- {
2639
- className: cn("flex cursor-default items-center justify-center py-1", className),
2640
- ref,
2641
- ...props,
2642
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4" })
2643
- }
2644
- ));
2645
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2646
- var SelectContent = React4.forwardRef(({ children, className, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2647
- SelectPrimitive.Content,
2648
- {
2649
- className: cn(
2650
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
2651
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
2652
- className
2653
- ),
2654
- position,
2655
- ref,
2656
- ...props,
2657
- children: [
2658
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollUpButton, {}),
2659
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2660
- SelectPrimitive.Viewport,
2661
- {
2662
- className: cn(
2663
- "p-1",
2664
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
2665
- ),
2666
- children
2667
- }
2668
- ),
2669
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollDownButton, {})
2670
- ]
2671
- }
2672
- ) }));
2673
- SelectContent.displayName = SelectPrimitive.Content.displayName;
2674
- var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2675
- SelectPrimitive.Label,
2676
- {
2677
- className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
2678
- ref,
2679
- ...props
2680
- }
2681
- ));
2682
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
2683
- var SelectItem = React4.forwardRef(({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2684
- SelectPrimitive.Item,
2685
- {
2686
- className: cn(
2687
- "relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2688
- className
2689
- ),
2690
- ref,
2691
- ...props,
2692
- children: [
2693
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.Check, { className: "h-4 w-4" }) }) }),
2694
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ItemText, { children })
2695
- ]
2696
- }
2697
- ));
2698
- SelectItem.displayName = SelectPrimitive.Item.displayName;
2699
- var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2700
- SelectPrimitive.Separator,
2701
- {
2702
- className: cn("-mx-1 my-1 h-px bg-muted", className),
2703
- ref,
2704
- ...props
2705
- }
2706
- ));
2707
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2708
-
2709
- // src/components/AdvancedComponents/EditableField.tsx
2710
- var import_react = require("react");
2711
-
2712
- // src/components/ui/label.tsx
2713
- var React5 = __toESM(require("react"));
2714
- var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
2715
- var import_class_variance_authority2 = require("class-variance-authority");
2716
- var import_jsx_runtime5 = require("react/jsx-runtime");
2717
- var labelVariants = (0, import_class_variance_authority2.cva)(
2718
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2719
- );
2720
- var Label2 = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
2721
- Label2.displayName = LabelPrimitive.Root.displayName;
2722
-
2723
- // src/components/AdvancedComponents/EditableField.tsx
2724
- var import_lucide_react2 = require("lucide-react");
2725
- var import_jsx_runtime6 = require("react/jsx-runtime");
2726
- var EditableField = ({
2727
- fieldName,
2728
- value,
2729
- label,
2730
- multiline = false,
2731
- onSave,
2732
- className = "",
2733
- disabled = false
2734
- }) => {
2735
- const [isEditing, setIsEditing] = (0, import_react.useState)(false);
2736
- const [tempValue, setTempValue] = (0, import_react.useState)("");
2737
- const handleFieldClick = () => {
2738
- if (!disabled) {
2739
- setIsEditing(true);
2740
- setTempValue(value);
2741
- }
2742
- };
2743
- const handleSave = async () => {
2744
- if (tempValue !== value) {
2745
- await onSave(fieldName, tempValue);
2746
- }
2747
- setIsEditing(false);
2748
- };
2749
- const handleKeyPress = (e) => {
2750
- if (e.key === "Enter" && !multiline) {
2751
- handleSave();
2752
- } else if (e.key === "Enter" && e.ctrlKey && multiline) {
2753
- handleSave();
2754
- } else if (e.key === "Escape") {
2755
- setIsEditing(false);
2756
- setTempValue("");
2757
- }
2758
- };
2759
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: `space-y-2 ${className}`, children: [
2760
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Label2, { children: label }),
2761
- isEditing ? multiline ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2762
- Textarea,
2763
- {
2764
- value: tempValue,
2765
- onChange: (e) => setTempValue(e.target.value),
2766
- onBlur: handleSave,
2767
- onKeyDown: handleKeyPress,
2768
- autoFocus: true,
2769
- rows: 4,
2770
- className: "resize-none"
2771
- }
2772
- ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2773
- Input,
2774
- {
2775
- value: tempValue,
2776
- onChange: (e) => setTempValue(e.target.value),
2777
- onBlur: handleSave,
2778
- onKeyPress: handleKeyPress,
2779
- autoFocus: true,
2780
- className: "text-lg font-medium"
2781
- }
2782
- ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2783
- "div",
2784
- {
2785
- onClick: handleFieldClick,
2786
- className: `${disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${multiline ? "min-h-[100px] max-h-[300px]" : "min-h-[40px]"} flex items-start gap-2 overflow-hidden`,
2787
- children: [
2788
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: `${multiline ? "text-sm text-muted-foreground max-h-[280px] overflow-y-auto break-words" : "text-lg font-medium text-foreground"} flex-1 whitespace-pre-wrap break-words`, children: value || "Click to edit..." }),
2789
- !disabled && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Edit, { className: "h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0" })
2790
- ]
2791
- }
2792
- )
2793
- ] });
2794
- };
2795
-
2796
- // src/components/DigitalColleagues/document-edit.tsx
2797
- var import_jsx_runtime7 = require("react/jsx-runtime");
2798
- function DocumentEdit({
2799
- document,
2800
- onSave,
2801
- onCancel,
2802
- availableDocuments = [],
2803
- knowledgeContexts = []
2804
- }) {
2805
- const [editedDocument, setEditedDocument] = (0, import_react3.useState)({
2806
- ...document,
2807
- updatedAt: /* @__PURE__ */ new Date()
2808
- });
2809
- const [isMetadataExpanded, setIsMetadataExpanded] = (0, import_react3.useState)(false);
2810
- const [metadataFields, setMetadataFields] = (0, import_react3.useState)(() => {
2811
- const fields = [];
2812
- let idCounter = 0;
2813
- const contextKeys = /* @__PURE__ */ new Set();
2814
- knowledgeContexts.forEach((context) => {
2815
- context.menuConfig.groupBy.forEach((key) => contextKeys.add(key));
2816
- });
2817
- contextKeys.forEach((key) => {
2818
- fields.push({
2819
- id: `context_field_${idCounter++}`,
2820
- key,
2821
- value: document.metadata?.[key] ? String(document.metadata[key]) : "",
2822
- isContextKey: true
2823
- });
2824
- });
2825
- if (document.metadata) {
2826
- Object.entries(document.metadata).forEach(([key, value]) => {
2827
- if (!contextKeys.has(key)) {
2828
- fields.push({
2829
- id: `existing_field_${idCounter++}`,
2830
- key,
2831
- value: String(value),
2832
- isContextKey: false
2833
- });
2834
- }
2835
- });
2836
- }
2837
- return fields;
2838
- });
2839
- const formatIcon = (format) => {
2840
- switch (format) {
2841
- case "markdown":
2842
- case "mdx":
2843
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.FileText, { className: "h-6 w-6 text-primary" });
2844
- case "richtext":
2845
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.File, { className: "h-6 w-6 text-success" });
2846
- case "text":
2847
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Type, { className: "h-6 w-6 text-muted-foreground" });
2848
- default:
2849
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.File, { className: "h-6 w-6 text-muted-foreground" });
2850
- }
2851
- };
2852
- const formatBadgeColor = (format) => {
2853
- switch (format) {
2854
- case "markdown":
2855
- return "bg-primary/10 text-primary border-primary/20";
2856
- case "mdx":
2857
- return "bg-secondary/10 text-secondary border-secondary/20";
2858
- case "richtext":
2859
- return "bg-success/10 text-success border-success/20";
2860
- case "text":
2861
- return "bg-muted/50 text-muted-foreground border-muted-foreground/20";
2862
- default:
2863
- return "bg-muted text-muted-foreground border-border";
2864
- }
2865
- };
2866
- const getSuggestedMetadataKeys = () => {
2867
- const keysFromDocuments = /* @__PURE__ */ new Set();
2868
- availableDocuments.forEach((doc) => {
2869
- if (doc.metadata) {
2870
- Object.keys(doc.metadata).forEach((key) => keysFromDocuments.add(key));
2871
- }
2872
- });
2873
- return {
2874
- documentKeys: Array.from(keysFromDocuments).sort()
2875
- };
2876
- };
2877
- const getSuggestedValues = (key) => {
2878
- const values = /* @__PURE__ */ new Set();
2879
- availableDocuments.forEach((doc) => {
2880
- if (doc.metadata?.[key]) {
2881
- values.add(String(doc.metadata[key]));
2882
- }
2883
- });
2884
- return Array.from(values).sort();
2885
- };
2886
- const suggestedKeys = getSuggestedMetadataKeys();
2887
- const handleSave = () => {
2888
- onSave(editedDocument);
2889
- };
2890
- (0, import_react3.useEffect)(() => {
2891
- const metadata = metadataFields.filter((field) => field.key.trim() !== "" && field.value.trim() !== "").reduce(
2892
- (acc, field) => ({
2893
- ...acc,
2894
- [field.key]: field.value
2895
- }),
2896
- {}
2897
- );
2898
- setEditedDocument((prev) => ({
2899
- ...prev,
2900
- metadata: Object.keys(metadata).length > 0 ? metadata : void 0
2901
- }));
2902
- }, [metadataFields]);
2903
- const handleMetadataKeyChange = (fieldId, newKey) => {
2904
- setMetadataFields(
2905
- (prev) => prev.map((field) => field.id === fieldId ? { ...field, key: newKey } : field)
2906
- );
2907
- };
2908
- const handleMetadataValueChange = (fieldId, newValue) => {
2909
- setMetadataFields(
2910
- (prev) => prev.map((field) => field.id === fieldId ? { ...field, value: newValue } : field)
2911
- );
2912
- };
2913
- const handleMetadataValueSelect = (fieldId, value) => {
2914
- if (value === "__custom__") {
2915
- handleMetadataValueChange(fieldId, "");
2916
- } else {
2917
- handleMetadataValueChange(fieldId, value);
2918
- }
2919
- };
2920
- const handleAddMetadataField = () => {
2921
- const newField = {
2922
- id: `field_${Date.now()}`,
2923
- key: "",
2924
- value: "",
2925
- isContextKey: false
2926
- };
2927
- setMetadataFields((prev) => [...prev, newField]);
2928
- };
2929
- const handleRemoveMetadataField = (fieldId) => {
2930
- setMetadataFields((prev) => prev.filter((field) => field.id !== fieldId));
2931
- };
2932
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2933
- import_react2.motion.div,
2934
- {
2935
- initial: { opacity: 0, y: 20 },
2936
- animate: { opacity: 1, y: 0 },
2937
- transition: { duration: 0.3 },
2938
- className: "h-full flex flex-col",
2939
- children: [
2940
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "border-b border-border bg-card p-8 pb-6", children: [
2941
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start justify-between gap-4 mb-4", children: [
2942
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start gap-4 flex-1 min-w-0", children: [
2943
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-shrink-0 p-3 rounded-xl bg-muted border border-border", children: formatIcon(editedDocument.format) }),
2944
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 min-w-0", children: [
2945
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start gap-4 mb-2 leading-tight", children: [
2946
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2947
- EditableField,
2948
- {
2949
- fieldName: "title",
2950
- value: editedDocument.title,
2951
- label: "",
2952
- onSave: (fieldName, value) => setEditedDocument((prev) => ({ ...prev, title: value })),
2953
- className: "[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"
2954
- }
2955
- ) }),
2956
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2957
- "span",
2958
- {
2959
- className: `inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${formatBadgeColor(
2960
- editedDocument.format
2961
- )} flex-shrink-0 mt-1`,
2962
- children: editedDocument.format.toUpperCase()
2963
- }
2964
- )
2965
- ] }),
2966
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2967
- EditableField,
2968
- {
2969
- fieldName: "description",
2970
- value: editedDocument.description || "Click to add description...",
2971
- label: "",
2972
- multiline: true,
2973
- onSave: (fieldName, value) => setEditedDocument((prev) => ({ ...prev, description: value })),
2974
- className: "[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"
2975
- }
2976
- ) })
2977
- ] })
2978
- ] }),
2979
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
2980
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2981
- Button,
2982
- {
2983
- variant: "ghost",
2984
- size: "sm",
2985
- onClick: () => setIsMetadataExpanded(!isMetadataExpanded),
2986
- className: "gap-2",
2987
- children: [
2988
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Info, { className: "h-4 w-4" }),
2989
- "Metadata",
2990
- metadataFields.filter(
2991
- (field) => field.key.trim() !== "" && field.value.trim() !== ""
2992
- ).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full", children: metadataFields.filter(
2993
- (field) => field.key.trim() !== "" && field.value.trim() !== ""
2994
- ).length }),
2995
- isMetadataExpanded ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.ChevronRight, { className: "h-4 w-4" })
2996
- ]
2997
- }
2998
- ),
2999
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Button, { variant: "outline", size: "sm", onClick: onCancel, className: "gap-2", children: [
3000
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.X, { className: "h-4 w-4" }),
3001
- "Cancel"
3002
- ] }),
3003
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Button, { size: "sm", onClick: handleSave, className: "gap-2", children: [
3004
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Save, { className: "h-4 w-4" }),
3005
- "Save Changes"
3006
- ] })
3007
- ] })
3008
- ] }),
3009
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3010
- import_react2.motion.div,
3011
- {
3012
- initial: false,
3013
- animate: {
3014
- height: isMetadataExpanded ? "auto" : 0,
3015
- opacity: isMetadataExpanded ? 1 : 0
3016
- },
3017
- transition: { duration: 0.2, ease: "easeInOut" },
3018
- className: "overflow-hidden",
3019
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "pt-4 border-t border-border mt-4", children: [
3020
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center justify-between mb-3", children: [
3021
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("h3", { className: "text-sm font-semibold text-foreground flex items-center gap-2", children: [
3022
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Info, { className: "h-4 w-4" }),
3023
- "Document Metadata"
3024
- ] }),
3025
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
3026
- Button,
3027
- {
3028
- type: "button",
3029
- variant: "outline",
3030
- size: "sm",
3031
- onClick: handleAddMetadataField,
3032
- className: "gap-1 h-8",
3033
- children: [
3034
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Plus, { className: "h-3 w-3" }),
3035
- "Add Field"
3036
- ]
3037
- }
3038
- )
3039
- ] }),
3040
- suggestedKeys.documentKeys.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { className: "text-xs text-muted-foreground mb-3", children: [
3041
- "Additional from documents: ",
3042
- suggestedKeys.documentKeys.slice(0, 4).join(", "),
3043
- suggestedKeys.documentKeys.length > 4 && ` +${suggestedKeys.documentKeys.length - 4} more`
3044
- ] }),
3045
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "bg-muted rounded-lg p-4 border border-border", children: metadataFields.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "space-y-2", children: metadataFields.map((field) => {
3046
- const suggestedValues = getSuggestedValues(field.key);
3047
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-2 items-center", children: [
3048
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3049
- Input,
3050
- {
3051
- value: field.key,
3052
- onChange: (e) => handleMetadataKeyChange(field.id, e.target.value),
3053
- placeholder: "Key",
3054
- className: `w-32 h-8 text-sm ${field.isContextKey ? "bg-primary/5 border-primary/30" : ""}`,
3055
- list: `metadata-keys-${field.id}`,
3056
- disabled: field.isContextKey
3057
- }
3058
- ),
3059
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("datalist", { id: `metadata-keys-${field.id}`, children: suggestedKeys.documentKeys.map((suggestedKey) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: suggestedKey }, suggestedKey)) }),
3060
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-muted-foreground text-sm", children: "=" }),
3061
- suggestedValues.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
3062
- Select,
3063
- {
3064
- value: field.value || "",
3065
- onValueChange: (newValue) => handleMetadataValueSelect(field.id, newValue),
3066
- children: [
3067
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectTrigger, { className: "flex-1 h-8 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectValue, { placeholder: "Value" }) }),
3068
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(SelectContent, { children: [
3069
- suggestedValues.map((suggestedValue) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectItem, { value: suggestedValue, children: suggestedValue }, suggestedValue)),
3070
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectItem, { value: "__custom__", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-muted-foreground text-xs", children: "Custom..." }) })
3071
- ] })
3072
- ]
3073
- }
3074
- ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3075
- Input,
3076
- {
3077
- value: field.value || "",
3078
- onChange: (e) => handleMetadataValueChange(field.id, e.target.value),
3079
- placeholder: "Value",
3080
- className: "flex-1 h-8 text-sm"
3081
- }
3082
- ),
3083
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3084
- Button,
3085
- {
3086
- type: "button",
3087
- variant: "ghost",
3088
- size: "sm",
3089
- onClick: () => handleRemoveMetadataField(field.id),
3090
- className: "h-8 w-8 p-0 text-muted-foreground hover:text-destructive",
3091
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.X, { className: "h-3 w-3" })
3092
- }
3093
- )
3094
- ] }, field.id);
3095
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "text-center py-4", children: [
3096
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-sm text-muted-foreground mb-2", children: "No metadata fields" }),
3097
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-xs text-muted-foreground", children: 'Click "Add Field" to create metadata' })
3098
- ] }) })
3099
- ] })
3100
- }
3101
- )
3102
- ] }),
3103
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "p-8", children: [
3104
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { className: "block text-sm font-medium text-foreground mb-4", children: "Content" }),
3105
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3106
- Textarea,
3107
- {
3108
- value: editedDocument.content || "",
3109
- onChange: (e) => setEditedDocument((prev) => ({ ...prev, content: e.target.value })),
3110
- placeholder: "Document content...",
3111
- className: "min-h-[400px] font-mono text-sm",
3112
- style: { resize: "vertical" }
3113
- }
3114
- )
3115
- ] }) })
3116
- ]
3117
- }
3118
- );
3119
- }
3120
-
3121
- // src/components/DigitalColleagues/document-preview.tsx
3122
- var import_jsx_runtime8 = require("react/jsx-runtime");
3123
- var defaultMarkdownRenderer = (content) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3124
- "div",
3125
- {
3126
- className: "prose prose-slate dark:prose-invert max-w-none",
3127
- dangerouslySetInnerHTML: {
3128
- __html: content.replace(/\n/g, "<br>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/`(.*?)`/g, '<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm, '<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm, '<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm, '<h3 class="text-lg font-medium mb-2">$1</h3>')
3129
- }
3130
- }
3131
- );
3132
- var defaultTextRenderer = (content) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "whitespace-pre-wrap font-mono text-sm leading-relaxed", children: content });
3133
- var defaultRichTextRenderer = (content) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: [
3134
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { className: "text-amber-800 dark:text-amber-200 text-sm", children: [
3135
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: "RichText Renderer:" }),
3136
- " This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."
3137
- ] }) }),
3138
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("pre", { className: "text-sm", children: content })
3139
- ] });
3140
- var defaultMDXRenderer = (content) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: [
3141
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { className: "text-blue-800 dark:text-blue-200 text-sm", children: [
3142
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: "MDX Renderer:" }),
3143
- " This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."
3144
- ] }) }),
3145
- defaultMarkdownRenderer(content)
3146
- ] });
3147
- function DocumentPreview({
3148
- document,
3149
- onDocumentUpdate,
3150
- editable = true,
3151
- renderers,
3152
- availableDocuments = [],
3153
- knowledgeContexts = []
3154
- }) {
3155
- const [isEditing, setIsEditing] = (0, import_react5.useState)(false);
3156
- const [isMetadataExpanded, setIsMetadataExpanded] = (0, import_react5.useState)(false);
3157
- const formatIcon = (format) => {
3158
- switch (format) {
3159
- case "markdown":
3160
- case "mdx":
3161
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.FileText, { className: "h-6 w-6 text-primary" });
3162
- case "richtext":
3163
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.File, { className: "h-6 w-6 text-success" });
3164
- case "text":
3165
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.Type, { className: "h-6 w-6 text-muted-foreground" });
3166
- default:
3167
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.File, { className: "h-6 w-6 text-muted-foreground" });
3168
- }
3169
- };
3170
- const formatBadgeColor = (format) => {
3171
- switch (format) {
3172
- case "markdown":
3173
- return "bg-primary/10 text-primary border-primary/20";
3174
- case "mdx":
3175
- return "bg-secondary/10 text-secondary border-secondary/20";
3176
- case "richtext":
3177
- return "bg-success/10 text-success border-success/20";
3178
- case "text":
3179
- return "bg-muted/50 text-muted-foreground border-muted-foreground/20";
3180
- default:
3181
- return "bg-muted text-muted-foreground border-border";
3182
- }
3183
- };
3184
- const renderContent = (content, format) => {
3185
- const defaultRenderers = {
3186
- markdown: defaultMarkdownRenderer,
3187
- mdx: defaultMDXRenderer,
3188
- richtext: defaultRichTextRenderer,
3189
- text: defaultTextRenderer
3190
- };
3191
- const renderer = renderers?.[format] || defaultRenderers[format];
3192
- if (renderer) {
3193
- return renderer(content);
3194
- }
3195
- return defaultTextRenderer(content);
3196
- };
3197
- const handleSave = (updatedDocument) => {
3198
- setIsEditing(false);
3199
- onDocumentUpdate?.(updatedDocument);
3200
- };
3201
- const handleCancel = () => {
3202
- setIsEditing(false);
3203
- };
3204
- if (isEditing) {
3205
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3206
- DocumentEdit,
3207
- {
3208
- document,
3209
- onSave: handleSave,
3210
- onCancel: handleCancel,
3211
- availableDocuments,
3212
- knowledgeContexts
3213
- }
3214
- );
3215
- }
3216
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3217
- import_react4.motion.div,
3218
- {
3219
- initial: { opacity: 0, y: 20 },
3220
- animate: { opacity: 1, y: 0 },
3221
- transition: { duration: 0.3 },
3222
- className: "h-full flex flex-col",
3223
- children: [
3224
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "border-b border-border bg-card p-8 pb-6", children: [
3225
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start justify-between gap-4 mb-4", children: [
3226
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start gap-4 flex-1 min-w-0", children: [
3227
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex-shrink-0 p-3 rounded-xl bg-muted border border-border", children: formatIcon(document.format) }),
3228
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-1 min-w-0", children: [
3229
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("h1", { className: "text-2xl font-bold text-foreground mb-2 leading-tight", children: [
3230
- document.title,
3231
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: `inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${formatBadgeColor(document.format)}`, children: document.format.toUpperCase() })
3232
- ] }),
3233
- document.description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-lg leading-relaxed", children: document.description })
3234
- ] })
3235
- ] }),
3236
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
3237
- document.metadata && Object.keys(document.metadata).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3238
- Button,
3239
- {
3240
- variant: "ghost",
3241
- size: "sm",
3242
- onClick: () => setIsMetadataExpanded(!isMetadataExpanded),
3243
- className: "gap-2",
3244
- children: [
3245
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.Info, { className: "h-4 w-4" }),
3246
- "Metadata",
3247
- isMetadataExpanded ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.ChevronRight, { className: "h-4 w-4" })
3248
- ]
3249
- }
3250
- ),
3251
- editable && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3252
- Button,
3253
- {
3254
- variant: "outline",
3255
- size: "sm",
3256
- onClick: () => setIsEditing(true),
3257
- className: "gap-2",
3258
- children: [
3259
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.Edit3, { className: "h-4 w-4" }),
3260
- "Edit"
3261
- ]
3262
- }
3263
- )
3264
- ] })
3265
- ] }),
3266
- document.metadata && Object.keys(document.metadata).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3267
- import_react4.motion.div,
3268
- {
3269
- initial: false,
3270
- animate: {
3271
- height: isMetadataExpanded ? "auto" : 0,
3272
- opacity: isMetadataExpanded ? 1 : 0
3273
- },
3274
- transition: { duration: 0.2, ease: "easeInOut" },
3275
- className: "overflow-hidden",
3276
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "pt-4 border-t border-border mt-4", children: [
3277
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("h3", { className: "text-sm font-semibold text-foreground mb-3 flex items-center gap-2", children: [
3278
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.Info, { className: "h-4 w-4" }),
3279
- "Document Metadata"
3280
- ] }),
3281
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "bg-muted rounded-lg p-4 border border-border", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm", children: Object.entries(document.metadata).map(([key, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1", children: [
3282
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-muted-foreground font-medium text-xs uppercase tracking-wide", children: key.replace(/([A-Z])/g, " $1").trim() }),
3283
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-foreground font-medium", children: String(value) })
3284
- ] }, key)) }) })
3285
- ] })
3286
- }
3287
- )
3288
- ] }),
3289
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "p-8", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "space-y-4", children: document.content ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "bg-card border border-border rounded-xl p-6 overflow-hidden", children: renderContent(document.content, document.format) }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border", children: [
3290
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react4.FileText, { className: "h-8 w-8 text-muted-foreground" }) }),
3291
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h4", { className: "text-foreground font-medium mb-1", children: "No content available" }),
3292
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-sm", children: "This document doesn't have preview content" })
3293
- ] }) }) }) })
3294
- ]
3295
- }
3296
- );
3297
- }
3298
-
3299
- // src/components/DigitalColleagues/document-preview-examples.tsx
3300
- var import_jsx_runtime9 = require("react/jsx-runtime");
3301
- var customRenderers = {
3302
- markdown: (content) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3303
- "div",
3304
- {
3305
- dangerouslySetInnerHTML: {
3306
- __html: content.replace(/\n/g, "<br>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(/`(.*?)`/g, '<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm, '<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm, '<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm, '<h3 class="text-lg font-medium mb-2">$1</h3>')
3307
- }
3308
- }
3309
- ) }),
3310
- text: (content) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("pre", { className: "whitespace-pre-wrap font-mono text-sm leading-relaxed bg-slate-50 dark:bg-slate-900 p-4 rounded-lg", children: content }),
3311
- richtext: (content) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: [
3312
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { className: "text-amber-800 dark:text-amber-200 text-sm", children: [
3313
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("strong", { children: "Custom RichText Renderer:" }),
3314
- " Implement PayloadCMS integration here"
3315
- ] }) }),
3316
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("pre", { className: "text-sm bg-slate-50 dark:bg-slate-900 p-4 rounded", children: content })
3317
- ] }),
3318
- mdx: (content) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "prose prose-slate dark:prose-invert max-w-none", children: [
3319
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { className: "text-blue-800 dark:text-blue-200 text-sm", children: [
3320
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("strong", { children: "Custom MDX Renderer:" }),
3321
- " Implement @mdx-js/react integration here"
3322
- ] }) }),
3323
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3324
- "div",
3325
- {
3326
- dangerouslySetInnerHTML: {
3327
- __html: content.replace(/\n/g, "<br>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>")
3328
- }
3329
- }
3330
- )
3331
- ] })
3332
- };
3333
- var sampleDocuments = [
3334
- {
3335
- id: "1",
3336
- title: "Markdown Documentation",
3337
- description: "A sample markdown document with formatting",
3338
- format: "markdown",
3339
- content: `# Welcome to Markdown
3340
-
3341
- This is a **bold** statement and this is *italic*.
3342
-
3343
- ## Code Example
3344
-
3345
- Here's some \`inline code\` and a code block:
3346
-
3347
- \`\`\`javascript
3348
- function hello() {
3349
- console.log("Hello, world!");
3350
- }
3351
- \`\`\`
3352
-
3353
- ### Lists
3354
-
3355
- - Item 1
3356
- - Item 2
3357
- - Item 3`,
3358
- tags: ["documentation", "markdown"],
3359
- createdAt: /* @__PURE__ */ new Date(),
3360
- metadata: {
3361
- author: "John Doe",
3362
- version: "1.0"
3363
- }
3364
- },
3365
- {
3366
- id: "2",
3367
- title: "Plain Text File",
3368
- description: "A simple text document",
3369
- format: "text",
3370
- content: `This is a plain text document.
3371
- It preserves line breaks and spacing.
3372
-
3373
- No special formatting is applied.
3374
- Just raw text content.`,
3375
- tags: ["text", "simple"],
3376
- createdAt: /* @__PURE__ */ new Date()
3377
- },
3378
- {
3379
- id: "3",
3380
- title: "RichText Document",
3381
- description: "PayloadCMS RichText content",
3382
- format: "richtext",
3383
- content: '{"root":{"type":"root","children":[{"type":"paragraph","children":[{"type":"text","text":"This is RichText content from PayloadCMS"}]}]}}',
3384
- tags: ["richtext", "payload"],
3385
- createdAt: /* @__PURE__ */ new Date()
3386
- },
3387
- {
3388
- id: "4",
3389
- title: "MDX Component",
3390
- description: "MDX with React components",
3391
- format: "mdx",
3392
- content: `# MDX Document
3393
-
3394
- This is **MDX** content that can include React components.
3395
-
3396
- <CustomComponent prop="value" />
3397
-
3398
- ## Interactive Elements
3399
-
3400
- MDX allows you to embed interactive React components directly in markdown.`,
3401
- tags: ["mdx", "react"],
3402
- createdAt: /* @__PURE__ */ new Date()
3403
- }
3404
- ];
3405
- function DocumentPreviewExample() {
3406
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: sampleDocuments.map((document) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "border rounded-lg overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3407
- DocumentPreview,
3408
- {
3409
- document,
3410
- renderers: customRenderers,
3411
- editable: false
3412
- }
3413
- ) }, document.id)) });
3414
- }
3415
- function DocumentPreviewWithReactMarkdown() {
3416
- const document = sampleDocuments[0];
3417
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-yellow-50 dark:bg-yellow-950/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { className: "text-yellow-800 dark:text-yellow-200 text-sm", children: [
3418
- "Install react-markdown to see this example: ",
3419
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("code", { children: "npm install react-markdown remark-gfm rehype-highlight" })
3420
- ] }) });
3421
- }
3422
- function DocumentPreviewWithPayloadRichText() {
3423
- const document = sampleDocuments[2];
3424
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "text-blue-800 dark:text-blue-200 text-sm", children: "PayloadCMS RichText renderer is already available via @payloadcms/richtext-lexical dependency" }) });
3425
- }
3426
- // Annotate the CommonJS export names for ESM import in node:
3427
- 0 && (module.exports = {
3428
- DocumentPreviewExample,
3429
- DocumentPreviewWithPayloadRichText,
3430
- DocumentPreviewWithReactMarkdown,
3431
- customRenderers,
3432
- sampleDocuments
3433
- });