cortex-react-components 3.3.0 → 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 (364) hide show
  1. package/dist/{chunk-SSDRUPMS.mjs → chunk-2BKXIIFJ.mjs} +183 -36
  2. package/dist/{chunk-XFJPL6FS.mjs → chunk-3DWDGYDG.mjs} +1 -1
  3. package/dist/{chunk-WX5QYPGU.mjs → chunk-3K6EVFOW.mjs} +1 -1
  4. package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
  5. package/dist/{chunk-JFXWP3RQ.mjs → chunk-3RYHYKVQ.mjs} +1 -1
  6. package/dist/{chunk-VMYEV3FG.mjs → chunk-4YRR74Y4.mjs} +1 -1
  7. package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
  8. package/dist/{chunk-I4MTJN23.mjs → chunk-6A7T3O6T.mjs} +6 -5
  9. package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
  10. package/dist/{chunk-EJJITIA3.mjs → chunk-6LF4K7ER.mjs} +4 -4
  11. package/dist/{chunk-URC56DLC.mjs → chunk-6S7EQDLL.mjs} +1 -1
  12. package/dist/{chunk-EC5I4CIO.mjs → chunk-7HHLKQE4.mjs} +2 -2
  13. package/dist/{chunk-RFQKQLNT.mjs → chunk-7LM2P6N3.mjs} +4 -4
  14. package/dist/{chunk-IJ3E6ZXF.mjs → chunk-AZ5MV7NO.mjs} +1 -1
  15. package/dist/{chunk-V6YEUAIH.mjs → chunk-CV7GOXGO.mjs} +2 -2
  16. package/dist/{chunk-L4SNPNYU.mjs → chunk-D3AHBPI5.mjs} +2 -2
  17. package/dist/{chunk-FABRRO2B.mjs → chunk-DRLNETNN.mjs} +1 -1
  18. package/dist/{chunk-OXP3LJ53.mjs → chunk-DVWMM7AI.mjs} +4 -4
  19. package/dist/{chunk-HUZCVQP7.mjs → chunk-EEVXIKNB.mjs} +1 -1
  20. package/dist/{chunk-Z54HOXSV.mjs → chunk-ETV6EEYB.mjs} +1 -1
  21. package/dist/{chunk-EDYFH3EJ.mjs → chunk-F6SQTC6R.mjs} +4 -4
  22. package/dist/{chunk-IVOPNDSN.mjs → chunk-G5N5MCLS.mjs} +5 -5
  23. package/dist/{chunk-NVSA5BFC.mjs → chunk-GR45UN4U.mjs} +2 -2
  24. package/dist/{chunk-QETXXFRW.mjs → chunk-HNVHGBNE.mjs} +1 -1
  25. package/dist/{chunk-QPO45D6F.mjs → chunk-I2MVZVXE.mjs} +1 -1
  26. package/dist/chunk-IC4N2KYF.mjs +401 -0
  27. package/dist/{chunk-MZVEK6A5.mjs → chunk-IM5B557Z.mjs} +16 -16
  28. package/dist/{chunk-Q6CUUDUR.mjs → chunk-IQ67MHAY.mjs} +1 -1
  29. package/dist/{chunk-OCVHSV6Z.mjs → chunk-IWQEM5KO.mjs} +2 -2
  30. package/dist/{chunk-TDOOQIMQ.mjs → chunk-J5GM5CJK.mjs} +2 -2
  31. package/dist/chunk-JCSRFM37.mjs +595 -0
  32. package/dist/{chunk-QMFGV3M5.mjs → chunk-JOGVCBYP.mjs} +1 -1
  33. package/dist/{chunk-4P5Q6UXF.mjs → chunk-JWMQOARK.mjs} +1 -1
  34. package/dist/{chunk-DSVXGGGV.mjs → chunk-K5ZNBHQO.mjs} +1 -1
  35. package/dist/{chunk-YY4VLYYH.mjs → chunk-KJVAS4I7.mjs} +26 -11
  36. package/dist/{chunk-XZFMQXYJ.mjs → chunk-KMGTUNRZ.mjs} +1 -1
  37. package/dist/{chunk-ETG5N2OG.mjs → chunk-KYY7BMXI.mjs} +1 -1
  38. package/dist/{chunk-SSE3MQDP.mjs → chunk-LRMDRQRJ.mjs} +2 -2
  39. package/dist/{chunk-LGGOEYDB.mjs → chunk-LRTEGIZ7.mjs} +10 -10
  40. package/dist/{chunk-XGHUG2WQ.mjs → chunk-MDG2I4PB.mjs} +1 -1
  41. package/dist/{chunk-HMVIQFLN.mjs → chunk-N5HTSJLI.mjs} +1 -1
  42. package/dist/{chunk-IDMTHUC4.mjs → chunk-N5Q2DYUR.mjs} +1 -1
  43. package/dist/{chunk-7ZCW4XMR.mjs → chunk-NSYYRG6A.mjs} +1 -1
  44. package/dist/{chunk-CONYNX7Y.mjs → chunk-NUAJQK4H.mjs} +1 -1
  45. package/dist/{chunk-LM4J7254.mjs → chunk-OR3XMMEK.mjs} +9 -9
  46. package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
  47. package/dist/{chunk-RC6YHGVV.mjs → chunk-PE7KJR4A.mjs} +1 -1
  48. package/dist/{chunk-LTDXFLCW.mjs → chunk-QDO6BAAN.mjs} +12 -4
  49. package/dist/{chunk-NQMJXY3N.mjs → chunk-QJGBUBSB.mjs} +1 -1
  50. package/dist/{chunk-YD7Q7IZX.mjs → chunk-QJQ66DYZ.mjs} +1 -1
  51. package/dist/{chunk-WJTVZ6CB.mjs → chunk-RNHGLZYP.mjs} +1 -1
  52. package/dist/{chunk-2D3EN2AX.mjs → chunk-SJI6X5DK.mjs} +2 -2
  53. package/dist/{chunk-4JHX6BW6.mjs → chunk-TZH6L2OH.mjs} +1 -1
  54. package/dist/{chunk-OPJMXB4K.mjs → chunk-UCK4TW63.mjs} +4 -4
  55. package/dist/{chunk-36W3BORX.mjs → chunk-WAR2OXXK.mjs} +1 -1
  56. package/dist/{chunk-SM57JU3T.mjs → chunk-WZBXR7J3.mjs} +5 -5
  57. package/dist/{chunk-LPK5R32M.mjs → chunk-X4GP2O3Y.mjs} +1 -1
  58. package/dist/{chunk-6NRBLKM4.mjs → chunk-XCZCWSOY.mjs} +2 -2
  59. package/dist/{chunk-KOK3VCJZ.mjs → chunk-Y4KJTMKO.mjs} +1 -1
  60. package/dist/{chunk-YFOEG4PP.mjs → chunk-Z6MYLHDW.mjs} +1 -1
  61. package/dist/components/AdvancedComponents/AppSidebar.d.ts +1 -1
  62. package/dist/components/AdvancedComponents/AppSidebar.js +480 -301
  63. package/dist/components/AdvancedComponents/AppSidebar.mjs +3 -3
  64. package/dist/components/AdvancedComponents/index.js +480 -301
  65. package/dist/components/AdvancedComponents/index.mjs +3 -3
  66. package/dist/components/Blocks/Banner.mjs +8 -8
  67. package/dist/components/Blocks/CallToAction.mjs +8 -8
  68. package/dist/components/Blocks/CollapsibleArea.mjs +9 -9
  69. package/dist/components/Blocks/Content.mjs +9 -9
  70. package/dist/components/Blocks/FeaturesBlock.mjs +8 -8
  71. package/dist/components/Blocks/ImageBlock.mjs +3 -3
  72. package/dist/components/Blocks/MediaBlock.mjs +3 -3
  73. package/dist/components/Blocks/RelatedPosts.mjs +10 -10
  74. package/dist/components/Blocks/RenderBlocks.mjs +11 -11
  75. package/dist/components/Blocks/ReusableContentBlock.mjs +11 -11
  76. package/dist/components/Blocks/index.mjs +18 -18
  77. package/dist/components/CRM/index.mjs +3 -3
  78. package/dist/components/Cards/ContentCard.mjs +8 -8
  79. package/dist/components/Cards/FeatureCard.mjs +8 -8
  80. package/dist/components/Cards/index.mjs +14 -14
  81. package/dist/components/Chat/ChatInterface.mjs +11 -11
  82. package/dist/components/Chat/CopilotInterface.d.ts +1 -1
  83. package/dist/components/Chat/CopilotInterface.js +527 -330
  84. package/dist/components/Chat/CopilotInterface.mjs +16 -16
  85. package/dist/components/Chat/PartTypes/MessageHandler.mjs +9 -9
  86. package/dist/components/Chat/PartTypes/index.mjs +11 -11
  87. package/dist/components/Chat/chat-session-sidebar.d.ts +1 -1
  88. package/dist/components/Chat/demo-long-messages.js +527 -330
  89. package/dist/components/Chat/demo-long-messages.mjs +16 -16
  90. package/dist/components/Chat/demo-tests.js +527 -330
  91. package/dist/components/Chat/demo-tests.mjs +16 -16
  92. package/dist/components/Chat/demo.js +527 -330
  93. package/dist/components/Chat/demo.mjs +16 -16
  94. package/dist/components/Chat/example-usage.js +527 -330
  95. package/dist/components/Chat/example-usage.mjs +16 -16
  96. package/dist/components/Chat/example-with-vercel-ai.js +527 -330
  97. package/dist/components/Chat/example-with-vercel-ai.mjs +16 -16
  98. package/dist/components/Chat/index.js +527 -330
  99. package/dist/components/Chat/index.mjs +21 -21
  100. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -2
  101. package/dist/components/DeliveryLead/index.mjs +4 -4
  102. package/dist/components/DigitalColleagues/Views/TeamsIndexView.d.ts +1 -9
  103. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +22 -27
  104. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +4 -6
  105. package/dist/components/DigitalColleagues/index.d.ts +0 -18
  106. package/dist/components/DigitalColleagues/index.js +0 -16754
  107. package/dist/components/DigitalColleagues/test-data.d.ts +1 -112
  108. package/dist/components/DigitalColleagues/test-data.js +482 -308
  109. package/dist/components/DigitalColleagues/test-data.mjs +1 -5
  110. package/dist/components/Foundry/AppSidebarLeft.mjs +3 -3
  111. package/dist/components/Foundry/Knowledge/add-knowledge-modal.mjs +3 -3
  112. package/dist/components/Foundry/Knowledge/add-team-context.mjs +3 -3
  113. package/dist/components/Foundry/MainPage.mjs +7 -7
  114. package/dist/components/Foundry/ManagementSidebar.d.ts +2 -2
  115. package/dist/components/Foundry/ManagementSidebar.js +11 -3
  116. package/dist/components/Foundry/ManagementSidebar.mjs +1 -1
  117. package/dist/components/Foundry/Pages/dashboardpage.js +1423 -2039
  118. package/dist/components/Foundry/Pages/dashboardpage.mjs +23 -24
  119. package/dist/components/Foundry/RichText/index.mjs +3 -3
  120. package/dist/components/Foundry/RichText/plugins/toolbar-plugin.mjs +2 -2
  121. package/dist/components/Foundry/Views/ColleaguesView.js +5 -4
  122. package/dist/components/Foundry/Views/ColleaguesView.mjs +3 -3
  123. package/dist/components/Foundry/Views/KnowledgeView.mjs +10 -10
  124. package/dist/components/Foundry/Views/TeamsIndexView.js +5 -4
  125. package/dist/components/Foundry/Views/TeamsIndexView.mjs +4 -4
  126. package/dist/components/Foundry/Views/index.js +1350 -785
  127. package/dist/components/Foundry/Views/index.mjs +50 -49
  128. package/dist/components/{.archive → Foundry}/app-card.d.ts +1 -1
  129. package/dist/components/{DigitalColleagues/colleague-type-selection.js → Foundry/app-card.js} +89 -117
  130. package/dist/components/{DigitalColleagues/colleague-card.mjs → Foundry/app-card.mjs} +4 -5
  131. package/dist/components/Foundry/document-edit.mjs +4 -4
  132. package/dist/components/Foundry/document-preview-examples.mjs +5 -5
  133. package/dist/components/Foundry/document-preview.mjs +5 -5
  134. package/dist/components/Foundry/file-edit.mjs +7 -7
  135. package/dist/components/Foundry/foundary-layout.js +480 -301
  136. package/dist/components/Foundry/foundary-layout.mjs +4 -4
  137. package/dist/components/Foundry/index.js +2746 -2866
  138. package/dist/components/Foundry/index.mjs +78 -79
  139. package/dist/components/Foundry/knowledge-browser.mjs +6 -6
  140. package/dist/components/Foundry/types.d.ts +26 -0
  141. package/dist/components/HeaderFooter/Header.mjs +1 -1
  142. package/dist/components/HeaderFooter/SectionHeading.mjs +9 -9
  143. package/dist/components/HeaderFooter/index.mjs +5 -5
  144. package/dist/components/Heros/DashboardHero/DashboardHero.js +5 -4
  145. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +2 -2
  146. package/dist/components/Heros/DashboardHero/index.js +5 -4
  147. package/dist/components/Heros/DashboardHero/index.mjs +2 -2
  148. package/dist/components/Heros/HighImpact/index.mjs +9 -9
  149. package/dist/components/Heros/LowImpact/index.mjs +9 -9
  150. package/dist/components/Heros/MediumImpact/index.mjs +9 -9
  151. package/dist/components/Heros/PostHero/index.mjs +3 -3
  152. package/dist/components/Heros/RenderHero.mjs +12 -12
  153. package/dist/components/Heros/index.js +5 -4
  154. package/dist/components/Heros/index.mjs +19 -19
  155. package/dist/components/Layouts/OutputHeaderFooter.mjs +11 -11
  156. package/dist/components/Layouts/Print.mjs +15 -15
  157. package/dist/components/Layouts/SlideShow.mjs +17 -17
  158. package/dist/components/Layouts/index.mjs +21 -21
  159. package/dist/components/Menus/SidebarLeft.mjs +3 -3
  160. package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
  161. package/dist/components/Menus/SidebarRight.mjs +3 -3
  162. package/dist/components/Menus/index.mjs +5 -5
  163. package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
  164. package/dist/components/Payload/Media/index.mjs +2 -2
  165. package/dist/components/Payload/PayloadCard/index.mjs +3 -3
  166. package/dist/components/Payload/RichText/index.mjs +8 -8
  167. package/dist/components/Payload/RichText/serialize.mjs +8 -8
  168. package/dist/components/Payload/index.mjs +10 -10
  169. package/dist/components/Projects/EpicFilter.d.ts +6 -2
  170. package/dist/components/Projects/EpicFilter.js +6 -6
  171. package/dist/components/Projects/EpicFilter.mjs +6 -6
  172. package/dist/components/Projects/EpicsView.d.ts +12 -2
  173. package/dist/components/Projects/EpicsView.js +3980 -736
  174. package/dist/components/Projects/EpicsView.mjs +46 -4
  175. package/dist/components/Projects/FileView.js +5 -4
  176. package/dist/components/Projects/FileView.mjs +11 -11
  177. package/dist/components/Projects/GanttView.d.ts +13 -0
  178. package/dist/components/{DigitalColleagues/colleague-card.js → Projects/GanttView.js} +559 -260
  179. package/dist/components/{DigitalColleagues/digital-colleague-clone.mjs → Projects/GanttView.mjs} +7 -6
  180. package/dist/components/Projects/KanbanBoardView.js +5 -4
  181. package/dist/components/Projects/KanbanBoardView.mjs +16 -16
  182. package/dist/components/Projects/KanbanColumn.d.ts +1 -1
  183. package/dist/components/Projects/PlanningView.js +5 -4
  184. package/dist/components/Projects/PlanningView.mjs +3 -3
  185. package/dist/components/Projects/ProjectPage.d.ts +2 -2
  186. package/dist/components/Projects/ProjectPage.js +1725 -964
  187. package/dist/components/Projects/ProjectPage.mjs +29 -28
  188. package/dist/components/Projects/ProjectView.d.ts +1 -1
  189. package/dist/components/Projects/ProjectView.js +1207 -642
  190. package/dist/components/Projects/ProjectView.mjs +24 -23
  191. package/dist/components/Projects/ProjectsIndexView.js +5 -4
  192. package/dist/components/Projects/ProjectsIndexView.mjs +4 -4
  193. package/dist/components/Projects/SprintBoardView.d.ts +3 -0
  194. package/dist/components/Projects/SprintBoardView.js +251 -109
  195. package/dist/components/Projects/SprintBoardView.mjs +16 -16
  196. package/dist/components/Projects/TaskDetailsModal.mjs +10 -10
  197. package/dist/components/Projects/TasksView.js +5 -4
  198. package/dist/components/Projects/TasksView.mjs +3 -3
  199. package/dist/components/Projects/business-unit-switcher.d.ts +1 -1
  200. package/dist/components/Projects/business-units.d.ts +1 -1
  201. package/dist/components/Projects/file-list.mjs +8 -8
  202. package/dist/components/Projects/index.js +537 -230
  203. package/dist/components/Projects/index.mjs +24 -24
  204. package/dist/components/Projects/project-card.d.ts +1 -1
  205. package/dist/components/Projects/project-form.d.ts +1 -1
  206. package/dist/components/Projects/team-card.d.ts +1 -1
  207. package/dist/components/Projects/team-switcher-bar.d.ts +1 -1
  208. package/dist/components/Projects/test-data.d.ts +448 -29
  209. package/dist/components/dc-temp/dashboard-integration-example.js +497 -325
  210. package/dist/components/dc-temp/dashboard-integration-example.mjs +6 -6
  211. package/dist/components/dc-temp/index.d.ts +3 -3
  212. package/dist/components/dc-temp/index.js +3745 -2979
  213. package/dist/components/dc-temp/index.mjs +24 -22
  214. package/dist/components/dc-temp/mock-data.d.ts +1 -1
  215. package/dist/components/index.js +4128 -4209
  216. package/dist/components/index.mjs +176 -178
  217. package/dist/components/ui/index.mjs +9 -9
  218. package/dist/components/ui/sidebar.mjs +2 -2
  219. package/dist/decorators/Intranet.css +54 -14
  220. package/dist/decorators/Intranet.mjs +103 -105
  221. package/dist/globals.css +54 -14
  222. package/dist/hooks/use-local-storage.d.ts +2 -1
  223. package/dist/hooks/use-local-storage.js +5 -4
  224. package/dist/hooks/use-local-storage.mjs +1 -1
  225. package/dist/index.js +4124 -4205
  226. package/dist/index.mjs +187 -189
  227. package/dist/metafile-cjs.json +1 -1
  228. package/dist/metafile-esm.json +1 -1
  229. package/dist/pages/Blog.mjs +15 -15
  230. package/dist/pages/Documentation.mjs +7 -7
  231. package/dist/pages/IndexPage.mjs +20 -20
  232. package/dist/pages/Intranet.mjs +4 -4
  233. package/dist/pages/LandingPage.mjs +113 -115
  234. package/dist/pages/Page.mjs +19 -19
  235. package/dist/pages/Publish.mjs +104 -106
  236. package/dist/pages/Website.mjs +20 -20
  237. package/dist/sections/AboutSection.mjs +10 -10
  238. package/dist/sections/BlogDetail.mjs +9 -9
  239. package/dist/sections/BlogList.mjs +10 -10
  240. package/dist/sections/BlogListSection.mjs +5 -5
  241. package/dist/sections/ContactSection.mjs +10 -10
  242. package/dist/sections/PageSections.mjs +113 -115
  243. package/dist/sections/PricingSection.mjs +10 -10
  244. package/dist/sections/ServiceDetail.mjs +9 -9
  245. package/dist/sections/ServiceDetailSection.mjs +9 -9
  246. package/dist/sections/ServiceSection.mjs +104 -106
  247. package/dist/sections/index.mjs +113 -115
  248. package/package.json +5 -2
  249. package/dist/chunk-5MMSWFVA.mjs +0 -364
  250. package/dist/chunk-7TDXZ32Q.mjs +0 -197
  251. package/dist/chunk-APXXTGT4.mjs +0 -424
  252. package/dist/chunk-BZENEU5C.mjs +0 -160
  253. package/dist/chunk-C444TUVA.mjs +0 -306
  254. package/dist/chunk-CNQTT5P3.mjs +0 -276
  255. package/dist/chunk-CQKCEXF2.mjs +0 -82
  256. package/dist/chunk-EKQB7NJA.mjs +0 -194
  257. package/dist/chunk-G4WW3ZTX.mjs +0 -1063
  258. package/dist/chunk-IWG2URAU.mjs +0 -74
  259. package/dist/chunk-IWSATDRG.mjs +0 -118
  260. package/dist/chunk-JRNDRMIC.mjs +0 -73
  261. package/dist/chunk-K2C4VMGF.mjs +0 -121
  262. package/dist/chunk-LQQ6C7FN.mjs +0 -365
  263. package/dist/chunk-M6ELOAGS.mjs +0 -136
  264. package/dist/chunk-NAUBZM7P.mjs +0 -183
  265. package/dist/chunk-NHDPHK6D.mjs +0 -72
  266. package/dist/chunk-R5MJWISX.mjs +0 -194
  267. package/dist/chunk-RKYMAFRJ.mjs +0 -92
  268. package/dist/chunk-SZBUXY6L.mjs +0 -121
  269. package/dist/chunk-VY6L37RQ.mjs +0 -103
  270. package/dist/chunk-X6UI73UN.mjs +0 -262
  271. package/dist/components/DigitalColleagues/AppSidebarLeft.d.ts +0 -47
  272. package/dist/components/DigitalColleagues/AppSidebarLeft.js +0 -3407
  273. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +0 -23
  274. package/dist/components/DigitalColleagues/DashboardHeader.d.ts +0 -8
  275. package/dist/components/DigitalColleagues/DashboardHeader.js +0 -2756
  276. package/dist/components/DigitalColleagues/DashboardHeader.mjs +0 -15
  277. package/dist/components/DigitalColleagues/DigitalColleageusLayout.css +0 -917
  278. package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +0 -28
  279. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +0 -4417
  280. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +0 -31
  281. package/dist/components/DigitalColleagues/MainPage.css +0 -917
  282. package/dist/components/DigitalColleagues/MainPage.d.ts +0 -3
  283. package/dist/components/DigitalColleagues/MainPage.js +0 -4080
  284. package/dist/components/DigitalColleagues/MainPage.mjs +0 -46
  285. package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +0 -8
  286. package/dist/components/DigitalColleagues/ManagementSidebar.js +0 -99
  287. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +0 -9
  288. package/dist/components/DigitalColleagues/Pages/dashboardpage.css +0 -917
  289. package/dist/components/DigitalColleagues/Pages/dashboardpage.d.ts +0 -18
  290. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +0 -8514
  291. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +0 -78
  292. package/dist/components/DigitalColleagues/README-document-edit.js +0 -2
  293. package/dist/components/DigitalColleagues/README-document-edit.mjs +0 -7
  294. package/dist/components/DigitalColleagues/README-document-preview.js +0 -2
  295. package/dist/components/DigitalColleagues/README-document-preview.mjs +0 -7
  296. package/dist/components/DigitalColleagues/SearchableSelect.css +0 -917
  297. package/dist/components/DigitalColleagues/SearchableSelect.d.ts +0 -16
  298. package/dist/components/DigitalColleagues/SearchableSelect.js +0 -2745
  299. package/dist/components/DigitalColleagues/SearchableSelect.mjs +0 -16
  300. package/dist/components/DigitalColleagues/Views/ColleaguesView.css +0 -917
  301. package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +0 -14
  302. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +0 -3795
  303. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +0 -28
  304. package/dist/components/DigitalColleagues/Views/KnowledgeView.css +0 -917
  305. package/dist/components/DigitalColleagues/Views/KnowledgeView.d.ts +0 -11
  306. package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.js +0 -2
  307. package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.mjs +0 -7
  308. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +0 -3935
  309. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +0 -26
  310. package/dist/components/DigitalColleagues/Views/index.css +0 -917
  311. package/dist/components/DigitalColleagues/Views/index.d.ts +0 -7
  312. package/dist/components/DigitalColleagues/Views/index.js +0 -12284
  313. package/dist/components/DigitalColleagues/Views/index.mjs +0 -114
  314. package/dist/components/DigitalColleagues/colleague-card.css +0 -917
  315. package/dist/components/DigitalColleagues/colleague-card.d.ts +0 -12
  316. package/dist/components/DigitalColleagues/colleague-form.css +0 -917
  317. package/dist/components/DigitalColleagues/colleague-form.d.ts +0 -14
  318. package/dist/components/DigitalColleagues/colleague-form.js +0 -3086
  319. package/dist/components/DigitalColleagues/colleague-form.mjs +0 -22
  320. package/dist/components/DigitalColleagues/colleague-type-selection.css +0 -917
  321. package/dist/components/DigitalColleagues/colleague-type-selection.d.ts +0 -7
  322. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +0 -16
  323. package/dist/components/DigitalColleagues/digital-colleague-clone.css +0 -917
  324. package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +0 -9
  325. package/dist/components/DigitalColleagues/digital-colleague-clone.js +0 -2828
  326. package/dist/components/DigitalColleagues/digital-colleague-options.css +0 -917
  327. package/dist/components/DigitalColleagues/digital-colleague-options.d.ts +0 -7
  328. package/dist/components/DigitalColleagues/digital-colleague-options.js +0 -2697
  329. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +0 -16
  330. package/dist/components/DigitalColleagues/document-edit.css +0 -917
  331. package/dist/components/DigitalColleagues/document-edit.d.ts +0 -10
  332. package/dist/components/DigitalColleagues/document-edit.js +0 -3112
  333. package/dist/components/DigitalColleagues/document-edit.mjs +0 -20
  334. package/dist/components/DigitalColleagues/document-preview-examples.css +0 -917
  335. package/dist/components/DigitalColleagues/document-preview-examples.d.ts +0 -12
  336. package/dist/components/DigitalColleagues/document-preview-examples.js +0 -3433
  337. package/dist/components/DigitalColleagues/document-preview-examples.mjs +0 -151
  338. package/dist/components/DigitalColleagues/document-preview.css +0 -917
  339. package/dist/components/DigitalColleagues/document-preview.d.ts +0 -18
  340. package/dist/components/DigitalColleagues/document-preview.js +0 -3296
  341. package/dist/components/DigitalColleagues/document-preview.mjs +0 -21
  342. package/dist/components/DigitalColleagues/index.css +0 -917
  343. package/dist/components/DigitalColleagues/index.mjs +0 -200
  344. package/dist/components/DigitalColleagues/knowledge-browser.css +0 -917
  345. package/dist/components/DigitalColleagues/knowledge-browser.d.ts +0 -13
  346. package/dist/components/DigitalColleagues/knowledge-browser.js +0 -3581
  347. package/dist/components/DigitalColleagues/knowledge-browser.mjs +0 -23
  348. package/dist/components/DigitalColleagues/knowledge-search.css +0 -917
  349. package/dist/components/DigitalColleagues/knowledge-search.d.ts +0 -12
  350. package/dist/components/DigitalColleagues/knowledge-search.js +0 -2819
  351. package/dist/components/DigitalColleagues/knowledge-search.mjs +0 -20
  352. package/dist/components/DigitalColleagues/team-form.css +0 -917
  353. package/dist/components/DigitalColleagues/team-form.d.ts +0 -24
  354. package/dist/components/DigitalColleagues/team-form.js +0 -2836
  355. package/dist/components/DigitalColleagues/team-form.mjs +0 -20
  356. package/dist/components/DigitalColleagues/types.d.ts +0 -289
  357. package/dist/components/DigitalColleagues/types.js +0 -18
  358. package/dist/{chunk-GGOGMLBY.mjs → chunk-AKMJBGUU.mjs} +3 -3
  359. package/dist/{chunk-AEFGMCK3.mjs → chunk-D5KV6INF.mjs} +3 -3
  360. package/dist/{chunk-SNG6OKEL.mjs → chunk-FTVOJKVA.mjs} +3 -3
  361. package/dist/{chunk-GZGWWPCP.mjs → chunk-L666B5DN.mjs} +12 -12
  362. package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
  363. /package/dist/components/{DigitalColleagues/AppSidebarLeft.css → Foundry/app-card.css} +0 -0
  364. /package/dist/components/{DigitalColleagues/DashboardHeader.css → Projects/GanttView.css} +0 -0
