xertica-ui 2.5.0 → 2.5.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 (536) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +56 -17
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/cli.ts +14 -2
  6. package/bin/generate-tokens.ts +262 -262
  7. package/bin/language-config.ts +359 -358
  8. package/components/assistant/code-block/CodeBlock.tsx +268 -268
  9. package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
  10. package/components/assistant/modern-chat-input/ModernChatInput.tsx +564 -564
  11. package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +99 -99
  12. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -104
  13. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
  14. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -88
  15. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
  16. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -564
  17. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
  18. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
  19. package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
  20. package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -611
  21. package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
  22. package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
  23. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +58 -58
  24. package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
  25. package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
  26. package/components/blocks/card-patterns/ProfileCard.tsx +112 -112
  27. package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
  28. package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
  29. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +67 -67
  30. package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
  31. package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
  32. package/components/blocks/card-patterns/index.ts +29 -29
  33. package/components/brand/language-selector/LanguageSelector.tsx +102 -102
  34. package/components/brand/language-selector/language-selector.stories.tsx +111 -111
  35. package/components/brand/language-selector/language-selector.test.tsx +101 -101
  36. package/components/brand/theme-toggle/ThemeToggle.tsx +74 -74
  37. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  38. package/components/index.ts +86 -86
  39. package/components/layout/sidebar/sidebar.mdx +1 -1
  40. package/components/layout/sidebar/sidebar.stories.tsx +1033 -787
  41. package/components/layout/sidebar/sidebar.tsx +338 -1
  42. package/components/media/FloatingMediaWrapper.tsx +371 -371
  43. package/components/media/audio-player/AudioPlayer.tsx +768 -768
  44. package/components/media/video-player/VideoPlayer.tsx +310 -310
  45. package/components/pages/home-content/HomeContent.tsx +120 -120
  46. package/components/pages/home-content/home-content.mdx +62 -62
  47. package/components/pages/home-page/HomePage.tsx +78 -78
  48. package/components/pages/home-page/home-page.mdx +53 -53
  49. package/components/pages/template-content/TemplateContent.tsx +1354 -1354
  50. package/components/pages/template-content/template-content.mdx +61 -61
  51. package/components/pages/template-page/TemplatePage.stories.tsx +32 -32
  52. package/components/pages/template-page/template-page.mdx +53 -53
  53. package/components/shared/error-boundary.stories.tsx +114 -114
  54. package/components/shared/error-boundary.tsx +150 -150
  55. package/components/shared/error-fallbacks.tsx +222 -222
  56. package/components/ui/accordion/accordion.mdx +8 -8
  57. package/components/ui/alert/alert.mdx +8 -8
  58. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  59. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  60. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  61. package/components/ui/avatar/avatar.mdx +8 -8
  62. package/components/ui/badge/badge.mdx +8 -8
  63. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  64. package/components/ui/button/button.mdx +8 -8
  65. package/components/ui/calendar/calendar.mdx +8 -8
  66. package/components/ui/card/card.mdx +8 -8
  67. package/components/ui/carousel/carousel.mdx +8 -8
  68. package/components/ui/chart/chart.mdx +8 -8
  69. package/components/ui/chart/chart.test.tsx +178 -178
  70. package/components/ui/chart/chart.tsx +2245 -2239
  71. package/components/ui/checkbox/checkbox.mdx +8 -8
  72. package/components/ui/collapsible/collapsible.mdx +8 -8
  73. package/components/ui/command/command.mdx +8 -8
  74. package/components/ui/context-menu/context-menu.mdx +8 -8
  75. package/components/ui/dialog/dialog.mdx +8 -8
  76. package/components/ui/drawer/drawer.mdx +8 -8
  77. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  78. package/components/ui/empty/empty.mdx +8 -8
  79. package/components/ui/file-upload/file-upload.mdx +8 -8
  80. package/components/ui/hover-card/hover-card.mdx +8 -8
  81. package/components/ui/input/input.mdx +8 -8
  82. package/components/ui/input-otp/input-otp.mdx +8 -8
  83. package/components/ui/label/label.mdx +8 -8
  84. package/components/ui/map/map.mdx +8 -8
  85. package/components/ui/menubar/menubar.mdx +8 -8
  86. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  87. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  88. package/components/ui/pagination/pagination.mdx +8 -8
  89. package/components/ui/popover/popover.mdx +8 -8
  90. package/components/ui/progress/progress.mdx +8 -8
  91. package/components/ui/radio-group/radio-group.mdx +8 -8
  92. package/components/ui/rating/rating.mdx +8 -8
  93. package/components/ui/resizable/resizable.mdx +8 -8
  94. package/components/ui/route-map/route-map.mdx +8 -8
  95. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  96. package/components/ui/search/search.mdx +8 -8
  97. package/components/ui/select/select.mdx +8 -8
  98. package/components/ui/separator/separator.mdx +8 -8
  99. package/components/ui/sheet/sheet.mdx +8 -8
  100. package/components/ui/simple-map/simple-map.mdx +8 -8
  101. package/components/ui/skeleton/skeleton.mdx +8 -8
  102. package/components/ui/slider/slider.mdx +8 -8
  103. package/components/ui/sonner/sonner.mdx +8 -8
  104. package/components/ui/stats-card/index.ts +2 -2
  105. package/components/ui/stats-card/stats-card-skeleton.tsx +60 -60
  106. package/components/ui/stats-card/stats-card.mdx +8 -8
  107. package/components/ui/stats-card/stats-card.tsx +109 -109
  108. package/components/ui/stepper/stepper.mdx +8 -8
  109. package/components/ui/switch/switch.mdx +8 -8
  110. package/components/ui/table/table.mdx +8 -8
  111. package/components/ui/tabs/tabs.mdx +8 -8
  112. package/components/ui/textarea/textarea.mdx +8 -8
  113. package/components/ui/timeline/timeline.mdx +8 -8
  114. package/components/ui/toggle/toggle.mdx +8 -8
  115. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  116. package/components/ui/tooltip/tooltip.mdx +8 -8
  117. package/components/ui/tree-view/tree-view.mdx +8 -8
  118. package/components.json +511 -511
  119. package/contexts/AuthContext.tsx +121 -121
  120. package/contexts/BrandColorsContext.tsx +282 -282
  121. package/contexts/LanguageContext.test.tsx +121 -121
  122. package/contexts/LanguageContext.tsx +250 -250
  123. package/contexts/theme-data.ts +391 -391
  124. package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
  125. package/dist/{AssistantChart-CldVCVDe.cjs → AssistantChart-BAudAfne.cjs} +5 -5
  126. package/dist/{AssistantChart-Bdd44uBn.cjs → AssistantChart-BAx9VQvb.cjs} +127 -388
  127. package/dist/{AssistantChart-Cu3m7RBo.js → AssistantChart-BP8upjMk.js} +5 -5
  128. package/dist/{AssistantChart-CFhDdGyU.js → AssistantChart-CVko2A1W.js} +130 -391
  129. package/dist/{AssistantChart-C_hwFRRr.js → AssistantChart-CVzmmhx4.js} +4 -4
  130. package/dist/{AudioPlayer-IAU5q5T1.cjs → AudioPlayer-1ypwE2Wh.cjs} +1 -1
  131. package/dist/{AudioPlayer-CGRUtUdN.js → AudioPlayer-DuKXrCfy.js} +1 -1
  132. package/dist/{LanguageContext-CS14yCpi.js → LanguageContext-BwhwC3G2.js} +2 -2
  133. package/dist/{LanguageContext-B_KFTCzT.cjs → LanguageContext-DvUt5jBg.cjs} +2 -2
  134. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  135. package/dist/{ThemeContext-Bmod0Cg2.cjs → ThemeContext-BblcjQup.cjs} +13 -8
  136. package/dist/{ThemeContext-BWq9ACPo.js → ThemeContext-Bo-W2WZH.js} +13 -8
  137. package/dist/{ThemeContext-j5aGtPky.cjs → ThemeContext-CP3a0jxy.cjs} +193 -262
  138. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  139. package/dist/ThemeContext-CpqYShLq.cjs +324 -0
  140. package/dist/{ThemeContext-CQSo4Iwc.js → ThemeContext-D3LzacmG.js} +8 -1
  141. package/dist/ThemeContext-Du2nE1PL.js +325 -0
  142. package/dist/ThemeContext-GeEBTJ3q.cjs +1621 -0
  143. package/dist/ThemeContext-JyLK9B1o.js +1622 -0
  144. package/dist/{ThemeContext-CGk3KK0k.cjs → ThemeContext-U4dEYc6C.cjs} +8 -1
  145. package/dist/{ThemeContext-BXjrgUjW.js → ThemeContext-ept8jhXI.js} +200 -261
  146. package/dist/{VerifyEmailPage-CGIwmWrm.js → VerifyEmailPage-B31mCrMc.js} +1 -1
  147. package/dist/{VerifyEmailPage-C0c2e5n0.js → VerifyEmailPage-BE-L9mB7.js} +7 -7
  148. package/dist/{VerifyEmailPage-DSBMRHtl.js → VerifyEmailPage-BIBOKV7Z.js} +41 -36
  149. package/dist/{VerifyEmailPage-DgIid028.js → VerifyEmailPage-BJjAMUTW.js} +4 -4
  150. package/dist/{VerifyEmailPage--1Vurewl.cjs → VerifyEmailPage-BRSP-Pwt.cjs} +3 -3
  151. package/dist/{VerifyEmailPage-Cwi3kbol.cjs → VerifyEmailPage-Bae2cBXT.cjs} +7 -7
  152. package/dist/{VerifyEmailPage-De6bQjrz.cjs → VerifyEmailPage-BiRm7Nh4.cjs} +41 -36
  153. package/dist/{VerifyEmailPage-ByerOcm4.cjs → VerifyEmailPage-Bv8Ah_TK.cjs} +23 -20
  154. package/dist/VerifyEmailPage-Bvfv8HVQ.js +3214 -0
  155. package/dist/{VerifyEmailPage-BComraR7.cjs → VerifyEmailPage-CR7kb5df.cjs} +22 -12
  156. package/dist/{VerifyEmailPage-CpqqpLpo.cjs → VerifyEmailPage-C_Zk6Gen.cjs} +1 -1
  157. package/dist/{VerifyEmailPage-MTD7AG1Z.js → VerifyEmailPage-C_ihbcth.js} +4 -4
  158. package/dist/{VerifyEmailPage-1WwWczAn.js → VerifyEmailPage-CbgjOF0v.js} +22 -12
  159. package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
  160. package/dist/{VerifyEmailPage-By3Jf__L.cjs → VerifyEmailPage-CkBYfsNy.cjs} +4 -4
  161. package/dist/{VerifyEmailPage-CJLz3jrn.js → VerifyEmailPage-Cyl55sJb.js} +23 -20
  162. package/dist/VerifyEmailPage-D-FRj5TU.cjs +3213 -0
  163. package/dist/{VerifyEmailPage-B4peJjAT.cjs → VerifyEmailPage-DF2ilhum.cjs} +334 -356
  164. package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
  165. package/dist/{VerifyEmailPage-CgMxRb4z.js → VerifyEmailPage-DTtFfC-J.js} +3 -3
  166. package/dist/{VerifyEmailPage-CFLMls1p.cjs → VerifyEmailPage-Dt7zgA4w.cjs} +4 -4
  167. package/dist/{VerifyEmailPage-C5TNQTBa.js → VerifyEmailPage-EhudUdqF.js} +343 -355
  168. package/dist/{VerifyEmailPage-DGhuIqkb.js → VerifyEmailPage-X14vhdyl.js} +4 -4
  169. package/dist/VerifyEmailPage-hdB8JQGv.cjs +3213 -0
  170. package/dist/{VerifyEmailPage-Bp1XXl3H.cjs → VerifyEmailPage-u_Dn7t1U.cjs} +4 -4
  171. package/dist/VerifyEmailPage-vYHbYK3q.js +3214 -0
  172. package/dist/{XerticaProvider-CBGc4EMA.cjs → XerticaProvider-AChwphCO.cjs} +4 -4
  173. package/dist/{XerticaProvider-BIrqfZ-i.cjs → XerticaProvider-AbWlr7Af.cjs} +8 -11
  174. package/dist/{XerticaProvider-D-yNhF94.cjs → XerticaProvider-B8CaV7xu.cjs} +1 -1
  175. package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
  176. package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
  177. package/dist/{XerticaProvider-C1DKnvLh.js → XerticaProvider-CUYJZc32.js} +4 -4
  178. package/dist/{XerticaProvider-ET0ihewn.cjs → XerticaProvider-CW9hpCdF.cjs} +2 -2
  179. package/dist/{XerticaProvider-Dt5HEzbQ.js → XerticaProvider-CWgby5mY.js} +10 -10
  180. package/dist/XerticaProvider-CWs6EwNa.js +49 -0
  181. package/dist/XerticaProvider-CjQAQPcn.cjs +48 -0
  182. package/dist/XerticaProvider-D5lLumH-.js +49 -0
  183. package/dist/{XerticaProvider-DYq4JWtg.js → XerticaProvider-DQtvJU7m.js} +1 -1
  184. package/dist/XerticaProvider-qQUDop71.cjs +48 -0
  185. package/dist/{XerticaProvider-B7EVH-NF.js → XerticaProvider-siSt9uG2.js} +2 -2
  186. package/dist/{XerticaXLogo-Zw2B276b.cjs → XerticaXLogo-8TTzBjHw.cjs} +1 -1
  187. package/dist/{XerticaXLogo-B7xQ5dhi.js → XerticaXLogo-BWaag64t.js} +1 -1
  188. package/dist/{XerticaXLogo-DZbo4vOE.js → XerticaXLogo-CFuIlYFH.js} +12 -12
  189. package/dist/{XerticaXLogo-bvZSgwGF.cjs → XerticaXLogo-CU-U-GP4.cjs} +7 -13
  190. package/dist/XerticaXLogo-ChryA6xj.js +252 -0
  191. package/dist/{XerticaXLogo-CQUUjXoH.cjs → XerticaXLogo-CziKMQil.cjs} +8 -8
  192. package/dist/XerticaXLogo-DHz5SugF.js +252 -0
  193. package/dist/XerticaXLogo-DTee_y8X.cjs +251 -0
  194. package/dist/{XerticaXLogo-Cmsp-Eey.js → XerticaXLogo-DfUvz-lD.js} +9 -9
  195. package/dist/XerticaXLogo-kslQ8Tk_.cjs +251 -0
  196. package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
  197. package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
  198. package/dist/cli.js +16 -6
  199. package/dist/components/ui/chart/chart.d.ts +7 -5
  200. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  201. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  202. package/dist/index-CkTUgOwX.js +8 -0
  203. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  204. package/dist/index.cjs.js +2 -2
  205. package/dist/index.es.js +2 -2
  206. package/dist/index.umd.js +454 -1027
  207. package/dist/layout.cjs.js +1 -1
  208. package/dist/layout.es.js +1 -1
  209. package/dist/pages.cjs.js +1 -1
  210. package/dist/pages.es.js +1 -1
  211. package/dist/{sidebar-DAaY8bRU.cjs → sidebar-B3EYhli0.cjs} +33 -24
  212. package/dist/{sidebar-nzPoVHBQ.cjs → sidebar-B9NR0lCe.cjs} +46 -41
  213. package/dist/{sidebar-CeTMuzOx.cjs → sidebar-BvF5I2Ue.cjs} +47 -128
  214. package/dist/{sidebar-q7P2Godd.cjs → sidebar-C5B_LHek.cjs} +1 -1
  215. package/dist/{sidebar-CrQDDdcz.js → sidebar-CA6_ek3f.js} +33 -24
  216. package/dist/sidebar-CLmIjgNd.cjs +1136 -0
  217. package/dist/{sidebar-BxGXsDAd.cjs → sidebar-CVUGHOS_.cjs} +8 -16
  218. package/dist/{sidebar-BViy8Eeu.js → sidebar-CmvwjnVb.js} +9 -17
  219. package/dist/{sidebar-B6SlKZYN.js → sidebar-CplprZpM.js} +49 -40
  220. package/dist/sidebar-Duermn32.js +1133 -0
  221. package/dist/{sidebar-BbVIQvlP.js → sidebar-Dz7bd3zP.js} +1 -1
  222. package/dist/{sidebar-0ocFLSks.js → sidebar-KIS0C2JH.js} +50 -127
  223. package/dist/sidebar-OTO_up7Z.js +801 -0
  224. package/dist/sidebar-zowjejT2.cjs +800 -0
  225. package/dist/{use-audio-player-nv8ZSGa1.js → use-audio-player-Bkh23vQ3.js} +3 -7
  226. package/dist/{use-audio-player-NKsWyjWu.cjs → use-audio-player-Dn1NR9xN.cjs} +3 -7
  227. package/dist/{xertica-assistant-dyP7KHM5.cjs → xertica-assistant-B1IaHXnB.cjs} +388 -529
  228. package/dist/{xertica-assistant-ciJaWqm1.js → xertica-assistant-BMqdyRVi.js} +10 -28
  229. package/dist/{xertica-assistant-V_IdW4WF.cjs → xertica-assistant-Bj3vBCq_.cjs} +9 -27
  230. package/dist/{xertica-assistant-yX1CFBBo.js → xertica-assistant-DPsESB6t.js} +390 -531
  231. package/dist/{CodeBlock-7TTgmdGG.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  232. package/dist/{CodeBlock-BeSt1h5P.js → xertica-assistant-gnCJdcZY.js} +7 -219
  233. package/dist/xertica-ui.css +2 -2
  234. package/docs/architecture-improvements.md +456 -456
  235. package/docs/architecture.md +312 -312
  236. package/docs/components/assistant.md +428 -428
  237. package/docs/components/branding.md +252 -252
  238. package/docs/components/card-patterns.md +447 -447
  239. package/docs/components/error-boundary.md +201 -201
  240. package/docs/components/hooks.md +432 -432
  241. package/docs/components/language-selector.md +176 -176
  242. package/docs/components/pages.md +323 -323
  243. package/docs/components/sidebar.md +331 -331
  244. package/docs/components/stats-card.md +138 -138
  245. package/docs/doc-audit.md +244 -244
  246. package/docs/getting-started.md +616 -616
  247. package/docs/guidelines.md +330 -330
  248. package/docs/i18n.md +480 -480
  249. package/docs/installation.md +268 -268
  250. package/docs/llms.md +295 -295
  251. package/docs/state-management.md +289 -289
  252. package/guidelines/Guidelines.md +409 -409
  253. package/llms-compact.txt +1 -1
  254. package/llms-full.txt +10688 -10688
  255. package/llms.txt +1 -1
  256. package/package.json +1 -1
  257. package/styles/xertica/base.css +90 -90
  258. package/styles/xertica/tokens.css +240 -240
  259. package/templates/.prettierignore +4 -4
  260. package/templates/.prettierrc +10 -10
  261. package/templates/CLAUDE.md +180 -180
  262. package/templates/package.json +2 -2
  263. package/templates/src/app/App.tsx +46 -46
  264. package/templates/src/app/components/AuthGuard.tsx +131 -131
  265. package/templates/src/features/assistant/data/mock.ts +75 -75
  266. package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
  267. package/templates/src/features/assistant/index.ts +5 -5
  268. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  269. package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
  270. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +183 -183
  271. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
  272. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +80 -80
  273. package/templates/src/features/home/data/mock.ts +41 -41
  274. package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
  275. package/templates/src/features/home/index.ts +11 -11
  276. package/templates/src/features/home/ui/HomeContent.tsx +117 -117
  277. package/templates/src/features/template/ui/CrudTemplate.tsx +112 -112
  278. package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
  279. package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
  280. package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
  281. package/templates/src/features/template/ui/TemplateContent.tsx +1322 -1322
  282. package/templates/src/i18n.ts +124 -124
  283. package/templates/src/locales/en/common.json +21 -21
  284. package/templates/src/locales/en/components/activityCard.json +10 -10
  285. package/templates/src/locales/en/components/assistant.json +119 -119
  286. package/templates/src/locales/en/components/media.json +29 -29
  287. package/templates/src/locales/en/components/notificationCard.json +5 -5
  288. package/templates/src/locales/en/components/profileCard.json +8 -8
  289. package/templates/src/locales/en/components/projectCard.json +10 -10
  290. package/templates/src/locales/en/components/sidebar.json +14 -14
  291. package/templates/src/locales/en/components/stats.json +8 -8
  292. package/templates/src/locales/en/components/team.json +14 -14
  293. package/templates/src/locales/en/errors.json +9 -9
  294. package/templates/src/locales/en/languageSelector.json +7 -7
  295. package/templates/src/locales/en/nav.json +6 -6
  296. package/templates/src/locales/en/pages/crudTemplate.json +25 -25
  297. package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
  298. package/templates/src/locales/en/pages/forgotPassword.json +10 -10
  299. package/templates/src/locales/en/pages/formTemplate.json +16 -16
  300. package/templates/src/locales/en/pages/home.json +7 -7
  301. package/templates/src/locales/en/pages/login.json +15 -15
  302. package/templates/src/locales/en/pages/loginTemplate.json +9 -9
  303. package/templates/src/locales/en/pages/resetPassword.json +18 -18
  304. package/templates/src/locales/en/pages/templates.json +317 -317
  305. package/templates/src/locales/en/pages/verifyEmail.json +12 -12
  306. package/templates/src/locales/en/themeToggle.json +6 -6
  307. package/templates/src/locales/es/common.json +21 -21
  308. package/templates/src/locales/es/components/activityCard.json +10 -10
  309. package/templates/src/locales/es/components/assistant.json +119 -119
  310. package/templates/src/locales/es/components/media.json +29 -29
  311. package/templates/src/locales/es/components/notificationCard.json +5 -5
  312. package/templates/src/locales/es/components/profileCard.json +8 -8
  313. package/templates/src/locales/es/components/projectCard.json +10 -10
  314. package/templates/src/locales/es/components/sidebar.json +14 -14
  315. package/templates/src/locales/es/components/stats.json +8 -8
  316. package/templates/src/locales/es/components/team.json +14 -14
  317. package/templates/src/locales/es/errors.json +9 -9
  318. package/templates/src/locales/es/languageSelector.json +7 -7
  319. package/templates/src/locales/es/nav.json +6 -6
  320. package/templates/src/locales/es/pages/crudTemplate.json +25 -25
  321. package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
  322. package/templates/src/locales/es/pages/forgotPassword.json +10 -10
  323. package/templates/src/locales/es/pages/formTemplate.json +16 -16
  324. package/templates/src/locales/es/pages/home.json +7 -7
  325. package/templates/src/locales/es/pages/login.json +15 -15
  326. package/templates/src/locales/es/pages/loginTemplate.json +9 -9
  327. package/templates/src/locales/es/pages/resetPassword.json +18 -18
  328. package/templates/src/locales/es/pages/templates.json +317 -317
  329. package/templates/src/locales/es/pages/verifyEmail.json +12 -12
  330. package/templates/src/locales/es/themeToggle.json +6 -6
  331. package/templates/src/locales/pt-BR/common.json +21 -21
  332. package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
  333. package/templates/src/locales/pt-BR/components/assistant.json +119 -119
  334. package/templates/src/locales/pt-BR/components/media.json +29 -29
  335. package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
  336. package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
  337. package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
  338. package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
  339. package/templates/src/locales/pt-BR/components/stats.json +8 -8
  340. package/templates/src/locales/pt-BR/components/team.json +14 -14
  341. package/templates/src/locales/pt-BR/errors.json +9 -9
  342. package/templates/src/locales/pt-BR/languageSelector.json +7 -7
  343. package/templates/src/locales/pt-BR/nav.json +6 -6
  344. package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
  345. package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
  346. package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
  347. package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
  348. package/templates/src/locales/pt-BR/pages/home.json +7 -7
  349. package/templates/src/locales/pt-BR/pages/login.json +15 -15
  350. package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
  351. package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
  352. package/templates/src/locales/pt-BR/pages/templates.json +317 -317
  353. package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
  354. package/templates/src/locales/pt-BR/themeToggle.json +6 -6
  355. package/templates/src/pages/AssistantPage.tsx +470 -470
  356. package/templates/src/pages/HomePage.tsx +53 -53
  357. package/templates/src/shared/error-boundary.tsx +150 -150
  358. package/templates/src/shared/error-fallbacks.tsx +222 -222
  359. package/templates/src/styles/xertica/tokens.css +240 -240
  360. package/templates/vite.config.js +20 -20
  361. package/templates/vite.config.ts +55 -55
  362. package/dist/AssistantChart-BKVtGUKF.js +0 -3383
  363. package/dist/AssistantChart-CxGjH7Qk.js +0 -3477
  364. package/dist/AssistantChart-DIpshm3i.js +0 -4784
  365. package/dist/AssistantChart-D_PTeu8P.cjs +0 -3503
  366. package/dist/AssistantChart-WeycT5Pd.cjs +0 -3551
  367. package/dist/AssistantChart-zjsy2GaZ.cjs +0 -4810
  368. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  369. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  370. package/dist/AudioPlayer-BpRPS4-1.cjs +0 -1277
  371. package/dist/AudioPlayer-C12BjQBV.cjs +0 -997
  372. package/dist/AudioPlayer-CFeV8t-5.cjs +0 -936
  373. package/dist/AudioPlayer-Coly3q5R.js +0 -1278
  374. package/dist/AudioPlayer-CySJIyvL.js +0 -937
  375. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  376. package/dist/AudioPlayer-DcFKRJE_.js +0 -998
  377. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  378. package/dist/BrandColorsContext-565dDHd5.js +0 -660
  379. package/dist/BrandColorsContext-BcJbtkqn.cjs +0 -659
  380. package/dist/CodeBlock-BgfYL_rD.cjs +0 -2094
  381. package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
  382. package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
  383. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  384. package/dist/CodeBlock-CIySIuYr.js +0 -2078
  385. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  386. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  387. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  388. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  389. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  390. package/dist/CodeBlock-DnYNI8rQ.js +0 -2078
  391. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  392. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  393. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  394. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  395. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  396. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  397. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  398. package/dist/FeatureCard-CxC-7C-C.cjs +0 -300
  399. package/dist/FeatureCard-DbHWCb4E.js +0 -301
  400. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  401. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  402. package/dist/LanguageSelector-B5YfbHra.js +0 -231
  403. package/dist/LanguageSelector-D6uacAIM.cjs +0 -230
  404. package/dist/LayoutContext-B45-e9DI.cjs +0 -93
  405. package/dist/LayoutContext-BAql6ZRY.js +0 -97
  406. package/dist/LayoutContext-Bav3UMEA.js +0 -94
  407. package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
  408. package/dist/ThemeContext-BoH4NLfN.js +0 -734
  409. package/dist/ThemeContext-r69W20Xg.cjs +0 -733
  410. package/dist/VerifyEmailPage-COiyNl1y.js +0 -2825
  411. package/dist/VerifyEmailPage-CqKsR2v8.js +0 -2827
  412. package/dist/VerifyEmailPage-DjQKRlUS.cjs +0 -2824
  413. package/dist/VerifyEmailPage-s-1X3LDJ.cjs +0 -2826
  414. package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
  415. package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
  416. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  417. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  418. package/dist/XerticaProvider-BlY2limY.cjs +0 -38
  419. package/dist/XerticaProvider-DDuiIcKo.js +0 -39
  420. package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
  421. package/dist/XerticaProvider-hSwhNQex.js +0 -39
  422. package/dist/alert-dialog-BOje--vD.js +0 -847
  423. package/dist/alert-dialog-BtEuQqrg.cjs +0 -870
  424. package/dist/breadcrumb-CqJ7bHY5.js +0 -161
  425. package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
  426. package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +0 -6
  427. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +0 -21
  428. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +0 -49
  429. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +0 -16
  430. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  431. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  432. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  433. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  434. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  435. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  436. package/dist/components/ui/chart/parts/chart-dashboard.d.ts +0 -113
  437. package/dist/components/ui/chart/parts/chart-metric.d.ts +0 -118
  438. package/dist/components/ui/chart/parts/chart-primitives.d.ts +0 -101
  439. package/dist/components/ui/chart/parts/chart-shared.d.ts +0 -20
  440. package/dist/components/ui/chart/parts/chart-utils.d.ts +0 -12
  441. package/dist/components/ui/chart/parts/index.d.ts +0 -5
  442. package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
  443. package/dist/dropdown-menu-DQidbKBD.js +0 -231
  444. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  445. package/dist/google-maps-loader-BKcdgFbu.cjs +0 -312
  446. package/dist/google-maps-loader-CumCNXeG.js +0 -312
  447. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  448. package/dist/header-Cgy6vYPk.cjs +0 -731
  449. package/dist/header-DRlT4jgI.js +0 -715
  450. package/dist/header-Dux00SI4.cjs +0 -731
  451. package/dist/header-EkGKXPsD.js +0 -715
  452. package/dist/header-WfEywpyc.cjs +0 -731
  453. package/dist/header-tifNQn2U.js +0 -715
  454. package/dist/index-BhapVLVj.js +0 -8
  455. package/dist/index-D6fxYEY8.cjs +0 -7
  456. package/dist/index-DAIp0_HK.js +0 -8
  457. package/dist/index-DW5tYe26.js +0 -8
  458. package/dist/index-GA__GvnG.cjs +0 -7
  459. package/dist/input-2R4loU86.js +0 -127
  460. package/dist/input-DWANSKGb.cjs +0 -145
  461. package/dist/progress-DPtzoVV8.js +0 -175
  462. package/dist/progress-EeaoqqUs.cjs +0 -191
  463. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  464. package/dist/rich-text-editor-B-IkcPD0.js +0 -2874
  465. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  466. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  467. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  468. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  469. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  470. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  471. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  472. package/dist/rich-text-editor-Bp3zQqMC.js +0 -2954
  473. package/dist/rich-text-editor-CMgSN_w2.js +0 -1189
  474. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  475. package/dist/rich-text-editor-CeucBdIv.cjs +0 -2971
  476. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  477. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  478. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  479. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  480. package/dist/rich-text-editor-D76gD-QI.js +0 -2328
  481. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  482. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  483. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  484. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  485. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  486. package/dist/rich-text-editor-bRkNoeZY.cjs +0 -2891
  487. package/dist/rich-text-editor-lyYE2ZG5.cjs +0 -1207
  488. package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
  489. package/dist/select-Bkbr0f-Z.cjs +0 -162
  490. package/dist/select-CvIVdX2n.js +0 -145
  491. package/dist/sidebar-CK_0ZQHj.cjs +0 -803
  492. package/dist/sidebar-CUuOvYhK.js +0 -787
  493. package/dist/sidebar-DQj1z3jG.cjs +0 -758
  494. package/dist/sidebar-Djn5syhi.cjs +0 -786
  495. package/dist/sidebar-LluMXfam.js +0 -759
  496. package/dist/sidebar-_rT7rBMk.js +0 -787
  497. package/dist/slider-Bc5Hd0y1.js +0 -56
  498. package/dist/slider-N7hFFj6X.cjs +0 -73
  499. package/dist/tooltip-Ded96neP.cjs +0 -137
  500. package/dist/tooltip-HDOoD2-0.js +0 -120
  501. package/dist/use-audio-player-B31J-aqh.cjs +0 -187
  502. package/dist/use-audio-player-BkmEmj8Q.js +0 -185
  503. package/dist/use-audio-player-CLFTWFW1.cjs +0 -184
  504. package/dist/use-audio-player-CLLn00I6.js +0 -188
  505. package/dist/use-file-upload-BcjEo2S5.js +0 -404
  506. package/dist/use-file-upload-CRJR68Tj.cjs +0 -403
  507. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  508. package/dist/use-mobile-BXuYROXM.js +0 -4202
  509. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  510. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  511. package/dist/use-mobile-BvYdisLP.js +0 -4202
  512. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  513. package/dist/use-mobile-CG2-SdXV.cjs +0 -4235
  514. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  515. package/dist/use-mobile-CYuAuGDl.js +0 -4202
  516. package/dist/use-mobile-CaENcqm-.js +0 -4508
  517. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  518. package/dist/use-mobile-Cd4xPrKq.cjs +0 -46
  519. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  520. package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
  521. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  522. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  523. package/dist/use-mobile-DlceKf8a.js +0 -4359
  524. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  525. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  526. package/dist/use-mobile-bnKcua_i.js +0 -4202
  527. package/dist/use-mobile-j4w2Jrf1.js +0 -30
  528. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
  529. package/dist/use-rich-text-editor-DjiddBGv.js +0 -282
  530. package/dist/use-rich-text-editor-lpeswbCs.cjs +0 -281
  531. package/dist/xertica-assistant-BdiZag0h.js +0 -2187
  532. package/dist/xertica-assistant-CrgTb6Hs.cjs +0 -2155
  533. package/dist/xertica-assistant-DCsnQyi5.js +0 -2156
  534. package/dist/xertica-assistant-DUBpmEgo.cjs +0 -2186
  535. package/dist/{rich-text-editor-DgF8s7xW.js → rich-text-editor-BmsjY03B.js} +26 -26
  536. package/dist/{rich-text-editor-mWoaSCE4.cjs → rich-text-editor-GS2kpTAK.cjs} +26 -26
@@ -1,4392 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const reactSlot = require("@radix-ui/react-slot");
4
- const classVarianceAuthority = require("class-variance-authority");
5
- const tooltip = require("./tooltip-Ded96neP.cjs");
6
- const lucideReact = require("lucide-react");
7
- const React = require("react");
8
- const CheckboxPrimitive = require("@radix-ui/react-checkbox");
9
- const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
10
- const SwitchPrimitive = require("@radix-ui/react-switch");
11
- const ProgressPrimitive = require("@radix-ui/react-progress");
12
- const SeparatorPrimitive = require("@radix-ui/react-separator");
13
- const AlertDialogPrimitive = require("@radix-ui/react-alert-dialog");
14
- const AspectRatioPrimitive = require("@radix-ui/react-aspect-ratio");
15
- const NavigationMenuPrimitive = require("@radix-ui/react-navigation-menu");
16
- const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
17
- const TogglePrimitive = require("@radix-ui/react-toggle");
18
- const inputOtp = require("input-otp");
19
- const reactHookForm = require("react-hook-form");
20
- const LabelPrimitive = require("@radix-ui/react-label");
21
- const reactDayPicker = require("react-day-picker");
22
- const DialogPrimitive = require("@radix-ui/react-dialog");
23
- const vaul = require("vaul");
24
- const HoverCardPrimitive = require("@radix-ui/react-hover-card");
25
- const ContextMenuPrimitive = require("@radix-ui/react-context-menu");
26
- const MenubarPrimitive = require("@radix-ui/react-menubar");
27
- const cmdk = require("cmdk");
28
- const richTextEditor = require("./rich-text-editor-B6jMRLzk.cjs");
29
- const CollapsiblePrimitive = require("@radix-ui/react-collapsible");
30
- const AccordionPrimitive = require("@radix-ui/react-accordion");
31
- const useEmblaCarousel = require("embla-carousel-react");
32
- const googleMapsLoader = require("./google-maps-loader-eS3uQ5TA.cjs");
33
- const client = require("react-dom/client");
34
- const RechartsPrimitive = require("recharts");
35
- var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
36
- function _interopNamespaceDefault(e) {
37
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
38
- if (e) {
39
- for (const k in e) {
40
- if (k !== "default") {
41
- const d = Object.getOwnPropertyDescriptor(e, k);
42
- Object.defineProperty(n, k, d.get ? d : {
43
- enumerable: true,
44
- get: () => e[k]
45
- });
46
- }
47
- }
48
- }
49
- n.default = e;
50
- return Object.freeze(n);
51
- }
52
- const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
53
- const CheckboxPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CheckboxPrimitive);
54
- const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
55
- const SwitchPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SwitchPrimitive);
56
- const ProgressPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ProgressPrimitive);
57
- const SeparatorPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SeparatorPrimitive);
58
- const AlertDialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AlertDialogPrimitive);
59
- const AspectRatioPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AspectRatioPrimitive);
60
- const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
61
- const ToggleGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToggleGroupPrimitive);
62
- const TogglePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TogglePrimitive);
63
- const LabelPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(LabelPrimitive);
64
- const DialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DialogPrimitive);
65
- const HoverCardPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(HoverCardPrimitive);
66
- const ContextMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ContextMenuPrimitive);
67
- const MenubarPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(MenubarPrimitive);
68
- const CollapsiblePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CollapsiblePrimitive);
69
- const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
70
- function Label({
71
- className,
72
- size = "md",
73
- ...props
74
- }) {
75
- const sizeClasses = {
76
- sm: "text-xs",
77
- md: "text-sm",
78
- lg: "text-base"
79
- };
80
- return /* @__PURE__ */ jsxRuntime.jsx(
81
- LabelPrimitive__namespace.Root,
82
- {
83
- "data-slot": "label",
84
- className: tooltip.cn(
85
- "flex items-center gap-2 leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
86
- sizeClasses[size],
87
- className
88
- ),
89
- ...props
90
- }
91
- );
92
- }
93
- const badgeVariants = classVarianceAuthority.cva(
94
- "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
95
- {
96
- variants: {
97
- variant: {
98
- default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
99
- secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
100
- destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
101
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
102
- success: "border-transparent bg-[var(--toast-success-bg)] text-[var(--toast-success-icon)]",
103
- warning: "border-transparent bg-[var(--toast-warning-bg)] text-[var(--toast-warning-icon)]",
104
- info: "border-transparent bg-[var(--toast-info-bg)] text-[var(--toast-info-icon)]"
105
- }
106
- },
107
- defaultVariants: {
108
- variant: "default"
109
- }
110
- }
111
- );
112
- function Badge({
113
- className,
114
- variant,
115
- asChild = false,
116
- children,
117
- ...props
118
- }) {
119
- const Comp = asChild ? reactSlot.Slot : "span";
120
- return /* @__PURE__ */ jsxRuntime.jsx(
121
- Comp,
122
- {
123
- "data-slot": "badge",
124
- className: tooltip.cn(badgeVariants({ variant }), className),
125
- ...props,
126
- children: /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
127
- }
128
- );
129
- }
130
- const alertVariants = classVarianceAuthority.cva(
131
- "relative w-full rounded-[var(--radius)] border-l-4 px-4 py-3 grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-5 [&>svg]:translate-y-0.5 [&>svg]:text-current",
132
- {
133
- variants: {
134
- variant: {
135
- default: "bg-muted/50 border-l-border text-foreground [&>svg]:text-muted-foreground",
136
- success: "bg-[color:var(--success)]/10 dark:bg-[color:var(--success)]/20 border-l-[color:var(--success)] text-foreground [&>svg]:text-[color:var(--success)]",
137
- info: "bg-[color:var(--info)]/10 dark:bg-[color:var(--info)]/20 border-l-[color:var(--info)] text-foreground [&>svg]:text-[color:var(--info)]",
138
- warning: "bg-[color:var(--warning)]/10 dark:bg-[color:var(--warning)]/20 border-l-[color:var(--warning)] text-foreground [&>svg]:text-[color:var(--warning)]",
139
- destructive: "bg-[color:var(--destructive)]/10 dark:bg-[color:var(--destructive)]/20 border-l-[color:var(--destructive)] text-foreground [&>svg]:text-[color:var(--destructive)]"
140
- }
141
- },
142
- defaultVariants: {
143
- variant: "default"
144
- }
145
- }
146
- );
147
- const alertIcons = {
148
- default: lucideReact.Info,
149
- success: lucideReact.CheckCircle,
150
- info: lucideReact.Info,
151
- warning: lucideReact.AlertTriangle,
152
- destructive: lucideReact.XCircle
153
- };
154
- function Alert({
155
- className,
156
- variant,
157
- icon,
158
- children,
159
- ...props
160
- }) {
161
- const alertVariant = variant && variant in alertIcons ? variant : "default";
162
- const DefaultIcon = alertIcons[alertVariant];
163
- return /* @__PURE__ */ jsxRuntime.jsxs(
164
- "div",
165
- {
166
- "data-slot": "alert",
167
- role: "alert",
168
- className: tooltip.cn(alertVariants({ variant }), className),
169
- ...props,
170
- children: [
171
- icon !== void 0 ? icon : /* @__PURE__ */ jsxRuntime.jsx(DefaultIcon, { className: "flex-shrink-0" }),
172
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children })
173
- ]
174
- }
175
- );
176
- }
177
- function AlertTitle({ className, ...props }) {
178
- return /* @__PURE__ */ jsxRuntime.jsx(
179
- "div",
180
- {
181
- "data-slot": "alert-title",
182
- className: tooltip.cn(
183
- "font-medium mb-1 leading-tight",
184
- className
185
- ),
186
- ...props
187
- }
188
- );
189
- }
190
- function AlertDescription({
191
- className,
192
- ...props
193
- }) {
194
- return /* @__PURE__ */ jsxRuntime.jsx(
195
- "div",
196
- {
197
- "data-slot": "alert-description",
198
- className: tooltip.cn(
199
- "leading-relaxed",
200
- className
201
- ),
202
- ...props
203
- }
204
- );
205
- }
206
- const Checkbox = React__namespace.forwardRef(({ className, size = "md", ...props }, ref) => {
207
- const sizeClasses = {
208
- sm: "size-3.5",
209
- md: "size-4",
210
- lg: "size-5"
211
- };
212
- const iconSizeClasses = {
213
- sm: "size-3",
214
- md: "size-3.5",
215
- lg: "size-4"
216
- };
217
- return /* @__PURE__ */ jsxRuntime.jsx(
218
- CheckboxPrimitive__namespace.Root,
219
- {
220
- ref,
221
- "data-slot": "checkbox",
222
- className: tooltip.cn(
223
- "peer border bg-white dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
224
- sizeClasses[size],
225
- className
226
- ),
227
- ...props,
228
- children: /* @__PURE__ */ jsxRuntime.jsx(
229
- CheckboxPrimitive__namespace.Indicator,
230
- {
231
- "data-slot": "checkbox-indicator",
232
- className: "flex items-center justify-center text-current transition-none",
233
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: iconSizeClasses[size] })
234
- }
235
- )
236
- }
237
- );
238
- });
239
- Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
240
- const RadioGroup = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
241
- RadioGroupPrimitive__namespace.Root,
242
- {
243
- className: tooltip.cn("grid gap-4", className),
244
- ...props,
245
- ref
246
- }
247
- ));
248
- RadioGroup.displayName = RadioGroupPrimitive__namespace.Root.displayName;
249
- const RadioGroupItem = React__namespace.forwardRef(({ className, size = "md", ...props }, ref) => {
250
- const sizeClasses = {
251
- sm: "size-4",
252
- md: "size-5",
253
- lg: "size-6"
254
- };
255
- const dotSizeClasses = {
256
- sm: "size-2",
257
- md: "size-2.5",
258
- lg: "size-3"
259
- };
260
- return /* @__PURE__ */ jsxRuntime.jsx(
261
- RadioGroupPrimitive__namespace.Item,
262
- {
263
- ref,
264
- "data-slot": "radio-group-item",
265
- className: tooltip.cn(
266
- // Base styles - Material UI inspired
267
- "relative aspect-square shrink-0 rounded-full border-2 transition-all duration-200 outline-none cursor-pointer",
268
- // Default state - sempre com contorno usando variáveis CSS
269
- "border-muted-foreground bg-background",
270
- // Hover state - usa variável primary
271
- "hover:border-primary hover:shadow-md",
272
- // Focus state - usa variável primary
273
- "focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
274
- // Checked state - mantém contorno com primary
275
- "data-[state=checked]:border-primary data-[state=checked]:bg-background",
276
- // Disabled state
277
- "disabled:cursor-not-allowed disabled:opacity-50 disabled:border-muted",
278
- // Invalid state - usa variável destructive
279
- "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
280
- sizeClasses[size],
281
- className
282
- ),
283
- ...props,
284
- children: /* @__PURE__ */ jsxRuntime.jsx(
285
- RadioGroupPrimitive__namespace.Indicator,
286
- {
287
- "data-slot": "radio-group-indicator",
288
- className: "flex items-center justify-center",
289
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("rounded-full bg-primary transition-all duration-200", dotSizeClasses[size]) })
290
- }
291
- )
292
- }
293
- );
294
- });
295
- RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
296
- const Switch = React__namespace.forwardRef(({ className, size = "md", ...props }, ref) => {
297
- const trackClasses = {
298
- sm: "h-3.5 w-7",
299
- md: "h-[1.15rem] w-8",
300
- lg: "h-[1.375rem] w-10"
301
- };
302
- const thumbClasses = {
303
- sm: "size-3",
304
- md: "size-4",
305
- lg: "size-5"
306
- };
307
- return /* @__PURE__ */ jsxRuntime.jsx(
308
- SwitchPrimitive__namespace.Root,
309
- {
310
- className: tooltip.cn(
311
- "peer inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50",
312
- "data-[state=checked]:bg-primary",
313
- "data-[state=unchecked]:bg-muted",
314
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
315
- trackClasses[size],
316
- className
317
- ),
318
- ...props,
319
- ref,
320
- children: /* @__PURE__ */ jsxRuntime.jsx(
321
- SwitchPrimitive__namespace.Thumb,
322
- {
323
- className: tooltip.cn(
324
- "pointer-events-none block rounded-full ring-0 transition-transform shadow-sm",
325
- "bg-background",
326
- "data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
327
- thumbClasses[size]
328
- )
329
- }
330
- )
331
- }
332
- );
333
- });
334
- Switch.displayName = SwitchPrimitive__namespace.Root.displayName;
335
- const trackVariants = {
336
- default: "bg-primary/20",
337
- success: "bg-success/20",
338
- info: "bg-info/20",
339
- warning: "bg-warning/20",
340
- destructive: "bg-destructive/20"
341
- };
342
- const indicatorVariants = {
343
- default: "bg-primary",
344
- success: "bg-success",
345
- info: "bg-info",
346
- warning: "bg-warning",
347
- destructive: "bg-destructive"
348
- };
349
- function Progress({
350
- className,
351
- value,
352
- variant = "default",
353
- ...props
354
- }) {
355
- return /* @__PURE__ */ jsxRuntime.jsx(
356
- ProgressPrimitive__namespace.Root,
357
- {
358
- "data-slot": "progress",
359
- "aria-label": props["aria-label"] || "Progresso",
360
- className: tooltip.cn(
361
- "relative h-2 w-full overflow-hidden rounded-full",
362
- trackVariants[variant],
363
- className
364
- ),
365
- ...props,
366
- children: /* @__PURE__ */ jsxRuntime.jsx(
367
- ProgressPrimitive__namespace.Indicator,
368
- {
369
- "data-slot": "progress-indicator",
370
- className: tooltip.cn("h-full w-full flex-1 transition-all", indicatorVariants[variant]),
371
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
372
- }
373
- )
374
- }
375
- );
376
- }
377
- function Separator({
378
- className,
379
- orientation = "horizontal",
380
- decorative = true,
381
- ...props
382
- }) {
383
- return /* @__PURE__ */ jsxRuntime.jsx(
384
- SeparatorPrimitive__namespace.Root,
385
- {
386
- "data-slot": "separator-root",
387
- decorative,
388
- orientation,
389
- className: tooltip.cn(
390
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
391
- className
392
- ),
393
- ...props
394
- }
395
- );
396
- }
397
- function useMapLayers(map, layers) {
398
- const trafficLayerRef = React.useRef(null);
399
- const transitLayerRef = React.useRef(null);
400
- const bicyclingLayerRef = React.useRef(null);
401
- React.useEffect(() => {
402
- if (!map) return;
403
- if (layers.traffic) {
404
- if (!trafficLayerRef.current) {
405
- trafficLayerRef.current = new google.maps.TrafficLayer();
406
- }
407
- trafficLayerRef.current.setMap(map);
408
- } else {
409
- if (trafficLayerRef.current) {
410
- trafficLayerRef.current.setMap(null);
411
- }
412
- }
413
- return () => {
414
- if (trafficLayerRef.current) {
415
- trafficLayerRef.current.setMap(null);
416
- }
417
- };
418
- }, [map, layers.traffic]);
419
- React.useEffect(() => {
420
- if (!map) return;
421
- if (layers.transit) {
422
- if (!transitLayerRef.current) {
423
- transitLayerRef.current = new google.maps.TransitLayer();
424
- }
425
- transitLayerRef.current.setMap(map);
426
- } else {
427
- if (transitLayerRef.current) {
428
- transitLayerRef.current.setMap(null);
429
- }
430
- }
431
- return () => {
432
- if (transitLayerRef.current) {
433
- transitLayerRef.current.setMap(null);
434
- }
435
- };
436
- }, [map, layers.transit]);
437
- React.useEffect(() => {
438
- if (!map) return;
439
- if (layers.bicycling) {
440
- if (!bicyclingLayerRef.current) {
441
- bicyclingLayerRef.current = new google.maps.BicyclingLayer();
442
- }
443
- bicyclingLayerRef.current.setMap(map);
444
- } else {
445
- if (bicyclingLayerRef.current) {
446
- bicyclingLayerRef.current.setMap(null);
447
- }
448
- }
449
- return () => {
450
- if (bicyclingLayerRef.current) {
451
- bicyclingLayerRef.current.setMap(null);
452
- }
453
- };
454
- }, [map, layers.bicycling]);
455
- }
456
- const __vite_import_meta_env__$1 = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
457
- const DEFAULT_CENTER = { lat: -23.5505, lng: -46.6333 };
458
- const DEFAULT_ZOOM = 12;
459
- const MapContent = React.forwardRef(
460
- ({ apiKey, ...props }, ref) => {
461
- const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
462
- const {
463
- center = DEFAULT_CENTER,
464
- zoom = DEFAULT_ZOOM,
465
- markers = [],
466
- circle,
467
- polygon,
468
- layers,
469
- height = "400px",
470
- mapContainerClassName,
471
- disableDefaultUI = false,
472
- zoomControl = true,
473
- streetViewControl = false,
474
- mapTypeControl = false,
475
- fullscreenControl = true,
476
- gestureHandling = "cooperative",
477
- onMapLoad,
478
- className,
479
- ...divProps
480
- } = props;
481
- const [selectedMarker, setSelectedMarker] = React.useState(null);
482
- const mapRef = React.useRef(null);
483
- const gmpMapRef = React.useRef(null);
484
- const infoWindowRef = React.useRef(null);
485
- const circleRef = React.useRef(null);
486
- const polygonRef = React.useRef(null);
487
- const [themeColors, setThemeColors] = React.useState({
488
- primary: "#4F46E5",
489
- chart2: "#10B981"
490
- });
491
- React.useEffect(() => {
492
- if (typeof window !== "undefined") {
493
- const styles = getComputedStyle(document.documentElement);
494
- setThemeColors({
495
- primary: styles.getPropertyValue("--primary").trim() || "#4F46E5",
496
- chart2: styles.getPropertyValue("--chart-2").trim() || "#10B981"
497
- });
498
- }
499
- }, []);
500
- React.useEffect(() => {
501
- if (!isLoaded && apiKey && !loadError && load) {
502
- load(apiKey).catch(console.error);
503
- }
504
- }, [isLoaded, apiKey, loadError, load]);
505
- React.useEffect(() => {
506
- if (!isLoaded || !gmpMapRef.current) return;
507
- const gmpMap = gmpMapRef.current;
508
- if (gmpMap.innerMap) {
509
- mapRef.current = gmpMap.innerMap;
510
- if (onMapLoad) {
511
- onMapLoad(gmpMap.innerMap);
512
- }
513
- } else {
514
- const interval = setInterval(() => {
515
- if (gmpMap.innerMap) {
516
- mapRef.current = gmpMap.innerMap;
517
- if (onMapLoad) {
518
- onMapLoad(gmpMap.innerMap);
519
- }
520
- clearInterval(interval);
521
- }
522
- }, 100);
523
- return () => clearInterval(interval);
524
- }
525
- return () => {
526
- mapRef.current = null;
527
- };
528
- }, [isLoaded]);
529
- React.useEffect(() => {
530
- if (gmpMapRef.current) {
531
- if (center) gmpMapRef.current.center = center;
532
- }
533
- }, [center]);
534
- React.useEffect(() => {
535
- if (gmpMapRef.current) {
536
- if (zoom !== void 0) gmpMapRef.current.zoom = zoom;
537
- }
538
- }, [zoom]);
539
- React.useEffect(() => {
540
- if (gmpMapRef.current) {
541
- if (props.mapTypeId) gmpMapRef.current.mapTypeId = props.mapTypeId;
542
- }
543
- }, [props.mapTypeId]);
544
- React.useEffect(() => {
545
- var _a;
546
- const map = mapRef.current;
547
- if (!map || !isLoaded) return;
548
- (_a = circleRef.current) == null ? void 0 : _a.setMap(null);
549
- circleRef.current = null;
550
- if (circle && circle.center && circle.radius) {
551
- circleRef.current = new google.maps.Circle({
552
- map,
553
- center: circle.center,
554
- radius: circle.radius,
555
- fillColor: circle.fillColor || themeColors.primary,
556
- fillOpacity: 0.2,
557
- strokeColor: circle.strokeColor || themeColors.primary,
558
- strokeOpacity: 0.8,
559
- strokeWeight: 2
560
- });
561
- }
562
- return () => {
563
- var _a2;
564
- (_a2 = circleRef.current) == null ? void 0 : _a2.setMap(null);
565
- };
566
- }, [circle, isLoaded, themeColors, mapRef.current]);
567
- React.useEffect(() => {
568
- var _a;
569
- const map = mapRef.current;
570
- if (!map || !isLoaded) return;
571
- (_a = polygonRef.current) == null ? void 0 : _a.setMap(null);
572
- polygonRef.current = null;
573
- if (polygon && polygon.paths) {
574
- polygonRef.current = new google.maps.Polygon({
575
- map,
576
- paths: polygon.paths,
577
- fillColor: polygon.fillColor || themeColors.chart2,
578
- fillOpacity: 0.2,
579
- strokeColor: polygon.strokeColor || themeColors.chart2,
580
- strokeOpacity: 0.8,
581
- strokeWeight: 2
582
- });
583
- }
584
- return () => {
585
- var _a2;
586
- (_a2 = polygonRef.current) == null ? void 0 : _a2.setMap(null);
587
- };
588
- }, [polygon, isLoaded, themeColors, mapRef.current]);
589
- useMapLayers(mapRef.current, layers || {});
590
- React.useEffect(() => {
591
- var _a;
592
- const map = mapRef.current;
593
- if (!map || selectedMarker === null) {
594
- (_a = infoWindowRef.current) == null ? void 0 : _a.close();
595
- return;
596
- }
597
- const markerData = markers[selectedMarker];
598
- if (!markerData) return;
599
- }, [selectedMarker, markers]);
600
- const handleMarkerClick = (index, markerElement) => {
601
- setSelectedMarker(index);
602
- const map = mapRef.current;
603
- if (!map) return;
604
- const markerData = markers[index];
605
- if (!markerData) return;
606
- let contentToRender = markerData.richContent;
607
- if (!contentToRender && (markerData.title || markerData.info)) {
608
- contentToRender = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 pr-8 min-w-[200px] max-w-[300px]", children: [
609
- markerData.title && /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-base mb-1", children: markerData.title }),
610
- markerData.info && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: markerData.info })
611
- ] });
612
- }
613
- if (contentToRender && markerElement.innerMarker) {
614
- if (!infoWindowRef.current) {
615
- infoWindowRef.current = new google.maps.InfoWindow();
616
- }
617
- const container = document.createElement("div");
618
- const root = client.createRoot(container);
619
- root.render(contentToRender);
620
- infoWindowRef.current.setContent(container);
621
- infoWindowRef.current.open({
622
- map,
623
- anchor: markerElement.innerMarker
624
- });
625
- infoWindowRef.current.addListener("closeclick", () => {
626
- setSelectedMarker(null);
627
- setTimeout(() => root.unmount(), 0);
628
- });
629
- }
630
- };
631
- if (loadError) {
632
- return /* @__PURE__ */ jsxRuntime.jsx(
633
- "div",
634
- {
635
- ref,
636
- className: tooltip.cn(
637
- "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
638
- className
639
- ),
640
- style: { height },
641
- ...divProps,
642
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-2 p-6", children: [
643
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
644
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Failed to load Google Maps" }),
645
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
646
- ] }) })
647
- }
648
- );
649
- }
650
- if (!isLoaded) {
651
- return /* @__PURE__ */ jsxRuntime.jsx(
652
- "div",
653
- {
654
- ref,
655
- className: tooltip.cn(
656
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
657
- className
658
- ),
659
- style: { height },
660
- ...divProps
661
- }
662
- );
663
- }
664
- return /* @__PURE__ */ jsxRuntime.jsx(
665
- "div",
666
- {
667
- ref,
668
- className: tooltip.cn(
669
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
670
- className
671
- ),
672
- style: { height },
673
- ...divProps,
674
- children: /* @__PURE__ */ jsxRuntime.jsx(
675
- "gmp-map",
676
- {
677
- ref: gmpMapRef,
678
- style: { height: "100%", width: "100%", display: "block" },
679
- "map-id": props.mapId || "DEMO_MAP_ID",
680
- children: markers.map((markerData, idx) => {
681
- const markerColor = markerData.customColor || "var(--primary)";
682
- const iconColor = markerData.iconColor || "white";
683
- return (
684
- // @ts-ignore
685
- /* @__PURE__ */ jsxRuntime.jsx(
686
- "gmp-advanced-marker",
687
- {
688
- title: markerData.title,
689
- ref: (el) => {
690
- if (el) {
691
- el.position = markerData.position;
692
- el.addEventListener("gmp-click", () => handleMarkerClick(idx, el));
693
- }
694
- },
695
- children: /* @__PURE__ */ jsxRuntime.jsx(
696
- "div",
697
- {
698
- className: "flex items-center justify-center w-8 h-8 border-[3px] border-background shadow-lg cursor-pointer origin-center transition-transform duration-200",
699
- style: {
700
- borderRadius: "50% 50% 50% 0",
701
- transform: "rotate(-45deg)",
702
- backgroundColor: markerColor
703
- },
704
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center rotate-45", children: markerData.iconSvg ? /* @__PURE__ */ jsxRuntime.jsx(
705
- "div",
706
- {
707
- dangerouslySetInnerHTML: { __html: markerData.iconSvg },
708
- style: { color: iconColor, width: 16, height: 16, fill: "currentColor" }
709
- }
710
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-sm", style: { color: iconColor }, children: markerData.icon || markerData.label || "" }) })
711
- }
712
- )
713
- },
714
- idx
715
- )
716
- );
717
- })
718
- }
719
- )
720
- }
721
- );
722
- }
723
- );
724
- MapContent.displayName = "MapContent";
725
- const Map$1 = React.forwardRef(
726
- (props, ref) => {
727
- const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
728
- const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("use-mobile-Bbd51ASU.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__$1 && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
729
- const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
730
- if (isLoaded || isValidKey || loadError) {
731
- return /* @__PURE__ */ jsxRuntime.jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
732
- }
733
- const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
734
- if (isScriptInjected) {
735
- return /* @__PURE__ */ jsxRuntime.jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
736
- }
737
- return /* @__PURE__ */ jsxRuntime.jsx(
738
- "div",
739
- {
740
- ref,
741
- className: tooltip.cn(
742
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
743
- props.className
744
- ),
745
- style: { height: props.height || "400px" },
746
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-muted", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-3 p-6", children: [
747
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
748
- /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
749
- /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
750
- ] }) }),
751
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
752
- ] }) })
753
- }
754
- );
755
- }
756
- );
757
- Map$1.displayName = "Map";
758
- function PageHeader({
759
- title,
760
- subtitle,
761
- backHref,
762
- onBack,
763
- renderBackLink,
764
- actions,
765
- className,
766
- backLabel = "Back"
767
- }) {
768
- const showBack = !!(backHref || onBack || renderBackLink);
769
- const icon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-5 w-5" });
770
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("flex flex-col gap-4 md:flex-row md:items-center md:justify-between mb-8", className), children: [
771
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4", children: [
772
- showBack && /* @__PURE__ */ jsxRuntime.jsx(
773
- tooltip.Button,
774
- {
775
- variant: "outline",
776
- size: "icon",
777
- className: "h-10 w-10 shrink-0",
778
- onClick: onBack,
779
- asChild: !!renderBackLink || !!backHref,
780
- "aria-label": backLabel,
781
- children: renderBackLink ? renderBackLink(icon) : backHref ? /* @__PURE__ */ jsxRuntime.jsx("a", { href: backHref, children: icon }) : icon
782
- }
783
- ),
784
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1", children: [
785
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: title }),
786
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: subtitle })
787
- ] })
788
- ] }),
789
- actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: actions })
790
- ] });
791
- }
792
- function PageHeaderHeading({
793
- className,
794
- ...props
795
- }) {
796
- return /* @__PURE__ */ jsxRuntime.jsx(
797
- "h1",
798
- {
799
- className: tooltip.cn(
800
- "text-3xl font-bold leading-tight tracking-tighter md:text-4xl lg:leading-[1.1]",
801
- className
802
- ),
803
- ...props
804
- }
805
- );
806
- }
807
- function PageHeaderDescription({
808
- className,
809
- ...props
810
- }) {
811
- return /* @__PURE__ */ jsxRuntime.jsx(
812
- "p",
813
- {
814
- className: tooltip.cn(
815
- "text-lg text-muted-foreground sm:text-xl",
816
- className
817
- ),
818
- ...props
819
- }
820
- );
821
- }
822
- function AlertDialog({
823
- ...props
824
- }) {
825
- return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Root, { "data-slot": "alert-dialog", ...props });
826
- }
827
- function AlertDialogTrigger({
828
- ...props
829
- }) {
830
- return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
831
- }
832
- function AlertDialogPortal({
833
- ...props
834
- }) {
835
- return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { "data-slot": "alert-dialog-portal", ...props });
836
- }
837
- const AlertDialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
838
- return /* @__PURE__ */ jsxRuntime.jsx(
839
- AlertDialogPrimitive__namespace.Overlay,
840
- {
841
- ref,
842
- "data-slot": "alert-dialog-overlay",
843
- className: tooltip.cn(
844
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
845
- className
846
- ),
847
- ...props
848
- }
849
- );
850
- });
851
- AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
852
- function AlertDialogContent({
853
- className,
854
- ...props
855
- }) {
856
- return /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
857
- /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
858
- /* @__PURE__ */ jsxRuntime.jsx(
859
- AlertDialogPrimitive__namespace.Content,
860
- {
861
- "data-slot": "alert-dialog-content",
862
- className: tooltip.cn(
863
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
864
- className
865
- ),
866
- ...props
867
- }
868
- )
869
- ] });
870
- }
871
- function AlertDialogHeader({
872
- className,
873
- ...props
874
- }) {
875
- return /* @__PURE__ */ jsxRuntime.jsx(
876
- "div",
877
- {
878
- "data-slot": "alert-dialog-header",
879
- className: tooltip.cn("flex flex-col gap-2 text-center sm:text-left", className),
880
- ...props
881
- }
882
- );
883
- }
884
- function AlertDialogFooter({
885
- className,
886
- ...props
887
- }) {
888
- return /* @__PURE__ */ jsxRuntime.jsx(
889
- "div",
890
- {
891
- "data-slot": "alert-dialog-footer",
892
- className: tooltip.cn(
893
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
894
- className
895
- ),
896
- ...props
897
- }
898
- );
899
- }
900
- function AlertDialogTitle({
901
- className,
902
- ...props
903
- }) {
904
- return /* @__PURE__ */ jsxRuntime.jsx(
905
- AlertDialogPrimitive__namespace.Title,
906
- {
907
- "data-slot": "alert-dialog-title",
908
- className: tooltip.cn("text-lg font-semibold", className),
909
- ...props
910
- }
911
- );
912
- }
913
- function AlertDialogDescription({
914
- className,
915
- ...props
916
- }) {
917
- return /* @__PURE__ */ jsxRuntime.jsx(
918
- AlertDialogPrimitive__namespace.Description,
919
- {
920
- "data-slot": "alert-dialog-description",
921
- className: tooltip.cn("text-muted-foreground text-sm", className),
922
- ...props
923
- }
924
- );
925
- }
926
- function AlertDialogAction({
927
- className,
928
- ...props
929
- }) {
930
- return /* @__PURE__ */ jsxRuntime.jsx(
931
- AlertDialogPrimitive__namespace.Action,
932
- {
933
- className: tooltip.cn(tooltip.buttonVariants(), className),
934
- ...props
935
- }
936
- );
937
- }
938
- function AlertDialogCancel({
939
- className,
940
- ...props
941
- }) {
942
- return /* @__PURE__ */ jsxRuntime.jsx(
943
- AlertDialogPrimitive__namespace.Cancel,
944
- {
945
- className: tooltip.cn(tooltip.buttonVariants({ variant: "outline" }), className),
946
- ...props
947
- }
948
- );
949
- }
950
- const ERROR_IMG_SRC = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
951
- function ImageWithFallback(props) {
952
- const [didError, setDidError] = React.useState(false);
953
- const handleError = () => {
954
- setDidError(true);
955
- };
956
- const { src, alt, style, className, ...rest } = props;
957
- return didError ? /* @__PURE__ */ jsxRuntime.jsx(
958
- "div",
959
- {
960
- className: `inline-block bg-gray-100 text-center align-middle ${className ?? ""}`,
961
- style,
962
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: ERROR_IMG_SRC, alt: "Error loading image", ...rest, "data-original-url": src }) })
963
- }
964
- ) : /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt, className, style, ...rest, onError: handleError });
965
- }
966
- function AspectRatio({
967
- ...props
968
- }) {
969
- return /* @__PURE__ */ jsxRuntime.jsx(AspectRatioPrimitive__namespace.Root, { "data-slot": "aspect-ratio", ...props });
970
- }
971
- const ResizableContext = React__namespace.createContext(null);
972
- const ResizablePanelGroup = ({
973
- children,
974
- className,
975
- direction = "horizontal",
976
- id,
977
- autoSaveId,
978
- storage,
979
- onLayout,
980
- ...props
981
- }) => {
982
- const [panels, setPanels] = React__namespace.useState(/* @__PURE__ */ new Map());
983
- const [handles, setHandles] = React__namespace.useState(/* @__PURE__ */ new Map());
984
- const [sizes, setSizes] = React__namespace.useState(/* @__PURE__ */ new Map());
985
- const [isDragging, setIsDragging] = React__namespace.useState(false);
986
- const containerRef = React__namespace.useRef(null);
987
- const getSortedItems = React__namespace.useCallback((items) => {
988
- if (!containerRef.current) return [];
989
- return Array.from(items.values()).sort((a, b) => {
990
- if (!a.ref.current || !b.ref.current) return 0;
991
- const position = a.ref.current.compareDocumentPosition(b.ref.current);
992
- if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
993
- if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
994
- return 0;
995
- });
996
- }, []);
997
- React__namespace.useEffect(() => {
998
- const sortedPanels = getSortedItems(panels);
999
- if (sortedPanels.length === 0) return;
1000
- const uninitialized = sortedPanels.some((p) => !sizes.has(p.id));
1001
- if (uninitialized) {
1002
- const newSizes = new Map(sizes);
1003
- const remainingSpace = 100;
1004
- const defaultSizeCount = sortedPanels.filter((p) => p.defaultSize).length;
1005
- let usedSpace = 0;
1006
- sortedPanels.forEach((p) => {
1007
- if (p.defaultSize) usedSpace += p.defaultSize;
1008
- });
1009
- const spaceForOthers = Math.max(0, remainingSpace - usedSpace);
1010
- const countOthers = sortedPanels.length - defaultSizeCount;
1011
- const sizeForOthers = countOthers > 0 ? spaceForOthers / countOthers : 0;
1012
- sortedPanels.forEach((p) => {
1013
- if (!newSizes.has(p.id)) {
1014
- newSizes.set(p.id, p.defaultSize ?? sizeForOthers);
1015
- }
1016
- });
1017
- setSizes(newSizes);
1018
- }
1019
- }, [panels, sizes, getSortedItems]);
1020
- const registerPanel = React__namespace.useCallback((data) => {
1021
- setPanels((prev) => {
1022
- const next = new Map(prev);
1023
- next.set(data.id, data);
1024
- return next;
1025
- });
1026
- }, []);
1027
- const unregisterPanel = React__namespace.useCallback((id2) => {
1028
- setPanels((prev) => {
1029
- const next = new Map(prev);
1030
- next.delete(id2);
1031
- return next;
1032
- });
1033
- setSizes((prev) => {
1034
- const next = new Map(prev);
1035
- next.delete(id2);
1036
- return next;
1037
- });
1038
- }, []);
1039
- const registerHandle = React__namespace.useCallback((data) => {
1040
- setHandles((prev) => {
1041
- const next = new Map(prev);
1042
- next.set(data.id, data);
1043
- return next;
1044
- });
1045
- }, []);
1046
- const unregisterHandle = React__namespace.useCallback((id2) => {
1047
- setHandles((prev) => {
1048
- const next = new Map(prev);
1049
- next.delete(id2);
1050
- return next;
1051
- });
1052
- }, []);
1053
- const startDragging = React__namespace.useCallback((handleId, event) => {
1054
- var _a, _b;
1055
- event.preventDefault();
1056
- setIsDragging(true);
1057
- const sortedPanels = getSortedItems(panels);
1058
- const sortedHandles = getSortedItems(handles);
1059
- const handleIndex = sortedHandles.findIndex((h) => h.id === handleId);
1060
- if (handleIndex === -1) return;
1061
- const leftPanel = sortedPanels[handleIndex];
1062
- const rightPanel = sortedPanels[handleIndex + 1];
1063
- if (!leftPanel || !rightPanel) return;
1064
- const startX = "touches" in event ? event.touches[0].clientX : event.clientX;
1065
- const startY = "touches" in event ? event.touches[0].clientY : event.clientY;
1066
- const startSizeLeft = sizes.get(leftPanel.id) || 0;
1067
- const startSizeRight = sizes.get(rightPanel.id) || 0;
1068
- const containerSize = direction === "horizontal" ? ((_a = containerRef.current) == null ? void 0 : _a.offsetWidth) || 1 : ((_b = containerRef.current) == null ? void 0 : _b.offsetHeight) || 1;
1069
- const onMove = (e) => {
1070
- var _a2, _b2;
1071
- const currentX = "touches" in e ? e.touches[0].clientX : e.clientX;
1072
- const currentY = "touches" in e ? e.touches[0].clientY : e.clientY;
1073
- const deltaPixels = direction === "horizontal" ? currentX - startX : currentY - startY;
1074
- const deltaPercent = deltaPixels / containerSize * 100;
1075
- let finalLeft = startSizeLeft + deltaPercent;
1076
- let finalRight = startSizeRight - deltaPercent;
1077
- if (leftPanel.minSize !== void 0 && finalLeft < leftPanel.minSize) {
1078
- const diff = leftPanel.minSize - finalLeft;
1079
- finalLeft = leftPanel.minSize;
1080
- finalRight -= diff;
1081
- }
1082
- if (rightPanel.minSize !== void 0 && finalRight < rightPanel.minSize) {
1083
- const diff = rightPanel.minSize - finalRight;
1084
- finalRight = rightPanel.minSize;
1085
- finalLeft -= diff;
1086
- }
1087
- if (leftPanel.maxSize !== void 0 && finalLeft > leftPanel.maxSize) {
1088
- const diff = finalLeft - leftPanel.maxSize;
1089
- finalLeft = leftPanel.maxSize;
1090
- finalRight += diff;
1091
- }
1092
- if (rightPanel.maxSize !== void 0 && finalRight > rightPanel.maxSize) {
1093
- const diff = finalRight - rightPanel.maxSize;
1094
- finalRight = rightPanel.maxSize;
1095
- finalLeft -= diff;
1096
- }
1097
- finalLeft = Math.max(0, Math.min(100, finalLeft));
1098
- finalRight = Math.max(0, Math.min(100, finalRight));
1099
- setSizes((prev) => {
1100
- const next = new Map(prev);
1101
- next.set(leftPanel.id, finalLeft);
1102
- next.set(rightPanel.id, finalRight);
1103
- return next;
1104
- });
1105
- (_a2 = leftPanel.onResize) == null ? void 0 : _a2.call(leftPanel, finalLeft);
1106
- (_b2 = rightPanel.onResize) == null ? void 0 : _b2.call(rightPanel, finalRight);
1107
- };
1108
- const onUp = () => {
1109
- setIsDragging(false);
1110
- window.removeEventListener("mousemove", onMove);
1111
- window.removeEventListener("mouseup", onUp);
1112
- window.removeEventListener("touchmove", onMove);
1113
- window.removeEventListener("touchend", onUp);
1114
- if (onLayout) {
1115
- onLayout(sortedPanels.map((p) => sizes.get(p.id) || 0));
1116
- }
1117
- };
1118
- window.addEventListener("mousemove", onMove);
1119
- window.addEventListener("mouseup", onUp);
1120
- window.addEventListener("touchmove", onMove);
1121
- window.addEventListener("touchend", onUp);
1122
- }, [panels, handles, sizes, direction, getSortedItems, onLayout]);
1123
- const getPanelStyle = React__namespace.useCallback((id2) => {
1124
- const size = sizes.get(id2);
1125
- if (size === void 0) return { flex: "1 1 0%", overflow: "hidden" };
1126
- return { flex: `${size} 1 0%`, overflow: "hidden" };
1127
- }, [sizes]);
1128
- const contextValue = React__namespace.useMemo(() => ({
1129
- direction,
1130
- registerPanel,
1131
- unregisterPanel,
1132
- registerHandle,
1133
- unregisterHandle,
1134
- isDragging,
1135
- startDragging,
1136
- getPanelStyle
1137
- }), [direction, registerPanel, unregisterPanel, registerHandle, unregisterHandle, isDragging, startDragging, getPanelStyle]);
1138
- return /* @__PURE__ */ jsxRuntime.jsx(ResizableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1139
- "div",
1140
- {
1141
- ref: containerRef,
1142
- "data-slot": "resizable-panel-group",
1143
- "data-panel-group-direction": direction,
1144
- className: tooltip.cn(
1145
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
1146
- className
1147
- ),
1148
- ...props,
1149
- children
1150
- }
1151
- ) });
1152
- };
1153
- const ResizablePanel = ({
1154
- className,
1155
- defaultSize,
1156
- minSize = 0,
1157
- maxSize = 100,
1158
- collapsible,
1159
- collapsedSize,
1160
- onCollapse,
1161
- onExpand,
1162
- onResize,
1163
- order,
1164
- tagName,
1165
- id: propId,
1166
- children,
1167
- ...props
1168
- }) => {
1169
- const context = React__namespace.useContext(ResizableContext);
1170
- const ref = React__namespace.useRef(null);
1171
- const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
1172
- const id = propId || generatedId;
1173
- const registerPanel = context == null ? void 0 : context.registerPanel;
1174
- const unregisterPanel = context == null ? void 0 : context.unregisterPanel;
1175
- React__namespace.useLayoutEffect(() => {
1176
- if (!registerPanel || !unregisterPanel) return;
1177
- registerPanel({
1178
- id,
1179
- ref,
1180
- defaultSize,
1181
- minSize,
1182
- maxSize,
1183
- collapsible,
1184
- onCollapse,
1185
- onExpand,
1186
- onResize
1187
- });
1188
- return () => unregisterPanel(id);
1189
- }, [registerPanel, unregisterPanel, id, defaultSize, minSize, maxSize, collapsible, onCollapse, onExpand, onResize]);
1190
- if (!context) {
1191
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("flex-1", className), ...props, children });
1192
- }
1193
- return /* @__PURE__ */ jsxRuntime.jsx(
1194
- "div",
1195
- {
1196
- ref,
1197
- "data-slot": "resizable-panel",
1198
- className: tooltip.cn("relative transition-[flex-grow] duration-0", className),
1199
- style: context.getPanelStyle(id),
1200
- ...props,
1201
- children
1202
- }
1203
- );
1204
- };
1205
- const ResizableHandle = ({
1206
- withHandle,
1207
- className,
1208
- id: propId,
1209
- tagName,
1210
- ...props
1211
- }) => {
1212
- const context = React__namespace.useContext(ResizableContext);
1213
- const ref = React__namespace.useRef(null);
1214
- const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
1215
- const id = propId || generatedId;
1216
- const registerHandle = context == null ? void 0 : context.registerHandle;
1217
- const unregisterHandle = context == null ? void 0 : context.unregisterHandle;
1218
- React__namespace.useLayoutEffect(() => {
1219
- if (!registerHandle || !unregisterHandle) return;
1220
- registerHandle({ id, ref });
1221
- return () => unregisterHandle(id);
1222
- }, [registerHandle, unregisterHandle, id]);
1223
- const handleMouseDown = (e) => {
1224
- if (context) {
1225
- context.startDragging(id, e);
1226
- }
1227
- };
1228
- if (!context) return null;
1229
- return /* @__PURE__ */ jsxRuntime.jsx(
1230
- "div",
1231
- {
1232
- ref,
1233
- "data-slot": "resizable-handle",
1234
- className: tooltip.cn(
1235
- "bg-border relative flex items-center justify-center focus-visible:outline-hidden",
1236
- "touch-none select-none",
1237
- context.direction === "vertical" ? "h-px w-full cursor-row-resize after:left-0 after:h-1 after:w-full after:-translate-y-1/2 hover:after:h-4" : "w-px h-full cursor-col-resize after:top-0 after:w-1 after:h-full after:-translate-x-1/2 hover:after:w-4",
1238
- "after:absolute after:z-10",
1239
- className
1240
- ),
1241
- onMouseDown: handleMouseDown,
1242
- onTouchStart: handleMouseDown,
1243
- ...props,
1244
- children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVerticalIcon, { className: "size-2.5" }) })
1245
- }
1246
- );
1247
- };
1248
- function NavigationMenu({
1249
- className,
1250
- children,
1251
- viewport = true,
1252
- ...props
1253
- }) {
1254
- return /* @__PURE__ */ jsxRuntime.jsxs(
1255
- NavigationMenuPrimitive__namespace.Root,
1256
- {
1257
- "data-slot": "navigation-menu",
1258
- className: tooltip.cn(
1259
- "relative z-10 flex w-full flex-1 items-center justify-center",
1260
- className
1261
- ),
1262
- ...props,
1263
- children: [
1264
- children,
1265
- viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
1266
- ]
1267
- }
1268
- );
1269
- }
1270
- function NavigationMenuList({
1271
- className,
1272
- ...props
1273
- }) {
1274
- return /* @__PURE__ */ jsxRuntime.jsx(
1275
- NavigationMenuPrimitive__namespace.List,
1276
- {
1277
- "data-slot": "navigation-menu-list",
1278
- className: tooltip.cn(
1279
- "group flex flex-1 list-none items-center justify-center gap-1",
1280
- className
1281
- ),
1282
- ...props
1283
- }
1284
- );
1285
- }
1286
- function NavigationMenuItem({
1287
- className,
1288
- ...props
1289
- }) {
1290
- return /* @__PURE__ */ jsxRuntime.jsx(
1291
- NavigationMenuPrimitive__namespace.Item,
1292
- {
1293
- "data-slot": "navigation-menu-item",
1294
- className: tooltip.cn("relative", className),
1295
- ...props
1296
- }
1297
- );
1298
- }
1299
- const navigationMenuTriggerStyle = classVarianceAuthority.cva(
1300
- "group inline-flex h-10 w-max items-center justify-center rounded-[var(--radius)] bg-background px-4 py-2 text-[var(--text-p)] font-[var(--font-weight-medium)] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 outline-none focus-visible:ring-2 focus-visible:ring-ring"
1301
- );
1302
- function NavigationMenuTrigger({
1303
- className,
1304
- children,
1305
- ...props
1306
- }) {
1307
- return /* @__PURE__ */ jsxRuntime.jsxs(
1308
- NavigationMenuPrimitive__namespace.Trigger,
1309
- {
1310
- "data-slot": "navigation-menu-trigger",
1311
- className: tooltip.cn(navigationMenuTriggerStyle(), "group", className),
1312
- ...props,
1313
- children: [
1314
- children,
1315
- " ",
1316
- /* @__PURE__ */ jsxRuntime.jsx(
1317
- lucideReact.ChevronDownIcon,
1318
- {
1319
- className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
1320
- "aria-hidden": "true"
1321
- }
1322
- )
1323
- ]
1324
- }
1325
- );
1326
- }
1327
- function NavigationMenuContent({
1328
- className,
1329
- ...props
1330
- }) {
1331
- return /* @__PURE__ */ jsxRuntime.jsx(
1332
- NavigationMenuPrimitive__namespace.Content,
1333
- {
1334
- "data-slot": "navigation-menu-content",
1335
- className: tooltip.cn(
1336
- "left-0 top-0 w-full md:w-auto",
1337
- className
1338
- ),
1339
- ...props
1340
- }
1341
- );
1342
- }
1343
- function NavigationMenuViewport({
1344
- className,
1345
- ...props
1346
- }) {
1347
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("absolute left-0 top-full flex justify-center w-full"), children: /* @__PURE__ */ jsxRuntime.jsx(
1348
- NavigationMenuPrimitive__namespace.Viewport,
1349
- {
1350
- "data-slot": "navigation-menu-viewport",
1351
- className: tooltip.cn(
1352
- "origin-top-center relative mt-1.5 overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-lg",
1353
- className
1354
- ),
1355
- ...props
1356
- }
1357
- ) });
1358
- }
1359
- function NavigationMenuLink({
1360
- className,
1361
- ...props
1362
- }) {
1363
- return /* @__PURE__ */ jsxRuntime.jsx(
1364
- NavigationMenuPrimitive__namespace.Link,
1365
- {
1366
- "data-slot": "navigation-menu-link",
1367
- className: tooltip.cn(
1368
- "block select-none space-y-1 rounded-[var(--radius)] p-3 leading-none no-underline outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
1369
- className
1370
- ),
1371
- ...props
1372
- }
1373
- );
1374
- }
1375
- function NavigationMenuIndicator({
1376
- className,
1377
- ...props
1378
- }) {
1379
- return /* @__PURE__ */ jsxRuntime.jsx(
1380
- NavigationMenuPrimitive__namespace.Indicator,
1381
- {
1382
- "data-slot": "navigation-menu-indicator",
1383
- className: tooltip.cn(
1384
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
1385
- className
1386
- ),
1387
- ...props,
1388
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
1389
- }
1390
- );
1391
- }
1392
- function Pagination({ className, ...props }) {
1393
- return /* @__PURE__ */ jsxRuntime.jsx(
1394
- "nav",
1395
- {
1396
- role: "navigation",
1397
- "aria-label": "pagination",
1398
- "data-slot": "pagination",
1399
- className: tooltip.cn("mx-auto flex w-full justify-center", className),
1400
- ...props
1401
- }
1402
- );
1403
- }
1404
- function PaginationContent({
1405
- className,
1406
- ...props
1407
- }) {
1408
- return /* @__PURE__ */ jsxRuntime.jsx(
1409
- "ul",
1410
- {
1411
- "data-slot": "pagination-content",
1412
- className: tooltip.cn("flex flex-row items-center gap-1", className),
1413
- ...props
1414
- }
1415
- );
1416
- }
1417
- function PaginationItem({ ...props }) {
1418
- return /* @__PURE__ */ jsxRuntime.jsx("li", { "data-slot": "pagination-item", ...props });
1419
- }
1420
- function PaginationLink({
1421
- className,
1422
- isActive,
1423
- size = "icon",
1424
- ...props
1425
- }) {
1426
- return /* @__PURE__ */ jsxRuntime.jsx(
1427
- "a",
1428
- {
1429
- "aria-current": isActive ? "page" : void 0,
1430
- "data-slot": "pagination-link",
1431
- "data-active": isActive,
1432
- className: tooltip.cn(
1433
- tooltip.buttonVariants({
1434
- variant: isActive ? "outline" : "ghost",
1435
- size
1436
- }),
1437
- className
1438
- ),
1439
- ...props
1440
- }
1441
- );
1442
- }
1443
- function PaginationPrevious({
1444
- className,
1445
- ...props
1446
- }) {
1447
- return /* @__PURE__ */ jsxRuntime.jsxs(
1448
- PaginationLink,
1449
- {
1450
- "aria-label": "Go to previous page",
1451
- size: "default",
1452
- className: tooltip.cn("gap-1 px-2.5 sm:pl-2.5", className),
1453
- ...props,
1454
- children: [
1455
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, {}),
1456
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Previous" })
1457
- ]
1458
- }
1459
- );
1460
- }
1461
- function PaginationNext({
1462
- className,
1463
- ...props
1464
- }) {
1465
- return /* @__PURE__ */ jsxRuntime.jsxs(
1466
- PaginationLink,
1467
- {
1468
- "aria-label": "Go to next page",
1469
- size: "default",
1470
- className: tooltip.cn("gap-1 px-2.5 sm:pr-2.5", className),
1471
- ...props,
1472
- children: [
1473
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Next" }),
1474
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, {})
1475
- ]
1476
- }
1477
- );
1478
- }
1479
- function PaginationEllipsis({
1480
- className,
1481
- ...props
1482
- }) {
1483
- return /* @__PURE__ */ jsxRuntime.jsxs(
1484
- "span",
1485
- {
1486
- "aria-hidden": true,
1487
- "data-slot": "pagination-ellipsis",
1488
- className: tooltip.cn("flex size-9 items-center justify-center", className),
1489
- ...props,
1490
- children: [
1491
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontalIcon, { className: "size-4" }),
1492
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
1493
- ]
1494
- }
1495
- );
1496
- }
1497
- const toggleVariants = classVarianceAuthority.cva(
1498
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
1499
- {
1500
- variants: {
1501
- variant: {
1502
- default: "bg-transparent",
1503
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
1504
- },
1505
- size: {
1506
- default: "h-9 px-2 min-w-9",
1507
- sm: "h-8 px-1.5 min-w-8",
1508
- lg: "h-10 px-2.5 min-w-10"
1509
- }
1510
- },
1511
- defaultVariants: {
1512
- variant: "default",
1513
- size: "default"
1514
- }
1515
- }
1516
- );
1517
- const Toggle = React__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1518
- TogglePrimitive__namespace.Root,
1519
- {
1520
- ref,
1521
- "data-slot": "toggle",
1522
- className: tooltip.cn(toggleVariants({ variant, size, className })),
1523
- ...props
1524
- }
1525
- ));
1526
- Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
1527
- const ToggleGroupContext = React__namespace.createContext({
1528
- size: "default",
1529
- variant: "default"
1530
- });
1531
- const ToggleGroup = React__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1532
- ToggleGroupPrimitive__namespace.Root,
1533
- {
1534
- ref,
1535
- "data-slot": "toggle-group",
1536
- "data-variant": variant,
1537
- "data-size": size,
1538
- className: tooltip.cn(
1539
- "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
1540
- className
1541
- ),
1542
- ...props,
1543
- children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
1544
- }
1545
- ));
1546
- ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
1547
- const ToggleGroupItem = React__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
1548
- const context = React__namespace.useContext(ToggleGroupContext);
1549
- return /* @__PURE__ */ jsxRuntime.jsx(
1550
- ToggleGroupPrimitive__namespace.Item,
1551
- {
1552
- ref,
1553
- "data-slot": "toggle-group-item",
1554
- "data-variant": context.variant || variant,
1555
- "data-size": context.size || size,
1556
- className: tooltip.cn(
1557
- toggleVariants({
1558
- variant: context.variant || variant,
1559
- size: context.size || size
1560
- }),
1561
- "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
1562
- className
1563
- ),
1564
- ...props,
1565
- children
1566
- }
1567
- );
1568
- });
1569
- ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
1570
- function InputOTP({
1571
- className,
1572
- containerClassName,
1573
- ...props
1574
- }) {
1575
- return /* @__PURE__ */ jsxRuntime.jsx(
1576
- inputOtp.OTPInput,
1577
- {
1578
- "data-slot": "input-otp",
1579
- containerClassName: tooltip.cn(
1580
- "flex items-center gap-2 has-disabled:opacity-50",
1581
- containerClassName
1582
- ),
1583
- className: tooltip.cn("disabled:cursor-not-allowed", className),
1584
- ...props
1585
- }
1586
- );
1587
- }
1588
- function InputOTPGroup({ className, ...props }) {
1589
- return /* @__PURE__ */ jsxRuntime.jsx(
1590
- "div",
1591
- {
1592
- "data-slot": "input-otp-group",
1593
- className: tooltip.cn("flex items-center gap-1", className),
1594
- ...props
1595
- }
1596
- );
1597
- }
1598
- function InputOTPSlot({
1599
- index,
1600
- className,
1601
- size = "md",
1602
- ...props
1603
- }) {
1604
- const inputOTPContext = React__namespace.useContext(inputOtp.OTPInputContext);
1605
- const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
1606
- const sizeClasses = {
1607
- sm: "h-8 w-8 text-sm",
1608
- md: "h-10 w-10 text-base",
1609
- lg: "h-12 w-12 text-lg"
1610
- };
1611
- return /* @__PURE__ */ jsxRuntime.jsxs(
1612
- "div",
1613
- {
1614
- "data-slot": "input-otp-slot",
1615
- "data-active": isActive,
1616
- className: tooltip.cn(
1617
- "data-[active=true]:border-primary data-[active=true]:ring-primary/20 data-[active=true]:aria-invalid:ring-destructive/20 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex items-center justify-center border border-border rounded-[var(--radius)] bg-background transition-all outline-none data-[active=true]:z-10 data-[active=true]:ring-2",
1618
- sizeClasses[size],
1619
- className
1620
- ),
1621
- ...props,
1622
- children: [
1623
- char,
1624
- hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
1625
- ]
1626
- }
1627
- );
1628
- }
1629
- function InputOTPSeparator({ ...props }) {
1630
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MinusIcon, {}) });
1631
- }
1632
- const Form = reactHookForm.FormProvider;
1633
- const FormFieldContext = React__namespace.createContext(
1634
- {}
1635
- );
1636
- const FormField = ({
1637
- ...props
1638
- }) => {
1639
- return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
1640
- };
1641
- const useFormField = () => {
1642
- const fieldContext = React__namespace.useContext(FormFieldContext);
1643
- const itemContext = React__namespace.useContext(FormItemContext);
1644
- const { getFieldState } = reactHookForm.useFormContext();
1645
- const formState = reactHookForm.useFormState({ name: fieldContext.name });
1646
- const fieldState = getFieldState(
1647
- fieldContext.name,
1648
- formState
1649
- );
1650
- if (!fieldContext) {
1651
- throw new Error(
1652
- "useFormField should be used within <FormField>"
1653
- );
1654
- }
1655
- const { id } = itemContext;
1656
- return {
1657
- id,
1658
- name: fieldContext.name,
1659
- formItemId: `${id}-form-item`,
1660
- formDescriptionId: `${id}-form-item-description`,
1661
- formMessageId: `${id}-form-item-message`,
1662
- ...fieldState
1663
- };
1664
- };
1665
- const FormItemContext = React__namespace.createContext(
1666
- {}
1667
- );
1668
- function FormItem({
1669
- className,
1670
- ...props
1671
- }) {
1672
- const id = React__namespace.useId();
1673
- return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
1674
- "div",
1675
- {
1676
- "data-slot": "form-item",
1677
- className: tooltip.cn("grid gap-2", className),
1678
- ...props
1679
- }
1680
- ) });
1681
- }
1682
- function FormLabel({
1683
- className,
1684
- ...props
1685
- }) {
1686
- const { error, formItemId } = useFormField();
1687
- return /* @__PURE__ */ jsxRuntime.jsx(
1688
- Label,
1689
- {
1690
- "data-slot": "form-label",
1691
- "data-error": !!error,
1692
- className: tooltip.cn(
1693
- "data-[error=true]:text-destructive",
1694
- className
1695
- ),
1696
- htmlFor: formItemId,
1697
- ...props
1698
- }
1699
- );
1700
- }
1701
- function FormControl({
1702
- ...props
1703
- }) {
1704
- const {
1705
- error,
1706
- formItemId,
1707
- formDescriptionId,
1708
- formMessageId
1709
- } = useFormField();
1710
- return /* @__PURE__ */ jsxRuntime.jsx(
1711
- reactSlot.Slot,
1712
- {
1713
- "data-slot": "form-control",
1714
- id: formItemId,
1715
- "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1716
- "aria-invalid": !!error,
1717
- ...props
1718
- }
1719
- );
1720
- }
1721
- function FormDescription({
1722
- className,
1723
- ...props
1724
- }) {
1725
- const { formDescriptionId } = useFormField();
1726
- return /* @__PURE__ */ jsxRuntime.jsx(
1727
- "p",
1728
- {
1729
- "data-slot": "form-description",
1730
- id: formDescriptionId,
1731
- className: tooltip.cn("text-muted-foreground text-sm", className),
1732
- ...props
1733
- }
1734
- );
1735
- }
1736
- function FormMessage({
1737
- className,
1738
- ...props
1739
- }) {
1740
- const { error, formMessageId } = useFormField();
1741
- const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
1742
- if (!body) {
1743
- return null;
1744
- }
1745
- return /* @__PURE__ */ jsxRuntime.jsx(
1746
- "p",
1747
- {
1748
- "data-slot": "form-message",
1749
- id: formMessageId,
1750
- className: tooltip.cn("text-destructive text-sm", className),
1751
- ...props,
1752
- children: body
1753
- }
1754
- );
1755
- }
1756
- function Calendar({
1757
- className,
1758
- classNames,
1759
- showOutsideDays = true,
1760
- captionLayout = "label",
1761
- buttonVariant = "ghost",
1762
- formatters,
1763
- components,
1764
- ...props
1765
- }) {
1766
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
1767
- return /* @__PURE__ */ jsxRuntime.jsx(
1768
- reactDayPicker.DayPicker,
1769
- {
1770
- showOutsideDays,
1771
- className: tooltip.cn(
1772
- "bg-background group/calendar p-4 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent font-sans",
1773
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1774
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
1775
- className
1776
- ),
1777
- captionLayout,
1778
- formatters,
1779
- classNames: {
1780
- root: tooltip.cn("w-fit", defaultClassNames.root),
1781
- months: tooltip.cn(
1782
- "flex gap-6 flex-col md:flex-row relative",
1783
- defaultClassNames.months
1784
- ),
1785
- month: tooltip.cn("flex flex-col w-full gap-5", defaultClassNames.month),
1786
- nav: tooltip.cn(
1787
- "flex items-center gap-2 w-full absolute top-0 inset-x-0 justify-between",
1788
- defaultClassNames.nav
1789
- ),
1790
- button_previous: tooltip.cn(
1791
- tooltip.buttonVariants({ variant: buttonVariant }),
1792
- "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
1793
- defaultClassNames.button_previous
1794
- ),
1795
- button_next: tooltip.cn(
1796
- tooltip.buttonVariants({ variant: buttonVariant }),
1797
- "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
1798
- defaultClassNames.button_next
1799
- ),
1800
- month_caption: tooltip.cn(
1801
- "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
1802
- defaultClassNames.month_caption
1803
- ),
1804
- dropdowns: tooltip.cn(
1805
- "w-full flex items-center justify-center h-(--cell-size) gap-2",
1806
- defaultClassNames.dropdowns
1807
- ),
1808
- dropdown_root: tooltip.cn(
1809
- "relative rounded-[var(--radius)] hover:bg-accent transition-colors",
1810
- defaultClassNames.dropdown_root
1811
- ),
1812
- dropdown: tooltip.cn(
1813
- "absolute bg-popover inset-0 opacity-0 cursor-pointer",
1814
- defaultClassNames.dropdown
1815
- ),
1816
- caption_label: tooltip.cn(
1817
- "select-none font-[family-name:var(--font-family,Roboto)] tracking-tight hover:bg-accent hover:text-accent-foreground transition-all duration-200 rounded-[var(--radius)] px-2 py-1",
1818
- captionLayout === "label" ? "text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)]" : "flex items-center gap-1.5 text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] [&>svg]:text-muted-foreground [&>svg]:size-4",
1819
- defaultClassNames.caption_label
1820
- ),
1821
- table: "w-full border-collapse mt-1",
1822
- weekdays: tooltip.cn("flex gap-1", defaultClassNames.weekdays),
1823
- weekday: tooltip.cn(
1824
- "text-muted-foreground rounded-(--cell-radius) flex-1 select-none text-[length:var(--calendar-weekday-size)] font-[number:var(--font-weight-medium)] uppercase tracking-wider",
1825
- defaultClassNames.weekday
1826
- ),
1827
- week: tooltip.cn("flex w-full gap-1", defaultClassNames.week),
1828
- week_number_header: tooltip.cn(
1829
- "select-none w-(--cell-size)",
1830
- defaultClassNames.week_number_header
1831
- ),
1832
- week_number: tooltip.cn(
1833
- "select-none text-muted-foreground text-[length:var(--calendar-weekday-size)]",
1834
- defaultClassNames.week_number
1835
- ),
1836
- day: tooltip.cn(
1837
- "relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
1838
- props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
1839
- defaultClassNames.day
1840
- ),
1841
- range_start: tooltip.cn(
1842
- "rounded-l-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:right-0 -z-0 isolate",
1843
- defaultClassNames.range_start
1844
- ),
1845
- range_middle: tooltip.cn(
1846
- "rounded-none bg-accent/30",
1847
- defaultClassNames.range_middle
1848
- ),
1849
- range_end: tooltip.cn(
1850
- "rounded-r-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:left-0 -z-0 isolate",
1851
- defaultClassNames.range_end
1852
- ),
1853
- today: tooltip.cn(
1854
- "bg-accent/60 text-accent-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none font-[number:var(--font-weight-semibold)]",
1855
- defaultClassNames.today
1856
- ),
1857
- outside: tooltip.cn(
1858
- "text-muted-foreground/40 aria-selected:text-muted-foreground/40",
1859
- defaultClassNames.outside
1860
- ),
1861
- disabled: tooltip.cn(
1862
- "text-muted-foreground/30 opacity-40",
1863
- defaultClassNames.disabled
1864
- ),
1865
- hidden: tooltip.cn("invisible", defaultClassNames.hidden),
1866
- ...classNames
1867
- },
1868
- components: {
1869
- Root: ({ className: className2, rootRef, ...props2 }) => {
1870
- return /* @__PURE__ */ jsxRuntime.jsx(
1871
- "div",
1872
- {
1873
- "data-slot": "calendar",
1874
- ref: rootRef,
1875
- className: tooltip.cn(className2),
1876
- ...props2
1877
- }
1878
- );
1879
- },
1880
- Chevron: ({ className: className2, orientation, ...props2 }) => {
1881
- if (orientation === "left") {
1882
- return /* @__PURE__ */ jsxRuntime.jsx(
1883
- lucideReact.ChevronLeft,
1884
- {
1885
- className: tooltip.cn("size-5 transition-transform group-hover:scale-110", className2),
1886
- ...props2
1887
- }
1888
- );
1889
- }
1890
- if (orientation === "right") {
1891
- return /* @__PURE__ */ jsxRuntime.jsx(
1892
- lucideReact.ChevronRight,
1893
- {
1894
- className: tooltip.cn("size-5 transition-transform group-hover:scale-110", className2),
1895
- ...props2
1896
- }
1897
- );
1898
- }
1899
- return /* @__PURE__ */ jsxRuntime.jsx(
1900
- lucideReact.ChevronDown,
1901
- {
1902
- className: tooltip.cn("size-4", className2),
1903
- ...props2
1904
- }
1905
- );
1906
- },
1907
- DayButton: CalendarDayButton,
1908
- WeekNumber: ({ children, ...props2 }) => {
1909
- return /* @__PURE__ */ jsxRuntime.jsx("td", { ...props2, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center font-[number:var(--font-weight-medium)]", children }) });
1910
- },
1911
- ...components
1912
- },
1913
- ...props
1914
- }
1915
- );
1916
- }
1917
- function CalendarDayButton({
1918
- className,
1919
- day,
1920
- modifiers,
1921
- ...props
1922
- }) {
1923
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
1924
- const ref = React__namespace.useRef(null);
1925
- React__namespace.useEffect(() => {
1926
- var _a;
1927
- if (modifiers.focused) (_a = ref.current) == null ? void 0 : _a.focus();
1928
- }, [modifiers.focused]);
1929
- return /* @__PURE__ */ jsxRuntime.jsx(
1930
- tooltip.Button,
1931
- {
1932
- ref,
1933
- variant: "ghost",
1934
- size: "icon",
1935
- "data-day": day.date.toLocaleDateString(),
1936
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
1937
- "data-range-start": modifiers.range_start,
1938
- "data-range-end": modifiers.range_end,
1939
- "data-range-middle": modifiers.range_middle,
1940
- className: tooltip.cn(
1941
- "relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col items-center justify-center gap-1 border-0 leading-none transition-all duration-200 cursor-pointer disabled:cursor-not-allowed",
1942
- "text-[length:var(--calendar-day-size)] font-[number:var(--font-weight-regular)]",
1943
- "hover:bg-accent/70 hover:text-accent-foreground hover:scale-105",
1944
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[selected-single=true]:font-[number:var(--font-weight-semibold)] data-[selected-single=true]:shadow-sm",
1945
- "data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-foreground",
1946
- "data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-start=true]:font-[number:var(--font-weight-semibold)] data-[range-start=true]:shadow-sm",
1947
- "data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-end=true]:font-[number:var(--font-weight-semibold)] data-[range-end=true]:shadow-sm",
1948
- "group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 group-data-[focused=true]/day:ring-2 group-data-[focused=true]/day:ring-offset-2 group-data-[focused=true]/day:ring-offset-background",
1949
- "data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius)",
1950
- "data-[range-middle=true]:rounded-none",
1951
- "data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius)",
1952
- "[&>span]:opacity-80",
1953
- defaultClassNames.day,
1954
- className
1955
- ),
1956
- ...props,
1957
- children: day.date.getDate()
1958
- }
1959
- );
1960
- }
1961
- function Sheet({ ...props }) {
1962
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
1963
- }
1964
- function SheetTrigger({
1965
- ...props
1966
- }) {
1967
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
1968
- }
1969
- function SheetPortal({
1970
- ...props
1971
- }) {
1972
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
1973
- }
1974
- const SheetOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1975
- DialogPrimitive__namespace.Overlay,
1976
- {
1977
- className: tooltip.cn(
1978
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
1979
- className
1980
- ),
1981
- ...props,
1982
- ref
1983
- }
1984
- ));
1985
- SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
1986
- function SheetContent({
1987
- className,
1988
- children,
1989
- side = "right",
1990
- ...props
1991
- }) {
1992
- return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
1993
- /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
1994
- /* @__PURE__ */ jsxRuntime.jsxs(
1995
- DialogPrimitive__namespace.Content,
1996
- {
1997
- "data-slot": "sheet-content",
1998
- className: tooltip.cn(
1999
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
2000
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
2001
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
2002
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
2003
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
2004
- className
2005
- ),
2006
- ...props,
2007
- children: [
2008
- children,
2009
- /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
2010
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
2011
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
2012
- ] })
2013
- ]
2014
- }
2015
- )
2016
- ] });
2017
- }
2018
- function SheetHeader({ className, ...props }) {
2019
- return /* @__PURE__ */ jsxRuntime.jsx(
2020
- "div",
2021
- {
2022
- "data-slot": "sheet-header",
2023
- className: tooltip.cn("flex flex-col gap-1.5 px-6 pt-6", className),
2024
- ...props
2025
- }
2026
- );
2027
- }
2028
- function SheetFooter({ className, ...props }) {
2029
- return /* @__PURE__ */ jsxRuntime.jsx(
2030
- "div",
2031
- {
2032
- "data-slot": "sheet-footer",
2033
- className: tooltip.cn("mt-auto flex flex-col gap-2 px-6 pb-6", className),
2034
- ...props
2035
- }
2036
- );
2037
- }
2038
- function SheetTitle({
2039
- className,
2040
- ...props
2041
- }) {
2042
- return /* @__PURE__ */ jsxRuntime.jsx(
2043
- DialogPrimitive__namespace.Title,
2044
- {
2045
- "data-slot": "sheet-title",
2046
- className: tooltip.cn("text-foreground font-semibold", className),
2047
- ...props
2048
- }
2049
- );
2050
- }
2051
- function SheetDescription({
2052
- className,
2053
- ...props
2054
- }) {
2055
- return /* @__PURE__ */ jsxRuntime.jsx(
2056
- DialogPrimitive__namespace.Description,
2057
- {
2058
- "data-slot": "sheet-description",
2059
- className: tooltip.cn("text-muted-foreground text-sm", className),
2060
- ...props
2061
- }
2062
- );
2063
- }
2064
- function Drawer({
2065
- ...props
2066
- }) {
2067
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
2068
- }
2069
- function DrawerTrigger({
2070
- ...props
2071
- }) {
2072
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
2073
- }
2074
- function DrawerPortal({
2075
- ...props
2076
- }) {
2077
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
2078
- }
2079
- const DrawerOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
2080
- return /* @__PURE__ */ jsxRuntime.jsx(
2081
- vaul.Drawer.Overlay,
2082
- {
2083
- ref,
2084
- "data-slot": "drawer-overlay",
2085
- className: tooltip.cn(
2086
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
2087
- className
2088
- ),
2089
- ...props
2090
- }
2091
- );
2092
- });
2093
- DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
2094
- function DrawerContent({
2095
- className,
2096
- children,
2097
- ...props
2098
- }) {
2099
- return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
2100
- /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
2101
- /* @__PURE__ */ jsxRuntime.jsxs(
2102
- vaul.Drawer.Content,
2103
- {
2104
- "data-slot": "drawer-content",
2105
- className: tooltip.cn(
2106
- "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
2107
- "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
2108
- "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
2109
- "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
2110
- "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
2111
- className
2112
- ),
2113
- ...props,
2114
- children: [
2115
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
2116
- children
2117
- ]
2118
- }
2119
- )
2120
- ] });
2121
- }
2122
- function DrawerHeader({ className, ...props }) {
2123
- return /* @__PURE__ */ jsxRuntime.jsx(
2124
- "div",
2125
- {
2126
- "data-slot": "drawer-header",
2127
- className: tooltip.cn("flex flex-col gap-1.5 p-4", className),
2128
- ...props
2129
- }
2130
- );
2131
- }
2132
- function DrawerFooter({ className, ...props }) {
2133
- return /* @__PURE__ */ jsxRuntime.jsx(
2134
- "div",
2135
- {
2136
- "data-slot": "drawer-footer",
2137
- className: tooltip.cn("mt-auto flex flex-col gap-2 p-4", className),
2138
- ...props
2139
- }
2140
- );
2141
- }
2142
- function DrawerTitle({
2143
- className,
2144
- ...props
2145
- }) {
2146
- return /* @__PURE__ */ jsxRuntime.jsx(
2147
- vaul.Drawer.Title,
2148
- {
2149
- "data-slot": "drawer-title",
2150
- className: tooltip.cn("text-foreground font-semibold", className),
2151
- ...props
2152
- }
2153
- );
2154
- }
2155
- function DrawerDescription({
2156
- className,
2157
- ...props
2158
- }) {
2159
- return /* @__PURE__ */ jsxRuntime.jsx(
2160
- vaul.Drawer.Description,
2161
- {
2162
- "data-slot": "drawer-description",
2163
- className: tooltip.cn("text-muted-foreground text-sm", className),
2164
- ...props
2165
- }
2166
- );
2167
- }
2168
- function DrawerHandle({ className, ...props }) {
2169
- return /* @__PURE__ */ jsxRuntime.jsx(
2170
- "div",
2171
- {
2172
- "data-slot": "drawer-handle",
2173
- className: tooltip.cn("bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full", className),
2174
- ...props
2175
- }
2176
- );
2177
- }
2178
- function HoverCard({
2179
- ...props
2180
- }) {
2181
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Root, { "data-slot": "hover-card", ...props });
2182
- }
2183
- function HoverCardTrigger({
2184
- ...props
2185
- }) {
2186
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Trigger, { "data-slot": "hover-card-trigger", ...props });
2187
- }
2188
- function HoverCardContent({
2189
- className,
2190
- align = "center",
2191
- sideOffset = 4,
2192
- ...props
2193
- }) {
2194
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
2195
- HoverCardPrimitive__namespace.Content,
2196
- {
2197
- "data-slot": "hover-card-content",
2198
- align,
2199
- sideOffset,
2200
- className: tooltip.cn(
2201
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2202
- className
2203
- ),
2204
- ...props
2205
- }
2206
- ) });
2207
- }
2208
- function ContextMenu({
2209
- ...props
2210
- }) {
2211
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Root, { "data-slot": "context-menu", ...props });
2212
- }
2213
- function ContextMenuTrigger({
2214
- ...props
2215
- }) {
2216
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Trigger, { "data-slot": "context-menu-trigger", ...props });
2217
- }
2218
- function ContextMenuGroup({
2219
- ...props
2220
- }) {
2221
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Group, { "data-slot": "context-menu-group", ...props });
2222
- }
2223
- function ContextMenuPortal({
2224
- ...props
2225
- }) {
2226
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { "data-slot": "context-menu-portal", ...props });
2227
- }
2228
- function ContextMenuSub({
2229
- ...props
2230
- }) {
2231
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Sub, { "data-slot": "context-menu-sub", ...props });
2232
- }
2233
- function ContextMenuRadioGroup({
2234
- ...props
2235
- }) {
2236
- return /* @__PURE__ */ jsxRuntime.jsx(
2237
- ContextMenuPrimitive__namespace.RadioGroup,
2238
- {
2239
- "data-slot": "context-menu-radio-group",
2240
- ...props
2241
- }
2242
- );
2243
- }
2244
- function ContextMenuSubTrigger({
2245
- className,
2246
- inset,
2247
- children,
2248
- ...props
2249
- }) {
2250
- return /* @__PURE__ */ jsxRuntime.jsxs(
2251
- ContextMenuPrimitive__namespace.SubTrigger,
2252
- {
2253
- "data-slot": "context-menu-sub-trigger",
2254
- "data-inset": inset,
2255
- className: tooltip.cn(
2256
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2257
- className
2258
- ),
2259
- ...props,
2260
- children: [
2261
- children,
2262
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto" })
2263
- ]
2264
- }
2265
- );
2266
- }
2267
- function ContextMenuSubContent({
2268
- className,
2269
- ...props
2270
- }) {
2271
- return /* @__PURE__ */ jsxRuntime.jsx(
2272
- ContextMenuPrimitive__namespace.SubContent,
2273
- {
2274
- "data-slot": "context-menu-sub-content",
2275
- className: tooltip.cn(
2276
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2277
- className
2278
- ),
2279
- ...props
2280
- }
2281
- );
2282
- }
2283
- function ContextMenuContent({
2284
- className,
2285
- ...props
2286
- }) {
2287
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2288
- ContextMenuPrimitive__namespace.Content,
2289
- {
2290
- "data-slot": "context-menu-content",
2291
- className: tooltip.cn(
2292
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
2293
- className
2294
- ),
2295
- ...props
2296
- }
2297
- ) });
2298
- }
2299
- function ContextMenuItem({
2300
- className,
2301
- inset,
2302
- variant = "default",
2303
- ...props
2304
- }) {
2305
- return /* @__PURE__ */ jsxRuntime.jsx(
2306
- ContextMenuPrimitive__namespace.Item,
2307
- {
2308
- "data-slot": "context-menu-item",
2309
- "data-inset": inset,
2310
- "data-variant": variant,
2311
- className: tooltip.cn(
2312
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2313
- className
2314
- ),
2315
- ...props
2316
- }
2317
- );
2318
- }
2319
- function ContextMenuCheckboxItem({
2320
- className,
2321
- children,
2322
- checked,
2323
- ...props
2324
- }) {
2325
- return /* @__PURE__ */ jsxRuntime.jsxs(
2326
- ContextMenuPrimitive__namespace.CheckboxItem,
2327
- {
2328
- "data-slot": "context-menu-checkbox-item",
2329
- className: tooltip.cn(
2330
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2331
- className
2332
- ),
2333
- checked,
2334
- ...props,
2335
- children: [
2336
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
2337
- children
2338
- ]
2339
- }
2340
- );
2341
- }
2342
- function ContextMenuRadioItem({
2343
- className,
2344
- children,
2345
- ...props
2346
- }) {
2347
- return /* @__PURE__ */ jsxRuntime.jsxs(
2348
- ContextMenuPrimitive__namespace.RadioItem,
2349
- {
2350
- "data-slot": "context-menu-radio-item",
2351
- className: tooltip.cn(
2352
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2353
- className
2354
- ),
2355
- ...props,
2356
- children: [
2357
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
2358
- children
2359
- ]
2360
- }
2361
- );
2362
- }
2363
- function ContextMenuLabel({
2364
- className,
2365
- inset,
2366
- ...props
2367
- }) {
2368
- return /* @__PURE__ */ jsxRuntime.jsx(
2369
- ContextMenuPrimitive__namespace.Label,
2370
- {
2371
- "data-slot": "context-menu-label",
2372
- "data-inset": inset,
2373
- className: tooltip.cn(
2374
- "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2375
- className
2376
- ),
2377
- ...props
2378
- }
2379
- );
2380
- }
2381
- function ContextMenuSeparator({
2382
- className,
2383
- ...props
2384
- }) {
2385
- return /* @__PURE__ */ jsxRuntime.jsx(
2386
- ContextMenuPrimitive__namespace.Separator,
2387
- {
2388
- "data-slot": "context-menu-separator",
2389
- className: tooltip.cn("bg-border -mx-1 my-1 h-px", className),
2390
- ...props
2391
- }
2392
- );
2393
- }
2394
- function ContextMenuShortcut({
2395
- className,
2396
- ...props
2397
- }) {
2398
- return /* @__PURE__ */ jsxRuntime.jsx(
2399
- "span",
2400
- {
2401
- "data-slot": "context-menu-shortcut",
2402
- className: tooltip.cn(
2403
- "text-muted-foreground ml-auto text-xs tracking-widest",
2404
- className
2405
- ),
2406
- ...props
2407
- }
2408
- );
2409
- }
2410
- function Menubar({
2411
- className,
2412
- ...props
2413
- }) {
2414
- return /* @__PURE__ */ jsxRuntime.jsx(
2415
- MenubarPrimitive__namespace.Root,
2416
- {
2417
- "data-slot": "menubar",
2418
- className: tooltip.cn(
2419
- "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
2420
- className
2421
- ),
2422
- ...props
2423
- }
2424
- );
2425
- }
2426
- function MenubarMenu({
2427
- ...props
2428
- }) {
2429
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { "data-slot": "menubar-menu", ...props });
2430
- }
2431
- function MenubarGroup({
2432
- ...props
2433
- }) {
2434
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { "data-slot": "menubar-group", ...props });
2435
- }
2436
- function MenubarPortal({
2437
- ...props
2438
- }) {
2439
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { "data-slot": "menubar-portal", ...props });
2440
- }
2441
- function MenubarRadioGroup({
2442
- ...props
2443
- }) {
2444
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
2445
- }
2446
- function MenubarTrigger({
2447
- className,
2448
- ...props
2449
- }) {
2450
- return /* @__PURE__ */ jsxRuntime.jsx(
2451
- MenubarPrimitive__namespace.Trigger,
2452
- {
2453
- "data-slot": "menubar-trigger",
2454
- className: tooltip.cn(
2455
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
2456
- className
2457
- ),
2458
- ...props
2459
- }
2460
- );
2461
- }
2462
- function MenubarContent({
2463
- className,
2464
- align = "start",
2465
- alignOffset = -4,
2466
- sideOffset = 8,
2467
- ...props
2468
- }) {
2469
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2470
- MenubarPrimitive__namespace.Content,
2471
- {
2472
- "data-slot": "menubar-content",
2473
- align,
2474
- alignOffset,
2475
- sideOffset,
2476
- className: tooltip.cn(
2477
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2478
- className
2479
- ),
2480
- ...props
2481
- }
2482
- ) });
2483
- }
2484
- function MenubarItem({
2485
- className,
2486
- inset,
2487
- variant = "default",
2488
- ...props
2489
- }) {
2490
- return /* @__PURE__ */ jsxRuntime.jsx(
2491
- MenubarPrimitive__namespace.Item,
2492
- {
2493
- "data-slot": "menubar-item",
2494
- "data-inset": inset,
2495
- "data-variant": variant,
2496
- className: tooltip.cn(
2497
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2498
- className
2499
- ),
2500
- ...props
2501
- }
2502
- );
2503
- }
2504
- function MenubarCheckboxItem({
2505
- className,
2506
- children,
2507
- checked,
2508
- ...props
2509
- }) {
2510
- return /* @__PURE__ */ jsxRuntime.jsxs(
2511
- MenubarPrimitive__namespace.CheckboxItem,
2512
- {
2513
- "data-slot": "menubar-checkbox-item",
2514
- className: tooltip.cn(
2515
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2516
- className
2517
- ),
2518
- checked,
2519
- ...props,
2520
- children: [
2521
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
2522
- children
2523
- ]
2524
- }
2525
- );
2526
- }
2527
- function MenubarRadioItem({
2528
- className,
2529
- children,
2530
- ...props
2531
- }) {
2532
- return /* @__PURE__ */ jsxRuntime.jsxs(
2533
- MenubarPrimitive__namespace.RadioItem,
2534
- {
2535
- "data-slot": "menubar-radio-item",
2536
- className: tooltip.cn(
2537
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2538
- className
2539
- ),
2540
- ...props,
2541
- children: [
2542
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
2543
- children
2544
- ]
2545
- }
2546
- );
2547
- }
2548
- function MenubarLabel({
2549
- className,
2550
- inset,
2551
- ...props
2552
- }) {
2553
- return /* @__PURE__ */ jsxRuntime.jsx(
2554
- MenubarPrimitive__namespace.Label,
2555
- {
2556
- "data-slot": "menubar-label",
2557
- "data-inset": inset,
2558
- className: tooltip.cn(
2559
- "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2560
- className
2561
- ),
2562
- ...props
2563
- }
2564
- );
2565
- }
2566
- function MenubarSeparator({
2567
- className,
2568
- ...props
2569
- }) {
2570
- return /* @__PURE__ */ jsxRuntime.jsx(
2571
- MenubarPrimitive__namespace.Separator,
2572
- {
2573
- "data-slot": "menubar-separator",
2574
- className: tooltip.cn("bg-border -mx-1 my-1 h-px", className),
2575
- ...props
2576
- }
2577
- );
2578
- }
2579
- function MenubarShortcut({
2580
- className,
2581
- ...props
2582
- }) {
2583
- return /* @__PURE__ */ jsxRuntime.jsx(
2584
- "span",
2585
- {
2586
- "data-slot": "menubar-shortcut",
2587
- className: tooltip.cn(
2588
- "text-muted-foreground ml-auto text-xs tracking-widest",
2589
- className
2590
- ),
2591
- ...props
2592
- }
2593
- );
2594
- }
2595
- function MenubarSub({
2596
- ...props
2597
- }) {
2598
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
2599
- }
2600
- function MenubarSubTrigger({
2601
- className,
2602
- inset,
2603
- children,
2604
- ...props
2605
- }) {
2606
- return /* @__PURE__ */ jsxRuntime.jsxs(
2607
- MenubarPrimitive__namespace.SubTrigger,
2608
- {
2609
- "data-slot": "menubar-sub-trigger",
2610
- "data-inset": inset,
2611
- className: tooltip.cn(
2612
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
2613
- className
2614
- ),
2615
- ...props,
2616
- children: [
2617
- children,
2618
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
2619
- ]
2620
- }
2621
- );
2622
- }
2623
- function MenubarSubContent({
2624
- className,
2625
- ...props
2626
- }) {
2627
- return /* @__PURE__ */ jsxRuntime.jsx(
2628
- MenubarPrimitive__namespace.SubContent,
2629
- {
2630
- "data-slot": "menubar-sub-content",
2631
- className: tooltip.cn(
2632
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2633
- className
2634
- ),
2635
- ...props
2636
- }
2637
- );
2638
- }
2639
- function Command({
2640
- className,
2641
- ...props
2642
- }) {
2643
- return /* @__PURE__ */ jsxRuntime.jsx(
2644
- cmdk.Command,
2645
- {
2646
- "data-slot": "command",
2647
- className: tooltip.cn(
2648
- "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
2649
- className
2650
- ),
2651
- ...props
2652
- }
2653
- );
2654
- }
2655
- function CommandDialog({
2656
- title = "Command Palette",
2657
- description = "Search for a command to run...",
2658
- children,
2659
- ...props
2660
- }) {
2661
- return /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { ...props, children: [
2662
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { className: "sr-only", children: [
2663
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: title }),
2664
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: description })
2665
- ] }),
2666
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
2667
- ] });
2668
- }
2669
- function CommandInput({
2670
- className,
2671
- ...props
2672
- }) {
2673
- return /* @__PURE__ */ jsxRuntime.jsxs(
2674
- "div",
2675
- {
2676
- "data-slot": "command-input-wrapper",
2677
- className: "flex h-9 items-center gap-2 border-b px-3",
2678
- children: [
2679
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
2680
- /* @__PURE__ */ jsxRuntime.jsx(
2681
- cmdk.Command.Input,
2682
- {
2683
- "data-slot": "command-input",
2684
- className: tooltip.cn(
2685
- "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
2686
- className
2687
- ),
2688
- ...props
2689
- }
2690
- )
2691
- ]
2692
- }
2693
- );
2694
- }
2695
- function CommandList({
2696
- className,
2697
- ...props
2698
- }) {
2699
- return /* @__PURE__ */ jsxRuntime.jsx(
2700
- cmdk.Command.List,
2701
- {
2702
- "data-slot": "command-list",
2703
- role: "listbox",
2704
- className: tooltip.cn(
2705
- "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
2706
- className
2707
- ),
2708
- ...props
2709
- }
2710
- );
2711
- }
2712
- function CommandEmpty({
2713
- ...props
2714
- }) {
2715
- return /* @__PURE__ */ jsxRuntime.jsx(
2716
- cmdk.Command.Empty,
2717
- {
2718
- "data-slot": "command-empty",
2719
- className: "py-6 text-center text-sm",
2720
- ...props
2721
- }
2722
- );
2723
- }
2724
- function CommandGroup({
2725
- className,
2726
- ...props
2727
- }) {
2728
- return /* @__PURE__ */ jsxRuntime.jsx(
2729
- cmdk.Command.Group,
2730
- {
2731
- "data-slot": "command-group",
2732
- className: tooltip.cn(
2733
- "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
2734
- className
2735
- ),
2736
- ...props
2737
- }
2738
- );
2739
- }
2740
- function CommandSeparator({
2741
- className,
2742
- ...props
2743
- }) {
2744
- return /* @__PURE__ */ jsxRuntime.jsx(
2745
- cmdk.Command.Separator,
2746
- {
2747
- "data-slot": "command-separator",
2748
- className: tooltip.cn("bg-border -mx-1 h-px", className),
2749
- ...props
2750
- }
2751
- );
2752
- }
2753
- function CommandItem({
2754
- className,
2755
- ...props
2756
- }) {
2757
- return /* @__PURE__ */ jsxRuntime.jsx(
2758
- cmdk.Command.Item,
2759
- {
2760
- "data-slot": "command-item",
2761
- role: "option",
2762
- className: tooltip.cn(
2763
- "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2764
- className
2765
- ),
2766
- ...props
2767
- }
2768
- );
2769
- }
2770
- function CommandShortcut({
2771
- className,
2772
- ...props
2773
- }) {
2774
- return /* @__PURE__ */ jsxRuntime.jsx(
2775
- "span",
2776
- {
2777
- "data-slot": "command-shortcut",
2778
- className: tooltip.cn(
2779
- "text-muted-foreground ml-auto text-xs tracking-widest",
2780
- className
2781
- ),
2782
- ...props
2783
- }
2784
- );
2785
- }
2786
- function Skeleton({ className, ...props }) {
2787
- return /* @__PURE__ */ jsxRuntime.jsx(
2788
- "div",
2789
- {
2790
- "data-slot": "skeleton",
2791
- className: tooltip.cn("bg-accent animate-pulse rounded-md", className),
2792
- ...props
2793
- }
2794
- );
2795
- }
2796
- const variantStyles = {
2797
- default: "bg-primary text-primary-foreground",
2798
- secondary: "bg-secondary text-secondary-foreground",
2799
- destructive: "bg-destructive text-destructive-foreground",
2800
- outline: "border-2 border-primary bg-background text-primary",
2801
- success: "bg-success text-success-foreground",
2802
- info: "bg-info text-info-foreground",
2803
- warning: "bg-warning text-warning-foreground"
2804
- };
2805
- const NotificationBadge = React__namespace.forwardRef(
2806
- ({
2807
- className,
2808
- count = 0,
2809
- max = 99,
2810
- showZero = false,
2811
- dot = false,
2812
- variant = "destructive",
2813
- children,
2814
- ...props
2815
- }, ref) => {
2816
- const displayCount = count > max ? `${max}+` : count;
2817
- const shouldShow = count > 0 || showZero;
2818
- if (!shouldShow && !dot) {
2819
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children });
2820
- }
2821
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("relative inline-block", className), ...props, children: [
2822
- children,
2823
- /* @__PURE__ */ jsxRuntime.jsx(
2824
- "span",
2825
- {
2826
- className: tooltip.cn(
2827
- "absolute -right-1 -top-1 flex items-center justify-center rounded-full",
2828
- variantStyles[variant],
2829
- dot ? "h-2 w-2" : "min-w-[1.25rem] h-5 px-1.5"
2830
- ),
2831
- children: !dot && shouldShow && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-medium leading-none", children: displayCount })
2832
- }
2833
- )
2834
- ] });
2835
- }
2836
- );
2837
- NotificationBadge.displayName = "NotificationBadge";
2838
- const Empty = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2839
- "div",
2840
- {
2841
- ref,
2842
- className: tooltip.cn(
2843
- "flex min-h-[400px] flex-col items-center justify-center rounded-[var(--radius-card)] border border-dashed border-border p-8 text-center animate-in fade-in-50",
2844
- className
2845
- ),
2846
- ...props
2847
- }
2848
- ));
2849
- Empty.displayName = "Empty";
2850
- const EmptyIcon = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2851
- "div",
2852
- {
2853
- ref,
2854
- className: tooltip.cn(
2855
- "mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-muted",
2856
- className
2857
- ),
2858
- ...props
2859
- }
2860
- ));
2861
- EmptyIcon.displayName = "EmptyIcon";
2862
- const EmptyImage = React__namespace.forwardRef(({ className, alt, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2863
- "img",
2864
- {
2865
- ref,
2866
- alt,
2867
- className: tooltip.cn("mx-auto mb-4 h-48 w-48 object-contain opacity-50", className),
2868
- ...props
2869
- }
2870
- ));
2871
- EmptyImage.displayName = "EmptyImage";
2872
- const EmptyTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2873
- "h3",
2874
- {
2875
- ref,
2876
- className: tooltip.cn("mt-4 font-semibold text-foreground", className),
2877
- ...props
2878
- }
2879
- ));
2880
- EmptyTitle.displayName = "EmptyTitle";
2881
- const EmptyDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2882
- "p",
2883
- {
2884
- ref,
2885
- className: tooltip.cn("mt-2 text-sm text-muted-foreground max-w-sm mx-auto", className),
2886
- ...props
2887
- }
2888
- ));
2889
- EmptyDescription.displayName = "EmptyDescription";
2890
- const EmptyAction = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2891
- "div",
2892
- {
2893
- ref,
2894
- className: tooltip.cn("mt-6 flex flex-col gap-2 sm:flex-row sm:gap-4", className),
2895
- ...props
2896
- }
2897
- ));
2898
- EmptyAction.displayName = "EmptyAction";
2899
- const StatsCard = React__namespace.forwardRef(
2900
- ({ className, title, value, description, trend, icon, ...props }, ref) => {
2901
- const getTrendIcon = () => {
2902
- if (!trend) return null;
2903
- if (trend.value > 0) {
2904
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingUp, { className: "h-4 w-4 text-success" });
2905
- } else if (trend.value < 0) {
2906
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingDown, { className: "h-4 w-4 text-destructive" });
2907
- } else {
2908
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "h-4 w-4 text-muted-foreground" });
2909
- }
2910
- };
2911
- const getTrendColor = () => {
2912
- if (!trend) return "";
2913
- if (trend.value > 0) {
2914
- return "text-success";
2915
- } else if (trend.value < 0) {
2916
- return "text-destructive";
2917
- } else {
2918
- return "text-muted-foreground";
2919
- }
2920
- };
2921
- return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.Card, { ref, className: tooltip.cn("", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.CardContent, { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
2922
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
2923
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-1 text-sm", children: title }),
2924
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-2", children: [
2925
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-xl sm:text-2xl", children: value }),
2926
- trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("flex items-center gap-1 text-sm", getTrendColor()), children: [
2927
- getTrendIcon(),
2928
- /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
2929
- Math.abs(trend.value),
2930
- "%"
2931
- ] })
2932
- ] })
2933
- ] }),
2934
- (description || (trend == null ? void 0 : trend.label)) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mt-1 text-xs sm:text-sm", children: (trend == null ? void 0 : trend.label) || description })
2935
- ] }),
2936
- icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius)] bg-muted p-2 sm:p-3 text-muted-foreground flex-shrink-0", children: icon })
2937
- ] }) }) });
2938
- }
2939
- );
2940
- StatsCard.displayName = "StatsCard";
2941
- const Timeline = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2942
- "ol",
2943
- {
2944
- ref,
2945
- className: tooltip.cn("relative border-l border-border", className),
2946
- ...props
2947
- }
2948
- ));
2949
- Timeline.displayName = "Timeline";
2950
- const TimelineItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2951
- "li",
2952
- {
2953
- ref,
2954
- className: tooltip.cn("mb-10 ml-6", className),
2955
- ...props
2956
- }
2957
- ));
2958
- TimelineItem.displayName = "TimelineItem";
2959
- const TimelineDot = React__namespace.forwardRef(({ className, variant = "default", icon, children, ...props }, ref) => {
2960
- const variantStyles2 = {
2961
- default: "bg-muted border-border",
2962
- primary: "bg-primary border-primary",
2963
- success: "bg-success border-success",
2964
- info: "bg-info border-info",
2965
- warning: "bg-warning border-warning",
2966
- destructive: "bg-destructive border-destructive",
2967
- outline: "bg-background border-border"
2968
- };
2969
- const iconColorStyles = {
2970
- default: "text-muted-foreground",
2971
- primary: "text-primary-foreground",
2972
- success: "text-success-foreground",
2973
- info: "text-info-foreground",
2974
- warning: "text-warning-foreground",
2975
- destructive: "text-destructive-foreground",
2976
- outline: "text-foreground"
2977
- };
2978
- if (icon || children) {
2979
- return /* @__PURE__ */ jsxRuntime.jsx(
2980
- "div",
2981
- {
2982
- ref,
2983
- className: tooltip.cn(
2984
- "absolute -left-[17px] mt-0.5 h-8 w-8 rounded-full border-2 flex items-center justify-center",
2985
- variantStyles2[variant],
2986
- className
2987
- ),
2988
- ...props,
2989
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: tooltip.cn("h-4 w-4", iconColorStyles[variant]), children: icon || children })
2990
- }
2991
- );
2992
- }
2993
- return /* @__PURE__ */ jsxRuntime.jsx(
2994
- "div",
2995
- {
2996
- ref,
2997
- className: tooltip.cn(
2998
- "absolute -left-[9px] mt-1.5 h-4 w-4 rounded-full border-2",
2999
- variantStyles2[variant],
3000
- className
3001
- ),
3002
- ...props
3003
- }
3004
- );
3005
- });
3006
- TimelineDot.displayName = "TimelineDot";
3007
- const TimelineContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3008
- "div",
3009
- {
3010
- ref,
3011
- className: tooltip.cn("", className),
3012
- ...props
3013
- }
3014
- ));
3015
- TimelineContent.displayName = "TimelineContent";
3016
- const TimelineHeading = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3017
- "h3",
3018
- {
3019
- ref,
3020
- className: tooltip.cn("mb-1 text-foreground", className),
3021
- ...props
3022
- }
3023
- ));
3024
- TimelineHeading.displayName = "TimelineHeading";
3025
- const TimelineTime = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3026
- "time",
3027
- {
3028
- ref,
3029
- className: tooltip.cn("mb-2 block text-muted-foreground", className),
3030
- ...props
3031
- }
3032
- ));
3033
- TimelineTime.displayName = "TimelineTime";
3034
- const TimelineDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3035
- "p",
3036
- {
3037
- ref,
3038
- className: tooltip.cn("text-muted-foreground", className),
3039
- ...props
3040
- }
3041
- ));
3042
- TimelineDescription.displayName = "TimelineDescription";
3043
- const TreeView = React__namespace.forwardRef(
3044
- ({ className, data, onNodeClick, onNodeSelect, defaultExpanded = [], selectedNodeId, ...props }, ref) => {
3045
- const [expanded, setExpanded] = React__namespace.useState(new Set(defaultExpanded));
3046
- const [internalSelectedId, setInternalSelectedId] = React__namespace.useState(void 0);
3047
- const nodeRefs = React__namespace.useRef(/* @__PURE__ */ new Map());
3048
- const isControlled = selectedNodeId !== void 0;
3049
- const effectiveSelectedId = isControlled ? selectedNodeId : internalSelectedId;
3050
- const toggleExpand = (nodeId) => {
3051
- setExpanded((prev) => {
3052
- const next = new Set(prev);
3053
- next.has(nodeId) ? next.delete(nodeId) : next.add(nodeId);
3054
- return next;
3055
- });
3056
- };
3057
- const getVisibleNodes = React__namespace.useCallback(() => {
3058
- const result = [];
3059
- const traverse = (nodes) => {
3060
- var _a;
3061
- for (const node of nodes) {
3062
- result.push(node);
3063
- if (((_a = node.children) == null ? void 0 : _a.length) && expanded.has(node.id)) traverse(node.children);
3064
- }
3065
- };
3066
- traverse(data);
3067
- return result;
3068
- }, [data, expanded]);
3069
- const findParent = (nodes, targetId) => {
3070
- var _a;
3071
- for (const n of nodes) {
3072
- if ((_a = n.children) == null ? void 0 : _a.some((c) => c.id === targetId)) return n;
3073
- if (n.children) {
3074
- const found = findParent(n.children, targetId);
3075
- if (found) return found;
3076
- }
3077
- }
3078
- return null;
3079
- };
3080
- const handleSelect = (node) => {
3081
- if (!isControlled) setInternalSelectedId(node.id);
3082
- onNodeSelect == null ? void 0 : onNodeSelect(node);
3083
- onNodeClick == null ? void 0 : onNodeClick(node);
3084
- };
3085
- const handleKeyDown = (e, node) => {
3086
- var _a, _b;
3087
- const visibleNodes = getVisibleNodes();
3088
- const idx = visibleNodes.findIndex((n) => n.id === node.id);
3089
- const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
3090
- const isExpanded = expanded.has(node.id);
3091
- const focusNode = (id) => {
3092
- var _a2;
3093
- (_a2 = nodeRefs.current.get(id)) == null ? void 0 : _a2.focus();
3094
- };
3095
- switch (e.key) {
3096
- case "ArrowDown": {
3097
- e.preventDefault();
3098
- const next = visibleNodes[idx + 1];
3099
- if (next) focusNode(next.id);
3100
- break;
3101
- }
3102
- case "ArrowUp": {
3103
- e.preventDefault();
3104
- const prev = visibleNodes[idx - 1];
3105
- if (prev) focusNode(prev.id);
3106
- break;
3107
- }
3108
- case "ArrowRight": {
3109
- e.preventDefault();
3110
- if (hasChildren && !isExpanded) {
3111
- toggleExpand(node.id);
3112
- } else if (hasChildren && isExpanded && ((_b = node.children) == null ? void 0 : _b.length)) {
3113
- focusNode(node.children[0].id);
3114
- }
3115
- break;
3116
- }
3117
- case "ArrowLeft": {
3118
- e.preventDefault();
3119
- if (hasChildren && isExpanded) {
3120
- toggleExpand(node.id);
3121
- } else {
3122
- const parent = findParent(data, node.id);
3123
- if (parent) focusNode(parent.id);
3124
- }
3125
- break;
3126
- }
3127
- case "Home": {
3128
- e.preventDefault();
3129
- if (visibleNodes.length > 0) focusNode(visibleNodes[0].id);
3130
- break;
3131
- }
3132
- case "End": {
3133
- e.preventDefault();
3134
- const last = visibleNodes[visibleNodes.length - 1];
3135
- if (last) focusNode(last.id);
3136
- break;
3137
- }
3138
- case "Enter":
3139
- case " ": {
3140
- e.preventDefault();
3141
- if (hasChildren) toggleExpand(node.id);
3142
- handleSelect(node);
3143
- break;
3144
- }
3145
- }
3146
- };
3147
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: tooltip.cn("w-full", className), role: "tree", ...props, children: data.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
3148
- TreeNodeComponent,
3149
- {
3150
- node,
3151
- level: 0,
3152
- expanded,
3153
- selectedId: effectiveSelectedId,
3154
- onToggle: toggleExpand,
3155
- onSelect: handleSelect,
3156
- onKeyDown: handleKeyDown,
3157
- nodeRefs
3158
- },
3159
- node.id
3160
- )) });
3161
- }
3162
- );
3163
- TreeView.displayName = "TreeView";
3164
- const TreeNodeComponent = ({
3165
- node,
3166
- level,
3167
- expanded,
3168
- selectedId,
3169
- onToggle,
3170
- onSelect,
3171
- onKeyDown,
3172
- nodeRefs
3173
- }) => {
3174
- var _a;
3175
- const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
3176
- const isExpanded = expanded.has(node.id);
3177
- const isSelected = node.id === selectedId;
3178
- const handleClick = () => {
3179
- if (hasChildren) onToggle(node.id);
3180
- onSelect(node);
3181
- };
3182
- const setRef = (el) => {
3183
- if (el) nodeRefs.current.set(node.id, el);
3184
- else nodeRefs.current.delete(node.id);
3185
- };
3186
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "none", children: [
3187
- /* @__PURE__ */ jsxRuntime.jsxs(
3188
- "button",
3189
- {
3190
- ref: setRef,
3191
- role: "treeitem",
3192
- "aria-expanded": hasChildren ? isExpanded : void 0,
3193
- "aria-selected": isSelected,
3194
- tabIndex: isSelected ? 0 : -1,
3195
- onClick: handleClick,
3196
- onKeyDown: (e) => onKeyDown(e, node),
3197
- className: tooltip.cn(
3198
- "flex w-full items-center gap-2 rounded-[var(--radius)] px-2 py-1.5 text-left transition-colors",
3199
- "hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
3200
- isSelected && "bg-primary/10 text-primary font-medium"
3201
- ),
3202
- style: { paddingLeft: `${level * 1.5 + 0.5}rem` },
3203
- children: [
3204
- hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: isExpanded ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-4 flex-shrink-0", "aria-hidden": "true" }),
3205
- node.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: node.icon }),
3206
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-foreground", children: node.label })
3207
- ]
3208
- }
3209
- ),
3210
- hasChildren && isExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", children: node.children.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
3211
- TreeNodeComponent,
3212
- {
3213
- node: child,
3214
- level: level + 1,
3215
- expanded,
3216
- selectedId,
3217
- onToggle,
3218
- onSelect,
3219
- onKeyDown,
3220
- nodeRefs
3221
- },
3222
- child.id
3223
- )) })
3224
- ] });
3225
- };
3226
- function Collapsible({
3227
- ...props
3228
- }) {
3229
- return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
3230
- }
3231
- function CollapsibleTrigger({
3232
- ...props
3233
- }) {
3234
- return /* @__PURE__ */ jsxRuntime.jsx(
3235
- CollapsiblePrimitive__namespace.CollapsibleTrigger,
3236
- {
3237
- "data-slot": "collapsible-trigger",
3238
- ...props
3239
- }
3240
- );
3241
- }
3242
- function CollapsibleContent({
3243
- ...props
3244
- }) {
3245
- return /* @__PURE__ */ jsxRuntime.jsx(
3246
- CollapsiblePrimitive__namespace.CollapsibleContent,
3247
- {
3248
- "data-slot": "collapsible-content",
3249
- ...props
3250
- }
3251
- );
3252
- }
3253
- function Accordion({
3254
- ...props
3255
- }) {
3256
- return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { "data-slot": "accordion", ...props });
3257
- }
3258
- function AccordionItem({
3259
- className,
3260
- ...props
3261
- }) {
3262
- return /* @__PURE__ */ jsxRuntime.jsx(
3263
- AccordionPrimitive__namespace.Item,
3264
- {
3265
- "data-slot": "accordion-item",
3266
- className: tooltip.cn("border-b last:border-b-0", className),
3267
- ...props
3268
- }
3269
- );
3270
- }
3271
- function AccordionTrigger({
3272
- className,
3273
- children,
3274
- ...props
3275
- }) {
3276
- return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
3277
- AccordionPrimitive__namespace.Trigger,
3278
- {
3279
- "data-slot": "accordion-trigger",
3280
- className: tooltip.cn(
3281
- "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
3282
- className
3283
- ),
3284
- ...props,
3285
- children: [
3286
- children,
3287
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
3288
- ]
3289
- }
3290
- ) });
3291
- }
3292
- function AccordionContent({
3293
- className,
3294
- children,
3295
- ...props
3296
- }) {
3297
- return /* @__PURE__ */ jsxRuntime.jsx(
3298
- AccordionPrimitive__namespace.Content,
3299
- {
3300
- "data-slot": "accordion-content",
3301
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
3302
- ...props,
3303
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("pt-0 pb-4", className), children })
3304
- }
3305
- );
3306
- }
3307
- const CarouselContext = React__namespace.createContext(null);
3308
- function useCarousel() {
3309
- const context = React__namespace.useContext(CarouselContext);
3310
- if (!context) {
3311
- throw new Error("useCarousel must be used within a <Carousel />");
3312
- }
3313
- return context;
3314
- }
3315
- function Carousel({
3316
- orientation = "horizontal",
3317
- opts,
3318
- setApi,
3319
- plugins,
3320
- className,
3321
- children,
3322
- ...props
3323
- }) {
3324
- const [carouselRef, api] = useEmblaCarousel(
3325
- {
3326
- ...opts,
3327
- axis: orientation === "horizontal" ? "x" : "y"
3328
- },
3329
- plugins
3330
- );
3331
- const [canScrollPrev, setCanScrollPrev] = React__namespace.useState(false);
3332
- const [canScrollNext, setCanScrollNext] = React__namespace.useState(false);
3333
- const onSelect = React__namespace.useCallback((api2) => {
3334
- if (!api2) return;
3335
- setCanScrollPrev(api2.canScrollPrev());
3336
- setCanScrollNext(api2.canScrollNext());
3337
- }, []);
3338
- const scrollPrev = React__namespace.useCallback(() => {
3339
- api == null ? void 0 : api.scrollPrev();
3340
- }, [api]);
3341
- const scrollNext = React__namespace.useCallback(() => {
3342
- api == null ? void 0 : api.scrollNext();
3343
- }, [api]);
3344
- const handleKeyDown = React__namespace.useCallback(
3345
- (event) => {
3346
- if (event.key === "ArrowLeft") {
3347
- event.preventDefault();
3348
- scrollPrev();
3349
- } else if (event.key === "ArrowRight") {
3350
- event.preventDefault();
3351
- scrollNext();
3352
- }
3353
- },
3354
- [scrollPrev, scrollNext]
3355
- );
3356
- React__namespace.useEffect(() => {
3357
- if (!api || !setApi) return;
3358
- setApi(api);
3359
- }, [api, setApi]);
3360
- React__namespace.useEffect(() => {
3361
- if (!api) return;
3362
- onSelect(api);
3363
- api.on("reInit", onSelect);
3364
- api.on("select", onSelect);
3365
- return () => {
3366
- api == null ? void 0 : api.off("select", onSelect);
3367
- };
3368
- }, [api, onSelect]);
3369
- return /* @__PURE__ */ jsxRuntime.jsx(
3370
- CarouselContext.Provider,
3371
- {
3372
- value: {
3373
- carouselRef,
3374
- api,
3375
- opts,
3376
- orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
3377
- scrollPrev,
3378
- scrollNext,
3379
- canScrollPrev,
3380
- canScrollNext
3381
- },
3382
- children: /* @__PURE__ */ jsxRuntime.jsx(
3383
- "div",
3384
- {
3385
- onKeyDownCapture: handleKeyDown,
3386
- className: tooltip.cn("relative", className),
3387
- role: "region",
3388
- "aria-roledescription": "carousel",
3389
- "data-slot": "carousel",
3390
- ...props,
3391
- children
3392
- }
3393
- )
3394
- }
3395
- );
3396
- }
3397
- function CarouselContent({ className, ...props }) {
3398
- const { carouselRef, orientation } = useCarousel();
3399
- return /* @__PURE__ */ jsxRuntime.jsx(
3400
- "div",
3401
- {
3402
- ref: carouselRef,
3403
- className: "overflow-hidden",
3404
- "data-slot": "carousel-content",
3405
- children: /* @__PURE__ */ jsxRuntime.jsx(
3406
- "div",
3407
- {
3408
- className: tooltip.cn(
3409
- "flex",
3410
- orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
3411
- className
3412
- ),
3413
- ...props
3414
- }
3415
- )
3416
- }
3417
- );
3418
- }
3419
- function CarouselItem({ className, ...props }) {
3420
- const { orientation } = useCarousel();
3421
- return /* @__PURE__ */ jsxRuntime.jsx(
3422
- "div",
3423
- {
3424
- role: "group",
3425
- "aria-roledescription": "slide",
3426
- "data-slot": "carousel-item",
3427
- className: tooltip.cn(
3428
- "min-w-0 shrink-0 grow-0 basis-full",
3429
- orientation === "horizontal" ? "pl-4" : "pt-4",
3430
- className
3431
- ),
3432
- ...props
3433
- }
3434
- );
3435
- }
3436
- function CarouselPrevious({
3437
- className,
3438
- variant = "outline",
3439
- size = "icon",
3440
- ...props
3441
- }) {
3442
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
3443
- return /* @__PURE__ */ jsxRuntime.jsxs(
3444
- tooltip.Button,
3445
- {
3446
- "data-slot": "carousel-previous",
3447
- variant,
3448
- size,
3449
- className: tooltip.cn(
3450
- "absolute size-8 rounded-full",
3451
- orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
3452
- className
3453
- ),
3454
- disabled: !canScrollPrev,
3455
- onClick: scrollPrev,
3456
- ...props,
3457
- children: [
3458
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
3459
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
3460
- ]
3461
- }
3462
- );
3463
- }
3464
- function CarouselNext({
3465
- className,
3466
- variant = "outline",
3467
- size = "icon",
3468
- ...props
3469
- }) {
3470
- const { orientation, scrollNext, canScrollNext } = useCarousel();
3471
- return /* @__PURE__ */ jsxRuntime.jsxs(
3472
- tooltip.Button,
3473
- {
3474
- "data-slot": "carousel-next",
3475
- variant,
3476
- size,
3477
- className: tooltip.cn(
3478
- "absolute size-8 rounded-full",
3479
- orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
3480
- className
3481
- ),
3482
- disabled: !canScrollNext,
3483
- onClick: scrollNext,
3484
- ...props,
3485
- children: [
3486
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
3487
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
3488
- ]
3489
- }
3490
- );
3491
- }
3492
- const StepperContext = React__namespace.createContext(void 0);
3493
- const useStepper = () => {
3494
- const context = React__namespace.useContext(StepperContext);
3495
- if (!context) throw new Error("useStepper must be used within a Stepper");
3496
- return context;
3497
- };
3498
- const Stepper = React__namespace.forwardRef(
3499
- ({ currentStep, orientation = "horizontal", className, children, ...props }, ref) => {
3500
- const totalSteps = React__namespace.Children.count(children);
3501
- return /* @__PURE__ */ jsxRuntime.jsx(StepperContext.Provider, { value: { currentStep, totalSteps, orientation }, children: /* @__PURE__ */ jsxRuntime.jsx(
3502
- "div",
3503
- {
3504
- ref,
3505
- className: tooltip.cn("w-full", className),
3506
- ...props,
3507
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn(
3508
- orientation === "horizontal" ? "flex items-start justify-between" : "flex flex-col gap-0"
3509
- ), children })
3510
- }
3511
- ) });
3512
- }
3513
- );
3514
- Stepper.displayName = "Stepper";
3515
- const Step = React__namespace.forwardRef(
3516
- ({ step, label, description, error = false, className, ...props }, ref) => {
3517
- const { currentStep, totalSteps, orientation } = useStepper();
3518
- const isActive = step === currentStep;
3519
- const isCompleted = step < currentStep && !error;
3520
- const isFirst = step === 1;
3521
- const isLast = step === totalSteps;
3522
- const circleClasses = tooltip.cn(
3523
- "relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors",
3524
- isActive && !error && "border-primary bg-primary text-primary-foreground",
3525
- isCompleted && "border-primary bg-primary text-primary-foreground",
3526
- error && "border-destructive bg-destructive text-destructive-foreground",
3527
- !isActive && !isCompleted && !error && "border-muted bg-background text-muted-foreground"
3528
- );
3529
- const connectorClasses = (filled) => tooltip.cn("transition-colors", filled ? "bg-primary" : "bg-muted");
3530
- if (orientation === "vertical") {
3531
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("flex gap-4", className), ...props, children: [
3532
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
3533
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: step }) }),
3534
- !isLast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("w-0.5 flex-1 min-h-[2rem] mt-1", connectorClasses(step < currentStep)) })
3535
- ] }),
3536
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("pb-6", isLast && "pb-0"), children: [
3537
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
3538
- description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
3539
- ] })
3540
- ] });
3541
- }
3542
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("flex flex-1 flex-col items-center", className), ...props, children: [
3543
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-start", children: [
3544
- step > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step <= currentStep)) }),
3545
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: step }) }),
3546
- step < totalSteps && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step < currentStep)) })
3547
- ] }),
3548
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn(
3549
- "mt-2 px-1",
3550
- isFirst && "text-left self-start",
3551
- isLast && "text-right self-end",
3552
- !isFirst && !isLast && "text-center w-full"
3553
- ), children: [
3554
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
3555
- description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
3556
- ] })
3557
- ] });
3558
- }
3559
- );
3560
- Step.displayName = "Step";
3561
- const FileUpload = React__namespace.forwardRef(
3562
- ({
3563
- className,
3564
- onFilesChange,
3565
- maxFiles = 1,
3566
- maxSize = 5 * 1024 * 1024,
3567
- // 5MB default
3568
- showPreview = true,
3569
- onError,
3570
- accept,
3571
- disabled,
3572
- ...props
3573
- }, ref) => {
3574
- const [files, setFiles] = React__namespace.useState([]);
3575
- const [dragActive, setDragActive] = React__namespace.useState(false);
3576
- const [errorMessage, setErrorMessage] = React__namespace.useState(null);
3577
- const inputRef = React__namespace.useRef(null);
3578
- const handleFiles = (newFiles) => {
3579
- if (!newFiles) return;
3580
- setErrorMessage(null);
3581
- const filesArray = Array.from(newFiles);
3582
- const oversized = filesArray.filter((f) => f.size > maxSize);
3583
- const validFiles = filesArray.filter((f) => f.size <= maxSize);
3584
- if (oversized.length > 0) {
3585
- const limitMB = (maxSize / 1024 / 1024).toFixed(0);
3586
- setErrorMessage(`${oversized.length} file(s) exceed the ${limitMB}MB limit and were not added.`);
3587
- onError == null ? void 0 : onError(oversized, "size");
3588
- }
3589
- const merged = maxFiles === 1 ? validFiles.slice(0, 1) : [...files, ...validFiles].slice(0, maxFiles);
3590
- const countRejected = maxFiles === 1 ? validFiles.slice(1) : [...files, ...validFiles].slice(maxFiles);
3591
- if (countRejected.length > 0) {
3592
- setErrorMessage(`Only ${maxFiles} file(s) allowed. ${countRejected.length} file(s) were not added.`);
3593
- onError == null ? void 0 : onError(countRejected, "count");
3594
- }
3595
- setFiles(merged);
3596
- onFilesChange == null ? void 0 : onFilesChange(merged);
3597
- };
3598
- const handleDrag = (e) => {
3599
- e.preventDefault();
3600
- e.stopPropagation();
3601
- if (e.type === "dragenter" || e.type === "dragover") {
3602
- setDragActive(true);
3603
- } else if (e.type === "dragleave") {
3604
- setDragActive(false);
3605
- }
3606
- };
3607
- const handleDrop = (e) => {
3608
- e.preventDefault();
3609
- e.stopPropagation();
3610
- setDragActive(false);
3611
- if (disabled) return;
3612
- handleFiles(e.dataTransfer.files);
3613
- };
3614
- const handleChange = (e) => {
3615
- e.preventDefault();
3616
- if (disabled) return;
3617
- handleFiles(e.target.files);
3618
- };
3619
- const removeFile = (index) => {
3620
- const updatedFiles = files.filter((_, i) => i !== index);
3621
- setFiles(updatedFiles);
3622
- onFilesChange == null ? void 0 : onFilesChange(updatedFiles);
3623
- if (updatedFiles.length === 0) setErrorMessage(null);
3624
- };
3625
- const openFileDialog = () => {
3626
- var _a;
3627
- if (!disabled) {
3628
- setErrorMessage(null);
3629
- (_a = inputRef.current) == null ? void 0 : _a.click();
3630
- }
3631
- };
3632
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("w-full", className), children: [
3633
- /* @__PURE__ */ jsxRuntime.jsxs(
3634
- "div",
3635
- {
3636
- onDragEnter: handleDrag,
3637
- onDragLeave: handleDrag,
3638
- onDragOver: handleDrag,
3639
- onDrop: handleDrop,
3640
- onClick: openFileDialog,
3641
- className: tooltip.cn(
3642
- "relative flex cursor-pointer flex-col items-center justify-center rounded-[var(--radius)] border-2 border-dashed border-border bg-background p-8 transition-colors hover:bg-muted/50",
3643
- dragActive && "border-primary bg-primary/5",
3644
- errorMessage && "border-destructive/50",
3645
- disabled && "cursor-not-allowed opacity-50"
3646
- ),
3647
- children: [
3648
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { className: "mb-4 h-10 w-10 text-muted-foreground" }),
3649
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mb-2 text-foreground", children: [
3650
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: "Click to upload" }),
3651
- " or drag and drop"
3652
- ] }),
3653
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
3654
- maxFiles > 1 ? `Up to ${maxFiles} files` : "1 file",
3655
- " • Max ",
3656
- (maxSize / 1024 / 1024).toFixed(0),
3657
- "MB"
3658
- ] }),
3659
- /* @__PURE__ */ jsxRuntime.jsx(
3660
- "input",
3661
- {
3662
- ...props,
3663
- ref: inputRef,
3664
- type: "file",
3665
- className: "hidden",
3666
- onChange: handleChange,
3667
- multiple: maxFiles > 1,
3668
- accept,
3669
- disabled
3670
- }
3671
- )
3672
- ]
3673
- }
3674
- ),
3675
- errorMessage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex items-center gap-2 rounded-[var(--radius)] border border-destructive/30 bg-destructive/5 px-3 py-2 text-sm text-destructive", children: [
3676
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "h-4 w-4 shrink-0" }),
3677
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: errorMessage })
3678
- ] }),
3679
- showPreview && files.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 space-y-2", children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(
3680
- "div",
3681
- {
3682
- className: "flex items-center justify-between rounded-[var(--radius)] border border-border bg-card p-3",
3683
- children: [
3684
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
3685
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileIcon, { className: "h-5 w-5 text-muted-foreground" }),
3686
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
3687
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground", children: file.name }),
3688
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
3689
- (file.size / 1024).toFixed(2),
3690
- " KB"
3691
- ] })
3692
- ] })
3693
- ] }),
3694
- /* @__PURE__ */ jsxRuntime.jsx(
3695
- tooltip.Button,
3696
- {
3697
- type: "button",
3698
- variant: "ghost",
3699
- size: "sm",
3700
- onClick: (e) => {
3701
- e.stopPropagation();
3702
- removeFile(index);
3703
- },
3704
- disabled,
3705
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
3706
- }
3707
- )
3708
- ]
3709
- },
3710
- index
3711
- )) })
3712
- ] });
3713
- }
3714
- );
3715
- FileUpload.displayName = "FileUpload";
3716
- const Rating = React__namespace.forwardRef(
3717
- ({
3718
- className,
3719
- value = 0,
3720
- onChange,
3721
- max = 5,
3722
- readonly = false,
3723
- disabled = false,
3724
- size = "md",
3725
- showValue = false,
3726
- allowHalf = false,
3727
- getAriaLabel,
3728
- ...props
3729
- }, ref) => {
3730
- const [hoverValue, setHoverValue] = React__namespace.useState(null);
3731
- const isInteractive = !readonly && !disabled;
3732
- const sizeStyles = {
3733
- sm: "h-4 w-4",
3734
- md: "h-5 w-5",
3735
- lg: "h-6 w-6"
3736
- };
3737
- const handleClick = (rating) => {
3738
- if (isInteractive) onChange == null ? void 0 : onChange(rating);
3739
- };
3740
- const handleMouseMove = (e, rating) => {
3741
- if (!isInteractive) return;
3742
- if (allowHalf) {
3743
- const rect = e.currentTarget.getBoundingClientRect();
3744
- setHoverValue(e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating);
3745
- } else {
3746
- setHoverValue(rating);
3747
- }
3748
- };
3749
- const handleMouseLeave = () => {
3750
- if (isInteractive) setHoverValue(null);
3751
- };
3752
- const handleClickWithHalf = (e, rating) => {
3753
- if (!isInteractive) return;
3754
- if (allowHalf) {
3755
- const rect = e.currentTarget.getBoundingClientRect();
3756
- const half = e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating;
3757
- onChange == null ? void 0 : onChange(half);
3758
- } else {
3759
- handleClick(rating);
3760
- }
3761
- };
3762
- const displayValue = hoverValue ?? value;
3763
- return /* @__PURE__ */ jsxRuntime.jsxs(
3764
- "div",
3765
- {
3766
- ref,
3767
- className: tooltip.cn("flex items-center gap-1", disabled && "opacity-50", className),
3768
- ...props,
3769
- children: [
3770
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", role: "group", "aria-label": "Rating", children: Array.from({ length: max }, (_, index) => {
3771
- const rating = index + 1;
3772
- const isFull = rating <= displayValue;
3773
- const isHalf = allowHalf && !isFull && rating - 0.5 <= displayValue;
3774
- return /* @__PURE__ */ jsxRuntime.jsxs(
3775
- "button",
3776
- {
3777
- type: "button",
3778
- onClick: (e) => handleClickWithHalf(e, rating),
3779
- onMouseMove: (e) => handleMouseMove(e, rating),
3780
- onMouseLeave: handleMouseLeave,
3781
- disabled: readonly || disabled,
3782
- "aria-label": getAriaLabel ? getAriaLabel(rating, max) : `${rating} / ${max}`,
3783
- className: tooltip.cn(
3784
- "relative transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3785
- isInteractive && "cursor-pointer hover:scale-110",
3786
- !isInteractive && "cursor-default"
3787
- ),
3788
- children: [
3789
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: tooltip.cn(sizeStyles[size], "fill-none text-muted-foreground") }),
3790
- (isFull || isHalf) && /* @__PURE__ */ jsxRuntime.jsx(
3791
- "span",
3792
- {
3793
- className: tooltip.cn(
3794
- "absolute inset-0 overflow-hidden",
3795
- isHalf ? "w-1/2" : "w-full"
3796
- ),
3797
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: tooltip.cn(sizeStyles[size], "fill-warning text-warning") })
3798
- }
3799
- )
3800
- ]
3801
- },
3802
- index
3803
- );
3804
- }) }),
3805
- showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: value % 1 === 0 ? value.toFixed(0) : value.toFixed(1) })
3806
- ]
3807
- }
3808
- );
3809
- }
3810
- );
3811
- Rating.displayName = "Rating";
3812
- const Search = React__namespace.forwardRef(
3813
- ({
3814
- className,
3815
- containerClassName,
3816
- onSearch,
3817
- onClear,
3818
- onChange,
3819
- size = "md",
3820
- searchLabel = "Search",
3821
- clearLabel = "Clear search",
3822
- value: controlledValue,
3823
- defaultValue,
3824
- ...props
3825
- }, ref) => {
3826
- const isControlled = controlledValue !== void 0;
3827
- const [internalValue, setInternalValue] = React__namespace.useState(
3828
- isControlled ? "" : defaultValue ?? ""
3829
- );
3830
- const displayValue = isControlled ? controlledValue : internalValue;
3831
- const sizeClasses = {
3832
- sm: "h-8 px-8 py-1 text-sm",
3833
- md: "h-10 px-10 py-2 text-base",
3834
- lg: "h-12 px-12 py-3 text-base"
3835
- };
3836
- const iconSizeClasses = {
3837
- sm: "left-2 h-3.5 w-3.5",
3838
- md: "left-3 h-4 w-4",
3839
- lg: "left-4 h-5 w-5"
3840
- };
3841
- const clearSizeClasses = {
3842
- sm: "right-2",
3843
- md: "right-3",
3844
- lg: "right-4"
3845
- };
3846
- const handleChange = (e) => {
3847
- const newValue = e.target.value;
3848
- if (!isControlled) setInternalValue(newValue);
3849
- onChange == null ? void 0 : onChange(e);
3850
- onSearch == null ? void 0 : onSearch(newValue);
3851
- };
3852
- const handleClear = () => {
3853
- if (!isControlled) setInternalValue("");
3854
- onClear == null ? void 0 : onClear();
3855
- onSearch == null ? void 0 : onSearch("");
3856
- };
3857
- const handleKeyDown = (e) => {
3858
- var _a;
3859
- if (e.key === "Escape") {
3860
- handleClear();
3861
- }
3862
- (_a = props.onKeyDown) == null ? void 0 : _a.call(props, e);
3863
- };
3864
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("relative w-full", containerClassName), children: [
3865
- /* @__PURE__ */ jsxRuntime.jsx(
3866
- lucideReact.Search,
3867
- {
3868
- "aria-hidden": "true",
3869
- className: tooltip.cn("absolute top-1/2 -translate-y-1/2 text-muted-foreground", iconSizeClasses[size])
3870
- }
3871
- ),
3872
- /* @__PURE__ */ jsxRuntime.jsx(
3873
- "input",
3874
- {
3875
- ref,
3876
- type: "text",
3877
- value: displayValue,
3878
- onChange: handleChange,
3879
- onKeyDown: handleKeyDown,
3880
- className: tooltip.cn(
3881
- "flex w-full rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none",
3882
- "placeholder:text-muted-foreground",
3883
- "focus:ring-2 focus:ring-primary focus:border-transparent",
3884
- "disabled:cursor-not-allowed disabled:opacity-50",
3885
- sizeClasses[size],
3886
- className
3887
- ),
3888
- "aria-label": props.placeholder || searchLabel,
3889
- ...props
3890
- }
3891
- ),
3892
- displayValue && /* @__PURE__ */ jsxRuntime.jsx(
3893
- "button",
3894
- {
3895
- type: "button",
3896
- onClick: handleClear,
3897
- "aria-label": clearLabel,
3898
- className: tooltip.cn(
3899
- "absolute top-1/2 -translate-y-1/2 text-muted-foreground transition-colors hover:text-foreground focus:outline-none",
3900
- clearSizeClasses[size]
3901
- ),
3902
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
3903
- }
3904
- )
3905
- ] });
3906
- }
3907
- );
3908
- Search.displayName = "Search";
3909
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
3910
- const RouteMapContent = React.forwardRef(
3911
- ({ apiKey, ...props }, ref) => {
3912
- const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
3913
- const {
3914
- origin,
3915
- destination,
3916
- waypoints = [],
3917
- travelMode = "DRIVING",
3918
- height = "450px",
3919
- mapContainerClassName,
3920
- disableDefaultUI = false,
3921
- zoomControl = true,
3922
- streetViewControl = false,
3923
- mapTypeControl = false,
3924
- fullscreenControl = true,
3925
- onRouteCalculated,
3926
- className,
3927
- ...divProps
3928
- } = props;
3929
- const mapRef = React.useRef(null);
3930
- const gmpMapRef = React.useRef(null);
3931
- const directionsRendererRef = React.useRef(null);
3932
- React.useRef(false);
3933
- const isCalculatingRef = React.useRef(false);
3934
- React.useEffect(() => {
3935
- if (!isLoaded && apiKey && !loadError && load) {
3936
- load(apiKey).catch(console.error);
3937
- }
3938
- }, [isLoaded, apiKey, loadError, load]);
3939
- React.useEffect(() => {
3940
- if (!isLoaded || !gmpMapRef.current) return;
3941
- const setupMap = (map) => {
3942
- mapRef.current = map;
3943
- const computedStyle = getComputedStyle(document.documentElement);
3944
- const primaryColor = computedStyle.getPropertyValue("--primary").trim() || "#4F46E5";
3945
- if (!directionsRendererRef.current) {
3946
- directionsRendererRef.current = new google.maps.DirectionsRenderer({
3947
- map,
3948
- suppressMarkers: false,
3949
- polylineOptions: {
3950
- strokeColor: primaryColor,
3951
- strokeWeight: 5,
3952
- strokeOpacity: 0.8
3953
- }
3954
- });
3955
- } else {
3956
- directionsRendererRef.current.setMap(map);
3957
- }
3958
- };
3959
- const gmpMap = gmpMapRef.current;
3960
- if (gmpMap.innerMap) {
3961
- setupMap(gmpMap.innerMap);
3962
- } else {
3963
- const interval = setInterval(() => {
3964
- if (gmpMap.innerMap) {
3965
- setupMap(gmpMap.innerMap);
3966
- clearInterval(interval);
3967
- }
3968
- }, 100);
3969
- return () => clearInterval(interval);
3970
- }
3971
- return () => {
3972
- if (directionsRendererRef.current) {
3973
- directionsRendererRef.current.setMap(null);
3974
- }
3975
- mapRef.current = null;
3976
- };
3977
- }, [isLoaded]);
3978
- React.useEffect(() => {
3979
- if (gmpMapRef.current && origin) {
3980
- gmpMapRef.current.center = origin;
3981
- }
3982
- }, [origin.lat, origin.lng]);
3983
- React.useEffect(() => {
3984
- if (gmpMapRef.current) {
3985
- gmpMapRef.current.zoom = 13;
3986
- }
3987
- }, []);
3988
- React.useEffect(() => {
3989
- const map = mapRef.current;
3990
- const renderer = directionsRendererRef.current;
3991
- if (!map || !renderer || !isLoaded || isCalculatingRef.current) return;
3992
- if (!origin || !destination) return;
3993
- isCalculatingRef.current = true;
3994
- const directionsService = new google.maps.DirectionsService();
3995
- const request = {
3996
- origin,
3997
- destination,
3998
- waypoints: waypoints.map((wp) => ({
3999
- location: wp,
4000
- stopover: true
4001
- })),
4002
- travelMode: google.maps.TravelMode[travelMode]
4003
- };
4004
- directionsService.route(request, (result, status) => {
4005
- var _a;
4006
- isCalculatingRef.current = false;
4007
- if (status === "OK" && result) {
4008
- renderer.setDirections(result);
4009
- const route = result.routes[0];
4010
- if (((_a = route == null ? void 0 : route.legs) == null ? void 0 : _a.length) > 0 && onRouteCalculated) {
4011
- let totalDistance = 0;
4012
- let totalDuration = 0;
4013
- route.legs.forEach((leg) => {
4014
- if (leg.distance) totalDistance += leg.distance.value;
4015
- if (leg.duration) totalDuration += leg.duration.value;
4016
- });
4017
- const distanceKm = (totalDistance / 1e3).toFixed(1);
4018
- const distanceText = `${distanceKm} km`;
4019
- const hours = Math.floor(totalDuration / 3600);
4020
- const minutes = Math.floor(totalDuration % 3600 / 60);
4021
- const durationText = hours > 0 ? `${hours}h ${minutes}min` : `${minutes} min`;
4022
- onRouteCalculated(distanceText, durationText);
4023
- }
4024
- }
4025
- });
4026
- }, [isLoaded, origin.lat, origin.lng, destination.lat, destination.lng, travelMode, mapRef.current]);
4027
- if (loadError) {
4028
- return /* @__PURE__ */ jsxRuntime.jsx(
4029
- "div",
4030
- {
4031
- ref,
4032
- className: tooltip.cn(
4033
- "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
4034
- className
4035
- ),
4036
- style: { height },
4037
- ...divProps,
4038
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-2 p-6", children: [
4039
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
4040
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Failed to load Google Maps" }),
4041
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
4042
- ] }) })
4043
- }
4044
- );
4045
- }
4046
- if (!isLoaded) {
4047
- return /* @__PURE__ */ jsxRuntime.jsx(
4048
- "div",
4049
- {
4050
- ref,
4051
- className: tooltip.cn(
4052
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
4053
- className
4054
- ),
4055
- style: { height },
4056
- ...divProps
4057
- }
4058
- );
4059
- }
4060
- return /* @__PURE__ */ jsxRuntime.jsx(
4061
- "div",
4062
- {
4063
- ref,
4064
- className: tooltip.cn(
4065
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
4066
- className
4067
- ),
4068
- style: { height },
4069
- ...divProps,
4070
- children: /* @__PURE__ */ jsxRuntime.jsx(
4071
- "gmp-map",
4072
- {
4073
- ref: gmpMapRef,
4074
- style: { height: "100%", width: "100%", display: "block" },
4075
- "map-id": props.mapId || "xertica-route-map"
4076
- }
4077
- )
4078
- }
4079
- );
4080
- }
4081
- );
4082
- RouteMapContent.displayName = "RouteMapContent";
4083
- const RouteMap = React.forwardRef(
4084
- (props, ref) => {
4085
- const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
4086
- const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("use-mobile-Bbd51ASU.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__ && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
4087
- const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
4088
- if (isLoaded || isValidKey || loadError) {
4089
- return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
4090
- }
4091
- const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
4092
- if (isScriptInjected) {
4093
- return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
4094
- }
4095
- const {
4096
- origin,
4097
- destination,
4098
- waypoints,
4099
- travelMode,
4100
- height,
4101
- apiKey,
4102
- mapContainerClassName,
4103
- disableDefaultUI,
4104
- zoomControl,
4105
- streetViewControl,
4106
- mapTypeControl,
4107
- fullscreenControl,
4108
- onRouteCalculated,
4109
- ...divProps
4110
- } = props;
4111
- return /* @__PURE__ */ jsxRuntime.jsx(
4112
- "div",
4113
- {
4114
- ref,
4115
- className: tooltip.cn(
4116
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
4117
- props.className
4118
- ),
4119
- style: { height: props.height || "450px" },
4120
- ...divProps,
4121
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-muted/50 to-muted", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-3 p-6", children: [
4122
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
4123
- /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
4124
- /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
4125
- ] }) }),
4126
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
4127
- ] }) })
4128
- }
4129
- );
4130
- }
4131
- );
4132
- RouteMap.displayName = "RouteMap";
4133
- const SimpleMap = React.forwardRef(
4134
- ({
4135
- center,
4136
- address,
4137
- markerTitle,
4138
- markerInfo,
4139
- showMarker = true,
4140
- zoom = 15,
4141
- height = "350px",
4142
- ...props
4143
- }, ref) => {
4144
- const markers = showMarker && center ? [
4145
- {
4146
- position: center,
4147
- title: markerTitle || address || "Location",
4148
- info: markerInfo || address
4149
- }
4150
- ] : [];
4151
- return /* @__PURE__ */ jsxRuntime.jsx(
4152
- Map$1,
4153
- {
4154
- ref,
4155
- center,
4156
- zoom,
4157
- height,
4158
- markers,
4159
- ...props
4160
- }
4161
- );
4162
- }
4163
- );
4164
- SimpleMap.displayName = "SimpleMap";
4165
- function AssistantChart({
4166
- data,
4167
- config,
4168
- categoryKey = "month",
4169
- bars,
4170
- xAxisFormatter,
4171
- className
4172
- }) {
4173
- const resolvedBars = bars ?? Object.keys(config).map((key) => ({ dataKey: key }));
4174
- const formatTick = xAxisFormatter ?? ((value) => value.slice(0, 3));
4175
- return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config, className: tooltip.cn("min-h-[200px] w-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.BarChart, { accessibilityLayer: true, data, children: [
4176
- /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { vertical: false }),
4177
- /* @__PURE__ */ jsxRuntime.jsx(
4178
- RechartsPrimitive.XAxis,
4179
- {
4180
- dataKey: categoryKey,
4181
- tickLine: false,
4182
- tickMargin: 10,
4183
- axisLine: false,
4184
- tickFormatter: formatTick
4185
- }
4186
- ),
4187
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { cursor: false, content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "dashed" }) }),
4188
- resolvedBars.map((bar) => /* @__PURE__ */ jsxRuntime.jsx(
4189
- RechartsPrimitive.Bar,
4190
- {
4191
- dataKey: bar.dataKey,
4192
- fill: bar.fill ?? `var(--color-${bar.dataKey})`,
4193
- radius: bar.radius ?? 4
4194
- },
4195
- bar.dataKey
4196
- ))
4197
- ] }) });
4198
- }
4199
- const MOBILE_BREAKPOINT = 768;
4200
- function useIsMobile() {
4201
- const [isMobile, setIsMobile] = React__namespace.useState(
4202
- void 0
4203
- );
4204
- React__namespace.useEffect(() => {
4205
- var _a;
4206
- if (typeof window === "undefined") {
4207
- setIsMobile(false);
4208
- return;
4209
- }
4210
- const mql = (_a = window.matchMedia) == null ? void 0 : _a.call(window, `(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
4211
- const onChange = () => {
4212
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
4213
- };
4214
- if (mql) {
4215
- mql.addEventListener("change", onChange);
4216
- }
4217
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
4218
- return () => {
4219
- if (mql) {
4220
- mql.removeEventListener("change", onChange);
4221
- }
4222
- };
4223
- }, []);
4224
- return !!isMobile;
4225
- }
4226
- const useMobile = useIsMobile;
4227
- exports.Accordion = Accordion;
4228
- exports.AccordionContent = AccordionContent;
4229
- exports.AccordionItem = AccordionItem;
4230
- exports.AccordionTrigger = AccordionTrigger;
4231
- exports.Alert = Alert;
4232
- exports.AlertDescription = AlertDescription;
4233
- exports.AlertDialog = AlertDialog;
4234
- exports.AlertDialogAction = AlertDialogAction;
4235
- exports.AlertDialogCancel = AlertDialogCancel;
4236
- exports.AlertDialogContent = AlertDialogContent;
4237
- exports.AlertDialogDescription = AlertDialogDescription;
4238
- exports.AlertDialogFooter = AlertDialogFooter;
4239
- exports.AlertDialogHeader = AlertDialogHeader;
4240
- exports.AlertDialogOverlay = AlertDialogOverlay;
4241
- exports.AlertDialogPortal = AlertDialogPortal;
4242
- exports.AlertDialogTitle = AlertDialogTitle;
4243
- exports.AlertDialogTrigger = AlertDialogTrigger;
4244
- exports.AlertTitle = AlertTitle;
4245
- exports.AspectRatio = AspectRatio;
4246
- exports.AssistantChart = AssistantChart;
4247
- exports.Badge = Badge;
4248
- exports.Calendar = Calendar;
4249
- exports.Carousel = Carousel;
4250
- exports.CarouselContent = CarouselContent;
4251
- exports.CarouselItem = CarouselItem;
4252
- exports.CarouselNext = CarouselNext;
4253
- exports.CarouselPrevious = CarouselPrevious;
4254
- exports.Checkbox = Checkbox;
4255
- exports.Collapsible = Collapsible;
4256
- exports.CollapsibleContent = CollapsibleContent;
4257
- exports.CollapsibleTrigger = CollapsibleTrigger;
4258
- exports.Command = Command;
4259
- exports.CommandDialog = CommandDialog;
4260
- exports.CommandEmpty = CommandEmpty;
4261
- exports.CommandGroup = CommandGroup;
4262
- exports.CommandInput = CommandInput;
4263
- exports.CommandItem = CommandItem;
4264
- exports.CommandList = CommandList;
4265
- exports.CommandSeparator = CommandSeparator;
4266
- exports.CommandShortcut = CommandShortcut;
4267
- exports.ContextMenu = ContextMenu;
4268
- exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
4269
- exports.ContextMenuContent = ContextMenuContent;
4270
- exports.ContextMenuGroup = ContextMenuGroup;
4271
- exports.ContextMenuItem = ContextMenuItem;
4272
- exports.ContextMenuLabel = ContextMenuLabel;
4273
- exports.ContextMenuPortal = ContextMenuPortal;
4274
- exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
4275
- exports.ContextMenuRadioItem = ContextMenuRadioItem;
4276
- exports.ContextMenuSeparator = ContextMenuSeparator;
4277
- exports.ContextMenuShortcut = ContextMenuShortcut;
4278
- exports.ContextMenuSub = ContextMenuSub;
4279
- exports.ContextMenuSubContent = ContextMenuSubContent;
4280
- exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
4281
- exports.ContextMenuTrigger = ContextMenuTrigger;
4282
- exports.Drawer = Drawer;
4283
- exports.DrawerContent = DrawerContent;
4284
- exports.DrawerDescription = DrawerDescription;
4285
- exports.DrawerFooter = DrawerFooter;
4286
- exports.DrawerHandle = DrawerHandle;
4287
- exports.DrawerHeader = DrawerHeader;
4288
- exports.DrawerOverlay = DrawerOverlay;
4289
- exports.DrawerPortal = DrawerPortal;
4290
- exports.DrawerTitle = DrawerTitle;
4291
- exports.DrawerTrigger = DrawerTrigger;
4292
- exports.Empty = Empty;
4293
- exports.EmptyAction = EmptyAction;
4294
- exports.EmptyDescription = EmptyDescription;
4295
- exports.EmptyIcon = EmptyIcon;
4296
- exports.EmptyImage = EmptyImage;
4297
- exports.EmptyTitle = EmptyTitle;
4298
- exports.FileUpload = FileUpload;
4299
- exports.Form = Form;
4300
- exports.FormControl = FormControl;
4301
- exports.FormDescription = FormDescription;
4302
- exports.FormField = FormField;
4303
- exports.FormItem = FormItem;
4304
- exports.FormLabel = FormLabel;
4305
- exports.FormMessage = FormMessage;
4306
- exports.HoverCard = HoverCard;
4307
- exports.HoverCardContent = HoverCardContent;
4308
- exports.HoverCardTrigger = HoverCardTrigger;
4309
- exports.ImageWithFallback = ImageWithFallback;
4310
- exports.InputOTP = InputOTP;
4311
- exports.InputOTPGroup = InputOTPGroup;
4312
- exports.InputOTPSeparator = InputOTPSeparator;
4313
- exports.InputOTPSlot = InputOTPSlot;
4314
- exports.Label = Label;
4315
- exports.Map = Map$1;
4316
- exports.Menubar = Menubar;
4317
- exports.MenubarCheckboxItem = MenubarCheckboxItem;
4318
- exports.MenubarContent = MenubarContent;
4319
- exports.MenubarGroup = MenubarGroup;
4320
- exports.MenubarItem = MenubarItem;
4321
- exports.MenubarLabel = MenubarLabel;
4322
- exports.MenubarMenu = MenubarMenu;
4323
- exports.MenubarPortal = MenubarPortal;
4324
- exports.MenubarRadioGroup = MenubarRadioGroup;
4325
- exports.MenubarRadioItem = MenubarRadioItem;
4326
- exports.MenubarSeparator = MenubarSeparator;
4327
- exports.MenubarShortcut = MenubarShortcut;
4328
- exports.MenubarSub = MenubarSub;
4329
- exports.MenubarSubContent = MenubarSubContent;
4330
- exports.MenubarSubTrigger = MenubarSubTrigger;
4331
- exports.MenubarTrigger = MenubarTrigger;
4332
- exports.NavigationMenu = NavigationMenu;
4333
- exports.NavigationMenuContent = NavigationMenuContent;
4334
- exports.NavigationMenuIndicator = NavigationMenuIndicator;
4335
- exports.NavigationMenuItem = NavigationMenuItem;
4336
- exports.NavigationMenuLink = NavigationMenuLink;
4337
- exports.NavigationMenuList = NavigationMenuList;
4338
- exports.NavigationMenuTrigger = NavigationMenuTrigger;
4339
- exports.NavigationMenuViewport = NavigationMenuViewport;
4340
- exports.NotificationBadge = NotificationBadge;
4341
- exports.PageHeader = PageHeader;
4342
- exports.PageHeaderDescription = PageHeaderDescription;
4343
- exports.PageHeaderHeading = PageHeaderHeading;
4344
- exports.Pagination = Pagination;
4345
- exports.PaginationContent = PaginationContent;
4346
- exports.PaginationEllipsis = PaginationEllipsis;
4347
- exports.PaginationItem = PaginationItem;
4348
- exports.PaginationLink = PaginationLink;
4349
- exports.PaginationNext = PaginationNext;
4350
- exports.PaginationPrevious = PaginationPrevious;
4351
- exports.Progress = Progress;
4352
- exports.RadioGroup = RadioGroup;
4353
- exports.RadioGroupItem = RadioGroupItem;
4354
- exports.Rating = Rating;
4355
- exports.ResizableHandle = ResizableHandle;
4356
- exports.ResizablePanel = ResizablePanel;
4357
- exports.ResizablePanelGroup = ResizablePanelGroup;
4358
- exports.RouteMap = RouteMap;
4359
- exports.Search = Search;
4360
- exports.Separator = Separator;
4361
- exports.Sheet = Sheet;
4362
- exports.SheetContent = SheetContent;
4363
- exports.SheetDescription = SheetDescription;
4364
- exports.SheetFooter = SheetFooter;
4365
- exports.SheetHeader = SheetHeader;
4366
- exports.SheetPortal = SheetPortal;
4367
- exports.SheetTitle = SheetTitle;
4368
- exports.SheetTrigger = SheetTrigger;
4369
- exports.SimpleMap = SimpleMap;
4370
- exports.Skeleton = Skeleton;
4371
- exports.StatsCard = StatsCard;
4372
- exports.Step = Step;
4373
- exports.Stepper = Stepper;
4374
- exports.Switch = Switch;
4375
- exports.Timeline = Timeline;
4376
- exports.TimelineContent = TimelineContent;
4377
- exports.TimelineDescription = TimelineDescription;
4378
- exports.TimelineDot = TimelineDot;
4379
- exports.TimelineHeading = TimelineHeading;
4380
- exports.TimelineItem = TimelineItem;
4381
- exports.TimelineTime = TimelineTime;
4382
- exports.Toggle = Toggle;
4383
- exports.ToggleGroup = ToggleGroup;
4384
- exports.ToggleGroupItem = ToggleGroupItem;
4385
- exports.TreeView = TreeView;
4386
- exports.badgeVariants = badgeVariants;
4387
- exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
4388
- exports.toggleVariants = toggleVariants;
4389
- exports.useFormField = useFormField;
4390
- exports.useIsMobile = useIsMobile;
4391
- exports.useMobile = useMobile;
4392
- exports.useStepper = useStepper;