cortex-react-components 3.3.0 → 4.0.3

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