@@ -1,2819 +0,0 @@
1
- "use client";
2
- "use strict";
3
- 'use client'
4
-
5
- "use strict";
6
- "use client";
7
- var __create = Object.create;
8
- var __defProp = Object.defineProperty;
9
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __getOwnPropNames = Object.getOwnPropertyNames;
11
- var __getProtoOf = Object.getPrototypeOf;
12
- var __hasOwnProp = Object.prototype.hasOwnProperty;
13
- var __export = (target, all) => {
14
- for (var name in all)
15
- __defProp(target, name, { get: all[name], enumerable: true });
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
28
- // compatible transform (i.e. "__esModule" has not been set), then set
29
- // "default" to the CommonJS "module.exports" for node compatibility.
30
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
- mod
32
- ));
33
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
-
35
- // src/components/DigitalColleagues/knowledge-search.tsx
36
- var knowledge_search_exports = {};
37
- __export(knowledge_search_exports, {
38
- KnowledgeSearch: () => KnowledgeSearch
39
- });
40
- module.exports = __toCommonJS(knowledge_search_exports);
41
- var import_react = require("react");
42
- var import_lucide_react = require("lucide-react");
43
-
44
- // src/components/ui/badge.tsx
45
- var import_class_variance_authority = require("class-variance-authority");
46
-
47
- // src/utils/cn.ts
48
- var import_clsx = require("clsx");
49
-
50
- // node_modules/.pnpm/tailwind-merge@2.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
51
- var CLASS_PART_SEPARATOR = "-";
52
- var createClassGroupUtils = (config) => {
53
- const classMap = createClassMap(config);
54
- const {
55
- conflictingClassGroups,
56
- conflictingClassGroupModifiers
57
- } = config;
58
- const getClassGroupId = (className) => {
59
- const classParts = className.split(CLASS_PART_SEPARATOR);
60
- if (classParts[0] === "" && classParts.length !== 1) {
61
- classParts.shift();
62
- }
63
- return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
64
- };
65
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
66
- const conflicts = conflictingClassGroups[classGroupId] || [];
67
- if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
68
- return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
69
- }
70
- return conflicts;
71
- };
72
- return {
73
- getClassGroupId,
74
- getConflictingClassGroupIds
75
- };
76
- };
77
- var getGroupRecursive = (classParts, classPartObject) => {
78
- if (classParts.length === 0) {
79
- return classPartObject.classGroupId;
80
- }
81
- const currentClassPart = classParts[0];
82
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
83
- const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
84
- if (classGroupFromNextClassPart) {
85
- return classGroupFromNextClassPart;
86
- }
87
- if (classPartObject.validators.length === 0) {
88
- return void 0;
89
- }
90
- const classRest = classParts.join(CLASS_PART_SEPARATOR);
91
- return classPartObject.validators.find(({
92
- validator
93
- }) => validator(classRest))?.classGroupId;
94
- };
95
- var arbitraryPropertyRegex = /^\[(.+)\]$/;
96
- var getGroupIdForArbitraryProperty = (className) => {
97
- if (arbitraryPropertyRegex.test(className)) {
98
- const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
99
- const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(":"));
100
- if (property) {
101
- return "arbitrary.." + property;
102
- }
103
- }
104
- };
105
- var createClassMap = (config) => {
106
- const {
107
- theme,
108
- prefix
109
- } = config;
110
- const classMap = {
111
- nextPart: /* @__PURE__ */ new Map(),
112
- validators: []
113
- };
114
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
115
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
116
- processClassesRecursively(classGroup, classMap, classGroupId, theme);
117
- });
118
- return classMap;
119
- };
120
- var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
121
- classGroup.forEach((classDefinition) => {
122
- if (typeof classDefinition === "string") {
123
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
124
- classPartObjectToEdit.classGroupId = classGroupId;
125
- return;
126
- }
127
- if (typeof classDefinition === "function") {
128
- if (isThemeGetter(classDefinition)) {
129
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
130
- return;
131
- }
132
- classPartObject.validators.push({
133
- validator: classDefinition,
134
- classGroupId
135
- });
136
- return;
137
- }
138
- Object.entries(classDefinition).forEach(([key, classGroup2]) => {
139
- processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
140
- });
141
- });
142
- };
143
- var getPart = (classPartObject, path) => {
144
- let currentClassPartObject = classPartObject;
145
- path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
146
- if (!currentClassPartObject.nextPart.has(pathPart)) {
147
- currentClassPartObject.nextPart.set(pathPart, {
148
- nextPart: /* @__PURE__ */ new Map(),
149
- validators: []
150
- });
151
- }
152
- currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
153
- });
154
- return currentClassPartObject;
155
- };
156
- var isThemeGetter = (func) => func.isThemeGetter;
157
- var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
158
- if (!prefix) {
159
- return classGroupEntries;
160
- }
161
- return classGroupEntries.map(([classGroupId, classGroup]) => {
162
- const prefixedClassGroup = classGroup.map((classDefinition) => {
163
- if (typeof classDefinition === "string") {
164
- return prefix + classDefinition;
165
- }
166
- if (typeof classDefinition === "object") {
167
- return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
168
- }
169
- return classDefinition;
170
- });
171
- return [classGroupId, prefixedClassGroup];
172
- });
173
- };
174
- var createLruCache = (maxCacheSize) => {
175
- if (maxCacheSize < 1) {
176
- return {
177
- get: () => void 0,
178
- set: () => {
179
- }
180
- };
181
- }
182
- let cacheSize = 0;
183
- let cache = /* @__PURE__ */ new Map();
184
- let previousCache = /* @__PURE__ */ new Map();
185
- const update = (key, value) => {
186
- cache.set(key, value);
187
- cacheSize++;
188
- if (cacheSize > maxCacheSize) {
189
- cacheSize = 0;
190
- previousCache = cache;
191
- cache = /* @__PURE__ */ new Map();
192
- }
193
- };
194
- return {
195
- get(key) {
196
- let value = cache.get(key);
197
- if (value !== void 0) {
198
- return value;
199
- }
200
- if ((value = previousCache.get(key)) !== void 0) {
201
- update(key, value);
202
- return value;
203
- }
204
- },
205
- set(key, value) {
206
- if (cache.has(key)) {
207
- cache.set(key, value);
208
- } else {
209
- update(key, value);
210
- }
211
- }
212
- };
213
- };
214
- var IMPORTANT_MODIFIER = "!";
215
- var createParseClassName = (config) => {
216
- const {
217
- separator,
218
- experimentalParseClassName
219
- } = config;
220
- const isSeparatorSingleCharacter = separator.length === 1;
221
- const firstSeparatorCharacter = separator[0];
222
- const separatorLength = separator.length;
223
- const parseClassName = (className) => {
224
- const modifiers = [];
225
- let bracketDepth = 0;
226
- let modifierStart = 0;
227
- let postfixModifierPosition;
228
- for (let index = 0; index < className.length; index++) {
229
- let currentCharacter = className[index];
230
- if (bracketDepth === 0) {
231
- if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
232
- modifiers.push(className.slice(modifierStart, index));
233
- modifierStart = index + separatorLength;
234
- continue;
235
- }
236
- if (currentCharacter === "/") {
237
- postfixModifierPosition = index;
238
- continue;
239
- }
240
- }
241
- if (currentCharacter === "[") {
242
- bracketDepth++;
243
- } else if (currentCharacter === "]") {
244
- bracketDepth--;
245
- }
246
- }
247
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
248
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
249
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
250
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
251
- return {
252
- modifiers,
253
- hasImportantModifier,
254
- baseClassName,
255
- maybePostfixModifierPosition
256
- };
257
- };
258
- if (experimentalParseClassName) {
259
- return (className) => experimentalParseClassName({
260
- className,
261
- parseClassName
262
- });
263
- }
264
- return parseClassName;
265
- };
266
- var sortModifiers = (modifiers) => {
267
- if (modifiers.length <= 1) {
268
- return modifiers;
269
- }
270
- const sortedModifiers = [];
271
- let unsortedModifiers = [];
272
- modifiers.forEach((modifier) => {
273
- const isArbitraryVariant = modifier[0] === "[";
274
- if (isArbitraryVariant) {
275
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
276
- unsortedModifiers = [];
277
- } else {
278
- unsortedModifiers.push(modifier);
279
- }
280
- });
281
- sortedModifiers.push(...unsortedModifiers.sort());
282
- return sortedModifiers;
283
- };
284
- var createConfigUtils = (config) => ({
285
- cache: createLruCache(config.cacheSize),
286
- parseClassName: createParseClassName(config),
287
- ...createClassGroupUtils(config)
288
- });
289
- var SPLIT_CLASSES_REGEX = /\s+/;
290
- var mergeClassList = (classList, configUtils) => {
291
- const {
292
- parseClassName,
293
- getClassGroupId,
294
- getConflictingClassGroupIds
295
- } = configUtils;
296
- const classGroupsInConflict = [];
297
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
298
- let result = "";
299
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
300
- const originalClassName = classNames[index];
301
- const {
302
- modifiers,
303
- hasImportantModifier,
304
- baseClassName,
305
- maybePostfixModifierPosition
306
- } = parseClassName(originalClassName);
307
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
308
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
309
- if (!classGroupId) {
310
- if (!hasPostfixModifier) {
311
- result = originalClassName + (result.length > 0 ? " " + result : result);
312
- continue;
313
- }
314
- classGroupId = getClassGroupId(baseClassName);
315
- if (!classGroupId) {
316
- result = originalClassName + (result.length > 0 ? " " + result : result);
317
- continue;
318
- }
319
- hasPostfixModifier = false;
320
- }
321
- const variantModifier = sortModifiers(modifiers).join(":");
322
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
323
- const classId = modifierId + classGroupId;
324
- if (classGroupsInConflict.includes(classId)) {
325
- continue;
326
- }
327
- classGroupsInConflict.push(classId);
328
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
329
- for (let i = 0; i < conflictGroups.length; ++i) {
330
- const group = conflictGroups[i];
331
- classGroupsInConflict.push(modifierId + group);
332
- }
333
- result = originalClassName + (result.length > 0 ? " " + result : result);
334
- }
335
- return result;
336
- };
337
- function twJoin() {
338
- let index = 0;
339
- let argument;
340
- let resolvedValue;
341
- let string = "";
342
- while (index < arguments.length) {
343
- if (argument = arguments[index++]) {
344
- if (resolvedValue = toValue(argument)) {
345
- string && (string += " ");
346
- string += resolvedValue;
347
- }
348
- }
349
- }
350
- return string;
351
- }
352
- var toValue = (mix) => {
353
- if (typeof mix === "string") {
354
- return mix;
355
- }
356
- let resolvedValue;
357
- let string = "";
358
- for (let k = 0; k < mix.length; k++) {
359
- if (mix[k]) {
360
- if (resolvedValue = toValue(mix[k])) {
361
- string && (string += " ");
362
- string += resolvedValue;
363
- }
364
- }
365
- }
366
- return string;
367
- };
368
- function createTailwindMerge(createConfigFirst, ...createConfigRest) {
369
- let configUtils;
370
- let cacheGet;
371
- let cacheSet;
372
- let functionToCall = initTailwindMerge;
373
- function initTailwindMerge(classList) {
374
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
375
- configUtils = createConfigUtils(config);
376
- cacheGet = configUtils.cache.get;
377
- cacheSet = configUtils.cache.set;
378
- functionToCall = tailwindMerge;
379
- return tailwindMerge(classList);
380
- }
381
- function tailwindMerge(classList) {
382
- const cachedResult = cacheGet(classList);
383
- if (cachedResult) {
384
- return cachedResult;
385
- }
386
- const result = mergeClassList(classList, configUtils);
387
- cacheSet(classList, result);
388
- return result;
389
- }
390
- return function callTailwindMerge() {
391
- return functionToCall(twJoin.apply(null, arguments));
392
- };
393
- }
394
- var fromTheme = (key) => {
395
- const themeGetter = (theme) => theme[key] || [];
396
- themeGetter.isThemeGetter = true;
397
- return themeGetter;
398
- };
399
- var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
400
- var fractionRegex = /^\d+\/\d+$/;
401
- var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
402
- var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
403
- 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$/;
404
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
405
- var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
406
- var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
407
- var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
408
- var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
409
- var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
410
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
411
- var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
412
- var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
413
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
414
- var isTshirtSize = (value) => tshirtUnitRegex.test(value);
415
- var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
416
- var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
417
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
418
- var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
419
- var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
420
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
421
- var isAny = () => true;
422
- var getIsArbitraryValue = (value, label, testValue) => {
423
- const result = arbitraryValueRegex.exec(value);
424
- if (result) {
425
- if (result[1]) {
426
- return typeof label === "string" ? result[1] === label : label.has(result[1]);
427
- }
428
- return testValue(result[2]);
429
- }
430
- return false;
431
- };
432
- var isLengthOnly = (value) => (
433
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
434
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
435
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
436
- lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
437
- );
438
- var isNever = () => false;
439
- var isShadow = (value) => shadowRegex.test(value);
440
- var isImage = (value) => imageRegex.test(value);
441
- var getDefaultConfig = () => {
442
- const colors = fromTheme("colors");
443
- const spacing = fromTheme("spacing");
444
- const blur = fromTheme("blur");
445
- const brightness = fromTheme("brightness");
446
- const borderColor = fromTheme("borderColor");
447
- const borderRadius = fromTheme("borderRadius");
448
- const borderSpacing = fromTheme("borderSpacing");
449
- const borderWidth = fromTheme("borderWidth");
450
- const contrast = fromTheme("contrast");
451
- const grayscale = fromTheme("grayscale");
452
- const hueRotate = fromTheme("hueRotate");
453
- const invert = fromTheme("invert");
454
- const gap = fromTheme("gap");
455
- const gradientColorStops = fromTheme("gradientColorStops");
456
- const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
457
- const inset = fromTheme("inset");
458
- const margin = fromTheme("margin");
459
- const opacity = fromTheme("opacity");
460
- const padding = fromTheme("padding");
461
- const saturate = fromTheme("saturate");
462
- const scale = fromTheme("scale");
463
- const sepia = fromTheme("sepia");
464
- const skew = fromTheme("skew");
465
- const space = fromTheme("space");
466
- const translate = fromTheme("translate");
467
- const getOverscroll = () => ["auto", "contain", "none"];
468
- const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
469
- const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
470
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
471
- const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
472
- const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
473
- const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
474
- const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
475
- const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
476
- const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
477
- const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
478
- const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
479
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
480
- return {
481
- cacheSize: 500,
482
- separator: ":",
483
- theme: {
484
- colors: [isAny],
485
- spacing: [isLength, isArbitraryLength],
486
- blur: ["none", "", isTshirtSize, isArbitraryValue],
487
- brightness: getNumberAndArbitrary(),
488
- borderColor: [colors],
489
- borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
490
- borderSpacing: getSpacingWithArbitrary(),
491
- borderWidth: getLengthWithEmptyAndArbitrary(),
492
- contrast: getNumberAndArbitrary(),
493
- grayscale: getZeroAndEmpty(),
494
- hueRotate: getNumberAndArbitrary(),
495
- invert: getZeroAndEmpty(),
496
- gap: getSpacingWithArbitrary(),
497
- gradientColorStops: [colors],
498
- gradientColorStopPositions: [isPercent, isArbitraryLength],
499
- inset: getSpacingWithAutoAndArbitrary(),
500
- margin: getSpacingWithAutoAndArbitrary(),
501
- opacity: getNumberAndArbitrary(),
502
- padding: getSpacingWithArbitrary(),
503
- saturate: getNumberAndArbitrary(),
504
- scale: getNumberAndArbitrary(),
505
- sepia: getZeroAndEmpty(),
506
- skew: getNumberAndArbitrary(),
507
- space: getSpacingWithArbitrary(),
508
- translate: getSpacingWithArbitrary()
509
- },
510
- classGroups: {
511
- // Layout
512
- /**
513
- * Aspect Ratio
514
- * @see https://tailwindcss.com/docs/aspect-ratio
515
- */
516
- aspect: [{
517
- aspect: ["auto", "square", "video", isArbitraryValue]
518
- }],
519
- /**
520
- * Container
521
- * @see https://tailwindcss.com/docs/container
522
- */
523
- container: ["container"],
524
- /**
525
- * Columns
526
- * @see https://tailwindcss.com/docs/columns
527
- */
528
- columns: [{
529
- columns: [isTshirtSize]
530
- }],
531
- /**
532
- * Break After
533
- * @see https://tailwindcss.com/docs/break-after
534
- */
535
- "break-after": [{
536
- "break-after": getBreaks()
537
- }],
538
- /**
539
- * Break Before
540
- * @see https://tailwindcss.com/docs/break-before
541
- */
542
- "break-before": [{
543
- "break-before": getBreaks()
544
- }],
545
- /**
546
- * Break Inside
547
- * @see https://tailwindcss.com/docs/break-inside
548
- */
549
- "break-inside": [{
550
- "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
551
- }],
552
- /**
553
- * Box Decoration Break
554
- * @see https://tailwindcss.com/docs/box-decoration-break
555
- */
556
- "box-decoration": [{
557
- "box-decoration": ["slice", "clone"]
558
- }],
559
- /**
560
- * Box Sizing
561
- * @see https://tailwindcss.com/docs/box-sizing
562
- */
563
- box: [{
564
- box: ["border", "content"]
565
- }],
566
- /**
567
- * Display
568
- * @see https://tailwindcss.com/docs/display
569
- */
570
- 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"],
571
- /**
572
- * Floats
573
- * @see https://tailwindcss.com/docs/float
574
- */
575
- float: [{
576
- float: ["right", "left", "none", "start", "end"]
577
- }],
578
- /**
579
- * Clear
580
- * @see https://tailwindcss.com/docs/clear
581
- */
582
- clear: [{
583
- clear: ["left", "right", "both", "none", "start", "end"]
584
- }],
585
- /**
586
- * Isolation
587
- * @see https://tailwindcss.com/docs/isolation
588
- */
589
- isolation: ["isolate", "isolation-auto"],
590
- /**
591
- * Object Fit
592
- * @see https://tailwindcss.com/docs/object-fit
593
- */
594
- "object-fit": [{
595
- object: ["contain", "cover", "fill", "none", "scale-down"]
596
- }],
597
- /**
598
- * Object Position
599
- * @see https://tailwindcss.com/docs/object-position
600
- */
601
- "object-position": [{
602
- object: [...getPositions(), isArbitraryValue]
603
- }],
604
- /**
605
- * Overflow
606
- * @see https://tailwindcss.com/docs/overflow
607
- */
608
- overflow: [{
609
- overflow: getOverflow()
610
- }],
611
- /**
612
- * Overflow X
613
- * @see https://tailwindcss.com/docs/overflow
614
- */
615
- "overflow-x": [{
616
- "overflow-x": getOverflow()
617
- }],
618
- /**
619
- * Overflow Y
620
- * @see https://tailwindcss.com/docs/overflow
621
- */
622
- "overflow-y": [{
623
- "overflow-y": getOverflow()
624
- }],
625
- /**
626
- * Overscroll Behavior
627
- * @see https://tailwindcss.com/docs/overscroll-behavior
628
- */
629
- overscroll: [{
630
- overscroll: getOverscroll()
631
- }],
632
- /**
633
- * Overscroll Behavior X
634
- * @see https://tailwindcss.com/docs/overscroll-behavior
635
- */
636
- "overscroll-x": [{
637
- "overscroll-x": getOverscroll()
638
- }],
639
- /**
640
- * Overscroll Behavior Y
641
- * @see https://tailwindcss.com/docs/overscroll-behavior
642
- */
643
- "overscroll-y": [{
644
- "overscroll-y": getOverscroll()
645
- }],
646
- /**
647
- * Position
648
- * @see https://tailwindcss.com/docs/position
649
- */
650
- position: ["static", "fixed", "absolute", "relative", "sticky"],
651
- /**
652
- * Top / Right / Bottom / Left
653
- * @see https://tailwindcss.com/docs/top-right-bottom-left
654
- */
655
- inset: [{
656
- inset: [inset]
657
- }],
658
- /**
659
- * Right / Left
660
- * @see https://tailwindcss.com/docs/top-right-bottom-left
661
- */
662
- "inset-x": [{
663
- "inset-x": [inset]
664
- }],
665
- /**
666
- * Top / Bottom
667
- * @see https://tailwindcss.com/docs/top-right-bottom-left
668
- */
669
- "inset-y": [{
670
- "inset-y": [inset]
671
- }],
672
- /**
673
- * Start
674
- * @see https://tailwindcss.com/docs/top-right-bottom-left
675
- */
676
- start: [{
677
- start: [inset]
678
- }],
679
- /**
680
- * End
681
- * @see https://tailwindcss.com/docs/top-right-bottom-left
682
- */
683
- end: [{
684
- end: [inset]
685
- }],
686
- /**
687
- * Top
688
- * @see https://tailwindcss.com/docs/top-right-bottom-left
689
- */
690
- top: [{
691
- top: [inset]
692
- }],
693
- /**
694
- * Right
695
- * @see https://tailwindcss.com/docs/top-right-bottom-left
696
- */
697
- right: [{
698
- right: [inset]
699
- }],
700
- /**
701
- * Bottom
702
- * @see https://tailwindcss.com/docs/top-right-bottom-left
703
- */
704
- bottom: [{
705
- bottom: [inset]
706
- }],
707
- /**
708
- * Left
709
- * @see https://tailwindcss.com/docs/top-right-bottom-left
710
- */
711
- left: [{
712
- left: [inset]
713
- }],
714
- /**
715
- * Visibility
716
- * @see https://tailwindcss.com/docs/visibility
717
- */
718
- visibility: ["visible", "invisible", "collapse"],
719
- /**
720
- * Z-Index
721
- * @see https://tailwindcss.com/docs/z-index
722
- */
723
- z: [{
724
- z: ["auto", isInteger, isArbitraryValue]
725
- }],
726
- // Flexbox and Grid
727
- /**
728
- * Flex Basis
729
- * @see https://tailwindcss.com/docs/flex-basis
730
- */
731
- basis: [{
732
- basis: getSpacingWithAutoAndArbitrary()
733
- }],
734
- /**
735
- * Flex Direction
736
- * @see https://tailwindcss.com/docs/flex-direction
737
- */
738
- "flex-direction": [{
739
- flex: ["row", "row-reverse", "col", "col-reverse"]
740
- }],
741
- /**
742
- * Flex Wrap
743
- * @see https://tailwindcss.com/docs/flex-wrap
744
- */
745
- "flex-wrap": [{
746
- flex: ["wrap", "wrap-reverse", "nowrap"]
747
- }],
748
- /**
749
- * Flex
750
- * @see https://tailwindcss.com/docs/flex
751
- */
752
- flex: [{
753
- flex: ["1", "auto", "initial", "none", isArbitraryValue]
754
- }],
755
- /**
756
- * Flex Grow
757
- * @see https://tailwindcss.com/docs/flex-grow
758
- */
759
- grow: [{
760
- grow: getZeroAndEmpty()
761
- }],
762
- /**
763
- * Flex Shrink
764
- * @see https://tailwindcss.com/docs/flex-shrink
765
- */
766
- shrink: [{
767
- shrink: getZeroAndEmpty()
768
- }],
769
- /**
770
- * Order
771
- * @see https://tailwindcss.com/docs/order
772
- */
773
- order: [{
774
- order: ["first", "last", "none", isInteger, isArbitraryValue]
775
- }],
776
- /**
777
- * Grid Template Columns
778
- * @see https://tailwindcss.com/docs/grid-template-columns
779
- */
780
- "grid-cols": [{
781
- "grid-cols": [isAny]
782
- }],
783
- /**
784
- * Grid Column Start / End
785
- * @see https://tailwindcss.com/docs/grid-column
786
- */
787
- "col-start-end": [{
788
- col: ["auto", {
789
- span: ["full", isInteger, isArbitraryValue]
790
- }, isArbitraryValue]
791
- }],
792
- /**
793
- * Grid Column Start
794
- * @see https://tailwindcss.com/docs/grid-column
795
- */
796
- "col-start": [{
797
- "col-start": getNumberWithAutoAndArbitrary()
798
- }],
799
- /**
800
- * Grid Column End
801
- * @see https://tailwindcss.com/docs/grid-column
802
- */
803
- "col-end": [{
804
- "col-end": getNumberWithAutoAndArbitrary()
805
- }],
806
- /**
807
- * Grid Template Rows
808
- * @see https://tailwindcss.com/docs/grid-template-rows
809
- */
810
- "grid-rows": [{
811
- "grid-rows": [isAny]
812
- }],
813
- /**
814
- * Grid Row Start / End
815
- * @see https://tailwindcss.com/docs/grid-row
816
- */
817
- "row-start-end": [{
818
- row: ["auto", {
819
- span: [isInteger, isArbitraryValue]
820
- }, isArbitraryValue]
821
- }],
822
- /**
823
- * Grid Row Start
824
- * @see https://tailwindcss.com/docs/grid-row
825
- */
826
- "row-start": [{
827
- "row-start": getNumberWithAutoAndArbitrary()
828
- }],
829
- /**
830
- * Grid Row End
831
- * @see https://tailwindcss.com/docs/grid-row
832
- */
833
- "row-end": [{
834
- "row-end": getNumberWithAutoAndArbitrary()
835
- }],
836
- /**
837
- * Grid Auto Flow
838
- * @see https://tailwindcss.com/docs/grid-auto-flow
839
- */
840
- "grid-flow": [{
841
- "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
842
- }],
843
- /**
844
- * Grid Auto Columns
845
- * @see https://tailwindcss.com/docs/grid-auto-columns
846
- */
847
- "auto-cols": [{
848
- "auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
849
- }],
850
- /**
851
- * Grid Auto Rows
852
- * @see https://tailwindcss.com/docs/grid-auto-rows
853
- */
854
- "auto-rows": [{
855
- "auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
856
- }],
857
- /**
858
- * Gap
859
- * @see https://tailwindcss.com/docs/gap
860
- */
861
- gap: [{
862
- gap: [gap]
863
- }],
864
- /**
865
- * Gap X
866
- * @see https://tailwindcss.com/docs/gap
867
- */
868
- "gap-x": [{
869
- "gap-x": [gap]
870
- }],
871
- /**
872
- * Gap Y
873
- * @see https://tailwindcss.com/docs/gap
874
- */
875
- "gap-y": [{
876
- "gap-y": [gap]
877
- }],
878
- /**
879
- * Justify Content
880
- * @see https://tailwindcss.com/docs/justify-content
881
- */
882
- "justify-content": [{
883
- justify: ["normal", ...getAlign()]
884
- }],
885
- /**
886
- * Justify Items
887
- * @see https://tailwindcss.com/docs/justify-items
888
- */
889
- "justify-items": [{
890
- "justify-items": ["start", "end", "center", "stretch"]
891
- }],
892
- /**
893
- * Justify Self
894
- * @see https://tailwindcss.com/docs/justify-self
895
- */
896
- "justify-self": [{
897
- "justify-self": ["auto", "start", "end", "center", "stretch"]
898
- }],
899
- /**
900
- * Align Content
901
- * @see https://tailwindcss.com/docs/align-content
902
- */
903
- "align-content": [{
904
- content: ["normal", ...getAlign(), "baseline"]
905
- }],
906
- /**
907
- * Align Items
908
- * @see https://tailwindcss.com/docs/align-items
909
- */
910
- "align-items": [{
911
- items: ["start", "end", "center", "baseline", "stretch"]
912
- }],
913
- /**
914
- * Align Self
915
- * @see https://tailwindcss.com/docs/align-self
916
- */
917
- "align-self": [{
918
- self: ["auto", "start", "end", "center", "stretch", "baseline"]
919
- }],
920
- /**
921
- * Place Content
922
- * @see https://tailwindcss.com/docs/place-content
923
- */
924
- "place-content": [{
925
- "place-content": [...getAlign(), "baseline"]
926
- }],
927
- /**
928
- * Place Items
929
- * @see https://tailwindcss.com/docs/place-items
930
- */
931
- "place-items": [{
932
- "place-items": ["start", "end", "center", "baseline", "stretch"]
933
- }],
934
- /**
935
- * Place Self
936
- * @see https://tailwindcss.com/docs/place-self
937
- */
938
- "place-self": [{
939
- "place-self": ["auto", "start", "end", "center", "stretch"]
940
- }],
941
- // Spacing
942
- /**
943
- * Padding
944
- * @see https://tailwindcss.com/docs/padding
945
- */
946
- p: [{
947
- p: [padding]
948
- }],
949
- /**
950
- * Padding X
951
- * @see https://tailwindcss.com/docs/padding
952
- */
953
- px: [{
954
- px: [padding]
955
- }],
956
- /**
957
- * Padding Y
958
- * @see https://tailwindcss.com/docs/padding
959
- */
960
- py: [{
961
- py: [padding]
962
- }],
963
- /**
964
- * Padding Start
965
- * @see https://tailwindcss.com/docs/padding
966
- */
967
- ps: [{
968
- ps: [padding]
969
- }],
970
- /**
971
- * Padding End
972
- * @see https://tailwindcss.com/docs/padding
973
- */
974
- pe: [{
975
- pe: [padding]
976
- }],
977
- /**
978
- * Padding Top
979
- * @see https://tailwindcss.com/docs/padding
980
- */
981
- pt: [{
982
- pt: [padding]
983
- }],
984
- /**
985
- * Padding Right
986
- * @see https://tailwindcss.com/docs/padding
987
- */
988
- pr: [{
989
- pr: [padding]
990
- }],
991
- /**
992
- * Padding Bottom
993
- * @see https://tailwindcss.com/docs/padding
994
- */
995
- pb: [{
996
- pb: [padding]
997
- }],
998
- /**
999
- * Padding Left
1000
- * @see https://tailwindcss.com/docs/padding
1001
- */
1002
- pl: [{
1003
- pl: [padding]
1004
- }],
1005
- /**
1006
- * Margin
1007
- * @see https://tailwindcss.com/docs/margin
1008
- */
1009
- m: [{
1010
- m: [margin]
1011
- }],
1012
- /**
1013
- * Margin X
1014
- * @see https://tailwindcss.com/docs/margin
1015
- */
1016
- mx: [{
1017
- mx: [margin]
1018
- }],
1019
- /**
1020
- * Margin Y
1021
- * @see https://tailwindcss.com/docs/margin
1022
- */
1023
- my: [{
1024
- my: [margin]
1025
- }],
1026
- /**
1027
- * Margin Start
1028
- * @see https://tailwindcss.com/docs/margin
1029
- */
1030
- ms: [{
1031
- ms: [margin]
1032
- }],
1033
- /**
1034
- * Margin End
1035
- * @see https://tailwindcss.com/docs/margin
1036
- */
1037
- me: [{
1038
- me: [margin]
1039
- }],
1040
- /**
1041
- * Margin Top
1042
- * @see https://tailwindcss.com/docs/margin
1043
- */
1044
- mt: [{
1045
- mt: [margin]
1046
- }],
1047
- /**
1048
- * Margin Right
1049
- * @see https://tailwindcss.com/docs/margin
1050
- */
1051
- mr: [{
1052
- mr: [margin]
1053
- }],
1054
- /**
1055
- * Margin Bottom
1056
- * @see https://tailwindcss.com/docs/margin
1057
- */
1058
- mb: [{
1059
- mb: [margin]
1060
- }],
1061
- /**
1062
- * Margin Left
1063
- * @see https://tailwindcss.com/docs/margin
1064
- */
1065
- ml: [{
1066
- ml: [margin]
1067
- }],
1068
- /**
1069
- * Space Between X
1070
- * @see https://tailwindcss.com/docs/space
1071
- */
1072
- "space-x": [{
1073
- "space-x": [space]
1074
- }],
1075
- /**
1076
- * Space Between X Reverse
1077
- * @see https://tailwindcss.com/docs/space
1078
- */
1079
- "space-x-reverse": ["space-x-reverse"],
1080
- /**
1081
- * Space Between Y
1082
- * @see https://tailwindcss.com/docs/space
1083
- */
1084
- "space-y": [{
1085
- "space-y": [space]
1086
- }],
1087
- /**
1088
- * Space Between Y Reverse
1089
- * @see https://tailwindcss.com/docs/space
1090
- */
1091
- "space-y-reverse": ["space-y-reverse"],
1092
- // Sizing
1093
- /**
1094
- * Width
1095
- * @see https://tailwindcss.com/docs/width
1096
- */
1097
- w: [{
1098
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1099
- }],
1100
- /**
1101
- * Min-Width
1102
- * @see https://tailwindcss.com/docs/min-width
1103
- */
1104
- "min-w": [{
1105
- "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1106
- }],
1107
- /**
1108
- * Max-Width
1109
- * @see https://tailwindcss.com/docs/max-width
1110
- */
1111
- "max-w": [{
1112
- "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1113
- screen: [isTshirtSize]
1114
- }, isTshirtSize]
1115
- }],
1116
- /**
1117
- * Height
1118
- * @see https://tailwindcss.com/docs/height
1119
- */
1120
- h: [{
1121
- h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1122
- }],
1123
- /**
1124
- * Min-Height
1125
- * @see https://tailwindcss.com/docs/min-height
1126
- */
1127
- "min-h": [{
1128
- "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1129
- }],
1130
- /**
1131
- * Max-Height
1132
- * @see https://tailwindcss.com/docs/max-height
1133
- */
1134
- "max-h": [{
1135
- "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1136
- }],
1137
- /**
1138
- * Size
1139
- * @see https://tailwindcss.com/docs/size
1140
- */
1141
- size: [{
1142
- size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1143
- }],
1144
- // Typography
1145
- /**
1146
- * Font Size
1147
- * @see https://tailwindcss.com/docs/font-size
1148
- */
1149
- "font-size": [{
1150
- text: ["base", isTshirtSize, isArbitraryLength]
1151
- }],
1152
- /**
1153
- * Font Smoothing
1154
- * @see https://tailwindcss.com/docs/font-smoothing
1155
- */
1156
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
1157
- /**
1158
- * Font Style
1159
- * @see https://tailwindcss.com/docs/font-style
1160
- */
1161
- "font-style": ["italic", "not-italic"],
1162
- /**
1163
- * Font Weight
1164
- * @see https://tailwindcss.com/docs/font-weight
1165
- */
1166
- "font-weight": [{
1167
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
1168
- }],
1169
- /**
1170
- * Font Family
1171
- * @see https://tailwindcss.com/docs/font-family
1172
- */
1173
- "font-family": [{
1174
- font: [isAny]
1175
- }],
1176
- /**
1177
- * Font Variant Numeric
1178
- * @see https://tailwindcss.com/docs/font-variant-numeric
1179
- */
1180
- "fvn-normal": ["normal-nums"],
1181
- /**
1182
- * Font Variant Numeric
1183
- * @see https://tailwindcss.com/docs/font-variant-numeric
1184
- */
1185
- "fvn-ordinal": ["ordinal"],
1186
- /**
1187
- * Font Variant Numeric
1188
- * @see https://tailwindcss.com/docs/font-variant-numeric
1189
- */
1190
- "fvn-slashed-zero": ["slashed-zero"],
1191
- /**
1192
- * Font Variant Numeric
1193
- * @see https://tailwindcss.com/docs/font-variant-numeric
1194
- */
1195
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
1196
- /**
1197
- * Font Variant Numeric
1198
- * @see https://tailwindcss.com/docs/font-variant-numeric
1199
- */
1200
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
1201
- /**
1202
- * Font Variant Numeric
1203
- * @see https://tailwindcss.com/docs/font-variant-numeric
1204
- */
1205
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1206
- /**
1207
- * Letter Spacing
1208
- * @see https://tailwindcss.com/docs/letter-spacing
1209
- */
1210
- tracking: [{
1211
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
1212
- }],
1213
- /**
1214
- * Line Clamp
1215
- * @see https://tailwindcss.com/docs/line-clamp
1216
- */
1217
- "line-clamp": [{
1218
- "line-clamp": ["none", isNumber, isArbitraryNumber]
1219
- }],
1220
- /**
1221
- * Line Height
1222
- * @see https://tailwindcss.com/docs/line-height
1223
- */
1224
- leading: [{
1225
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
1226
- }],
1227
- /**
1228
- * List Style Image
1229
- * @see https://tailwindcss.com/docs/list-style-image
1230
- */
1231
- "list-image": [{
1232
- "list-image": ["none", isArbitraryValue]
1233
- }],
1234
- /**
1235
- * List Style Type
1236
- * @see https://tailwindcss.com/docs/list-style-type
1237
- */
1238
- "list-style-type": [{
1239
- list: ["none", "disc", "decimal", isArbitraryValue]
1240
- }],
1241
- /**
1242
- * List Style Position
1243
- * @see https://tailwindcss.com/docs/list-style-position
1244
- */
1245
- "list-style-position": [{
1246
- list: ["inside", "outside"]
1247
- }],
1248
- /**
1249
- * Placeholder Color
1250
- * @deprecated since Tailwind CSS v3.0.0
1251
- * @see https://tailwindcss.com/docs/placeholder-color
1252
- */
1253
- "placeholder-color": [{
1254
- placeholder: [colors]
1255
- }],
1256
- /**
1257
- * Placeholder Opacity
1258
- * @see https://tailwindcss.com/docs/placeholder-opacity
1259
- */
1260
- "placeholder-opacity": [{
1261
- "placeholder-opacity": [opacity]
1262
- }],
1263
- /**
1264
- * Text Alignment
1265
- * @see https://tailwindcss.com/docs/text-align
1266
- */
1267
- "text-alignment": [{
1268
- text: ["left", "center", "right", "justify", "start", "end"]
1269
- }],
1270
- /**
1271
- * Text Color
1272
- * @see https://tailwindcss.com/docs/text-color
1273
- */
1274
- "text-color": [{
1275
- text: [colors]
1276
- }],
1277
- /**
1278
- * Text Opacity
1279
- * @see https://tailwindcss.com/docs/text-opacity
1280
- */
1281
- "text-opacity": [{
1282
- "text-opacity": [opacity]
1283
- }],
1284
- /**
1285
- * Text Decoration
1286
- * @see https://tailwindcss.com/docs/text-decoration
1287
- */
1288
- "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1289
- /**
1290
- * Text Decoration Style
1291
- * @see https://tailwindcss.com/docs/text-decoration-style
1292
- */
1293
- "text-decoration-style": [{
1294
- decoration: [...getLineStyles(), "wavy"]
1295
- }],
1296
- /**
1297
- * Text Decoration Thickness
1298
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1299
- */
1300
- "text-decoration-thickness": [{
1301
- decoration: ["auto", "from-font", isLength, isArbitraryLength]
1302
- }],
1303
- /**
1304
- * Text Underline Offset
1305
- * @see https://tailwindcss.com/docs/text-underline-offset
1306
- */
1307
- "underline-offset": [{
1308
- "underline-offset": ["auto", isLength, isArbitraryValue]
1309
- }],
1310
- /**
1311
- * Text Decoration Color
1312
- * @see https://tailwindcss.com/docs/text-decoration-color
1313
- */
1314
- "text-decoration-color": [{
1315
- decoration: [colors]
1316
- }],
1317
- /**
1318
- * Text Transform
1319
- * @see https://tailwindcss.com/docs/text-transform
1320
- */
1321
- "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1322
- /**
1323
- * Text Overflow
1324
- * @see https://tailwindcss.com/docs/text-overflow
1325
- */
1326
- "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1327
- /**
1328
- * Text Wrap
1329
- * @see https://tailwindcss.com/docs/text-wrap
1330
- */
1331
- "text-wrap": [{
1332
- text: ["wrap", "nowrap", "balance", "pretty"]
1333
- }],
1334
- /**
1335
- * Text Indent
1336
- * @see https://tailwindcss.com/docs/text-indent
1337
- */
1338
- indent: [{
1339
- indent: getSpacingWithArbitrary()
1340
- }],
1341
- /**
1342
- * Vertical Alignment
1343
- * @see https://tailwindcss.com/docs/vertical-align
1344
- */
1345
- "vertical-align": [{
1346
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
1347
- }],
1348
- /**
1349
- * Whitespace
1350
- * @see https://tailwindcss.com/docs/whitespace
1351
- */
1352
- whitespace: [{
1353
- whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1354
- }],
1355
- /**
1356
- * Word Break
1357
- * @see https://tailwindcss.com/docs/word-break
1358
- */
1359
- break: [{
1360
- break: ["normal", "words", "all", "keep"]
1361
- }],
1362
- /**
1363
- * Hyphens
1364
- * @see https://tailwindcss.com/docs/hyphens
1365
- */
1366
- hyphens: [{
1367
- hyphens: ["none", "manual", "auto"]
1368
- }],
1369
- /**
1370
- * Content
1371
- * @see https://tailwindcss.com/docs/content
1372
- */
1373
- content: [{
1374
- content: ["none", isArbitraryValue]
1375
- }],
1376
- // Backgrounds
1377
- /**
1378
- * Background Attachment
1379
- * @see https://tailwindcss.com/docs/background-attachment
1380
- */
1381
- "bg-attachment": [{
1382
- bg: ["fixed", "local", "scroll"]
1383
- }],
1384
- /**
1385
- * Background Clip
1386
- * @see https://tailwindcss.com/docs/background-clip
1387
- */
1388
- "bg-clip": [{
1389
- "bg-clip": ["border", "padding", "content", "text"]
1390
- }],
1391
- /**
1392
- * Background Opacity
1393
- * @deprecated since Tailwind CSS v3.0.0
1394
- * @see https://tailwindcss.com/docs/background-opacity
1395
- */
1396
- "bg-opacity": [{
1397
- "bg-opacity": [opacity]
1398
- }],
1399
- /**
1400
- * Background Origin
1401
- * @see https://tailwindcss.com/docs/background-origin
1402
- */
1403
- "bg-origin": [{
1404
- "bg-origin": ["border", "padding", "content"]
1405
- }],
1406
- /**
1407
- * Background Position
1408
- * @see https://tailwindcss.com/docs/background-position
1409
- */
1410
- "bg-position": [{
1411
- bg: [...getPositions(), isArbitraryPosition]
1412
- }],
1413
- /**
1414
- * Background Repeat
1415
- * @see https://tailwindcss.com/docs/background-repeat
1416
- */
1417
- "bg-repeat": [{
1418
- bg: ["no-repeat", {
1419
- repeat: ["", "x", "y", "round", "space"]
1420
- }]
1421
- }],
1422
- /**
1423
- * Background Size
1424
- * @see https://tailwindcss.com/docs/background-size
1425
- */
1426
- "bg-size": [{
1427
- bg: ["auto", "cover", "contain", isArbitrarySize]
1428
- }],
1429
- /**
1430
- * Background Image
1431
- * @see https://tailwindcss.com/docs/background-image
1432
- */
1433
- "bg-image": [{
1434
- bg: ["none", {
1435
- "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1436
- }, isArbitraryImage]
1437
- }],
1438
- /**
1439
- * Background Color
1440
- * @see https://tailwindcss.com/docs/background-color
1441
- */
1442
- "bg-color": [{
1443
- bg: [colors]
1444
- }],
1445
- /**
1446
- * Gradient Color Stops From Position
1447
- * @see https://tailwindcss.com/docs/gradient-color-stops
1448
- */
1449
- "gradient-from-pos": [{
1450
- from: [gradientColorStopPositions]
1451
- }],
1452
- /**
1453
- * Gradient Color Stops Via Position
1454
- * @see https://tailwindcss.com/docs/gradient-color-stops
1455
- */
1456
- "gradient-via-pos": [{
1457
- via: [gradientColorStopPositions]
1458
- }],
1459
- /**
1460
- * Gradient Color Stops To Position
1461
- * @see https://tailwindcss.com/docs/gradient-color-stops
1462
- */
1463
- "gradient-to-pos": [{
1464
- to: [gradientColorStopPositions]
1465
- }],
1466
- /**
1467
- * Gradient Color Stops From
1468
- * @see https://tailwindcss.com/docs/gradient-color-stops
1469
- */
1470
- "gradient-from": [{
1471
- from: [gradientColorStops]
1472
- }],
1473
- /**
1474
- * Gradient Color Stops Via
1475
- * @see https://tailwindcss.com/docs/gradient-color-stops
1476
- */
1477
- "gradient-via": [{
1478
- via: [gradientColorStops]
1479
- }],
1480
- /**
1481
- * Gradient Color Stops To
1482
- * @see https://tailwindcss.com/docs/gradient-color-stops
1483
- */
1484
- "gradient-to": [{
1485
- to: [gradientColorStops]
1486
- }],
1487
- // Borders
1488
- /**
1489
- * Border Radius
1490
- * @see https://tailwindcss.com/docs/border-radius
1491
- */
1492
- rounded: [{
1493
- rounded: [borderRadius]
1494
- }],
1495
- /**
1496
- * Border Radius Start
1497
- * @see https://tailwindcss.com/docs/border-radius
1498
- */
1499
- "rounded-s": [{
1500
- "rounded-s": [borderRadius]
1501
- }],
1502
- /**
1503
- * Border Radius End
1504
- * @see https://tailwindcss.com/docs/border-radius
1505
- */
1506
- "rounded-e": [{
1507
- "rounded-e": [borderRadius]
1508
- }],
1509
- /**
1510
- * Border Radius Top
1511
- * @see https://tailwindcss.com/docs/border-radius
1512
- */
1513
- "rounded-t": [{
1514
- "rounded-t": [borderRadius]
1515
- }],
1516
- /**
1517
- * Border Radius Right
1518
- * @see https://tailwindcss.com/docs/border-radius
1519
- */
1520
- "rounded-r": [{
1521
- "rounded-r": [borderRadius]
1522
- }],
1523
- /**
1524
- * Border Radius Bottom
1525
- * @see https://tailwindcss.com/docs/border-radius
1526
- */
1527
- "rounded-b": [{
1528
- "rounded-b": [borderRadius]
1529
- }],
1530
- /**
1531
- * Border Radius Left
1532
- * @see https://tailwindcss.com/docs/border-radius
1533
- */
1534
- "rounded-l": [{
1535
- "rounded-l": [borderRadius]
1536
- }],
1537
- /**
1538
- * Border Radius Start Start
1539
- * @see https://tailwindcss.com/docs/border-radius
1540
- */
1541
- "rounded-ss": [{
1542
- "rounded-ss": [borderRadius]
1543
- }],
1544
- /**
1545
- * Border Radius Start End
1546
- * @see https://tailwindcss.com/docs/border-radius
1547
- */
1548
- "rounded-se": [{
1549
- "rounded-se": [borderRadius]
1550
- }],
1551
- /**
1552
- * Border Radius End End
1553
- * @see https://tailwindcss.com/docs/border-radius
1554
- */
1555
- "rounded-ee": [{
1556
- "rounded-ee": [borderRadius]
1557
- }],
1558
- /**
1559
- * Border Radius End Start
1560
- * @see https://tailwindcss.com/docs/border-radius
1561
- */
1562
- "rounded-es": [{
1563
- "rounded-es": [borderRadius]
1564
- }],
1565
- /**
1566
- * Border Radius Top Left
1567
- * @see https://tailwindcss.com/docs/border-radius
1568
- */
1569
- "rounded-tl": [{
1570
- "rounded-tl": [borderRadius]
1571
- }],
1572
- /**
1573
- * Border Radius Top Right
1574
- * @see https://tailwindcss.com/docs/border-radius
1575
- */
1576
- "rounded-tr": [{
1577
- "rounded-tr": [borderRadius]
1578
- }],
1579
- /**
1580
- * Border Radius Bottom Right
1581
- * @see https://tailwindcss.com/docs/border-radius
1582
- */
1583
- "rounded-br": [{
1584
- "rounded-br": [borderRadius]
1585
- }],
1586
- /**
1587
- * Border Radius Bottom Left
1588
- * @see https://tailwindcss.com/docs/border-radius
1589
- */
1590
- "rounded-bl": [{
1591
- "rounded-bl": [borderRadius]
1592
- }],
1593
- /**
1594
- * Border Width
1595
- * @see https://tailwindcss.com/docs/border-width
1596
- */
1597
- "border-w": [{
1598
- border: [borderWidth]
1599
- }],
1600
- /**
1601
- * Border Width X
1602
- * @see https://tailwindcss.com/docs/border-width
1603
- */
1604
- "border-w-x": [{
1605
- "border-x": [borderWidth]
1606
- }],
1607
- /**
1608
- * Border Width Y
1609
- * @see https://tailwindcss.com/docs/border-width
1610
- */
1611
- "border-w-y": [{
1612
- "border-y": [borderWidth]
1613
- }],
1614
- /**
1615
- * Border Width Start
1616
- * @see https://tailwindcss.com/docs/border-width
1617
- */
1618
- "border-w-s": [{
1619
- "border-s": [borderWidth]
1620
- }],
1621
- /**
1622
- * Border Width End
1623
- * @see https://tailwindcss.com/docs/border-width
1624
- */
1625
- "border-w-e": [{
1626
- "border-e": [borderWidth]
1627
- }],
1628
- /**
1629
- * Border Width Top
1630
- * @see https://tailwindcss.com/docs/border-width
1631
- */
1632
- "border-w-t": [{
1633
- "border-t": [borderWidth]
1634
- }],
1635
- /**
1636
- * Border Width Right
1637
- * @see https://tailwindcss.com/docs/border-width
1638
- */
1639
- "border-w-r": [{
1640
- "border-r": [borderWidth]
1641
- }],
1642
- /**
1643
- * Border Width Bottom
1644
- * @see https://tailwindcss.com/docs/border-width
1645
- */
1646
- "border-w-b": [{
1647
- "border-b": [borderWidth]
1648
- }],
1649
- /**
1650
- * Border Width Left
1651
- * @see https://tailwindcss.com/docs/border-width
1652
- */
1653
- "border-w-l": [{
1654
- "border-l": [borderWidth]
1655
- }],
1656
- /**
1657
- * Border Opacity
1658
- * @see https://tailwindcss.com/docs/border-opacity
1659
- */
1660
- "border-opacity": [{
1661
- "border-opacity": [opacity]
1662
- }],
1663
- /**
1664
- * Border Style
1665
- * @see https://tailwindcss.com/docs/border-style
1666
- */
1667
- "border-style": [{
1668
- border: [...getLineStyles(), "hidden"]
1669
- }],
1670
- /**
1671
- * Divide Width X
1672
- * @see https://tailwindcss.com/docs/divide-width
1673
- */
1674
- "divide-x": [{
1675
- "divide-x": [borderWidth]
1676
- }],
1677
- /**
1678
- * Divide Width X Reverse
1679
- * @see https://tailwindcss.com/docs/divide-width
1680
- */
1681
- "divide-x-reverse": ["divide-x-reverse"],
1682
- /**
1683
- * Divide Width Y
1684
- * @see https://tailwindcss.com/docs/divide-width
1685
- */
1686
- "divide-y": [{
1687
- "divide-y": [borderWidth]
1688
- }],
1689
- /**
1690
- * Divide Width Y Reverse
1691
- * @see https://tailwindcss.com/docs/divide-width
1692
- */
1693
- "divide-y-reverse": ["divide-y-reverse"],
1694
- /**
1695
- * Divide Opacity
1696
- * @see https://tailwindcss.com/docs/divide-opacity
1697
- */
1698
- "divide-opacity": [{
1699
- "divide-opacity": [opacity]
1700
- }],
1701
- /**
1702
- * Divide Style
1703
- * @see https://tailwindcss.com/docs/divide-style
1704
- */
1705
- "divide-style": [{
1706
- divide: getLineStyles()
1707
- }],
1708
- /**
1709
- * Border Color
1710
- * @see https://tailwindcss.com/docs/border-color
1711
- */
1712
- "border-color": [{
1713
- border: [borderColor]
1714
- }],
1715
- /**
1716
- * Border Color X
1717
- * @see https://tailwindcss.com/docs/border-color
1718
- */
1719
- "border-color-x": [{
1720
- "border-x": [borderColor]
1721
- }],
1722
- /**
1723
- * Border Color Y
1724
- * @see https://tailwindcss.com/docs/border-color
1725
- */
1726
- "border-color-y": [{
1727
- "border-y": [borderColor]
1728
- }],
1729
- /**
1730
- * Border Color S
1731
- * @see https://tailwindcss.com/docs/border-color
1732
- */
1733
- "border-color-s": [{
1734
- "border-s": [borderColor]
1735
- }],
1736
- /**
1737
- * Border Color E
1738
- * @see https://tailwindcss.com/docs/border-color
1739
- */
1740
- "border-color-e": [{
1741
- "border-e": [borderColor]
1742
- }],
1743
- /**
1744
- * Border Color Top
1745
- * @see https://tailwindcss.com/docs/border-color
1746
- */
1747
- "border-color-t": [{
1748
- "border-t": [borderColor]
1749
- }],
1750
- /**
1751
- * Border Color Right
1752
- * @see https://tailwindcss.com/docs/border-color
1753
- */
1754
- "border-color-r": [{
1755
- "border-r": [borderColor]
1756
- }],
1757
- /**
1758
- * Border Color Bottom
1759
- * @see https://tailwindcss.com/docs/border-color
1760
- */
1761
- "border-color-b": [{
1762
- "border-b": [borderColor]
1763
- }],
1764
- /**
1765
- * Border Color Left
1766
- * @see https://tailwindcss.com/docs/border-color
1767
- */
1768
- "border-color-l": [{
1769
- "border-l": [borderColor]
1770
- }],
1771
- /**
1772
- * Divide Color
1773
- * @see https://tailwindcss.com/docs/divide-color
1774
- */
1775
- "divide-color": [{
1776
- divide: [borderColor]
1777
- }],
1778
- /**
1779
- * Outline Style
1780
- * @see https://tailwindcss.com/docs/outline-style
1781
- */
1782
- "outline-style": [{
1783
- outline: ["", ...getLineStyles()]
1784
- }],
1785
- /**
1786
- * Outline Offset
1787
- * @see https://tailwindcss.com/docs/outline-offset
1788
- */
1789
- "outline-offset": [{
1790
- "outline-offset": [isLength, isArbitraryValue]
1791
- }],
1792
- /**
1793
- * Outline Width
1794
- * @see https://tailwindcss.com/docs/outline-width
1795
- */
1796
- "outline-w": [{
1797
- outline: [isLength, isArbitraryLength]
1798
- }],
1799
- /**
1800
- * Outline Color
1801
- * @see https://tailwindcss.com/docs/outline-color
1802
- */
1803
- "outline-color": [{
1804
- outline: [colors]
1805
- }],
1806
- /**
1807
- * Ring Width
1808
- * @see https://tailwindcss.com/docs/ring-width
1809
- */
1810
- "ring-w": [{
1811
- ring: getLengthWithEmptyAndArbitrary()
1812
- }],
1813
- /**
1814
- * Ring Width Inset
1815
- * @see https://tailwindcss.com/docs/ring-width
1816
- */
1817
- "ring-w-inset": ["ring-inset"],
1818
- /**
1819
- * Ring Color
1820
- * @see https://tailwindcss.com/docs/ring-color
1821
- */
1822
- "ring-color": [{
1823
- ring: [colors]
1824
- }],
1825
- /**
1826
- * Ring Opacity
1827
- * @see https://tailwindcss.com/docs/ring-opacity
1828
- */
1829
- "ring-opacity": [{
1830
- "ring-opacity": [opacity]
1831
- }],
1832
- /**
1833
- * Ring Offset Width
1834
- * @see https://tailwindcss.com/docs/ring-offset-width
1835
- */
1836
- "ring-offset-w": [{
1837
- "ring-offset": [isLength, isArbitraryLength]
1838
- }],
1839
- /**
1840
- * Ring Offset Color
1841
- * @see https://tailwindcss.com/docs/ring-offset-color
1842
- */
1843
- "ring-offset-color": [{
1844
- "ring-offset": [colors]
1845
- }],
1846
- // Effects
1847
- /**
1848
- * Box Shadow
1849
- * @see https://tailwindcss.com/docs/box-shadow
1850
- */
1851
- shadow: [{
1852
- shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
1853
- }],
1854
- /**
1855
- * Box Shadow Color
1856
- * @see https://tailwindcss.com/docs/box-shadow-color
1857
- */
1858
- "shadow-color": [{
1859
- shadow: [isAny]
1860
- }],
1861
- /**
1862
- * Opacity
1863
- * @see https://tailwindcss.com/docs/opacity
1864
- */
1865
- opacity: [{
1866
- opacity: [opacity]
1867
- }],
1868
- /**
1869
- * Mix Blend Mode
1870
- * @see https://tailwindcss.com/docs/mix-blend-mode
1871
- */
1872
- "mix-blend": [{
1873
- "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
1874
- }],
1875
- /**
1876
- * Background Blend Mode
1877
- * @see https://tailwindcss.com/docs/background-blend-mode
1878
- */
1879
- "bg-blend": [{
1880
- "bg-blend": getBlendModes()
1881
- }],
1882
- // Filters
1883
- /**
1884
- * Filter
1885
- * @deprecated since Tailwind CSS v3.0.0
1886
- * @see https://tailwindcss.com/docs/filter
1887
- */
1888
- filter: [{
1889
- filter: ["", "none"]
1890
- }],
1891
- /**
1892
- * Blur
1893
- * @see https://tailwindcss.com/docs/blur
1894
- */
1895
- blur: [{
1896
- blur: [blur]
1897
- }],
1898
- /**
1899
- * Brightness
1900
- * @see https://tailwindcss.com/docs/brightness
1901
- */
1902
- brightness: [{
1903
- brightness: [brightness]
1904
- }],
1905
- /**
1906
- * Contrast
1907
- * @see https://tailwindcss.com/docs/contrast
1908
- */
1909
- contrast: [{
1910
- contrast: [contrast]
1911
- }],
1912
- /**
1913
- * Drop Shadow
1914
- * @see https://tailwindcss.com/docs/drop-shadow
1915
- */
1916
- "drop-shadow": [{
1917
- "drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
1918
- }],
1919
- /**
1920
- * Grayscale
1921
- * @see https://tailwindcss.com/docs/grayscale
1922
- */
1923
- grayscale: [{
1924
- grayscale: [grayscale]
1925
- }],
1926
- /**
1927
- * Hue Rotate
1928
- * @see https://tailwindcss.com/docs/hue-rotate
1929
- */
1930
- "hue-rotate": [{
1931
- "hue-rotate": [hueRotate]
1932
- }],
1933
- /**
1934
- * Invert
1935
- * @see https://tailwindcss.com/docs/invert
1936
- */
1937
- invert: [{
1938
- invert: [invert]
1939
- }],
1940
- /**
1941
- * Saturate
1942
- * @see https://tailwindcss.com/docs/saturate
1943
- */
1944
- saturate: [{
1945
- saturate: [saturate]
1946
- }],
1947
- /**
1948
- * Sepia
1949
- * @see https://tailwindcss.com/docs/sepia
1950
- */
1951
- sepia: [{
1952
- sepia: [sepia]
1953
- }],
1954
- /**
1955
- * Backdrop Filter
1956
- * @deprecated since Tailwind CSS v3.0.0
1957
- * @see https://tailwindcss.com/docs/backdrop-filter
1958
- */
1959
- "backdrop-filter": [{
1960
- "backdrop-filter": ["", "none"]
1961
- }],
1962
- /**
1963
- * Backdrop Blur
1964
- * @see https://tailwindcss.com/docs/backdrop-blur
1965
- */
1966
- "backdrop-blur": [{
1967
- "backdrop-blur": [blur]
1968
- }],
1969
- /**
1970
- * Backdrop Brightness
1971
- * @see https://tailwindcss.com/docs/backdrop-brightness
1972
- */
1973
- "backdrop-brightness": [{
1974
- "backdrop-brightness": [brightness]
1975
- }],
1976
- /**
1977
- * Backdrop Contrast
1978
- * @see https://tailwindcss.com/docs/backdrop-contrast
1979
- */
1980
- "backdrop-contrast": [{
1981
- "backdrop-contrast": [contrast]
1982
- }],
1983
- /**
1984
- * Backdrop Grayscale
1985
- * @see https://tailwindcss.com/docs/backdrop-grayscale
1986
- */
1987
- "backdrop-grayscale": [{
1988
- "backdrop-grayscale": [grayscale]
1989
- }],
1990
- /**
1991
- * Backdrop Hue Rotate
1992
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1993
- */
1994
- "backdrop-hue-rotate": [{
1995
- "backdrop-hue-rotate": [hueRotate]
1996
- }],
1997
- /**
1998
- * Backdrop Invert
1999
- * @see https://tailwindcss.com/docs/backdrop-invert
2000
- */
2001
- "backdrop-invert": [{
2002
- "backdrop-invert": [invert]
2003
- }],
2004
- /**
2005
- * Backdrop Opacity
2006
- * @see https://tailwindcss.com/docs/backdrop-opacity
2007
- */
2008
- "backdrop-opacity": [{
2009
- "backdrop-opacity": [opacity]
2010
- }],
2011
- /**
2012
- * Backdrop Saturate
2013
- * @see https://tailwindcss.com/docs/backdrop-saturate
2014
- */
2015
- "backdrop-saturate": [{
2016
- "backdrop-saturate": [saturate]
2017
- }],
2018
- /**
2019
- * Backdrop Sepia
2020
- * @see https://tailwindcss.com/docs/backdrop-sepia
2021
- */
2022
- "backdrop-sepia": [{
2023
- "backdrop-sepia": [sepia]
2024
- }],
2025
- // Tables
2026
- /**
2027
- * Border Collapse
2028
- * @see https://tailwindcss.com/docs/border-collapse
2029
- */
2030
- "border-collapse": [{
2031
- border: ["collapse", "separate"]
2032
- }],
2033
- /**
2034
- * Border Spacing
2035
- * @see https://tailwindcss.com/docs/border-spacing
2036
- */
2037
- "border-spacing": [{
2038
- "border-spacing": [borderSpacing]
2039
- }],
2040
- /**
2041
- * Border Spacing X
2042
- * @see https://tailwindcss.com/docs/border-spacing
2043
- */
2044
- "border-spacing-x": [{
2045
- "border-spacing-x": [borderSpacing]
2046
- }],
2047
- /**
2048
- * Border Spacing Y
2049
- * @see https://tailwindcss.com/docs/border-spacing
2050
- */
2051
- "border-spacing-y": [{
2052
- "border-spacing-y": [borderSpacing]
2053
- }],
2054
- /**
2055
- * Table Layout
2056
- * @see https://tailwindcss.com/docs/table-layout
2057
- */
2058
- "table-layout": [{
2059
- table: ["auto", "fixed"]
2060
- }],
2061
- /**
2062
- * Caption Side
2063
- * @see https://tailwindcss.com/docs/caption-side
2064
- */
2065
- caption: [{
2066
- caption: ["top", "bottom"]
2067
- }],
2068
- // Transitions and Animation
2069
- /**
2070
- * Tranisition Property
2071
- * @see https://tailwindcss.com/docs/transition-property
2072
- */
2073
- transition: [{
2074
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
2075
- }],
2076
- /**
2077
- * Transition Duration
2078
- * @see https://tailwindcss.com/docs/transition-duration
2079
- */
2080
- duration: [{
2081
- duration: getNumberAndArbitrary()
2082
- }],
2083
- /**
2084
- * Transition Timing Function
2085
- * @see https://tailwindcss.com/docs/transition-timing-function
2086
- */
2087
- ease: [{
2088
- ease: ["linear", "in", "out", "in-out", isArbitraryValue]
2089
- }],
2090
- /**
2091
- * Transition Delay
2092
- * @see https://tailwindcss.com/docs/transition-delay
2093
- */
2094
- delay: [{
2095
- delay: getNumberAndArbitrary()
2096
- }],
2097
- /**
2098
- * Animation
2099
- * @see https://tailwindcss.com/docs/animation
2100
- */
2101
- animate: [{
2102
- animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
2103
- }],
2104
- // Transforms
2105
- /**
2106
- * Transform
2107
- * @see https://tailwindcss.com/docs/transform
2108
- */
2109
- transform: [{
2110
- transform: ["", "gpu", "none"]
2111
- }],
2112
- /**
2113
- * Scale
2114
- * @see https://tailwindcss.com/docs/scale
2115
- */
2116
- scale: [{
2117
- scale: [scale]
2118
- }],
2119
- /**
2120
- * Scale X
2121
- * @see https://tailwindcss.com/docs/scale
2122
- */
2123
- "scale-x": [{
2124
- "scale-x": [scale]
2125
- }],
2126
- /**
2127
- * Scale Y
2128
- * @see https://tailwindcss.com/docs/scale
2129
- */
2130
- "scale-y": [{
2131
- "scale-y": [scale]
2132
- }],
2133
- /**
2134
- * Rotate
2135
- * @see https://tailwindcss.com/docs/rotate
2136
- */
2137
- rotate: [{
2138
- rotate: [isInteger, isArbitraryValue]
2139
- }],
2140
- /**
2141
- * Translate X
2142
- * @see https://tailwindcss.com/docs/translate
2143
- */
2144
- "translate-x": [{
2145
- "translate-x": [translate]
2146
- }],
2147
- /**
2148
- * Translate Y
2149
- * @see https://tailwindcss.com/docs/translate
2150
- */
2151
- "translate-y": [{
2152
- "translate-y": [translate]
2153
- }],
2154
- /**
2155
- * Skew X
2156
- * @see https://tailwindcss.com/docs/skew
2157
- */
2158
- "skew-x": [{
2159
- "skew-x": [skew]
2160
- }],
2161
- /**
2162
- * Skew Y
2163
- * @see https://tailwindcss.com/docs/skew
2164
- */
2165
- "skew-y": [{
2166
- "skew-y": [skew]
2167
- }],
2168
- /**
2169
- * Transform Origin
2170
- * @see https://tailwindcss.com/docs/transform-origin
2171
- */
2172
- "transform-origin": [{
2173
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
2174
- }],
2175
- // Interactivity
2176
- /**
2177
- * Accent Color
2178
- * @see https://tailwindcss.com/docs/accent-color
2179
- */
2180
- accent: [{
2181
- accent: ["auto", colors]
2182
- }],
2183
- /**
2184
- * Appearance
2185
- * @see https://tailwindcss.com/docs/appearance
2186
- */
2187
- appearance: [{
2188
- appearance: ["none", "auto"]
2189
- }],
2190
- /**
2191
- * Cursor
2192
- * @see https://tailwindcss.com/docs/cursor
2193
- */
2194
- cursor: [{
2195
- 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]
2196
- }],
2197
- /**
2198
- * Caret Color
2199
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2200
- */
2201
- "caret-color": [{
2202
- caret: [colors]
2203
- }],
2204
- /**
2205
- * Pointer Events
2206
- * @see https://tailwindcss.com/docs/pointer-events
2207
- */
2208
- "pointer-events": [{
2209
- "pointer-events": ["none", "auto"]
2210
- }],
2211
- /**
2212
- * Resize
2213
- * @see https://tailwindcss.com/docs/resize
2214
- */
2215
- resize: [{
2216
- resize: ["none", "y", "x", ""]
2217
- }],
2218
- /**
2219
- * Scroll Behavior
2220
- * @see https://tailwindcss.com/docs/scroll-behavior
2221
- */
2222
- "scroll-behavior": [{
2223
- scroll: ["auto", "smooth"]
2224
- }],
2225
- /**
2226
- * Scroll Margin
2227
- * @see https://tailwindcss.com/docs/scroll-margin
2228
- */
2229
- "scroll-m": [{
2230
- "scroll-m": getSpacingWithArbitrary()
2231
- }],
2232
- /**
2233
- * Scroll Margin X
2234
- * @see https://tailwindcss.com/docs/scroll-margin
2235
- */
2236
- "scroll-mx": [{
2237
- "scroll-mx": getSpacingWithArbitrary()
2238
- }],
2239
- /**
2240
- * Scroll Margin Y
2241
- * @see https://tailwindcss.com/docs/scroll-margin
2242
- */
2243
- "scroll-my": [{
2244
- "scroll-my": getSpacingWithArbitrary()
2245
- }],
2246
- /**
2247
- * Scroll Margin Start
2248
- * @see https://tailwindcss.com/docs/scroll-margin
2249
- */
2250
- "scroll-ms": [{
2251
- "scroll-ms": getSpacingWithArbitrary()
2252
- }],
2253
- /**
2254
- * Scroll Margin End
2255
- * @see https://tailwindcss.com/docs/scroll-margin
2256
- */
2257
- "scroll-me": [{
2258
- "scroll-me": getSpacingWithArbitrary()
2259
- }],
2260
- /**
2261
- * Scroll Margin Top
2262
- * @see https://tailwindcss.com/docs/scroll-margin
2263
- */
2264
- "scroll-mt": [{
2265
- "scroll-mt": getSpacingWithArbitrary()
2266
- }],
2267
- /**
2268
- * Scroll Margin Right
2269
- * @see https://tailwindcss.com/docs/scroll-margin
2270
- */
2271
- "scroll-mr": [{
2272
- "scroll-mr": getSpacingWithArbitrary()
2273
- }],
2274
- /**
2275
- * Scroll Margin Bottom
2276
- * @see https://tailwindcss.com/docs/scroll-margin
2277
- */
2278
- "scroll-mb": [{
2279
- "scroll-mb": getSpacingWithArbitrary()
2280
- }],
2281
- /**
2282
- * Scroll Margin Left
2283
- * @see https://tailwindcss.com/docs/scroll-margin
2284
- */
2285
- "scroll-ml": [{
2286
- "scroll-ml": getSpacingWithArbitrary()
2287
- }],
2288
- /**
2289
- * Scroll Padding
2290
- * @see https://tailwindcss.com/docs/scroll-padding
2291
- */
2292
- "scroll-p": [{
2293
- "scroll-p": getSpacingWithArbitrary()
2294
- }],
2295
- /**
2296
- * Scroll Padding X
2297
- * @see https://tailwindcss.com/docs/scroll-padding
2298
- */
2299
- "scroll-px": [{
2300
- "scroll-px": getSpacingWithArbitrary()
2301
- }],
2302
- /**
2303
- * Scroll Padding Y
2304
- * @see https://tailwindcss.com/docs/scroll-padding
2305
- */
2306
- "scroll-py": [{
2307
- "scroll-py": getSpacingWithArbitrary()
2308
- }],
2309
- /**
2310
- * Scroll Padding Start
2311
- * @see https://tailwindcss.com/docs/scroll-padding
2312
- */
2313
- "scroll-ps": [{
2314
- "scroll-ps": getSpacingWithArbitrary()
2315
- }],
2316
- /**
2317
- * Scroll Padding End
2318
- * @see https://tailwindcss.com/docs/scroll-padding
2319
- */
2320
- "scroll-pe": [{
2321
- "scroll-pe": getSpacingWithArbitrary()
2322
- }],
2323
- /**
2324
- * Scroll Padding Top
2325
- * @see https://tailwindcss.com/docs/scroll-padding
2326
- */
2327
- "scroll-pt": [{
2328
- "scroll-pt": getSpacingWithArbitrary()
2329
- }],
2330
- /**
2331
- * Scroll Padding Right
2332
- * @see https://tailwindcss.com/docs/scroll-padding
2333
- */
2334
- "scroll-pr": [{
2335
- "scroll-pr": getSpacingWithArbitrary()
2336
- }],
2337
- /**
2338
- * Scroll Padding Bottom
2339
- * @see https://tailwindcss.com/docs/scroll-padding
2340
- */
2341
- "scroll-pb": [{
2342
- "scroll-pb": getSpacingWithArbitrary()
2343
- }],
2344
- /**
2345
- * Scroll Padding Left
2346
- * @see https://tailwindcss.com/docs/scroll-padding
2347
- */
2348
- "scroll-pl": [{
2349
- "scroll-pl": getSpacingWithArbitrary()
2350
- }],
2351
- /**
2352
- * Scroll Snap Align
2353
- * @see https://tailwindcss.com/docs/scroll-snap-align
2354
- */
2355
- "snap-align": [{
2356
- snap: ["start", "end", "center", "align-none"]
2357
- }],
2358
- /**
2359
- * Scroll Snap Stop
2360
- * @see https://tailwindcss.com/docs/scroll-snap-stop
2361
- */
2362
- "snap-stop": [{
2363
- snap: ["normal", "always"]
2364
- }],
2365
- /**
2366
- * Scroll Snap Type
2367
- * @see https://tailwindcss.com/docs/scroll-snap-type
2368
- */
2369
- "snap-type": [{
2370
- snap: ["none", "x", "y", "both"]
2371
- }],
2372
- /**
2373
- * Scroll Snap Type Strictness
2374
- * @see https://tailwindcss.com/docs/scroll-snap-type
2375
- */
2376
- "snap-strictness": [{
2377
- snap: ["mandatory", "proximity"]
2378
- }],
2379
- /**
2380
- * Touch Action
2381
- * @see https://tailwindcss.com/docs/touch-action
2382
- */
2383
- touch: [{
2384
- touch: ["auto", "none", "manipulation"]
2385
- }],
2386
- /**
2387
- * Touch Action X
2388
- * @see https://tailwindcss.com/docs/touch-action
2389
- */
2390
- "touch-x": [{
2391
- "touch-pan": ["x", "left", "right"]
2392
- }],
2393
- /**
2394
- * Touch Action Y
2395
- * @see https://tailwindcss.com/docs/touch-action
2396
- */
2397
- "touch-y": [{
2398
- "touch-pan": ["y", "up", "down"]
2399
- }],
2400
- /**
2401
- * Touch Action Pinch Zoom
2402
- * @see https://tailwindcss.com/docs/touch-action
2403
- */
2404
- "touch-pz": ["touch-pinch-zoom"],
2405
- /**
2406
- * User Select
2407
- * @see https://tailwindcss.com/docs/user-select
2408
- */
2409
- select: [{
2410
- select: ["none", "text", "all", "auto"]
2411
- }],
2412
- /**
2413
- * Will Change
2414
- * @see https://tailwindcss.com/docs/will-change
2415
- */
2416
- "will-change": [{
2417
- "will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
2418
- }],
2419
- // SVG
2420
- /**
2421
- * Fill
2422
- * @see https://tailwindcss.com/docs/fill
2423
- */
2424
- fill: [{
2425
- fill: [colors, "none"]
2426
- }],
2427
- /**
2428
- * Stroke Width
2429
- * @see https://tailwindcss.com/docs/stroke-width
2430
- */
2431
- "stroke-w": [{
2432
- stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2433
- }],
2434
- /**
2435
- * Stroke
2436
- * @see https://tailwindcss.com/docs/stroke
2437
- */
2438
- stroke: [{
2439
- stroke: [colors, "none"]
2440
- }],
2441
- // Accessibility
2442
- /**
2443
- * Screen Readers
2444
- * @see https://tailwindcss.com/docs/screen-readers
2445
- */
2446
- sr: ["sr-only", "not-sr-only"],
2447
- /**
2448
- * Forced Color Adjust
2449
- * @see https://tailwindcss.com/docs/forced-color-adjust
2450
- */
2451
- "forced-color-adjust": [{
2452
- "forced-color-adjust": ["auto", "none"]
2453
- }]
2454
- },
2455
- conflictingClassGroups: {
2456
- overflow: ["overflow-x", "overflow-y"],
2457
- overscroll: ["overscroll-x", "overscroll-y"],
2458
- inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
2459
- "inset-x": ["right", "left"],
2460
- "inset-y": ["top", "bottom"],
2461
- flex: ["basis", "grow", "shrink"],
2462
- gap: ["gap-x", "gap-y"],
2463
- p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
2464
- px: ["pr", "pl"],
2465
- py: ["pt", "pb"],
2466
- m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2467
- mx: ["mr", "ml"],
2468
- my: ["mt", "mb"],
2469
- size: ["w", "h"],
2470
- "font-size": ["leading"],
2471
- "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2472
- "fvn-ordinal": ["fvn-normal"],
2473
- "fvn-slashed-zero": ["fvn-normal"],
2474
- "fvn-figure": ["fvn-normal"],
2475
- "fvn-spacing": ["fvn-normal"],
2476
- "fvn-fraction": ["fvn-normal"],
2477
- "line-clamp": ["display", "overflow"],
2478
- 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"],
2479
- "rounded-s": ["rounded-ss", "rounded-es"],
2480
- "rounded-e": ["rounded-se", "rounded-ee"],
2481
- "rounded-t": ["rounded-tl", "rounded-tr"],
2482
- "rounded-r": ["rounded-tr", "rounded-br"],
2483
- "rounded-b": ["rounded-br", "rounded-bl"],
2484
- "rounded-l": ["rounded-tl", "rounded-bl"],
2485
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
2486
- "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2487
- "border-w-x": ["border-w-r", "border-w-l"],
2488
- "border-w-y": ["border-w-t", "border-w-b"],
2489
- "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2490
- "border-color-x": ["border-color-r", "border-color-l"],
2491
- "border-color-y": ["border-color-t", "border-color-b"],
2492
- "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
2493
- "scroll-mx": ["scroll-mr", "scroll-ml"],
2494
- "scroll-my": ["scroll-mt", "scroll-mb"],
2495
- "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2496
- "scroll-px": ["scroll-pr", "scroll-pl"],
2497
- "scroll-py": ["scroll-pt", "scroll-pb"],
2498
- touch: ["touch-x", "touch-y", "touch-pz"],
2499
- "touch-x": ["touch"],
2500
- "touch-y": ["touch"],
2501
- "touch-pz": ["touch"]
2502
- },
2503
- conflictingClassGroupModifiers: {
2504
- "font-size": ["leading"]
2505
- }
2506
- };
2507
- };
2508
- var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2509
-
2510
- // src/utils/cn.ts
2511
- function cn(...inputs) {
2512
- return twMerge((0, import_clsx.clsx)(inputs));
2513
- }
2514
-
2515
- // src/components/ui/badge.tsx
2516
- var import_jsx_runtime = require("react/jsx-runtime");
2517
- var badgeVariants = (0, import_class_variance_authority.cva)(
2518
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
2519
- {
2520
- variants: {
2521
- variant: {
2522
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
2523
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
2524
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
2525
- outline: "text-foreground"
2526
- }
2527
- },
2528
- defaultVariants: {
2529
- variant: "default"
2530
- }
2531
- }
2532
- );
2533
- function Badge({ className, variant, ...props }) {
2534
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
2535
- }
2536
-
2537
- // src/components/ui/button.tsx
2538
- var import_react_slot = require("@radix-ui/react-slot");
2539
- var import_class_variance_authority2 = require("class-variance-authority");
2540
- var React = __toESM(require("react"));
2541
- var import_jsx_runtime2 = require("react/jsx-runtime");
2542
- var buttonVariants = (0, import_class_variance_authority2.cva)(
2543
- "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",
2544
- {
2545
- defaultVariants: {
2546
- size: "default",
2547
- variant: "default"
2548
- },
2549
- variants: {
2550
- size: {
2551
- clear: "",
2552
- default: "h-10 px-4 py-2",
2553
- icon: "h-10 w-10",
2554
- lg: "h-11 rounded px-8",
2555
- sm: "h-9 rounded px-3"
2556
- },
2557
- variant: {
2558
- default: "bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",
2559
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
2560
- ghost: "hover:bg-card hover:text-accent",
2561
- link: "text-primary items-start justify-start underline-offset-4 hover:underline",
2562
- outline: "border border-border bg-background hover:bg-card hover:text-accent",
2563
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent"
2564
- }
2565
- }
2566
- }
2567
- );
2568
- var Button = React.forwardRef(
2569
- ({ asChild = false, className, size, variant, ...props }, ref) => {
2570
- const Comp = asChild ? import_react_slot.Slot : "button";
2571
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Comp, { className: cn(buttonVariants({ className, size, variant })), ref, ...props });
2572
- }
2573
- );
2574
- Button.displayName = "Button";
2575
-
2576
- // src/components/ui/card.tsx
2577
- var React2 = __toESM(require("react"));
2578
- var import_jsx_runtime3 = require("react/jsx-runtime");
2579
- var Card = React2.forwardRef(
2580
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2581
- "div",
2582
- {
2583
- ref,
2584
- className: cn("rounded-xl border bg-card text-card-foreground shadow", className),
2585
- ...props
2586
- }
2587
- )
2588
- );
2589
- Card.displayName = "Card";
2590
- var CardHeader = React2.forwardRef(
2591
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
2592
- );
2593
- CardHeader.displayName = "CardHeader";
2594
- var CardTitle = React2.forwardRef(
2595
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2596
- "div",
2597
- {
2598
- ref,
2599
- className: cn("font-semibold leading-none tracking-tight", className),
2600
- ...props
2601
- }
2602
- )
2603
- );
2604
- CardTitle.displayName = "CardTitle";
2605
- var CardDescription = React2.forwardRef(
2606
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
2607
- );
2608
- CardDescription.displayName = "CardDescription";
2609
- var CardContent = React2.forwardRef(
2610
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
2611
- );
2612
- CardContent.displayName = "CardContent";
2613
- var CardFooter = React2.forwardRef(
2614
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
2615
- );
2616
- CardFooter.displayName = "CardFooter";
2617
-
2618
- // src/components/ui/input.tsx
2619
- var React3 = __toESM(require("react"));
2620
- var import_jsx_runtime4 = require("react/jsx-runtime");
2621
- var Input = React3.forwardRef(
2622
- ({ className, type, ...props }, ref) => {
2623
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2624
- "input",
2625
- {
2626
- type,
2627
- className: cn(
2628
- "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",
2629
- className
2630
- ),
2631
- ref,
2632
- ...props
2633
- }
2634
- );
2635
- }
2636
- );
2637
- Input.displayName = "Input";
2638
-
2639
- // src/components/ui/label.tsx
2640
- var React4 = __toESM(require("react"));
2641
- var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
2642
- var import_class_variance_authority3 = require("class-variance-authority");
2643
- var import_jsx_runtime5 = require("react/jsx-runtime");
2644
- var labelVariants = (0, import_class_variance_authority3.cva)(
2645
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2646
- );
2647
- var Label = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
2648
- Label.displayName = LabelPrimitive.Root.displayName;
2649
-
2650
- // src/components/ui/scroll-area.tsx
2651
- var React5 = __toESM(require("react"));
2652
- var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
2653
- var import_jsx_runtime6 = require("react/jsx-runtime");
2654
- var ScrollArea = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2655
- ScrollAreaPrimitive.Root,
2656
- {
2657
- ref,
2658
- className: cn("relative overflow-hidden", className),
2659
- ...props,
2660
- children: [
2661
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
2662
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollBar, {}),
2663
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.Corner, {})
2664
- ]
2665
- }
2666
- ));
2667
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2668
- var ScrollBar = React5.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2669
- ScrollAreaPrimitive.ScrollAreaScrollbar,
2670
- {
2671
- ref,
2672
- orientation,
2673
- className: cn(
2674
- "flex touch-none select-none transition-colors",
2675
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
2676
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
2677
- className
2678
- ),
2679
- ...props,
2680
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
2681
- }
2682
- ));
2683
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2684
-
2685
- // src/components/DigitalColleagues/knowledge-search.tsx
2686
- var import_jsx_runtime7 = require("react/jsx-runtime");
2687
- function KnowledgeSearch({
2688
- selectedDocuments,
2689
- onDocumentsChange,
2690
- availableDocuments,
2691
- label,
2692
- placeholder = "Search knowledge documents...",
2693
- maxSelections,
2694
- disabled = false
2695
- }) {
2696
- const [searchTerm, setSearchTerm] = (0, import_react.useState)("");
2697
- const [filteredDocuments, setFilteredDocuments] = (0, import_react.useState)([]);
2698
- const [showResults, setShowResults] = (0, import_react.useState)(false);
2699
- (0, import_react.useEffect)(() => {
2700
- if (!searchTerm.trim()) {
2701
- setFilteredDocuments([]);
2702
- setShowResults(false);
2703
- return;
2704
- }
2705
- const filtered = availableDocuments.filter((doc) => {
2706
- const selectedIds = selectedDocuments.map((d) => d.id);
2707
- if (selectedIds.includes(doc.id)) return false;
2708
- const searchLower = searchTerm.toLowerCase();
2709
- return doc.title.toLowerCase().includes(searchLower) || doc.description?.toLowerCase().includes(searchLower) || doc.tags?.some((tag) => tag.toLowerCase().includes(searchLower)) || Object.values(doc.metadata || {}).some(
2710
- (value) => String(value).toLowerCase().includes(searchLower)
2711
- );
2712
- });
2713
- setFilteredDocuments(filtered);
2714
- setShowResults(true);
2715
- }, [searchTerm, selectedDocuments, availableDocuments]);
2716
- const handleSelectDocument = (document) => {
2717
- if (maxSelections && selectedDocuments.length >= maxSelections) {
2718
- return;
2719
- }
2720
- onDocumentsChange([...selectedDocuments, document]);
2721
- setSearchTerm("");
2722
- setShowResults(false);
2723
- };
2724
- const handleRemoveDocument = (documentId) => {
2725
- onDocumentsChange(selectedDocuments.filter((doc) => doc.id !== documentId));
2726
- };
2727
- const canAddMore = !maxSelections || selectedDocuments.length < maxSelections;
2728
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "space-y-2", children: [
2729
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Label, { children: label }),
2730
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "relative", children: [
2731
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "relative", children: [
2732
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2733
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2734
- Input,
2735
- {
2736
- value: searchTerm,
2737
- onChange: (e) => setSearchTerm(e.target.value),
2738
- placeholder: canAddMore ? placeholder : `Maximum ${maxSelections} documents selected`,
2739
- className: "pl-9",
2740
- disabled: disabled || !canAddMore,
2741
- onFocus: () => searchTerm && setShowResults(true)
2742
- }
2743
- )
2744
- ] }),
2745
- showResults && filteredDocuments.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Card, { className: "absolute top-full left-0 right-0 z-10 mt-1 max-h-60", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ScrollArea, { className: "h-full", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CardContent, { className: "p-2", children: filteredDocuments.map((doc) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2746
- Button,
2747
- {
2748
- variant: "ghost",
2749
- className: "w-full justify-start h-auto p-3 mb-1",
2750
- onClick: () => handleSelectDocument(doc),
2751
- disabled,
2752
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start gap-3 w-full", children: [
2753
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.FileText, { className: "h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0" }),
2754
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "text-left flex-1 min-w-0", children: [
2755
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "font-medium text-sm truncate", children: doc.title }),
2756
- doc.description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "text-xs text-muted-foreground mt-1 line-clamp-2", children: doc.description }),
2757
- doc.tags && doc.tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-wrap gap-1 mt-2", children: [
2758
- doc.tags.slice(0, 3).map((tag) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge, { variant: "outline", className: "text-xs", children: tag }, tag)),
2759
- doc.tags.length > 3 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Badge, { variant: "outline", className: "text-xs", children: [
2760
- "+",
2761
- doc.tags.length - 3,
2762
- " more"
2763
- ] })
2764
- ] })
2765
- ] })
2766
- ] })
2767
- },
2768
- doc.id
2769
- )) }) }) }),
2770
- showResults && searchTerm && filteredDocuments.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Card, { className: "absolute top-full left-0 right-0 z-10 mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(CardContent, { className: "p-4 text-center text-sm text-muted-foreground", children: [
2771
- 'No knowledge documents found for "',
2772
- searchTerm,
2773
- '"'
2774
- ] }) })
2775
- ] }),
2776
- selectedDocuments.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "space-y-2", children: [
2777
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "text-sm text-muted-foreground", children: [
2778
- "Selected (",
2779
- selectedDocuments.length,
2780
- maxSelections && `/${maxSelections}`,
2781
- ")"
2782
- ] }),
2783
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "space-y-2", children: selectedDocuments.map((doc) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Card, { className: "p-3", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start gap-3", children: [
2784
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.FileText, { className: "h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0" }),
2785
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 min-w-0", children: [
2786
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "font-medium text-sm", children: doc.title }),
2787
- doc.description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "text-xs text-muted-foreground mt-1", children: doc.description }),
2788
- doc.tags && doc.tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-wrap gap-1 mt-2", children: doc.tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Badge, { variant: "outline", className: "text-xs", children: [
2789
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.Tag, { className: "h-3 w-3 mr-1" }),
2790
- tag
2791
- ] }, tag)) })
2792
- ] }),
2793
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2794
- Button,
2795
- {
2796
- type: "button",
2797
- variant: "ghost",
2798
- size: "icon",
2799
- className: "h-6 w-6 flex-shrink-0",
2800
- onClick: () => handleRemoveDocument(doc.id),
2801
- disabled,
2802
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.X, { className: "h-3 w-3" })
2803
- }
2804
- )
2805
- ] }) }, doc.id)) })
2806
- ] }),
2807
- showResults && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2808
- "div",
2809
- {
2810
- className: "fixed inset-0 z-0",
2811
- onClick: () => setShowResults(false)
2812
- }
2813
- )
2814
- ] });
2815
- }
2816
- // Annotate the CommonJS export names for ESM import in node:
2817
- 0 && (module.exports = {
2818
- KnowledgeSearch
2819
- });