cortex-react-components 3.2.2 → 4.0.2

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