xertica-ui 2.5.2 → 2.6.0

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 (577) hide show
  1. package/CHANGELOG.md +687 -656
  2. package/README.md +482 -482
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/cli.ts +1293 -1256
  6. package/bin/generate-tokens.ts +256 -262
  7. package/bin/language-config.test.ts +32 -0
  8. package/bin/language-config.ts +36 -11
  9. package/components/Introduction.mdx +121 -121
  10. package/components/assistant/code-block/CodeBlock.tsx +7 -6
  11. package/components/assistant/code-block/code-block.mdx +38 -38
  12. package/components/assistant/code-block/code-block.test.tsx +2 -1
  13. package/components/assistant/formatted-document/FormattedDocument.tsx +3 -0
  14. package/components/assistant/formatted-document/formatted-document.mdx +31 -31
  15. package/components/assistant/formatted-document/formatted-document.test.tsx +5 -4
  16. package/components/assistant/markdown-message/MarkdownMessage.tsx +1 -1
  17. package/components/assistant/markdown-message/markdown-message.mdx +44 -44
  18. package/components/assistant/modern-chat-input/modern-chat-input.mdx +71 -71
  19. package/components/assistant/modern-chat-input/modern-chat-input.test.tsx +3 -2
  20. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +1 -1
  21. package/components/assistant/xertica-assistant/types.ts +3 -2
  22. package/components/assistant/xertica-assistant/use-assistant.ts +5 -4
  23. package/components/assistant/xertica-assistant/xertica-assistant.mdx +66 -66
  24. package/components/assistant/xertica-assistant/xertica-assistant.test.tsx +2 -1
  25. package/components/blocks/card-patterns/card-patterns.mdx +123 -123
  26. package/components/brand/branding/branding.mdx +27 -27
  27. package/components/brand/language-selector/language-selector.mdx +126 -126
  28. package/components/brand/theme-toggle/theme-toggle.mdx +47 -47
  29. package/components/brand/theme-toggle/theme-toggle.test.tsx +6 -2
  30. package/components/brand/xertica-logo/xertica-logo.mdx +56 -56
  31. package/components/brand/xertica-orbe/xertica-orbe.mdx +38 -38
  32. package/components/brand/xertica-provider/XerticaProvider.tsx +112 -112
  33. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  34. package/components/brand/xertica-provider/xertica-provider.test.tsx +25 -13
  35. package/components/brand/xertica-xlogo/xertica-xlogo.mdx +55 -55
  36. package/components/examples/DrawingMapExample.tsx +1 -4
  37. package/components/layout/header/header.mdx +117 -117
  38. package/components/layout/header/header.test.tsx +2 -1
  39. package/components/layout/sidebar/sidebar.mdx +99 -99
  40. package/components/layout/sidebar/sidebar.stories.tsx +1033 -1033
  41. package/components/layout/sidebar/sidebar.test.tsx +2 -1
  42. package/components/layout/sidebar/sidebar.tsx +1509 -1501
  43. package/components/media/audio-player/AudioPlayer.mdx +67 -67
  44. package/components/media/audio-player/AudioPlayer.test.tsx +2 -1
  45. package/components/media/floating-media-wrapper.mdx +74 -74
  46. package/components/media/video-player/VideoPlayer.mdx +102 -102
  47. package/components/media/video-player/VideoPlayer.test.tsx +3 -2
  48. package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +188 -188
  49. package/components/pages/forgot-password-page/forgot-password-page.mdx +60 -60
  50. package/components/pages/forgot-password-page/forgot-password-page.test.tsx +2 -1
  51. package/components/pages/home-content/HomeContent.tsx +2 -3
  52. package/components/pages/home-content/home-content.mdx +62 -62
  53. package/components/pages/home-page/HomePage.stories.tsx +8 -15
  54. package/components/pages/home-page/home-page.mdx +53 -53
  55. package/components/pages/home-page/home-page.test.tsx +2 -1
  56. package/components/pages/login-page/LoginPage.mdx +31 -31
  57. package/components/pages/login-page/LoginPage.tsx +218 -218
  58. package/components/pages/login-page/login-page.test.tsx +2 -1
  59. package/components/pages/reset-password-page/ResetPasswordPage.tsx +243 -243
  60. package/components/pages/reset-password-page/reset-password-page.mdx +63 -63
  61. package/components/pages/template-content/TemplateContent.tsx +2 -3
  62. package/components/pages/template-content/template-content.mdx +61 -61
  63. package/components/pages/template-page/TemplatePage.stories.tsx +32 -32
  64. package/components/pages/template-page/template-page.mdx +53 -53
  65. package/components/pages/template-page/template-page.test.tsx +2 -1
  66. package/components/pages/verify-email-page/VerifyEmailPage.tsx +206 -206
  67. package/components/pages/verify-email-page/verify-email-page.mdx +55 -55
  68. package/components/public-api-smoke.test.tsx +10 -6
  69. package/components/shared/assistant-utils.ts +3 -2
  70. package/components/shared/navigation.ts +2 -2
  71. package/components/ui/accordion/accordion.mdx +29 -29
  72. package/components/ui/alert/alert.mdx +29 -29
  73. package/components/ui/alert-dialog/alert-dialog.mdx +26 -26
  74. package/components/ui/aspect-ratio/aspect-ratio.mdx +25 -25
  75. package/components/ui/assistant-chart/AssistantChart.tsx +8 -2
  76. package/components/ui/assistant-chart/assistant-chart.mdx +25 -25
  77. package/components/ui/avatar/avatar.mdx +26 -26
  78. package/components/ui/badge/badge.mdx +28 -28
  79. package/components/ui/breadcrumb/breadcrumb.mdx +26 -26
  80. package/components/ui/button/button.mdx +29 -29
  81. package/components/ui/calendar/calendar.mdx +26 -26
  82. package/components/ui/card/card.mdx +26 -26
  83. package/components/ui/carousel/carousel.mdx +26 -26
  84. package/components/ui/chart/chart.mdx +26 -26
  85. package/components/ui/chart/chart.test.tsx +178 -178
  86. package/components/ui/chart/chart.tsx +2252 -2245
  87. package/components/ui/checkbox/checkbox.mdx +26 -26
  88. package/components/ui/collapsible/collapsible.mdx +25 -25
  89. package/components/ui/command/command.mdx +26 -26
  90. package/components/ui/context-menu/context-menu.mdx +26 -26
  91. package/components/ui/dialog/dialog.mdx +26 -26
  92. package/components/ui/drawer/drawer.mdx +26 -26
  93. package/components/ui/dropdown-menu/dropdown-menu.mdx +26 -26
  94. package/components/ui/empty/empty.mdx +26 -26
  95. package/components/ui/file-upload/file-upload.mdx +26 -26
  96. package/components/ui/form/form.mdx +20 -20
  97. package/components/ui/google-maps-loader/google-maps-loader.mdx +68 -68
  98. package/components/ui/hover-card/hover-card.mdx +26 -26
  99. package/components/ui/input/input.mdx +29 -29
  100. package/components/ui/input-otp/input-otp.mdx +26 -26
  101. package/components/ui/label/label.mdx +25 -25
  102. package/components/ui/map/map.mdx +26 -26
  103. package/components/ui/map/map.tsx +6 -1
  104. package/components/ui/menubar/menubar.mdx +26 -26
  105. package/components/ui/navigation-menu/navigation-menu.mdx +26 -26
  106. package/components/ui/notification-badge/notification-badge.mdx +26 -26
  107. package/components/ui/page-header/page-header.mdx +44 -44
  108. package/components/ui/pagination/pagination.mdx +26 -26
  109. package/components/ui/popover/popover.mdx +26 -26
  110. package/components/ui/progress/progress.mdx +25 -25
  111. package/components/ui/radio-group/radio-group.mdx +26 -26
  112. package/components/ui/rating/rating.mdx +26 -26
  113. package/components/ui/resizable/resizable.mdx +26 -26
  114. package/components/ui/resizable/resizable.tsx +13 -8
  115. package/components/ui/rich-text-editor/rich-text-editor.mdx +47 -47
  116. package/components/ui/route-map/route-map.mdx +26 -26
  117. package/components/ui/scroll-area/scroll-area.mdx +25 -25
  118. package/components/ui/search/search.mdx +27 -27
  119. package/components/ui/select/select.mdx +26 -26
  120. package/components/ui/separator/separator.mdx +25 -25
  121. package/components/ui/sheet/sheet.mdx +26 -26
  122. package/components/ui/simple-map/simple-map.mdx +25 -25
  123. package/components/ui/skeleton/skeleton.mdx +25 -25
  124. package/components/ui/slider/slider.mdx +26 -26
  125. package/components/ui/sonner/sonner.mdx +26 -26
  126. package/components/ui/stats-card/stats-card.mdx +26 -26
  127. package/components/ui/stats-card/stats-card.stories.tsx +117 -117
  128. package/components/ui/stats-card/stats-card.tsx +109 -109
  129. package/components/ui/stepper/stepper.mdx +26 -26
  130. package/components/ui/switch/switch.mdx +25 -25
  131. package/components/ui/table/table.mdx +27 -27
  132. package/components/ui/tabs/tabs.mdx +26 -26
  133. package/components/ui/textarea/textarea.mdx +25 -25
  134. package/components/ui/timeline/timeline.mdx +26 -26
  135. package/components/ui/toggle/toggle.mdx +26 -26
  136. package/components/ui/toggle-group/toggle-group.mdx +26 -26
  137. package/components/ui/tooltip/tooltip.mdx +26 -26
  138. package/components/ui/tree-view/tree-view.mdx +26 -26
  139. package/components.json +511 -511
  140. package/contexts/BrandColorsContext.tsx +282 -282
  141. package/contexts/i18n-singleton.test.tsx +57 -0
  142. package/contexts/theme-data.ts +391 -391
  143. package/dist/{AssistantChart-DMJJ_Amf.js → AssistantChart-BMNSA_Pk.js} +5 -5
  144. package/dist/{AssistantChart-D0A1FPYt.cjs → AssistantChart-BzM7plyc.cjs} +150 -114
  145. package/dist/{AssistantChart-BXU1ACnh.js → AssistantChart-C842evTi.js} +134 -240
  146. package/dist/{AssistantChart-BZTPJ5dP.cjs → AssistantChart-CVF2uh37.cjs} +5 -5
  147. package/dist/{AssistantChart-COGiOV-g.cjs → AssistantChart-JooMdVQU.cjs} +17 -7
  148. package/dist/{AssistantChart-CWX1OWNM.js → AssistantChart-KHS-tp-L.js} +17 -7
  149. package/dist/{BrandColorsContext-BwY-b6M4.cjs → BrandColorsContext-B4_81eas.cjs} +2 -2
  150. package/dist/{BrandColorsContext-BMRJ04Wf.js → BrandColorsContext-DbK5LnQ_.js} +2 -2
  151. package/dist/{CodeBlock-CjeFavqV.js → CodeBlock-DiKO8ocT.js} +11 -11
  152. package/dist/{CodeBlock-CV6dtsTM.cjs → CodeBlock-ZYThr7Kn.cjs} +12 -9
  153. package/dist/{XerticaXLogo-mqjoBiLI.js → LanguageSelector-CmTj3lWq.js} +85 -82
  154. package/dist/{XerticaXLogo-BX3ueACh.js → LanguageSelector-DxW6o7bt.js} +81 -81
  155. package/dist/{XerticaXLogo-uQgwns_E.cjs → LanguageSelector-Sw73qvWV.cjs} +84 -81
  156. package/dist/{ThemeContext-BgclCB35.js → ThemeContext-BGeh_Kdr.js} +290 -212
  157. package/dist/{ThemeContext-BblcjQup.cjs → ThemeContext-D50irx5T.cjs} +291 -205
  158. package/dist/{VerifyEmailPage-C_Zk6Gen.cjs → VerifyEmailPage-B6bOrybJ.cjs} +17 -17
  159. package/dist/{VerifyEmailPage-B31mCrMc.js → VerifyEmailPage-BRE5Fz59.js} +8 -8
  160. package/dist/{VerifyEmailPage-BJjAMUTW.js → VerifyEmailPage-BcCluouh.js} +151 -78
  161. package/dist/VerifyEmailPage-Bx1sr0uQ.cjs +3298 -0
  162. package/dist/{VerifyEmailPage-X14vhdyl.js → VerifyEmailPage-DUYyXCX9.js} +12 -12
  163. package/dist/VerifyEmailPage-DXXMHbzq.js +3289 -0
  164. package/dist/{VerifyEmailPage-u_Dn7t1U.cjs → VerifyEmailPage-DpYtFk35.cjs} +21 -21
  165. package/dist/{VerifyEmailPage-Cyl55sJb.js → VerifyEmailPage-NXKWW3Dk.js} +134 -64
  166. package/dist/{VerifyEmailPage-Bv8Ah_TK.cjs → VerifyEmailPage-QrCz4Wqr.cjs} +143 -73
  167. package/dist/{VerifyEmailPage-CkBYfsNy.cjs → VerifyEmailPage-ZmQra0Wi.cjs} +160 -87
  168. package/dist/{XerticaProvider-BErr83Bg.js → XerticaProvider-BF3q_myt.js} +5 -4
  169. package/dist/{XerticaProvider-CeS5G_n5.cjs → XerticaProvider-C_JSOz1U.cjs} +2 -2
  170. package/dist/{XerticaProvider-CwOkHxiT.cjs → XerticaProvider-D5zjrqZq.cjs} +5 -4
  171. package/dist/{XerticaProvider-ra2NciRq.js → XerticaProvider-KTGl4Cn1.js} +2 -2
  172. package/dist/{alert-dialog-DqlRW_An.js → alert-dialog-BrpwXKwS.js} +3 -3
  173. package/dist/{alert-dialog-DhwPioBa.cjs → alert-dialog-CZU1Zase.cjs} +3 -3
  174. package/dist/{alert-dialog-KpoabzJb.js → alert-dialog-ClRoLH7l.js} +40 -56
  175. package/dist/{alert-dialog-B4M3vQKS.cjs → alert-dialog-DBBqvU-V.cjs} +53 -38
  176. package/dist/assistant.cjs.js +2 -2
  177. package/dist/assistant.es.js +2 -2
  178. package/dist/brand.cjs.js +6 -6
  179. package/dist/brand.es.js +2 -2
  180. package/dist/cli.js +63 -21
  181. package/dist/components/assistant/code-block/CodeBlock.d.ts +2 -1
  182. package/dist/components/assistant/formatted-document/FormattedDocument.d.ts +2 -1
  183. package/dist/components/assistant/markdown-message/MarkdownMessage.d.ts +2 -1
  184. package/dist/components/assistant/modern-chat-input/ModernChatInput.d.ts +2 -1
  185. package/dist/components/assistant/xertica-assistant/parts/AssistantCollapsedView.d.ts +2 -1
  186. package/dist/components/assistant/xertica-assistant/parts/AssistantConversationList.d.ts +2 -1
  187. package/dist/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.d.ts +2 -1
  188. package/dist/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.d.ts +2 -1
  189. package/dist/components/assistant/xertica-assistant/parts/AssistantHeader.d.ts +2 -1
  190. package/dist/components/assistant/xertica-assistant/parts/AssistantMessageBubble.d.ts +2 -1
  191. package/dist/components/assistant/xertica-assistant/parts/AssistantTabBar.d.ts +2 -1
  192. package/dist/components/assistant/xertica-assistant/parts/AssistantTypingIndicator.d.ts +2 -1
  193. package/dist/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.d.ts +2 -1
  194. package/dist/components/assistant/xertica-assistant/types.d.ts +3 -2
  195. package/dist/components/assistant/xertica-assistant/use-assistant.d.ts +1 -1
  196. package/dist/components/assistant/xertica-assistant/xertica-assistant.d.ts +2 -1
  197. package/dist/components/blocks/card-patterns/ActivityCard.d.ts +1 -1
  198. package/dist/components/blocks/card-patterns/ActivityCardSkeleton.d.ts +1 -1
  199. package/dist/components/blocks/card-patterns/FeatureCard.d.ts +1 -1
  200. package/dist/components/blocks/card-patterns/FeatureCardSkeleton.d.ts +1 -1
  201. package/dist/components/blocks/card-patterns/NotificationCard.d.ts +1 -1
  202. package/dist/components/blocks/card-patterns/NotificationCardSkeleton.d.ts +1 -1
  203. package/dist/components/blocks/card-patterns/ProfileCard.d.ts +1 -1
  204. package/dist/components/blocks/card-patterns/ProfileCardSkeleton.d.ts +1 -1
  205. package/dist/components/blocks/card-patterns/ProjectCard.d.ts +1 -1
  206. package/dist/components/blocks/card-patterns/ProjectCardSkeleton.d.ts +1 -1
  207. package/dist/components/blocks/card-patterns/QuickActionCard.d.ts +1 -1
  208. package/dist/components/blocks/card-patterns/QuickActionCardSkeleton.d.ts +1 -1
  209. package/dist/components/brand/language-selector/LanguageSelector.d.ts +2 -1
  210. package/dist/components/brand/theme-toggle/ThemeToggle.d.ts +2 -1
  211. package/dist/components/brand/xertica-logo/XerticaLogo.d.ts +2 -1
  212. package/dist/components/brand/xertica-orbe/XerticaOrbe.d.ts +2 -1
  213. package/dist/components/brand/xertica-provider/XerticaProvider.d.ts +1 -1
  214. package/dist/components/brand/xertica-xlogo/XerticaXLogo.d.ts +2 -1
  215. package/dist/components/examples/DrawingMapExample.d.ts +2 -1
  216. package/dist/components/examples/FilterableMapExample.d.ts +1 -1
  217. package/dist/components/examples/MapShowcase.d.ts +2 -1
  218. package/dist/components/examples/SimpleFilterableMap.d.ts +2 -1
  219. package/dist/components/figma/ImageWithFallback.d.ts +1 -1
  220. package/dist/components/layout/header/header.d.ts +1 -1
  221. package/dist/components/layout/sidebar/sidebar.d.ts +25 -13
  222. package/dist/components/media/FloatingMediaWrapper.d.ts +1 -1
  223. package/dist/components/media/audio-player/AudioPlayer.d.ts +2 -1
  224. package/dist/components/media/video-player/VideoPlayer.d.ts +2 -1
  225. package/dist/components/pages/forgot-password-page/ForgotPasswordPage.d.ts +2 -1
  226. package/dist/components/pages/home-content/HomeContent.d.ts +2 -1
  227. package/dist/components/pages/home-page/HomePage.d.ts +2 -1
  228. package/dist/components/pages/login-page/LoginPage.d.ts +2 -1
  229. package/dist/components/pages/reset-password-page/ResetPasswordPage.d.ts +2 -1
  230. package/dist/components/pages/template-content/TemplateContent.d.ts +2 -1
  231. package/dist/components/pages/template-page/TemplatePage.d.ts +2 -1
  232. package/dist/components/pages/verify-email-page/VerifyEmailPage.d.ts +2 -1
  233. package/dist/components/shared/CustomTooltipContent.d.ts +1 -1
  234. package/dist/components/shared/assistant-utils.d.ts +3 -2
  235. package/dist/components/shared/error-boundary.d.ts +4 -4
  236. package/dist/components/shared/error-fallbacks.d.ts +4 -3
  237. package/dist/components/shared/navigation.d.ts +6 -2
  238. package/dist/components/ui/accordion/accordion.d.ts +4 -4
  239. package/dist/components/ui/alert/alert.d.ts +3 -3
  240. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +10 -10
  241. package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
  242. package/dist/components/ui/assistant-chart/AssistantChart.d.ts +4 -3
  243. package/dist/components/ui/avatar/avatar.d.ts +3 -3
  244. package/dist/components/ui/badge/badge.d.ts +1 -1
  245. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +7 -7
  246. package/dist/components/ui/calendar/calendar.d.ts +2 -2
  247. package/dist/components/ui/card/card.d.ts +7 -7
  248. package/dist/components/ui/carousel/carousel.d.ts +5 -5
  249. package/dist/components/ui/chart/chart.d.ts +16 -16
  250. package/dist/components/ui/collapsible/collapsible.d.ts +3 -3
  251. package/dist/components/ui/command/command.d.ts +9 -9
  252. package/dist/components/ui/context-menu/context-menu.d.ts +15 -15
  253. package/dist/components/ui/dialog/dialog.d.ts +9 -9
  254. package/dist/components/ui/drawer/drawer.d.ts +10 -10
  255. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +15 -15
  256. package/dist/components/ui/form/form.d.ts +7 -7
  257. package/dist/components/ui/google-maps-loader/google-maps-loader.d.ts +3 -3
  258. package/dist/components/ui/hover-card/hover-card.d.ts +3 -3
  259. package/dist/components/ui/input-otp/input-otp.d.ts +4 -4
  260. package/dist/components/ui/label/label.d.ts +1 -1
  261. package/dist/components/ui/menubar/menubar.d.ts +16 -16
  262. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +8 -8
  263. package/dist/components/ui/page-header/page-header.d.ts +3 -3
  264. package/dist/components/ui/pagination/pagination.d.ts +7 -7
  265. package/dist/components/ui/popover/popover.d.ts +4 -4
  266. package/dist/components/ui/progress/progress.d.ts +1 -1
  267. package/dist/components/ui/resizable/resizable.d.ts +11 -7
  268. package/dist/components/ui/rich-text-editor/rich-text-editor.d.ts +1 -1
  269. package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
  270. package/dist/components/ui/separator/separator.d.ts +1 -1
  271. package/dist/components/ui/sheet/sheet.d.ts +10 -10
  272. package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
  273. package/dist/components/ui/sonner/sonner.d.ts +2 -1
  274. package/dist/components/ui/stats-card/stats-card-skeleton.d.ts +1 -1
  275. package/dist/components/ui/table/table.d.ts +8 -8
  276. package/dist/components/ui/tabs/tabs.d.ts +4 -4
  277. package/dist/components/ui/tooltip/tooltip.d.ts +4 -4
  278. package/dist/contexts/ApiKeyContext.d.ts +2 -2
  279. package/dist/contexts/AssistenteContext.d.ts +1 -1
  280. package/dist/contexts/AuthContext.d.ts +1 -1
  281. package/dist/contexts/LanguageContext.d.ts +2 -2
  282. package/dist/contexts/LayoutContext.d.ts +2 -2
  283. package/dist/contexts/ThemeContext.d.ts +1 -1
  284. package/dist/features/assistant/hooks/useAssistantConfig.d.ts +1 -1
  285. package/dist/features/home/hooks/useDashboardStats.d.ts +1 -1
  286. package/dist/features/home/hooks/useFeatureCards.d.ts +1 -1
  287. package/dist/features/home/hooks/useTeamMembers.d.ts +1 -1
  288. package/dist/{google-maps-loader-BCe58h9D.js → google-maps-loader-BOug999f.js} +0 -4
  289. package/dist/{google-maps-loader-casMyxlo.cjs → google-maps-loader-DfeBRI8Q.cjs} +0 -5
  290. package/dist/hooks.cjs.js +2 -2
  291. package/dist/hooks.es.js +2 -2
  292. package/dist/{index-9GWd0qxq.cjs → index-BQjx1Mdf.cjs} +1 -1
  293. package/dist/index-Bei5DzAL.js +6 -0
  294. package/dist/index.cjs.js +18 -18
  295. package/dist/index.es.js +12 -12
  296. package/dist/{input-cc-PTD4R.js → input-B0_vbA3g.js} +3 -61
  297. package/dist/{input-C_UiS2Py.cjs → input-ByYuOv8A.cjs} +1 -62
  298. package/dist/layout.cjs.js +1 -1
  299. package/dist/layout.es.js +1 -1
  300. package/dist/pages.cjs.js +1 -1
  301. package/dist/pages.es.js +1 -1
  302. package/dist/{rich-text-editor-DxO1Hz3a.cjs → rich-text-editor-BuqSu718.cjs} +70 -5
  303. package/dist/{rich-text-editor-DqLICivI.js → rich-text-editor-CV8FtA_l.js} +68 -6
  304. package/dist/{rich-text-editor-DloeW0wc.js → rich-text-editor-DV1SixzE.js} +61 -3
  305. package/dist/{rich-text-editor-B2CKz7nx.cjs → rich-text-editor-DnSDglzW.cjs} +63 -2
  306. package/dist/{sidebar-BS1p2V7t.cjs → sidebar-BGJ0j567.cjs} +367 -9
  307. package/dist/{sidebar-3XyzjVBw.js → sidebar-BI6mZlC8.js} +364 -6
  308. package/dist/{sidebar-DyYvgyBj.cjs → sidebar-BtmotOg-.cjs} +367 -9
  309. package/dist/{sidebar-Duermn32.js → sidebar-D3EgGVxF.js} +77 -63
  310. package/dist/{sidebar-CLmIjgNd.cjs → sidebar-DDTqMGnR.cjs} +80 -66
  311. package/dist/{sidebar-B4ZWaMrE.js → sidebar-I7EXyf5D.js} +364 -6
  312. package/dist/ui.cjs.js +7 -7
  313. package/dist/ui.es.js +5 -5
  314. package/dist/{xertica-assistant-QFUnv5I2.cjs → xertica-assistant-BrF9jScR.cjs} +4 -4
  315. package/dist/{xertica-assistant-BbgzsgsG.js → xertica-assistant-CJVnvMqU.js} +55 -45
  316. package/dist/{xertica-assistant-d2qs2Vd9.cjs → xertica-assistant-CKPtc1z5.cjs} +58 -40
  317. package/dist/{xertica-assistant-CyikE3N_.js → xertica-assistant-CsBsxTsI.js} +2 -2
  318. package/dist/{xertica-assistant-CIaUlbIt.cjs → xertica-assistant-DER0brPQ.cjs} +6 -5
  319. package/dist/{xertica-assistant-B1NaSFFj.js → xertica-assistant-DQCjpk5M.js} +4 -3
  320. package/dist/{xertica-assistant-B687qEPU.js → xertica-assistant-Dk-9AJzw.js} +16 -7
  321. package/dist/{xertica-assistant-sOHwTgIP.cjs → xertica-assistant-DxhIKvuY.cjs} +18 -9
  322. package/dist/xertica-ui.css +2 -2
  323. package/docs/components/audio-player.md +1 -1
  324. package/docs/components/sidebar.md +331 -331
  325. package/docs/components/stats-card.md +138 -138
  326. package/docs/components/toggle.md +12 -0
  327. package/docs/doc-audit.md +35 -229
  328. package/docs/i18n.md +31 -10
  329. package/docs/llms.md +6 -4
  330. package/llms-compact.txt +444 -444
  331. package/llms-full.txt +12144 -12144
  332. package/llms.txt +187 -187
  333. package/package.json +223 -219
  334. package/scripts/a11y-audit.mjs +162 -162
  335. package/scripts/fix-stories.cjs +19 -19
  336. package/styles/globals.css +0 -1
  337. package/styles/xertica/base.css +8 -0
  338. package/styles/xertica/tokens.css +240 -240
  339. package/templates/.env.example +2 -2
  340. package/templates/.prettierignore +4 -4
  341. package/templates/.prettierrc +10 -10
  342. package/templates/guidelines/Guidelines.md +865 -865
  343. package/templates/index.html +13 -13
  344. package/templates/package.json +69 -69
  345. package/templates/src/app/components/AuthGuard.tsx +11 -0
  346. package/templates/src/features/auth/ui/AuthPageShell.tsx +32 -32
  347. package/templates/src/features/home/ui/HomeContent.tsx +2 -3
  348. package/templates/src/features/settings/index.ts +2 -0
  349. package/templates/src/features/settings/ui/SettingsContent.tsx +134 -0
  350. package/templates/src/features/template/ui/TemplateContent.tsx +2 -3
  351. package/templates/src/i18n.ts +36 -13
  352. package/templates/src/locales/en/pages/settings.json +15 -0
  353. package/templates/src/locales/es/pages/settings.json +15 -0
  354. package/templates/src/locales/pt-BR/pages/settings.json +15 -0
  355. package/templates/src/pages/SettingsPage.tsx +28 -0
  356. package/templates/src/shared/config/navigation.ts +2 -2
  357. package/templates/src/styles/xertica/tokens.css +240 -240
  358. package/templates/vite.config.d.ts +2 -2
  359. package/templates/vite.config.js +20 -20
  360. package/utils/gemini.ts +2 -2
  361. package/dist/AssistantChart-9w31gdAb.cjs +0 -3363
  362. package/dist/AssistantChart-BAudAfne.cjs +0 -3591
  363. package/dist/AssistantChart-BAx9VQvb.cjs +0 -3374
  364. package/dist/AssistantChart-BP8upjMk.js +0 -3565
  365. package/dist/AssistantChart-CVko2A1W.js +0 -3348
  366. package/dist/AssistantChart-CVzmmhx4.js +0 -3337
  367. package/dist/AssistantChart-CeU2dIb6.js +0 -3469
  368. package/dist/AssistantChart-DO5UuX4J.cjs +0 -3495
  369. package/dist/AudioPlayer-1ypwE2Wh.cjs +0 -936
  370. package/dist/AudioPlayer-BJ2IuRQW.cjs +0 -1275
  371. package/dist/AudioPlayer-BWDW6TN9.cjs +0 -1279
  372. package/dist/AudioPlayer-CM962GEh.js +0 -1280
  373. package/dist/AudioPlayer-CbZId7cj.cjs +0 -998
  374. package/dist/AudioPlayer-DU8zt8-z.js +0 -999
  375. package/dist/AudioPlayer-DuKXrCfy.js +0 -937
  376. package/dist/AudioPlayer-Xxma6_-H.js +0 -1276
  377. package/dist/BrandColorsContext-DLVJgtmH.js +0 -666
  378. package/dist/BrandColorsContext-DZT7JjeD.js +0 -659
  379. package/dist/BrandColorsContext-GUyFmkX0.cjs +0 -665
  380. package/dist/BrandColorsContext-awnBCmC4.cjs +0 -666
  381. package/dist/CodeBlock-C2ZUXt8V.js +0 -219
  382. package/dist/CodeBlock-C5oYnLQp.cjs +0 -218
  383. package/dist/CodeBlock-DuxdtN-l.js +0 -219
  384. package/dist/CodeBlock-POVYONvC.cjs +0 -218
  385. package/dist/CustomTooltipContent-BT6brkVJ.cjs +0 -49
  386. package/dist/CustomTooltipContent-CfOfikhq.js +0 -33
  387. package/dist/CustomTooltipContent-DHjkY0ww.js +0 -40
  388. package/dist/CustomTooltipContent-c_K-DWRr.cjs +0 -56
  389. package/dist/FeatureCard-9GhnlgL3.js +0 -336
  390. package/dist/FeatureCard-Bcb3Zi54.js +0 -302
  391. package/dist/FeatureCard-Cfs6Ishq.js +0 -485
  392. package/dist/FeatureCard-CkPd2psQ.cjs +0 -301
  393. package/dist/FeatureCard-Dkp-xmzM.cjs +0 -335
  394. package/dist/FeatureCard-ie3L8Fpr.cjs +0 -484
  395. package/dist/FeatureCardSkeleton-CAgu8stE.js +0 -27
  396. package/dist/FeatureCardSkeleton-mO3Bdm_V.cjs +0 -26
  397. package/dist/LanguageContext-BwhwC3G2.js +0 -657
  398. package/dist/LanguageContext-DvUt5jBg.cjs +0 -656
  399. package/dist/LayoutContext-BDmcZfMH.cjs +0 -84
  400. package/dist/LayoutContext-C4kKN9RV.cjs +0 -93
  401. package/dist/LayoutContext-CGEe1oPq.js +0 -94
  402. package/dist/LayoutContext-CwT5KLiW.cjs +0 -104
  403. package/dist/LayoutContext-DVLCsoQn.js +0 -105
  404. package/dist/LayoutContext-dbQvdC4O.js +0 -85
  405. package/dist/ThemeContext-BbBNoFTG.js +0 -735
  406. package/dist/ThemeContext-Bo-W2WZH.js +0 -1856
  407. package/dist/ThemeContext-CP3a0jxy.cjs +0 -1855
  408. package/dist/ThemeContext-Cmr8Ex8H.cjs +0 -734
  409. package/dist/ThemeContext-CpqYShLq.cjs +0 -324
  410. package/dist/ThemeContext-D3LzacmG.js +0 -188
  411. package/dist/ThemeContext-DQUOeziy.cjs +0 -1855
  412. package/dist/ThemeContext-Du2nE1PL.js +0 -325
  413. package/dist/ThemeContext-GeEBTJ3q.cjs +0 -1621
  414. package/dist/ThemeContext-JyLK9B1o.js +0 -1622
  415. package/dist/ThemeContext-RTy1m2Uq.js +0 -82
  416. package/dist/ThemeContext-U4dEYc6C.cjs +0 -187
  417. package/dist/ThemeContext-bSzuOit2.cjs +0 -81
  418. package/dist/ThemeContext-ept8jhXI.js +0 -1856
  419. package/dist/VerifyEmailPage-BE-L9mB7.js +0 -2828
  420. package/dist/VerifyEmailPage-BIBOKV7Z.js +0 -3214
  421. package/dist/VerifyEmailPage-BRSP-Pwt.cjs +0 -3196
  422. package/dist/VerifyEmailPage-Bae2cBXT.cjs +0 -2827
  423. package/dist/VerifyEmailPage-BiRm7Nh4.cjs +0 -3213
  424. package/dist/VerifyEmailPage-Bvfv8HVQ.js +0 -3214
  425. package/dist/VerifyEmailPage-CR7kb5df.cjs +0 -2827
  426. package/dist/VerifyEmailPage-C_ihbcth.js +0 -2828
  427. package/dist/VerifyEmailPage-CbgjOF0v.js +0 -2828
  428. package/dist/VerifyEmailPage-CdYPSJoO.js +0 -2828
  429. package/dist/VerifyEmailPage-D-FRj5TU.cjs +0 -3213
  430. package/dist/VerifyEmailPage-DF2ilhum.cjs +0 -3210
  431. package/dist/VerifyEmailPage-DMBh4NM9.cjs +0 -2827
  432. package/dist/VerifyEmailPage-DTtFfC-J.js +0 -3197
  433. package/dist/VerifyEmailPage-Dt7zgA4w.cjs +0 -2827
  434. package/dist/VerifyEmailPage-EhudUdqF.js +0 -3211
  435. package/dist/VerifyEmailPage-RrUApqBN.js +0 -3214
  436. package/dist/VerifyEmailPage-VoMI7MYH.cjs +0 -3213
  437. package/dist/VerifyEmailPage-hdB8JQGv.cjs +0 -3213
  438. package/dist/VerifyEmailPage-vYHbYK3q.js +0 -3214
  439. package/dist/XerticaOrbe-BCUVSPPB.cjs +0 -1924
  440. package/dist/XerticaOrbe-BGIB1CTK.js +0 -1355
  441. package/dist/XerticaOrbe-By8eEvR-.js +0 -1925
  442. package/dist/XerticaOrbe-FWGjBj0U.cjs +0 -1354
  443. package/dist/XerticaProvider-AChwphCO.cjs +0 -48
  444. package/dist/XerticaProvider-AbWlr7Af.cjs +0 -48
  445. package/dist/XerticaProvider-B8CaV7xu.cjs +0 -39
  446. package/dist/XerticaProvider-BITjgC5p.js +0 -39
  447. package/dist/XerticaProvider-BSyFrmC0.js +0 -49
  448. package/dist/XerticaProvider-By8q3Roe.cjs +0 -38
  449. package/dist/XerticaProvider-CUYJZc32.js +0 -49
  450. package/dist/XerticaProvider-CW9hpCdF.cjs +0 -39
  451. package/dist/XerticaProvider-CWgby5mY.js +0 -49
  452. package/dist/XerticaProvider-CWs6EwNa.js +0 -49
  453. package/dist/XerticaProvider-CiNKjMx1.cjs +0 -48
  454. package/dist/XerticaProvider-CjQAQPcn.cjs +0 -48
  455. package/dist/XerticaProvider-D5lLumH-.js +0 -49
  456. package/dist/XerticaProvider-DQtvJU7m.js +0 -40
  457. package/dist/XerticaProvider-DUOJg9iX.js +0 -49
  458. package/dist/XerticaProvider-Dl_b72_l.cjs +0 -51
  459. package/dist/XerticaProvider-qQUDop71.cjs +0 -48
  460. package/dist/XerticaProvider-siSt9uG2.js +0 -40
  461. package/dist/XerticaXLogo-8TTzBjHw.cjs +0 -251
  462. package/dist/XerticaXLogo-B2svDGZh.cjs +0 -251
  463. package/dist/XerticaXLogo-BWaag64t.js +0 -252
  464. package/dist/XerticaXLogo-CFuIlYFH.js +0 -252
  465. package/dist/XerticaXLogo-CU-U-GP4.cjs +0 -251
  466. package/dist/XerticaXLogo-ChryA6xj.js +0 -252
  467. package/dist/XerticaXLogo-CowGv7BC.js +0 -252
  468. package/dist/XerticaXLogo-CziKMQil.cjs +0 -242
  469. package/dist/XerticaXLogo-D8jf0SNv.cjs +0 -214
  470. package/dist/XerticaXLogo-DHz5SugF.js +0 -252
  471. package/dist/XerticaXLogo-DTee_y8X.cjs +0 -251
  472. package/dist/XerticaXLogo-DfUvz-lD.js +0 -243
  473. package/dist/XerticaXLogo-DzXKZBtG.js +0 -231
  474. package/dist/XerticaXLogo-fAJMy3H4.js +0 -215
  475. package/dist/XerticaXLogo-kslQ8Tk_.cjs +0 -251
  476. package/dist/XerticaXLogo-xWbElCZj.cjs +0 -230
  477. package/dist/alert-dialog-iDe5VE5o.js +0 -842
  478. package/dist/alert-dialog-yckpaOpy.cjs +0 -865
  479. package/dist/avatar-Cq5_E8r9.cjs +0 -78
  480. package/dist/avatar-CuYu2MKt.cjs +0 -72
  481. package/dist/avatar-Cxyofu1H.js +0 -56
  482. package/dist/avatar-DSBfJMRJ.js +0 -62
  483. package/dist/breadcrumb-CVzzzqfo.js +0 -103
  484. package/dist/breadcrumb-DIJ0X3Ot.js +0 -96
  485. package/dist/breadcrumb-DjSxkjlQ.cjs +0 -95
  486. package/dist/breadcrumb-DnDlQFg2.cjs +0 -102
  487. package/dist/button-0CXwCRTm.cjs +0 -85
  488. package/dist/button-Bnv9SvYK.cjs +0 -79
  489. package/dist/button-C6uvh0rV.js +0 -63
  490. package/dist/button-qkz7Icqf.js +0 -69
  491. package/dist/card-B8-Gl5DL.js +0 -73
  492. package/dist/card-Bv_c57KU.cjs +0 -72
  493. package/dist/card-DJTsYhLL.cjs +0 -89
  494. package/dist/card-fi8zAN-I.js +0 -90
  495. package/dist/dropdown-menu-B_uEXNc4.cjs +0 -220
  496. package/dist/dropdown-menu-CFuCssWA.js +0 -204
  497. package/dist/dropdown-menu-Ze1YZFyc.cjs +0 -247
  498. package/dist/dropdown-menu-nc_Lvg-u.js +0 -231
  499. package/dist/google-maps-loader-BVoVhUwA.js +0 -316
  500. package/dist/google-maps-loader-BqsYL48U.cjs +0 -285
  501. package/dist/google-maps-loader-DjJaYhV6.cjs +0 -316
  502. package/dist/google-maps-loader-t2IlYBzw.js +0 -286
  503. package/dist/index-B7A523O_.js +0 -8
  504. package/dist/index-BabBx2pa.js +0 -6
  505. package/dist/index-CkTUgOwX.js +0 -8
  506. package/dist/index-D3RLKRAs.cjs +0 -7
  507. package/dist/index-DmHhnb7a.cjs +0 -7
  508. package/dist/index.umd.js +0 -13712
  509. package/dist/input-CNFHVKvo.cjs +0 -145
  510. package/dist/input-CPl84zAx.cjs +0 -151
  511. package/dist/input-D-6IsAca.js +0 -133
  512. package/dist/input-wPYg0d0P.js +0 -127
  513. package/dist/progress-BLwqortq.cjs +0 -105
  514. package/dist/progress-Cs9i4DPx.js +0 -81
  515. package/dist/progress-D9mtsf6j.js +0 -89
  516. package/dist/progress-DDeuWPZw.cjs +0 -97
  517. package/dist/rich-text-editor-1UW3Y2JK.js +0 -2891
  518. package/dist/rich-text-editor-BM-LPpTh.js +0 -2902
  519. package/dist/rich-text-editor-BmsjY03B.js +0 -2949
  520. package/dist/rich-text-editor-BrdC5evx.js +0 -2244
  521. package/dist/rich-text-editor-CyggTOLQ.cjs +0 -2908
  522. package/dist/rich-text-editor-DbV-S7Fi.cjs +0 -2261
  523. package/dist/rich-text-editor-DoCkKhzk.cjs +0 -2919
  524. package/dist/rich-text-editor-GS2kpTAK.cjs +0 -2966
  525. package/dist/routes.d.ts +0 -10
  526. package/dist/select-Cmb8zF7w.cjs +0 -156
  527. package/dist/select-CprSNX0z.js +0 -139
  528. package/dist/select-DT7Zjn42.cjs +0 -162
  529. package/dist/select-En8DkoaQ.js +0 -145
  530. package/dist/sidebar-B3EYhli0.cjs +0 -800
  531. package/dist/sidebar-B9NR0lCe.cjs +0 -800
  532. package/dist/sidebar-BcJ6LxvX.cjs +0 -733
  533. package/dist/sidebar-BvF5I2Ue.cjs +0 -800
  534. package/dist/sidebar-C5B_LHek.cjs +0 -795
  535. package/dist/sidebar-CA6_ek3f.js +0 -801
  536. package/dist/sidebar-CRMiBtAi.js +0 -801
  537. package/dist/sidebar-CVUGHOS_.cjs +0 -756
  538. package/dist/sidebar-CZ2mWaMM.cjs +0 -800
  539. package/dist/sidebar-CmvwjnVb.js +0 -757
  540. package/dist/sidebar-CplprZpM.js +0 -801
  541. package/dist/sidebar-Dz7bd3zP.js +0 -796
  542. package/dist/sidebar-KIS0C2JH.js +0 -801
  543. package/dist/sidebar-OTO_up7Z.js +0 -801
  544. package/dist/sidebar-WoKvFWCN.js +0 -717
  545. package/dist/sidebar-zowjejT2.cjs +0 -800
  546. package/dist/skeleton-4zoHiFJ_.cjs +0 -83
  547. package/dist/skeleton-C4bHqUBf.js +0 -84
  548. package/dist/slider-C0JKA9k3.js +0 -56
  549. package/dist/slider-CPmwzm_3.cjs +0 -73
  550. package/dist/slider-DcJharR9.cjs +0 -73
  551. package/dist/slider-Pay3fka2.js +0 -56
  552. package/dist/sonner-DeUIj0Zg.cjs +0 -63
  553. package/dist/sonner-g9RIfi35.js +0 -47
  554. package/dist/tooltip-CNtsL5cB.cjs +0 -71
  555. package/dist/tooltip-CTyZCD8h.js +0 -55
  556. package/dist/tooltip-CwgSdy3h.cjs +0 -67
  557. package/dist/tooltip-D-OrYnKO.js +0 -51
  558. package/dist/use-audio-player-BJFV24XW.js +0 -188
  559. package/dist/use-audio-player-Bkh23vQ3.js +0 -177
  560. package/dist/use-audio-player-Dn1NR9xN.cjs +0 -176
  561. package/dist/use-audio-player-DyVYlOnR.cjs +0 -187
  562. package/dist/use-mobile-BB4M_4Ru.cjs +0 -47
  563. package/dist/use-mobile-CLu9nqGL.js +0 -31
  564. package/dist/use-mobile-CNwiBNxu.js +0 -33
  565. package/dist/use-mobile-Dlf74ufz.cjs +0 -49
  566. package/dist/xertica-assistant-B1IaHXnB.cjs +0 -1894
  567. package/dist/xertica-assistant-BMqdyRVi.js +0 -2082
  568. package/dist/xertica-assistant-Bj3vBCq_.cjs +0 -2081
  569. package/dist/xertica-assistant-CfBCo21g.js +0 -2148
  570. package/dist/xertica-assistant-DIM_Do1k.js +0 -1866
  571. package/dist/xertica-assistant-DPsESB6t.js +0 -1878
  572. package/dist/xertica-assistant-DrsRwla1.cjs +0 -2147
  573. package/dist/xertica-assistant-Qp3ydksa.cjs +0 -1882
  574. package/dist/xertica-assistant-gnCJdcZY.js +0 -1866
  575. package/dist/xertica-assistant-yyrR0JKl.cjs +0 -1882
  576. package/styles/xertica/app-overrides/scrollbar.css +0 -33
  577. package/dist/{XerticaXLogo-qBPhwK3g.cjs → LanguageSelector-1cINLJ23.cjs} +80 -80
@@ -1,3374 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const AspectRatioPrimitive = require("@radix-ui/react-aspect-ratio");
4
- const lucideReact = require("lucide-react");
5
- const React = require("react");
6
- const button = require("./button-0CXwCRTm.cjs");
7
- const NavigationMenuPrimitive = require("@radix-ui/react-navigation-menu");
8
- const classVarianceAuthority = require("class-variance-authority");
9
- const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
10
- const TogglePrimitive = require("@radix-ui/react-toggle");
11
- const inputOtp = require("input-otp");
12
- const reactSlot = require("@radix-ui/react-slot");
13
- const reactHookForm = require("react-hook-form");
14
- const alertDialog = require("./alert-dialog-yckpaOpy.cjs");
15
- const reactDayPicker = require("react-day-picker");
16
- const DialogPrimitive = require("@radix-ui/react-dialog");
17
- const vaul = require("vaul");
18
- const HoverCardPrimitive = require("@radix-ui/react-hover-card");
19
- const ContextMenuPrimitive = require("@radix-ui/react-context-menu");
20
- const MenubarPrimitive = require("@radix-ui/react-menubar");
21
- const cmdk = require("cmdk");
22
- const richTextEditor = require("./rich-text-editor-DbV-S7Fi.cjs");
23
- const card = require("./card-DJTsYhLL.cjs");
24
- const CollapsiblePrimitive = require("@radix-ui/react-collapsible");
25
- const AccordionPrimitive = require("@radix-ui/react-accordion");
26
- const useEmblaCarousel = require("embla-carousel-react");
27
- const googleMapsLoader = require("./google-maps-loader-BqsYL48U.cjs");
28
- const RechartsPrimitive = require("recharts");
29
- var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
30
- function _interopNamespaceDefault(e) {
31
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
32
- if (e) {
33
- for (const k in e) {
34
- if (k !== "default") {
35
- const d = Object.getOwnPropertyDescriptor(e, k);
36
- Object.defineProperty(n, k, d.get ? d : {
37
- enumerable: true,
38
- get: () => e[k]
39
- });
40
- }
41
- }
42
- }
43
- n.default = e;
44
- return Object.freeze(n);
45
- }
46
- const AspectRatioPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AspectRatioPrimitive);
47
- const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
48
- const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
49
- const ToggleGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToggleGroupPrimitive);
50
- const TogglePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TogglePrimitive);
51
- const DialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DialogPrimitive);
52
- const HoverCardPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(HoverCardPrimitive);
53
- const ContextMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ContextMenuPrimitive);
54
- const MenubarPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(MenubarPrimitive);
55
- const CollapsiblePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CollapsiblePrimitive);
56
- const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
57
- function AspectRatio({
58
- ...props
59
- }) {
60
- return /* @__PURE__ */ jsxRuntime.jsx(AspectRatioPrimitive__namespace.Root, { "data-slot": "aspect-ratio", ...props });
61
- }
62
- const ResizableContext = React__namespace.createContext(null);
63
- const ResizablePanelGroup = ({
64
- children,
65
- className,
66
- direction = "horizontal",
67
- id,
68
- autoSaveId,
69
- storage,
70
- onLayout,
71
- ...props
72
- }) => {
73
- const [panels, setPanels] = React__namespace.useState(/* @__PURE__ */ new Map());
74
- const [handles, setHandles] = React__namespace.useState(/* @__PURE__ */ new Map());
75
- const [sizes, setSizes] = React__namespace.useState(/* @__PURE__ */ new Map());
76
- const [isDragging, setIsDragging] = React__namespace.useState(false);
77
- const containerRef = React__namespace.useRef(null);
78
- const getSortedItems = React__namespace.useCallback((items) => {
79
- if (!containerRef.current) return [];
80
- return Array.from(items.values()).sort((a, b) => {
81
- if (!a.ref.current || !b.ref.current) return 0;
82
- const position = a.ref.current.compareDocumentPosition(b.ref.current);
83
- if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
84
- if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
85
- return 0;
86
- });
87
- }, []);
88
- React__namespace.useEffect(() => {
89
- const sortedPanels = getSortedItems(panels);
90
- if (sortedPanels.length === 0) return;
91
- const uninitialized = sortedPanels.some((p) => !sizes.has(p.id));
92
- if (uninitialized) {
93
- const newSizes = new Map(sizes);
94
- const remainingSpace = 100;
95
- const defaultSizeCount = sortedPanels.filter((p) => p.defaultSize).length;
96
- let usedSpace = 0;
97
- sortedPanels.forEach((p) => {
98
- if (p.defaultSize) usedSpace += p.defaultSize;
99
- });
100
- const spaceForOthers = Math.max(0, remainingSpace - usedSpace);
101
- const countOthers = sortedPanels.length - defaultSizeCount;
102
- const sizeForOthers = countOthers > 0 ? spaceForOthers / countOthers : 0;
103
- sortedPanels.forEach((p) => {
104
- if (!newSizes.has(p.id)) {
105
- newSizes.set(p.id, p.defaultSize ?? sizeForOthers);
106
- }
107
- });
108
- setSizes(newSizes);
109
- }
110
- }, [panels, sizes, getSortedItems]);
111
- const registerPanel = React__namespace.useCallback((data) => {
112
- setPanels((prev) => {
113
- const next = new Map(prev);
114
- next.set(data.id, data);
115
- return next;
116
- });
117
- }, []);
118
- const unregisterPanel = React__namespace.useCallback((id2) => {
119
- setPanels((prev) => {
120
- const next = new Map(prev);
121
- next.delete(id2);
122
- return next;
123
- });
124
- setSizes((prev) => {
125
- const next = new Map(prev);
126
- next.delete(id2);
127
- return next;
128
- });
129
- }, []);
130
- const registerHandle = React__namespace.useCallback((data) => {
131
- setHandles((prev) => {
132
- const next = new Map(prev);
133
- next.set(data.id, data);
134
- return next;
135
- });
136
- }, []);
137
- const unregisterHandle = React__namespace.useCallback((id2) => {
138
- setHandles((prev) => {
139
- const next = new Map(prev);
140
- next.delete(id2);
141
- return next;
142
- });
143
- }, []);
144
- const startDragging = React__namespace.useCallback((handleId, event) => {
145
- var _a, _b;
146
- event.preventDefault();
147
- setIsDragging(true);
148
- const sortedPanels = getSortedItems(panels);
149
- const sortedHandles = getSortedItems(handles);
150
- const handleIndex = sortedHandles.findIndex((h) => h.id === handleId);
151
- if (handleIndex === -1) return;
152
- const leftPanel = sortedPanels[handleIndex];
153
- const rightPanel = sortedPanels[handleIndex + 1];
154
- if (!leftPanel || !rightPanel) return;
155
- const startX = "touches" in event ? event.touches[0].clientX : event.clientX;
156
- const startY = "touches" in event ? event.touches[0].clientY : event.clientY;
157
- const startSizeLeft = sizes.get(leftPanel.id) || 0;
158
- const startSizeRight = sizes.get(rightPanel.id) || 0;
159
- const containerSize = direction === "horizontal" ? ((_a = containerRef.current) == null ? void 0 : _a.offsetWidth) || 1 : ((_b = containerRef.current) == null ? void 0 : _b.offsetHeight) || 1;
160
- const onMove = (e) => {
161
- var _a2, _b2;
162
- const currentX = "touches" in e ? e.touches[0].clientX : e.clientX;
163
- const currentY = "touches" in e ? e.touches[0].clientY : e.clientY;
164
- const deltaPixels = direction === "horizontal" ? currentX - startX : currentY - startY;
165
- const deltaPercent = deltaPixels / containerSize * 100;
166
- let finalLeft = startSizeLeft + deltaPercent;
167
- let finalRight = startSizeRight - deltaPercent;
168
- if (leftPanel.minSize !== void 0 && finalLeft < leftPanel.minSize) {
169
- const diff = leftPanel.minSize - finalLeft;
170
- finalLeft = leftPanel.minSize;
171
- finalRight -= diff;
172
- }
173
- if (rightPanel.minSize !== void 0 && finalRight < rightPanel.minSize) {
174
- const diff = rightPanel.minSize - finalRight;
175
- finalRight = rightPanel.minSize;
176
- finalLeft -= diff;
177
- }
178
- if (leftPanel.maxSize !== void 0 && finalLeft > leftPanel.maxSize) {
179
- const diff = finalLeft - leftPanel.maxSize;
180
- finalLeft = leftPanel.maxSize;
181
- finalRight += diff;
182
- }
183
- if (rightPanel.maxSize !== void 0 && finalRight > rightPanel.maxSize) {
184
- const diff = finalRight - rightPanel.maxSize;
185
- finalRight = rightPanel.maxSize;
186
- finalLeft -= diff;
187
- }
188
- finalLeft = Math.max(0, Math.min(100, finalLeft));
189
- finalRight = Math.max(0, Math.min(100, finalRight));
190
- setSizes((prev) => {
191
- const next = new Map(prev);
192
- next.set(leftPanel.id, finalLeft);
193
- next.set(rightPanel.id, finalRight);
194
- return next;
195
- });
196
- (_a2 = leftPanel.onResize) == null ? void 0 : _a2.call(leftPanel, finalLeft);
197
- (_b2 = rightPanel.onResize) == null ? void 0 : _b2.call(rightPanel, finalRight);
198
- };
199
- const onUp = () => {
200
- setIsDragging(false);
201
- window.removeEventListener("mousemove", onMove);
202
- window.removeEventListener("mouseup", onUp);
203
- window.removeEventListener("touchmove", onMove);
204
- window.removeEventListener("touchend", onUp);
205
- if (onLayout) {
206
- onLayout(sortedPanels.map((p) => sizes.get(p.id) || 0));
207
- }
208
- };
209
- window.addEventListener("mousemove", onMove);
210
- window.addEventListener("mouseup", onUp);
211
- window.addEventListener("touchmove", onMove);
212
- window.addEventListener("touchend", onUp);
213
- }, [panels, handles, sizes, direction, getSortedItems, onLayout]);
214
- const getPanelStyle = React__namespace.useCallback((id2) => {
215
- const size = sizes.get(id2);
216
- if (size === void 0) return { flex: "1 1 0%", overflow: "hidden" };
217
- return { flex: `${size} 1 0%`, overflow: "hidden" };
218
- }, [sizes]);
219
- const contextValue = React__namespace.useMemo(() => ({
220
- direction,
221
- registerPanel,
222
- unregisterPanel,
223
- registerHandle,
224
- unregisterHandle,
225
- isDragging,
226
- startDragging,
227
- getPanelStyle
228
- }), [direction, registerPanel, unregisterPanel, registerHandle, unregisterHandle, isDragging, startDragging, getPanelStyle]);
229
- return /* @__PURE__ */ jsxRuntime.jsx(ResizableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
230
- "div",
231
- {
232
- ref: containerRef,
233
- "data-slot": "resizable-panel-group",
234
- "data-panel-group-direction": direction,
235
- className: button.cn(
236
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
237
- className
238
- ),
239
- ...props,
240
- children
241
- }
242
- ) });
243
- };
244
- const ResizablePanel = ({
245
- className,
246
- defaultSize,
247
- minSize = 0,
248
- maxSize = 100,
249
- collapsible,
250
- collapsedSize,
251
- onCollapse,
252
- onExpand,
253
- onResize,
254
- order,
255
- tagName,
256
- id: propId,
257
- children,
258
- ...props
259
- }) => {
260
- const context = React__namespace.useContext(ResizableContext);
261
- const ref = React__namespace.useRef(null);
262
- const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
263
- const id = propId || generatedId;
264
- const registerPanel = context == null ? void 0 : context.registerPanel;
265
- const unregisterPanel = context == null ? void 0 : context.unregisterPanel;
266
- React__namespace.useLayoutEffect(() => {
267
- if (!registerPanel || !unregisterPanel) return;
268
- registerPanel({
269
- id,
270
- ref,
271
- defaultSize,
272
- minSize,
273
- maxSize,
274
- collapsible,
275
- onCollapse,
276
- onExpand,
277
- onResize
278
- });
279
- return () => unregisterPanel(id);
280
- }, [registerPanel, unregisterPanel, id, defaultSize, minSize, maxSize, collapsible, onCollapse, onExpand, onResize]);
281
- if (!context) {
282
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("flex-1", className), ...props, children });
283
- }
284
- return /* @__PURE__ */ jsxRuntime.jsx(
285
- "div",
286
- {
287
- ref,
288
- "data-slot": "resizable-panel",
289
- className: button.cn("relative transition-[flex-grow] duration-0", className),
290
- style: context.getPanelStyle(id),
291
- ...props,
292
- children
293
- }
294
- );
295
- };
296
- const ResizableHandle = ({
297
- withHandle,
298
- className,
299
- id: propId,
300
- tagName,
301
- ...props
302
- }) => {
303
- const context = React__namespace.useContext(ResizableContext);
304
- const ref = React__namespace.useRef(null);
305
- const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
306
- const id = propId || generatedId;
307
- const registerHandle = context == null ? void 0 : context.registerHandle;
308
- const unregisterHandle = context == null ? void 0 : context.unregisterHandle;
309
- React__namespace.useLayoutEffect(() => {
310
- if (!registerHandle || !unregisterHandle) return;
311
- registerHandle({ id, ref });
312
- return () => unregisterHandle(id);
313
- }, [registerHandle, unregisterHandle, id]);
314
- const handleMouseDown = (e) => {
315
- if (context) {
316
- context.startDragging(id, e);
317
- }
318
- };
319
- if (!context) return null;
320
- return /* @__PURE__ */ jsxRuntime.jsx(
321
- "div",
322
- {
323
- ref,
324
- "data-slot": "resizable-handle",
325
- className: button.cn(
326
- "bg-border relative flex items-center justify-center focus-visible:outline-hidden",
327
- "touch-none select-none",
328
- 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",
329
- "after:absolute after:z-10",
330
- className
331
- ),
332
- onMouseDown: handleMouseDown,
333
- onTouchStart: handleMouseDown,
334
- ...props,
335
- 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" }) })
336
- }
337
- );
338
- };
339
- function NavigationMenu({
340
- className,
341
- children,
342
- viewport = true,
343
- ...props
344
- }) {
345
- return /* @__PURE__ */ jsxRuntime.jsxs(
346
- NavigationMenuPrimitive__namespace.Root,
347
- {
348
- "data-slot": "navigation-menu",
349
- className: button.cn(
350
- "relative z-10 flex w-full flex-1 items-center justify-center",
351
- className
352
- ),
353
- ...props,
354
- children: [
355
- children,
356
- viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
357
- ]
358
- }
359
- );
360
- }
361
- function NavigationMenuList({
362
- className,
363
- ...props
364
- }) {
365
- return /* @__PURE__ */ jsxRuntime.jsx(
366
- NavigationMenuPrimitive__namespace.List,
367
- {
368
- "data-slot": "navigation-menu-list",
369
- className: button.cn(
370
- "group flex flex-1 list-none items-center justify-center gap-1",
371
- className
372
- ),
373
- ...props
374
- }
375
- );
376
- }
377
- function NavigationMenuItem({
378
- className,
379
- ...props
380
- }) {
381
- return /* @__PURE__ */ jsxRuntime.jsx(
382
- NavigationMenuPrimitive__namespace.Item,
383
- {
384
- "data-slot": "navigation-menu-item",
385
- className: button.cn("relative", className),
386
- ...props
387
- }
388
- );
389
- }
390
- const navigationMenuTriggerStyle = classVarianceAuthority.cva(
391
- "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"
392
- );
393
- function NavigationMenuTrigger({
394
- className,
395
- children,
396
- ...props
397
- }) {
398
- return /* @__PURE__ */ jsxRuntime.jsxs(
399
- NavigationMenuPrimitive__namespace.Trigger,
400
- {
401
- "data-slot": "navigation-menu-trigger",
402
- className: button.cn(navigationMenuTriggerStyle(), "group", className),
403
- ...props,
404
- children: [
405
- children,
406
- " ",
407
- /* @__PURE__ */ jsxRuntime.jsx(
408
- lucideReact.ChevronDownIcon,
409
- {
410
- className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
411
- "aria-hidden": "true"
412
- }
413
- )
414
- ]
415
- }
416
- );
417
- }
418
- function NavigationMenuContent({
419
- className,
420
- ...props
421
- }) {
422
- return /* @__PURE__ */ jsxRuntime.jsx(
423
- NavigationMenuPrimitive__namespace.Content,
424
- {
425
- "data-slot": "navigation-menu-content",
426
- className: button.cn(
427
- "left-0 top-0 w-full md:w-auto",
428
- className
429
- ),
430
- ...props
431
- }
432
- );
433
- }
434
- function NavigationMenuViewport({
435
- className,
436
- ...props
437
- }) {
438
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("absolute left-0 top-full flex justify-center w-full"), children: /* @__PURE__ */ jsxRuntime.jsx(
439
- NavigationMenuPrimitive__namespace.Viewport,
440
- {
441
- "data-slot": "navigation-menu-viewport",
442
- className: button.cn(
443
- "origin-top-center relative mt-1.5 overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-lg",
444
- className
445
- ),
446
- ...props
447
- }
448
- ) });
449
- }
450
- function NavigationMenuLink({
451
- className,
452
- ...props
453
- }) {
454
- return /* @__PURE__ */ jsxRuntime.jsx(
455
- NavigationMenuPrimitive__namespace.Link,
456
- {
457
- "data-slot": "navigation-menu-link",
458
- className: button.cn(
459
- "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",
460
- className
461
- ),
462
- ...props
463
- }
464
- );
465
- }
466
- function NavigationMenuIndicator({
467
- className,
468
- ...props
469
- }) {
470
- return /* @__PURE__ */ jsxRuntime.jsx(
471
- NavigationMenuPrimitive__namespace.Indicator,
472
- {
473
- "data-slot": "navigation-menu-indicator",
474
- className: button.cn(
475
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
476
- className
477
- ),
478
- ...props,
479
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
480
- }
481
- );
482
- }
483
- function Pagination({ className, ...props }) {
484
- return /* @__PURE__ */ jsxRuntime.jsx(
485
- "nav",
486
- {
487
- role: "navigation",
488
- "aria-label": "pagination",
489
- "data-slot": "pagination",
490
- className: button.cn("mx-auto flex w-full justify-center", className),
491
- ...props
492
- }
493
- );
494
- }
495
- function PaginationContent({
496
- className,
497
- ...props
498
- }) {
499
- return /* @__PURE__ */ jsxRuntime.jsx(
500
- "ul",
501
- {
502
- "data-slot": "pagination-content",
503
- className: button.cn("flex flex-row items-center gap-1", className),
504
- ...props
505
- }
506
- );
507
- }
508
- function PaginationItem({ ...props }) {
509
- return /* @__PURE__ */ jsxRuntime.jsx("li", { "data-slot": "pagination-item", ...props });
510
- }
511
- function PaginationLink({
512
- className,
513
- isActive,
514
- size = "icon",
515
- ...props
516
- }) {
517
- return /* @__PURE__ */ jsxRuntime.jsx(
518
- "a",
519
- {
520
- "aria-current": isActive ? "page" : void 0,
521
- "data-slot": "pagination-link",
522
- "data-active": isActive,
523
- className: button.cn(
524
- button.buttonVariants({
525
- variant: isActive ? "outline" : "ghost",
526
- size
527
- }),
528
- className
529
- ),
530
- ...props
531
- }
532
- );
533
- }
534
- function PaginationPrevious({
535
- className,
536
- ...props
537
- }) {
538
- return /* @__PURE__ */ jsxRuntime.jsxs(
539
- PaginationLink,
540
- {
541
- "aria-label": "Go to previous page",
542
- size: "default",
543
- className: button.cn("gap-1 px-2.5 sm:pl-2.5", className),
544
- ...props,
545
- children: [
546
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, {}),
547
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Previous" })
548
- ]
549
- }
550
- );
551
- }
552
- function PaginationNext({
553
- className,
554
- ...props
555
- }) {
556
- return /* @__PURE__ */ jsxRuntime.jsxs(
557
- PaginationLink,
558
- {
559
- "aria-label": "Go to next page",
560
- size: "default",
561
- className: button.cn("gap-1 px-2.5 sm:pr-2.5", className),
562
- ...props,
563
- children: [
564
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Next" }),
565
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, {})
566
- ]
567
- }
568
- );
569
- }
570
- function PaginationEllipsis({
571
- className,
572
- ...props
573
- }) {
574
- return /* @__PURE__ */ jsxRuntime.jsxs(
575
- "span",
576
- {
577
- "aria-hidden": true,
578
- "data-slot": "pagination-ellipsis",
579
- className: button.cn("flex size-9 items-center justify-center", className),
580
- ...props,
581
- children: [
582
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontalIcon, { className: "size-4" }),
583
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
584
- ]
585
- }
586
- );
587
- }
588
- const toggleVariants = classVarianceAuthority.cva(
589
- "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",
590
- {
591
- variants: {
592
- variant: {
593
- default: "bg-transparent",
594
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
595
- },
596
- size: {
597
- default: "h-9 px-2 min-w-9",
598
- sm: "h-8 px-1.5 min-w-8",
599
- lg: "h-10 px-2.5 min-w-10"
600
- }
601
- },
602
- defaultVariants: {
603
- variant: "default",
604
- size: "default"
605
- }
606
- }
607
- );
608
- const Toggle = React__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
609
- TogglePrimitive__namespace.Root,
610
- {
611
- ref,
612
- "data-slot": "toggle",
613
- className: button.cn(toggleVariants({ variant, size, className })),
614
- ...props
615
- }
616
- ));
617
- Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
618
- const ToggleGroupContext = React__namespace.createContext({
619
- size: "default",
620
- variant: "default"
621
- });
622
- const ToggleGroup = React__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
623
- ToggleGroupPrimitive__namespace.Root,
624
- {
625
- ref,
626
- "data-slot": "toggle-group",
627
- "data-variant": variant,
628
- "data-size": size,
629
- className: button.cn(
630
- "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
631
- className
632
- ),
633
- ...props,
634
- children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
635
- }
636
- ));
637
- ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
638
- const ToggleGroupItem = React__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
639
- const context = React__namespace.useContext(ToggleGroupContext);
640
- return /* @__PURE__ */ jsxRuntime.jsx(
641
- ToggleGroupPrimitive__namespace.Item,
642
- {
643
- ref,
644
- "data-slot": "toggle-group-item",
645
- "data-variant": context.variant || variant,
646
- "data-size": context.size || size,
647
- className: button.cn(
648
- toggleVariants({
649
- variant: context.variant || variant,
650
- size: context.size || size
651
- }),
652
- "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",
653
- className
654
- ),
655
- ...props,
656
- children
657
- }
658
- );
659
- });
660
- ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
661
- function InputOTP({
662
- className,
663
- containerClassName,
664
- ...props
665
- }) {
666
- return /* @__PURE__ */ jsxRuntime.jsx(
667
- inputOtp.OTPInput,
668
- {
669
- "data-slot": "input-otp",
670
- containerClassName: button.cn(
671
- "flex items-center gap-2 has-disabled:opacity-50",
672
- containerClassName
673
- ),
674
- className: button.cn("disabled:cursor-not-allowed", className),
675
- ...props
676
- }
677
- );
678
- }
679
- function InputOTPGroup({ className, ...props }) {
680
- return /* @__PURE__ */ jsxRuntime.jsx(
681
- "div",
682
- {
683
- "data-slot": "input-otp-group",
684
- className: button.cn("flex items-center gap-1", className),
685
- ...props
686
- }
687
- );
688
- }
689
- function InputOTPSlot({
690
- index,
691
- className,
692
- size = "md",
693
- ...props
694
- }) {
695
- const inputOTPContext = React__namespace.useContext(inputOtp.OTPInputContext);
696
- const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
697
- const sizeClasses = {
698
- sm: "h-8 w-8 text-sm",
699
- md: "h-10 w-10 text-base",
700
- lg: "h-12 w-12 text-lg"
701
- };
702
- return /* @__PURE__ */ jsxRuntime.jsxs(
703
- "div",
704
- {
705
- "data-slot": "input-otp-slot",
706
- "data-active": isActive,
707
- className: button.cn(
708
- "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",
709
- sizeClasses[size],
710
- className
711
- ),
712
- ...props,
713
- children: [
714
- char,
715
- 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" }) })
716
- ]
717
- }
718
- );
719
- }
720
- function InputOTPSeparator({ ...props }) {
721
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MinusIcon, {}) });
722
- }
723
- const Form = reactHookForm.FormProvider;
724
- const FormFieldContext = React__namespace.createContext(
725
- {}
726
- );
727
- const FormField = ({
728
- ...props
729
- }) => {
730
- return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
731
- };
732
- const useFormField = () => {
733
- const fieldContext = React__namespace.useContext(FormFieldContext);
734
- const itemContext = React__namespace.useContext(FormItemContext);
735
- const { getFieldState } = reactHookForm.useFormContext();
736
- const formState = reactHookForm.useFormState({ name: fieldContext.name });
737
- const fieldState = getFieldState(
738
- fieldContext.name,
739
- formState
740
- );
741
- if (!fieldContext) {
742
- throw new Error(
743
- "useFormField should be used within <FormField>"
744
- );
745
- }
746
- const { id } = itemContext;
747
- return {
748
- id,
749
- name: fieldContext.name,
750
- formItemId: `${id}-form-item`,
751
- formDescriptionId: `${id}-form-item-description`,
752
- formMessageId: `${id}-form-item-message`,
753
- ...fieldState
754
- };
755
- };
756
- const FormItemContext = React__namespace.createContext(
757
- {}
758
- );
759
- function FormItem({
760
- className,
761
- ...props
762
- }) {
763
- const id = React__namespace.useId();
764
- return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
765
- "div",
766
- {
767
- "data-slot": "form-item",
768
- className: button.cn("grid gap-2", className),
769
- ...props
770
- }
771
- ) });
772
- }
773
- function FormLabel({
774
- className,
775
- ...props
776
- }) {
777
- const { error, formItemId } = useFormField();
778
- return /* @__PURE__ */ jsxRuntime.jsx(
779
- alertDialog.Label,
780
- {
781
- "data-slot": "form-label",
782
- "data-error": !!error,
783
- className: button.cn(
784
- "data-[error=true]:text-destructive",
785
- className
786
- ),
787
- htmlFor: formItemId,
788
- ...props
789
- }
790
- );
791
- }
792
- function FormControl({
793
- ...props
794
- }) {
795
- const {
796
- error,
797
- formItemId,
798
- formDescriptionId,
799
- formMessageId
800
- } = useFormField();
801
- return /* @__PURE__ */ jsxRuntime.jsx(
802
- reactSlot.Slot,
803
- {
804
- "data-slot": "form-control",
805
- id: formItemId,
806
- "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
807
- "aria-invalid": !!error,
808
- ...props
809
- }
810
- );
811
- }
812
- function FormDescription({
813
- className,
814
- ...props
815
- }) {
816
- const { formDescriptionId } = useFormField();
817
- return /* @__PURE__ */ jsxRuntime.jsx(
818
- "p",
819
- {
820
- "data-slot": "form-description",
821
- id: formDescriptionId,
822
- className: button.cn("text-muted-foreground text-sm", className),
823
- ...props
824
- }
825
- );
826
- }
827
- function FormMessage({
828
- className,
829
- ...props
830
- }) {
831
- const { error, formMessageId } = useFormField();
832
- const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
833
- if (!body) {
834
- return null;
835
- }
836
- return /* @__PURE__ */ jsxRuntime.jsx(
837
- "p",
838
- {
839
- "data-slot": "form-message",
840
- id: formMessageId,
841
- className: button.cn("text-destructive text-sm", className),
842
- ...props,
843
- children: body
844
- }
845
- );
846
- }
847
- function Calendar({
848
- className,
849
- classNames,
850
- showOutsideDays = true,
851
- captionLayout = "label",
852
- buttonVariant = "ghost",
853
- formatters,
854
- components,
855
- ...props
856
- }) {
857
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
858
- const isDropdownCaption = captionLayout.startsWith("dropdown");
859
- return /* @__PURE__ */ jsxRuntime.jsx(
860
- reactDayPicker.DayPicker,
861
- {
862
- showOutsideDays,
863
- className: button.cn(
864
- "bg-background group/calendar p-4 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent font-sans",
865
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
866
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
867
- className
868
- ),
869
- captionLayout,
870
- formatters,
871
- classNames: {
872
- root: button.cn("w-fit", defaultClassNames.root),
873
- months: button.cn(
874
- "flex gap-6 flex-col md:flex-row relative",
875
- defaultClassNames.months
876
- ),
877
- month: button.cn("flex flex-col w-full gap-5", defaultClassNames.month),
878
- nav: button.cn(
879
- "flex items-center gap-2 w-full absolute top-0 inset-x-0 justify-between",
880
- defaultClassNames.nav
881
- ),
882
- button_previous: button.cn(
883
- button.buttonVariants({ variant: buttonVariant }),
884
- "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
885
- defaultClassNames.button_previous
886
- ),
887
- button_next: button.cn(
888
- button.buttonVariants({ variant: buttonVariant }),
889
- "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
890
- defaultClassNames.button_next
891
- ),
892
- month_caption: button.cn(
893
- "flex items-center justify-center w-full",
894
- isDropdownCaption ? "h-auto px-0" : "h-(--cell-size) px-(--cell-size)",
895
- defaultClassNames.month_caption
896
- ),
897
- dropdowns: button.cn(
898
- "w-full flex items-center justify-center gap-2",
899
- isDropdownCaption ? "h-auto" : "h-(--cell-size)",
900
- defaultClassNames.dropdowns
901
- ),
902
- dropdown_root: button.cn(
903
- isDropdownCaption ? "relative flex min-w-[7rem] items-center rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 px-2.5 py-1" : "relative rounded-[var(--radius)] hover:bg-accent transition-colors",
904
- defaultClassNames.dropdown_root
905
- ),
906
- dropdown: button.cn(
907
- isDropdownCaption ? "absolute inset-0 cursor-pointer opacity-0" : "absolute bg-popover inset-0 opacity-0 cursor-pointer",
908
- defaultClassNames.dropdown
909
- ),
910
- caption_label: button.cn(
911
- "select-none font-[family-name:var(--font-family,Roboto)] tracking-tight transition-all duration-200",
912
- captionLayout === "label" ? "rounded-[var(--radius)] px-2 py-1 text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] hover:bg-accent hover:text-accent-foreground" : "flex h-full w-full items-center justify-between gap-2 rounded-[var(--radius)] text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] [&>svg]:text-muted-foreground [&>svg]:size-4",
913
- defaultClassNames.caption_label
914
- ),
915
- table: "w-full border-collapse mt-1",
916
- weekdays: button.cn("flex gap-1", defaultClassNames.weekdays),
917
- weekday: button.cn(
918
- "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",
919
- defaultClassNames.weekday
920
- ),
921
- week: button.cn("flex w-full gap-1", defaultClassNames.week),
922
- week_number_header: button.cn(
923
- "select-none w-(--cell-size)",
924
- defaultClassNames.week_number_header
925
- ),
926
- week_number: button.cn(
927
- "select-none text-muted-foreground text-[length:var(--calendar-weekday-size)]",
928
- defaultClassNames.week_number
929
- ),
930
- day: button.cn(
931
- "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",
932
- props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
933
- defaultClassNames.day
934
- ),
935
- range_start: button.cn(
936
- "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",
937
- defaultClassNames.range_start
938
- ),
939
- range_middle: button.cn(
940
- "rounded-none bg-accent/30",
941
- defaultClassNames.range_middle
942
- ),
943
- range_end: button.cn(
944
- "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",
945
- defaultClassNames.range_end
946
- ),
947
- today: button.cn(
948
- "bg-accent/60 text-accent-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none font-[number:var(--font-weight-semibold)]",
949
- defaultClassNames.today
950
- ),
951
- outside: button.cn(
952
- "text-muted-foreground aria-selected:text-muted-foreground",
953
- defaultClassNames.outside
954
- ),
955
- disabled: button.cn(
956
- "text-muted-foreground/30 opacity-40",
957
- defaultClassNames.disabled
958
- ),
959
- hidden: button.cn("invisible", defaultClassNames.hidden),
960
- ...classNames
961
- },
962
- components: {
963
- Root: ({ className: className2, rootRef, ...props2 }) => {
964
- return /* @__PURE__ */ jsxRuntime.jsx(
965
- "div",
966
- {
967
- "data-slot": "calendar",
968
- ref: rootRef,
969
- className: button.cn(className2),
970
- ...props2
971
- }
972
- );
973
- },
974
- Chevron: ({ className: className2, orientation, ...props2 }) => {
975
- if (orientation === "left") {
976
- return /* @__PURE__ */ jsxRuntime.jsx(
977
- lucideReact.ChevronLeft,
978
- {
979
- className: button.cn("size-5 transition-transform group-hover:scale-110", className2),
980
- ...props2
981
- }
982
- );
983
- }
984
- if (orientation === "right") {
985
- return /* @__PURE__ */ jsxRuntime.jsx(
986
- lucideReact.ChevronRight,
987
- {
988
- className: button.cn("size-5 transition-transform group-hover:scale-110", className2),
989
- ...props2
990
- }
991
- );
992
- }
993
- return /* @__PURE__ */ jsxRuntime.jsx(
994
- lucideReact.ChevronDown,
995
- {
996
- className: button.cn("size-4", className2),
997
- ...props2
998
- }
999
- );
1000
- },
1001
- DayButton: CalendarDayButton,
1002
- WeekNumber: ({ children, ...props2 }) => {
1003
- 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 }) });
1004
- },
1005
- ...components
1006
- },
1007
- ...props
1008
- }
1009
- );
1010
- }
1011
- function CalendarDayButton({
1012
- className,
1013
- day,
1014
- modifiers,
1015
- ...props
1016
- }) {
1017
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
1018
- const ref = React__namespace.useRef(null);
1019
- React__namespace.useEffect(() => {
1020
- var _a;
1021
- if (modifiers.focused) (_a = ref.current) == null ? void 0 : _a.focus();
1022
- }, [modifiers.focused]);
1023
- return /* @__PURE__ */ jsxRuntime.jsx(
1024
- button.Button,
1025
- {
1026
- ref,
1027
- variant: "ghost",
1028
- size: "icon",
1029
- "data-day": day.date.toLocaleDateString(),
1030
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
1031
- "data-range-start": modifiers.range_start,
1032
- "data-range-end": modifiers.range_end,
1033
- "data-range-middle": modifiers.range_middle,
1034
- className: button.cn(
1035
- "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",
1036
- "text-[length:var(--calendar-day-size)] font-[number:var(--font-weight-regular)]",
1037
- "hover:bg-accent/70 hover:text-accent-foreground hover:scale-105",
1038
- "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",
1039
- "data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-foreground",
1040
- "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",
1041
- "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",
1042
- "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",
1043
- "data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius)",
1044
- "data-[range-middle=true]:rounded-none",
1045
- "data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius)",
1046
- "[&>span]:opacity-80",
1047
- defaultClassNames.day,
1048
- className
1049
- ),
1050
- ...props,
1051
- children: day.date.getDate()
1052
- }
1053
- );
1054
- }
1055
- function Sheet({ ...props }) {
1056
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
1057
- }
1058
- function SheetTrigger({
1059
- ...props
1060
- }) {
1061
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
1062
- }
1063
- function SheetClose({
1064
- ...props
1065
- }) {
1066
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "sheet-close", ...props });
1067
- }
1068
- function SheetPortal({
1069
- ...props
1070
- }) {
1071
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
1072
- }
1073
- const SheetOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1074
- DialogPrimitive__namespace.Overlay,
1075
- {
1076
- className: button.cn(
1077
- "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",
1078
- className
1079
- ),
1080
- ...props,
1081
- ref
1082
- }
1083
- ));
1084
- SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
1085
- function SheetContent({
1086
- className,
1087
- children,
1088
- side = "right",
1089
- ...props
1090
- }) {
1091
- return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
1092
- /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
1093
- /* @__PURE__ */ jsxRuntime.jsxs(
1094
- DialogPrimitive__namespace.Content,
1095
- {
1096
- "data-slot": "sheet-content",
1097
- className: button.cn(
1098
- "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",
1099
- 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",
1100
- 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",
1101
- 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",
1102
- 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",
1103
- className
1104
- ),
1105
- ...props,
1106
- children: [
1107
- children,
1108
- /* @__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: [
1109
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
1110
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
1111
- ] })
1112
- ]
1113
- }
1114
- )
1115
- ] });
1116
- }
1117
- function SheetHeader({ className, ...props }) {
1118
- return /* @__PURE__ */ jsxRuntime.jsx(
1119
- "div",
1120
- {
1121
- "data-slot": "sheet-header",
1122
- className: button.cn("flex flex-col gap-1.5 px-6 pt-6", className),
1123
- ...props
1124
- }
1125
- );
1126
- }
1127
- function SheetBody({ className, ...props }) {
1128
- return /* @__PURE__ */ jsxRuntime.jsx(
1129
- "div",
1130
- {
1131
- "data-slot": "sheet-body",
1132
- className: button.cn("flex-1 overflow-auto px-6", className),
1133
- ...props
1134
- }
1135
- );
1136
- }
1137
- function SheetFooter({ className, ...props }) {
1138
- return /* @__PURE__ */ jsxRuntime.jsx(
1139
- "div",
1140
- {
1141
- "data-slot": "sheet-footer",
1142
- className: button.cn("mt-auto flex flex-col gap-2 px-6 pb-6", className),
1143
- ...props
1144
- }
1145
- );
1146
- }
1147
- function SheetTitle({
1148
- className,
1149
- ...props
1150
- }) {
1151
- return /* @__PURE__ */ jsxRuntime.jsx(
1152
- DialogPrimitive__namespace.Title,
1153
- {
1154
- "data-slot": "sheet-title",
1155
- className: button.cn("text-foreground font-semibold", className),
1156
- ...props
1157
- }
1158
- );
1159
- }
1160
- function SheetDescription({
1161
- className,
1162
- ...props
1163
- }) {
1164
- return /* @__PURE__ */ jsxRuntime.jsx(
1165
- DialogPrimitive__namespace.Description,
1166
- {
1167
- "data-slot": "sheet-description",
1168
- className: button.cn("text-muted-foreground text-sm", className),
1169
- ...props
1170
- }
1171
- );
1172
- }
1173
- function Drawer({
1174
- ...props
1175
- }) {
1176
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
1177
- }
1178
- function DrawerTrigger({
1179
- ...props
1180
- }) {
1181
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
1182
- }
1183
- function DrawerPortal({
1184
- ...props
1185
- }) {
1186
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
1187
- }
1188
- function DrawerClose({
1189
- ...props
1190
- }) {
1191
- return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
1192
- }
1193
- const DrawerOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
1194
- return /* @__PURE__ */ jsxRuntime.jsx(
1195
- vaul.Drawer.Overlay,
1196
- {
1197
- ref,
1198
- "data-slot": "drawer-overlay",
1199
- className: button.cn(
1200
- "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",
1201
- className
1202
- ),
1203
- ...props
1204
- }
1205
- );
1206
- });
1207
- DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
1208
- function DrawerContent({
1209
- className,
1210
- children,
1211
- ...props
1212
- }) {
1213
- return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
1214
- /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
1215
- /* @__PURE__ */ jsxRuntime.jsxs(
1216
- vaul.Drawer.Content,
1217
- {
1218
- "data-slot": "drawer-content",
1219
- className: button.cn(
1220
- "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
1221
- "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",
1222
- "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",
1223
- "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",
1224
- "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",
1225
- className
1226
- ),
1227
- ...props,
1228
- children: [
1229
- /* @__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" }),
1230
- children
1231
- ]
1232
- }
1233
- )
1234
- ] });
1235
- }
1236
- function DrawerHeader({ className, ...props }) {
1237
- return /* @__PURE__ */ jsxRuntime.jsx(
1238
- "div",
1239
- {
1240
- "data-slot": "drawer-header",
1241
- className: button.cn("flex flex-col gap-1.5 p-4", className),
1242
- ...props
1243
- }
1244
- );
1245
- }
1246
- function DrawerFooter({ className, ...props }) {
1247
- return /* @__PURE__ */ jsxRuntime.jsx(
1248
- "div",
1249
- {
1250
- "data-slot": "drawer-footer",
1251
- className: button.cn("mt-auto flex flex-col gap-2 p-4", className),
1252
- ...props
1253
- }
1254
- );
1255
- }
1256
- function DrawerTitle({
1257
- className,
1258
- ...props
1259
- }) {
1260
- return /* @__PURE__ */ jsxRuntime.jsx(
1261
- vaul.Drawer.Title,
1262
- {
1263
- "data-slot": "drawer-title",
1264
- className: button.cn("text-foreground font-semibold", className),
1265
- ...props
1266
- }
1267
- );
1268
- }
1269
- function DrawerDescription({
1270
- className,
1271
- ...props
1272
- }) {
1273
- return /* @__PURE__ */ jsxRuntime.jsx(
1274
- vaul.Drawer.Description,
1275
- {
1276
- "data-slot": "drawer-description",
1277
- className: button.cn("text-muted-foreground text-sm", className),
1278
- ...props
1279
- }
1280
- );
1281
- }
1282
- function DrawerHandle({ className, ...props }) {
1283
- return /* @__PURE__ */ jsxRuntime.jsx(
1284
- "div",
1285
- {
1286
- "data-slot": "drawer-handle",
1287
- className: button.cn("bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full", className),
1288
- ...props
1289
- }
1290
- );
1291
- }
1292
- function HoverCard({
1293
- ...props
1294
- }) {
1295
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Root, { "data-slot": "hover-card", ...props });
1296
- }
1297
- function HoverCardTrigger({
1298
- ...props
1299
- }) {
1300
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Trigger, { "data-slot": "hover-card-trigger", ...props });
1301
- }
1302
- function HoverCardContent({
1303
- className,
1304
- align = "center",
1305
- sideOffset = 4,
1306
- ...props
1307
- }) {
1308
- return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
1309
- HoverCardPrimitive__namespace.Content,
1310
- {
1311
- "data-slot": "hover-card-content",
1312
- align,
1313
- sideOffset,
1314
- className: button.cn(
1315
- "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",
1316
- className
1317
- ),
1318
- ...props
1319
- }
1320
- ) });
1321
- }
1322
- function ContextMenu({
1323
- ...props
1324
- }) {
1325
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Root, { "data-slot": "context-menu", ...props });
1326
- }
1327
- function ContextMenuTrigger({
1328
- ...props
1329
- }) {
1330
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Trigger, { "data-slot": "context-menu-trigger", ...props });
1331
- }
1332
- function ContextMenuGroup({
1333
- ...props
1334
- }) {
1335
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Group, { "data-slot": "context-menu-group", ...props });
1336
- }
1337
- function ContextMenuPortal({
1338
- ...props
1339
- }) {
1340
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { "data-slot": "context-menu-portal", ...props });
1341
- }
1342
- function ContextMenuSub({
1343
- ...props
1344
- }) {
1345
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Sub, { "data-slot": "context-menu-sub", ...props });
1346
- }
1347
- function ContextMenuRadioGroup({
1348
- ...props
1349
- }) {
1350
- return /* @__PURE__ */ jsxRuntime.jsx(
1351
- ContextMenuPrimitive__namespace.RadioGroup,
1352
- {
1353
- "data-slot": "context-menu-radio-group",
1354
- ...props
1355
- }
1356
- );
1357
- }
1358
- function ContextMenuSubTrigger({
1359
- className,
1360
- inset,
1361
- children,
1362
- ...props
1363
- }) {
1364
- return /* @__PURE__ */ jsxRuntime.jsxs(
1365
- ContextMenuPrimitive__namespace.SubTrigger,
1366
- {
1367
- "data-slot": "context-menu-sub-trigger",
1368
- "data-inset": inset,
1369
- className: button.cn(
1370
- "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",
1371
- className
1372
- ),
1373
- ...props,
1374
- children: [
1375
- children,
1376
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto" })
1377
- ]
1378
- }
1379
- );
1380
- }
1381
- function ContextMenuSubContent({
1382
- className,
1383
- ...props
1384
- }) {
1385
- return /* @__PURE__ */ jsxRuntime.jsx(
1386
- ContextMenuPrimitive__namespace.SubContent,
1387
- {
1388
- "data-slot": "context-menu-sub-content",
1389
- className: button.cn(
1390
- "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",
1391
- className
1392
- ),
1393
- ...props
1394
- }
1395
- );
1396
- }
1397
- function ContextMenuContent({
1398
- className,
1399
- ...props
1400
- }) {
1401
- return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1402
- ContextMenuPrimitive__namespace.Content,
1403
- {
1404
- "data-slot": "context-menu-content",
1405
- className: button.cn(
1406
- "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",
1407
- className
1408
- ),
1409
- ...props
1410
- }
1411
- ) });
1412
- }
1413
- function ContextMenuItem({
1414
- className,
1415
- inset,
1416
- variant = "default",
1417
- ...props
1418
- }) {
1419
- return /* @__PURE__ */ jsxRuntime.jsx(
1420
- ContextMenuPrimitive__namespace.Item,
1421
- {
1422
- "data-slot": "context-menu-item",
1423
- "data-inset": inset,
1424
- "data-variant": variant,
1425
- className: button.cn(
1426
- "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",
1427
- className
1428
- ),
1429
- ...props
1430
- }
1431
- );
1432
- }
1433
- function ContextMenuCheckboxItem({
1434
- className,
1435
- children,
1436
- checked,
1437
- ...props
1438
- }) {
1439
- return /* @__PURE__ */ jsxRuntime.jsxs(
1440
- ContextMenuPrimitive__namespace.CheckboxItem,
1441
- {
1442
- "data-slot": "context-menu-checkbox-item",
1443
- className: button.cn(
1444
- "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",
1445
- className
1446
- ),
1447
- checked,
1448
- ...props,
1449
- children: [
1450
- /* @__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" }) }) }),
1451
- children
1452
- ]
1453
- }
1454
- );
1455
- }
1456
- function ContextMenuRadioItem({
1457
- className,
1458
- children,
1459
- ...props
1460
- }) {
1461
- return /* @__PURE__ */ jsxRuntime.jsxs(
1462
- ContextMenuPrimitive__namespace.RadioItem,
1463
- {
1464
- "data-slot": "context-menu-radio-item",
1465
- className: button.cn(
1466
- "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",
1467
- className
1468
- ),
1469
- ...props,
1470
- children: [
1471
- /* @__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" }) }) }),
1472
- children
1473
- ]
1474
- }
1475
- );
1476
- }
1477
- function ContextMenuLabel({
1478
- className,
1479
- inset,
1480
- ...props
1481
- }) {
1482
- return /* @__PURE__ */ jsxRuntime.jsx(
1483
- ContextMenuPrimitive__namespace.Label,
1484
- {
1485
- "data-slot": "context-menu-label",
1486
- "data-inset": inset,
1487
- className: button.cn(
1488
- "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
1489
- className
1490
- ),
1491
- ...props
1492
- }
1493
- );
1494
- }
1495
- function ContextMenuSeparator({
1496
- className,
1497
- ...props
1498
- }) {
1499
- return /* @__PURE__ */ jsxRuntime.jsx(
1500
- ContextMenuPrimitive__namespace.Separator,
1501
- {
1502
- "data-slot": "context-menu-separator",
1503
- className: button.cn("bg-border -mx-1 my-1 h-px", className),
1504
- ...props
1505
- }
1506
- );
1507
- }
1508
- function ContextMenuShortcut({
1509
- className,
1510
- ...props
1511
- }) {
1512
- return /* @__PURE__ */ jsxRuntime.jsx(
1513
- "span",
1514
- {
1515
- "data-slot": "context-menu-shortcut",
1516
- className: button.cn(
1517
- "text-muted-foreground ml-auto text-xs tracking-widest",
1518
- className
1519
- ),
1520
- ...props
1521
- }
1522
- );
1523
- }
1524
- function Menubar({
1525
- className,
1526
- ...props
1527
- }) {
1528
- return /* @__PURE__ */ jsxRuntime.jsx(
1529
- MenubarPrimitive__namespace.Root,
1530
- {
1531
- "data-slot": "menubar",
1532
- className: button.cn(
1533
- "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
1534
- className
1535
- ),
1536
- ...props
1537
- }
1538
- );
1539
- }
1540
- function MenubarMenu({
1541
- ...props
1542
- }) {
1543
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { "data-slot": "menubar-menu", ...props });
1544
- }
1545
- function MenubarGroup({
1546
- ...props
1547
- }) {
1548
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { "data-slot": "menubar-group", ...props });
1549
- }
1550
- function MenubarPortal({
1551
- ...props
1552
- }) {
1553
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { "data-slot": "menubar-portal", ...props });
1554
- }
1555
- function MenubarRadioGroup({
1556
- ...props
1557
- }) {
1558
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
1559
- }
1560
- function MenubarTrigger({
1561
- className,
1562
- ...props
1563
- }) {
1564
- return /* @__PURE__ */ jsxRuntime.jsx(
1565
- MenubarPrimitive__namespace.Trigger,
1566
- {
1567
- "data-slot": "menubar-trigger",
1568
- className: button.cn(
1569
- "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",
1570
- className
1571
- ),
1572
- ...props
1573
- }
1574
- );
1575
- }
1576
- function MenubarContent({
1577
- className,
1578
- align = "start",
1579
- alignOffset = -4,
1580
- sideOffset = 8,
1581
- ...props
1582
- }) {
1583
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1584
- MenubarPrimitive__namespace.Content,
1585
- {
1586
- "data-slot": "menubar-content",
1587
- align,
1588
- alignOffset,
1589
- sideOffset,
1590
- className: button.cn(
1591
- "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",
1592
- className
1593
- ),
1594
- ...props
1595
- }
1596
- ) });
1597
- }
1598
- function MenubarItem({
1599
- className,
1600
- inset,
1601
- variant = "default",
1602
- ...props
1603
- }) {
1604
- return /* @__PURE__ */ jsxRuntime.jsx(
1605
- MenubarPrimitive__namespace.Item,
1606
- {
1607
- "data-slot": "menubar-item",
1608
- "data-inset": inset,
1609
- "data-variant": variant,
1610
- className: button.cn(
1611
- "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",
1612
- className
1613
- ),
1614
- ...props
1615
- }
1616
- );
1617
- }
1618
- function MenubarCheckboxItem({
1619
- className,
1620
- children,
1621
- checked,
1622
- ...props
1623
- }) {
1624
- return /* @__PURE__ */ jsxRuntime.jsxs(
1625
- MenubarPrimitive__namespace.CheckboxItem,
1626
- {
1627
- "data-slot": "menubar-checkbox-item",
1628
- className: button.cn(
1629
- "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",
1630
- className
1631
- ),
1632
- checked,
1633
- ...props,
1634
- children: [
1635
- /* @__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" }) }) }),
1636
- children
1637
- ]
1638
- }
1639
- );
1640
- }
1641
- function MenubarRadioItem({
1642
- className,
1643
- children,
1644
- ...props
1645
- }) {
1646
- return /* @__PURE__ */ jsxRuntime.jsxs(
1647
- MenubarPrimitive__namespace.RadioItem,
1648
- {
1649
- "data-slot": "menubar-radio-item",
1650
- className: button.cn(
1651
- "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",
1652
- className
1653
- ),
1654
- ...props,
1655
- children: [
1656
- /* @__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" }) }) }),
1657
- children
1658
- ]
1659
- }
1660
- );
1661
- }
1662
- function MenubarLabel({
1663
- className,
1664
- inset,
1665
- ...props
1666
- }) {
1667
- return /* @__PURE__ */ jsxRuntime.jsx(
1668
- MenubarPrimitive__namespace.Label,
1669
- {
1670
- "data-slot": "menubar-label",
1671
- "data-inset": inset,
1672
- className: button.cn(
1673
- "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
1674
- className
1675
- ),
1676
- ...props
1677
- }
1678
- );
1679
- }
1680
- function MenubarSeparator({
1681
- className,
1682
- ...props
1683
- }) {
1684
- return /* @__PURE__ */ jsxRuntime.jsx(
1685
- MenubarPrimitive__namespace.Separator,
1686
- {
1687
- "data-slot": "menubar-separator",
1688
- className: button.cn("bg-border -mx-1 my-1 h-px", className),
1689
- ...props
1690
- }
1691
- );
1692
- }
1693
- function MenubarShortcut({
1694
- className,
1695
- ...props
1696
- }) {
1697
- return /* @__PURE__ */ jsxRuntime.jsx(
1698
- "span",
1699
- {
1700
- "data-slot": "menubar-shortcut",
1701
- className: button.cn(
1702
- "text-muted-foreground ml-auto text-xs tracking-widest",
1703
- className
1704
- ),
1705
- ...props
1706
- }
1707
- );
1708
- }
1709
- function MenubarSub({
1710
- ...props
1711
- }) {
1712
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
1713
- }
1714
- function MenubarSubTrigger({
1715
- className,
1716
- inset,
1717
- children,
1718
- ...props
1719
- }) {
1720
- return /* @__PURE__ */ jsxRuntime.jsxs(
1721
- MenubarPrimitive__namespace.SubTrigger,
1722
- {
1723
- "data-slot": "menubar-sub-trigger",
1724
- "data-inset": inset,
1725
- className: button.cn(
1726
- "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",
1727
- className
1728
- ),
1729
- ...props,
1730
- children: [
1731
- children,
1732
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
1733
- ]
1734
- }
1735
- );
1736
- }
1737
- function MenubarSubContent({
1738
- className,
1739
- ...props
1740
- }) {
1741
- return /* @__PURE__ */ jsxRuntime.jsx(
1742
- MenubarPrimitive__namespace.SubContent,
1743
- {
1744
- "data-slot": "menubar-sub-content",
1745
- className: button.cn(
1746
- "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",
1747
- className
1748
- ),
1749
- ...props
1750
- }
1751
- );
1752
- }
1753
- function Command({
1754
- className,
1755
- ...props
1756
- }) {
1757
- return /* @__PURE__ */ jsxRuntime.jsx(
1758
- cmdk.Command,
1759
- {
1760
- "data-slot": "command",
1761
- className: button.cn(
1762
- "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
1763
- className
1764
- ),
1765
- ...props
1766
- }
1767
- );
1768
- }
1769
- function CommandDialog({
1770
- title = "Command Palette",
1771
- description = "Search for a command to run...",
1772
- children,
1773
- ...props
1774
- }) {
1775
- return /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { ...props, children: [
1776
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { className: "sr-only", children: [
1777
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: title }),
1778
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: description })
1779
- ] }),
1780
- /* @__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 }) })
1781
- ] });
1782
- }
1783
- function CommandInput({
1784
- className,
1785
- ...props
1786
- }) {
1787
- return /* @__PURE__ */ jsxRuntime.jsxs(
1788
- "div",
1789
- {
1790
- "data-slot": "command-input-wrapper",
1791
- className: "flex h-9 items-center gap-2 border-b px-3",
1792
- children: [
1793
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
1794
- /* @__PURE__ */ jsxRuntime.jsx(
1795
- cmdk.Command.Input,
1796
- {
1797
- "data-slot": "command-input",
1798
- className: button.cn(
1799
- "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",
1800
- className
1801
- ),
1802
- ...props
1803
- }
1804
- )
1805
- ]
1806
- }
1807
- );
1808
- }
1809
- function CommandList({
1810
- className,
1811
- ...props
1812
- }) {
1813
- return /* @__PURE__ */ jsxRuntime.jsx(
1814
- cmdk.Command.List,
1815
- {
1816
- "data-slot": "command-list",
1817
- role: "listbox",
1818
- className: button.cn(
1819
- "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
1820
- className
1821
- ),
1822
- ...props
1823
- }
1824
- );
1825
- }
1826
- function CommandEmpty({
1827
- ...props
1828
- }) {
1829
- return /* @__PURE__ */ jsxRuntime.jsx(
1830
- cmdk.Command.Empty,
1831
- {
1832
- "data-slot": "command-empty",
1833
- className: "py-6 text-center text-sm",
1834
- ...props
1835
- }
1836
- );
1837
- }
1838
- function CommandGroup({
1839
- className,
1840
- ...props
1841
- }) {
1842
- return /* @__PURE__ */ jsxRuntime.jsx(
1843
- cmdk.Command.Group,
1844
- {
1845
- "data-slot": "command-group",
1846
- className: button.cn(
1847
- "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",
1848
- className
1849
- ),
1850
- ...props
1851
- }
1852
- );
1853
- }
1854
- function CommandSeparator({
1855
- className,
1856
- ...props
1857
- }) {
1858
- return /* @__PURE__ */ jsxRuntime.jsx(
1859
- cmdk.Command.Separator,
1860
- {
1861
- "data-slot": "command-separator",
1862
- className: button.cn("bg-border -mx-1 h-px", className),
1863
- ...props
1864
- }
1865
- );
1866
- }
1867
- function CommandItem({
1868
- className,
1869
- ...props
1870
- }) {
1871
- return /* @__PURE__ */ jsxRuntime.jsx(
1872
- cmdk.Command.Item,
1873
- {
1874
- "data-slot": "command-item",
1875
- role: "option",
1876
- className: button.cn(
1877
- "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",
1878
- className
1879
- ),
1880
- ...props
1881
- }
1882
- );
1883
- }
1884
- function CommandShortcut({
1885
- className,
1886
- ...props
1887
- }) {
1888
- return /* @__PURE__ */ jsxRuntime.jsx(
1889
- "span",
1890
- {
1891
- "data-slot": "command-shortcut",
1892
- className: button.cn(
1893
- "text-muted-foreground ml-auto text-xs tracking-widest",
1894
- className
1895
- ),
1896
- ...props
1897
- }
1898
- );
1899
- }
1900
- const variantStyles = {
1901
- default: "bg-primary text-primary-foreground",
1902
- secondary: "bg-secondary text-secondary-foreground",
1903
- destructive: "bg-destructive text-destructive-foreground",
1904
- outline: "border-2 border-primary bg-background text-primary",
1905
- success: "bg-success text-success-foreground",
1906
- info: "bg-info text-info-foreground",
1907
- warning: "bg-warning text-warning-foreground"
1908
- };
1909
- const NotificationBadge = React__namespace.forwardRef(
1910
- ({
1911
- className,
1912
- count = 0,
1913
- max = 99,
1914
- showZero = false,
1915
- dot = false,
1916
- variant = "destructive",
1917
- children,
1918
- ...props
1919
- }, ref) => {
1920
- const displayCount = count > max ? `${max}+` : count;
1921
- const shouldShow = count > 0 || showZero;
1922
- if (!shouldShow && !dot) {
1923
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children });
1924
- }
1925
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("relative inline-block", className), ...props, children: [
1926
- children,
1927
- /* @__PURE__ */ jsxRuntime.jsx(
1928
- "span",
1929
- {
1930
- className: button.cn(
1931
- "absolute -right-1 -top-1 flex items-center justify-center rounded-full",
1932
- variantStyles[variant],
1933
- dot ? "h-2 w-2" : "min-w-[1.25rem] h-5 px-1.5"
1934
- ),
1935
- children: !dot && shouldShow && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-medium leading-none", children: displayCount })
1936
- }
1937
- )
1938
- ] });
1939
- }
1940
- );
1941
- NotificationBadge.displayName = "NotificationBadge";
1942
- const StatsCard = React__namespace.forwardRef(
1943
- ({ className, title, value, description, trend, icon, ...props }, ref) => {
1944
- const getTrendIcon = () => {
1945
- if (!trend) return null;
1946
- if (trend.value > 0) {
1947
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingUp, { className: "h-4 w-4 text-success" });
1948
- } else if (trend.value < 0) {
1949
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingDown, { className: "h-4 w-4 text-destructive" });
1950
- } else {
1951
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "h-4 w-4 text-muted-foreground" });
1952
- }
1953
- };
1954
- const getTrendColor = () => {
1955
- if (!trend) return "";
1956
- if (trend.value > 0) {
1957
- return "text-success";
1958
- } else if (trend.value < 0) {
1959
- return "text-destructive";
1960
- } else {
1961
- return "text-muted-foreground";
1962
- }
1963
- };
1964
- return /* @__PURE__ */ jsxRuntime.jsx(card.Card, { ref, className: button.cn("", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(card.CardContent, { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
1965
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
1966
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-1 text-sm", children: title }),
1967
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-2", children: [
1968
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-xl sm:text-2xl", children: value }),
1969
- trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("flex items-center gap-1 text-sm", getTrendColor()), children: [
1970
- getTrendIcon(),
1971
- /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1972
- Math.abs(trend.value),
1973
- "%"
1974
- ] })
1975
- ] })
1976
- ] }),
1977
- (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 })
1978
- ] }),
1979
- icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius)] bg-muted p-2 sm:p-3 text-muted-foreground flex-shrink-0", children: icon })
1980
- ] }) }) });
1981
- }
1982
- );
1983
- StatsCard.displayName = "StatsCard";
1984
- const Timeline = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1985
- "ol",
1986
- {
1987
- ref,
1988
- className: button.cn("relative border-l border-border", className),
1989
- ...props
1990
- }
1991
- ));
1992
- Timeline.displayName = "Timeline";
1993
- const TimelineItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1994
- "li",
1995
- {
1996
- ref,
1997
- className: button.cn("mb-10 ml-6", className),
1998
- ...props
1999
- }
2000
- ));
2001
- TimelineItem.displayName = "TimelineItem";
2002
- const TimelineDot = React__namespace.forwardRef(({ className, variant = "default", icon, children, ...props }, ref) => {
2003
- const variantStyles2 = {
2004
- default: "bg-muted border-border",
2005
- primary: "bg-primary border-primary",
2006
- success: "bg-success border-success",
2007
- info: "bg-info border-info",
2008
- warning: "bg-warning border-warning",
2009
- destructive: "bg-destructive border-destructive",
2010
- outline: "bg-background border-border"
2011
- };
2012
- const iconColorStyles = {
2013
- default: "text-muted-foreground",
2014
- primary: "text-primary-foreground",
2015
- success: "text-success-foreground",
2016
- info: "text-info-foreground",
2017
- warning: "text-warning-foreground",
2018
- destructive: "text-destructive-foreground",
2019
- outline: "text-foreground"
2020
- };
2021
- if (icon || children) {
2022
- return /* @__PURE__ */ jsxRuntime.jsx(
2023
- "div",
2024
- {
2025
- ref,
2026
- className: button.cn(
2027
- "absolute -left-[17px] mt-0.5 h-8 w-8 rounded-full border-2 flex items-center justify-center",
2028
- variantStyles2[variant],
2029
- className
2030
- ),
2031
- ...props,
2032
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: button.cn("h-4 w-4", iconColorStyles[variant]), children: icon || children })
2033
- }
2034
- );
2035
- }
2036
- return /* @__PURE__ */ jsxRuntime.jsx(
2037
- "div",
2038
- {
2039
- ref,
2040
- className: button.cn(
2041
- "absolute -left-[9px] mt-1.5 h-4 w-4 rounded-full border-2",
2042
- variantStyles2[variant],
2043
- className
2044
- ),
2045
- ...props
2046
- }
2047
- );
2048
- });
2049
- TimelineDot.displayName = "TimelineDot";
2050
- const TimelineContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2051
- "div",
2052
- {
2053
- ref,
2054
- className: button.cn("", className),
2055
- ...props
2056
- }
2057
- ));
2058
- TimelineContent.displayName = "TimelineContent";
2059
- const TimelineHeading = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2060
- "h3",
2061
- {
2062
- ref,
2063
- className: button.cn("mb-1 text-foreground", className),
2064
- ...props
2065
- }
2066
- ));
2067
- TimelineHeading.displayName = "TimelineHeading";
2068
- const TimelineTime = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2069
- "time",
2070
- {
2071
- ref,
2072
- className: button.cn("mb-2 block text-muted-foreground", className),
2073
- ...props
2074
- }
2075
- ));
2076
- TimelineTime.displayName = "TimelineTime";
2077
- const TimelineDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2078
- "p",
2079
- {
2080
- ref,
2081
- className: button.cn("text-muted-foreground", className),
2082
- ...props
2083
- }
2084
- ));
2085
- TimelineDescription.displayName = "TimelineDescription";
2086
- const TreeView = React__namespace.forwardRef(
2087
- ({ className, data, onNodeClick, onNodeSelect, defaultExpanded = [], selectedNodeId, ...props }, ref) => {
2088
- const [expanded, setExpanded] = React__namespace.useState(new Set(defaultExpanded));
2089
- const [internalSelectedId, setInternalSelectedId] = React__namespace.useState(void 0);
2090
- const nodeRefs = React__namespace.useRef(/* @__PURE__ */ new Map());
2091
- const isControlled = selectedNodeId !== void 0;
2092
- const effectiveSelectedId = isControlled ? selectedNodeId : internalSelectedId;
2093
- const toggleExpand = (nodeId) => {
2094
- setExpanded((prev) => {
2095
- const next = new Set(prev);
2096
- next.has(nodeId) ? next.delete(nodeId) : next.add(nodeId);
2097
- return next;
2098
- });
2099
- };
2100
- const getVisibleNodes = React__namespace.useCallback(() => {
2101
- const result = [];
2102
- const traverse = (nodes) => {
2103
- var _a;
2104
- for (const node of nodes) {
2105
- result.push(node);
2106
- if (((_a = node.children) == null ? void 0 : _a.length) && expanded.has(node.id)) traverse(node.children);
2107
- }
2108
- };
2109
- traverse(data);
2110
- return result;
2111
- }, [data, expanded]);
2112
- const findParent = (nodes, targetId) => {
2113
- var _a;
2114
- for (const n of nodes) {
2115
- if ((_a = n.children) == null ? void 0 : _a.some((c) => c.id === targetId)) return n;
2116
- if (n.children) {
2117
- const found = findParent(n.children, targetId);
2118
- if (found) return found;
2119
- }
2120
- }
2121
- return null;
2122
- };
2123
- const handleSelect = (node) => {
2124
- if (!isControlled) setInternalSelectedId(node.id);
2125
- onNodeSelect == null ? void 0 : onNodeSelect(node);
2126
- onNodeClick == null ? void 0 : onNodeClick(node);
2127
- };
2128
- const handleKeyDown = (e, node) => {
2129
- var _a, _b;
2130
- const visibleNodes = getVisibleNodes();
2131
- const idx = visibleNodes.findIndex((n) => n.id === node.id);
2132
- const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
2133
- const isExpanded = expanded.has(node.id);
2134
- const focusNode = (id) => {
2135
- var _a2;
2136
- (_a2 = nodeRefs.current.get(id)) == null ? void 0 : _a2.focus();
2137
- };
2138
- switch (e.key) {
2139
- case "ArrowDown": {
2140
- e.preventDefault();
2141
- const next = visibleNodes[idx + 1];
2142
- if (next) focusNode(next.id);
2143
- break;
2144
- }
2145
- case "ArrowUp": {
2146
- e.preventDefault();
2147
- const prev = visibleNodes[idx - 1];
2148
- if (prev) focusNode(prev.id);
2149
- break;
2150
- }
2151
- case "ArrowRight": {
2152
- e.preventDefault();
2153
- if (hasChildren && !isExpanded) {
2154
- toggleExpand(node.id);
2155
- } else if (hasChildren && isExpanded && ((_b = node.children) == null ? void 0 : _b.length)) {
2156
- focusNode(node.children[0].id);
2157
- }
2158
- break;
2159
- }
2160
- case "ArrowLeft": {
2161
- e.preventDefault();
2162
- if (hasChildren && isExpanded) {
2163
- toggleExpand(node.id);
2164
- } else {
2165
- const parent = findParent(data, node.id);
2166
- if (parent) focusNode(parent.id);
2167
- }
2168
- break;
2169
- }
2170
- case "Home": {
2171
- e.preventDefault();
2172
- if (visibleNodes.length > 0) focusNode(visibleNodes[0].id);
2173
- break;
2174
- }
2175
- case "End": {
2176
- e.preventDefault();
2177
- const last = visibleNodes[visibleNodes.length - 1];
2178
- if (last) focusNode(last.id);
2179
- break;
2180
- }
2181
- case "Enter":
2182
- case " ": {
2183
- e.preventDefault();
2184
- if (hasChildren) toggleExpand(node.id);
2185
- handleSelect(node);
2186
- break;
2187
- }
2188
- }
2189
- };
2190
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: button.cn("w-full", className), role: "tree", ...props, children: data.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
2191
- TreeNodeComponent,
2192
- {
2193
- node,
2194
- level: 0,
2195
- expanded,
2196
- selectedId: effectiveSelectedId,
2197
- onToggle: toggleExpand,
2198
- onSelect: handleSelect,
2199
- onKeyDown: handleKeyDown,
2200
- nodeRefs
2201
- },
2202
- node.id
2203
- )) });
2204
- }
2205
- );
2206
- TreeView.displayName = "TreeView";
2207
- const TreeNodeComponent = ({
2208
- node,
2209
- level,
2210
- expanded,
2211
- selectedId,
2212
- onToggle,
2213
- onSelect,
2214
- onKeyDown,
2215
- nodeRefs
2216
- }) => {
2217
- var _a;
2218
- const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
2219
- const isExpanded = expanded.has(node.id);
2220
- const isSelected = node.id === selectedId;
2221
- const handleClick = () => {
2222
- if (hasChildren) onToggle(node.id);
2223
- onSelect(node);
2224
- };
2225
- const setRef = (el) => {
2226
- if (el) nodeRefs.current.set(node.id, el);
2227
- else nodeRefs.current.delete(node.id);
2228
- };
2229
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "none", children: [
2230
- /* @__PURE__ */ jsxRuntime.jsxs(
2231
- "button",
2232
- {
2233
- ref: setRef,
2234
- role: "treeitem",
2235
- "aria-expanded": hasChildren ? isExpanded : void 0,
2236
- "aria-selected": isSelected,
2237
- tabIndex: isSelected ? 0 : -1,
2238
- onClick: handleClick,
2239
- onKeyDown: (e) => onKeyDown(e, node),
2240
- className: button.cn(
2241
- "flex w-full items-center gap-2 rounded-[var(--radius)] px-2 py-1.5 text-left transition-colors",
2242
- "hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
2243
- isSelected && "bg-primary/10 text-primary font-medium"
2244
- ),
2245
- style: { paddingLeft: `${level * 1.5 + 0.5}rem` },
2246
- children: [
2247
- 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" }),
2248
- node.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: node.icon }),
2249
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-foreground", children: node.label })
2250
- ]
2251
- }
2252
- ),
2253
- hasChildren && isExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", children: node.children.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
2254
- TreeNodeComponent,
2255
- {
2256
- node: child,
2257
- level: level + 1,
2258
- expanded,
2259
- selectedId,
2260
- onToggle,
2261
- onSelect,
2262
- onKeyDown,
2263
- nodeRefs
2264
- },
2265
- child.id
2266
- )) })
2267
- ] });
2268
- };
2269
- function Collapsible({
2270
- ...props
2271
- }) {
2272
- return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
2273
- }
2274
- function CollapsibleTrigger({
2275
- ...props
2276
- }) {
2277
- return /* @__PURE__ */ jsxRuntime.jsx(
2278
- CollapsiblePrimitive__namespace.CollapsibleTrigger,
2279
- {
2280
- "data-slot": "collapsible-trigger",
2281
- ...props
2282
- }
2283
- );
2284
- }
2285
- function CollapsibleContent({
2286
- ...props
2287
- }) {
2288
- return /* @__PURE__ */ jsxRuntime.jsx(
2289
- CollapsiblePrimitive__namespace.CollapsibleContent,
2290
- {
2291
- "data-slot": "collapsible-content",
2292
- ...props
2293
- }
2294
- );
2295
- }
2296
- function Accordion({
2297
- ...props
2298
- }) {
2299
- return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { "data-slot": "accordion", ...props });
2300
- }
2301
- function AccordionItem({
2302
- className,
2303
- ...props
2304
- }) {
2305
- return /* @__PURE__ */ jsxRuntime.jsx(
2306
- AccordionPrimitive__namespace.Item,
2307
- {
2308
- "data-slot": "accordion-item",
2309
- className: button.cn("border-b last:border-b-0", className),
2310
- ...props
2311
- }
2312
- );
2313
- }
2314
- function AccordionTrigger({
2315
- className,
2316
- children,
2317
- ...props
2318
- }) {
2319
- return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
2320
- AccordionPrimitive__namespace.Trigger,
2321
- {
2322
- "data-slot": "accordion-trigger",
2323
- className: button.cn(
2324
- "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",
2325
- className
2326
- ),
2327
- ...props,
2328
- children: [
2329
- children,
2330
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
2331
- ]
2332
- }
2333
- ) });
2334
- }
2335
- function AccordionContent({
2336
- className,
2337
- children,
2338
- ...props
2339
- }) {
2340
- return /* @__PURE__ */ jsxRuntime.jsx(
2341
- AccordionPrimitive__namespace.Content,
2342
- {
2343
- "data-slot": "accordion-content",
2344
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
2345
- ...props,
2346
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("pt-0 pb-4", className), children })
2347
- }
2348
- );
2349
- }
2350
- const CarouselContext = React__namespace.createContext(null);
2351
- function useCarousel() {
2352
- const context = React__namespace.useContext(CarouselContext);
2353
- if (!context) {
2354
- throw new Error("useCarousel must be used within a <Carousel />");
2355
- }
2356
- return context;
2357
- }
2358
- function Carousel({
2359
- orientation = "horizontal",
2360
- opts,
2361
- setApi,
2362
- plugins,
2363
- className,
2364
- children,
2365
- ...props
2366
- }) {
2367
- const [carouselRef, api] = useEmblaCarousel(
2368
- {
2369
- ...opts,
2370
- axis: orientation === "horizontal" ? "x" : "y"
2371
- },
2372
- plugins
2373
- );
2374
- const [canScrollPrev, setCanScrollPrev] = React__namespace.useState(false);
2375
- const [canScrollNext, setCanScrollNext] = React__namespace.useState(false);
2376
- const onSelect = React__namespace.useCallback((api2) => {
2377
- if (!api2) return;
2378
- setCanScrollPrev(api2.canScrollPrev());
2379
- setCanScrollNext(api2.canScrollNext());
2380
- }, []);
2381
- const scrollPrev = React__namespace.useCallback(() => {
2382
- api == null ? void 0 : api.scrollPrev();
2383
- }, [api]);
2384
- const scrollNext = React__namespace.useCallback(() => {
2385
- api == null ? void 0 : api.scrollNext();
2386
- }, [api]);
2387
- const handleKeyDown = React__namespace.useCallback(
2388
- (event) => {
2389
- if (event.key === "ArrowLeft") {
2390
- event.preventDefault();
2391
- scrollPrev();
2392
- } else if (event.key === "ArrowRight") {
2393
- event.preventDefault();
2394
- scrollNext();
2395
- }
2396
- },
2397
- [scrollPrev, scrollNext]
2398
- );
2399
- React__namespace.useEffect(() => {
2400
- if (!api || !setApi) return;
2401
- setApi(api);
2402
- }, [api, setApi]);
2403
- React__namespace.useEffect(() => {
2404
- if (!api) return;
2405
- onSelect(api);
2406
- api.on("reInit", onSelect);
2407
- api.on("select", onSelect);
2408
- return () => {
2409
- api == null ? void 0 : api.off("select", onSelect);
2410
- };
2411
- }, [api, onSelect]);
2412
- return /* @__PURE__ */ jsxRuntime.jsx(
2413
- CarouselContext.Provider,
2414
- {
2415
- value: {
2416
- carouselRef,
2417
- api,
2418
- opts,
2419
- orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
2420
- scrollPrev,
2421
- scrollNext,
2422
- canScrollPrev,
2423
- canScrollNext
2424
- },
2425
- children: /* @__PURE__ */ jsxRuntime.jsx(
2426
- "div",
2427
- {
2428
- onKeyDownCapture: handleKeyDown,
2429
- className: button.cn("relative", className),
2430
- role: "region",
2431
- "aria-roledescription": "carousel",
2432
- "data-slot": "carousel",
2433
- ...props,
2434
- children
2435
- }
2436
- )
2437
- }
2438
- );
2439
- }
2440
- function CarouselContent({ className, ...props }) {
2441
- const { carouselRef, orientation } = useCarousel();
2442
- return /* @__PURE__ */ jsxRuntime.jsx(
2443
- "div",
2444
- {
2445
- ref: carouselRef,
2446
- className: "overflow-hidden",
2447
- "data-slot": "carousel-content",
2448
- children: /* @__PURE__ */ jsxRuntime.jsx(
2449
- "div",
2450
- {
2451
- className: button.cn(
2452
- "flex",
2453
- orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
2454
- className
2455
- ),
2456
- ...props
2457
- }
2458
- )
2459
- }
2460
- );
2461
- }
2462
- function CarouselItem({ className, ...props }) {
2463
- const { orientation } = useCarousel();
2464
- return /* @__PURE__ */ jsxRuntime.jsx(
2465
- "div",
2466
- {
2467
- role: "group",
2468
- "aria-roledescription": "slide",
2469
- "data-slot": "carousel-item",
2470
- className: button.cn(
2471
- "min-w-0 shrink-0 grow-0 basis-full",
2472
- orientation === "horizontal" ? "pl-4" : "pt-4",
2473
- className
2474
- ),
2475
- ...props
2476
- }
2477
- );
2478
- }
2479
- function CarouselPrevious({
2480
- className,
2481
- variant = "outline",
2482
- size = "icon",
2483
- ...props
2484
- }) {
2485
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
2486
- return /* @__PURE__ */ jsxRuntime.jsxs(
2487
- button.Button,
2488
- {
2489
- "data-slot": "carousel-previous",
2490
- variant,
2491
- size,
2492
- className: button.cn(
2493
- "absolute size-8 rounded-full",
2494
- orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
2495
- className
2496
- ),
2497
- disabled: !canScrollPrev,
2498
- onClick: scrollPrev,
2499
- ...props,
2500
- children: [
2501
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
2502
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
2503
- ]
2504
- }
2505
- );
2506
- }
2507
- function CarouselNext({
2508
- className,
2509
- variant = "outline",
2510
- size = "icon",
2511
- ...props
2512
- }) {
2513
- const { orientation, scrollNext, canScrollNext } = useCarousel();
2514
- return /* @__PURE__ */ jsxRuntime.jsxs(
2515
- button.Button,
2516
- {
2517
- "data-slot": "carousel-next",
2518
- variant,
2519
- size,
2520
- className: button.cn(
2521
- "absolute size-8 rounded-full",
2522
- orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
2523
- className
2524
- ),
2525
- disabled: !canScrollNext,
2526
- onClick: scrollNext,
2527
- ...props,
2528
- children: [
2529
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
2530
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
2531
- ]
2532
- }
2533
- );
2534
- }
2535
- const StepperContext = React__namespace.createContext(void 0);
2536
- const useStepper = () => {
2537
- const context = React__namespace.useContext(StepperContext);
2538
- if (!context) throw new Error("useStepper must be used within a Stepper");
2539
- return context;
2540
- };
2541
- const Stepper = React__namespace.forwardRef(
2542
- ({ currentStep, orientation = "horizontal", className, children, ...props }, ref) => {
2543
- const totalSteps = React__namespace.Children.count(children);
2544
- return /* @__PURE__ */ jsxRuntime.jsx(StepperContext.Provider, { value: { currentStep, totalSteps, orientation }, children: /* @__PURE__ */ jsxRuntime.jsx(
2545
- "div",
2546
- {
2547
- ref,
2548
- className: button.cn("w-full", className),
2549
- ...props,
2550
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn(
2551
- orientation === "horizontal" ? "flex items-start justify-between" : "flex flex-col gap-0"
2552
- ), children })
2553
- }
2554
- ) });
2555
- }
2556
- );
2557
- Stepper.displayName = "Stepper";
2558
- const Step = React__namespace.forwardRef(
2559
- ({ step, label, description, error = false, className, ...props }, ref) => {
2560
- const { currentStep, totalSteps, orientation } = useStepper();
2561
- const isActive = step === currentStep;
2562
- const isCompleted = step < currentStep && !error;
2563
- const isFirst = step === 1;
2564
- const isLast = step === totalSteps;
2565
- const circleClasses = button.cn(
2566
- "relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors",
2567
- isActive && !error && "border-primary bg-primary text-primary-foreground",
2568
- isCompleted && "border-primary bg-primary text-primary-foreground",
2569
- error && "border-destructive bg-destructive text-destructive-foreground",
2570
- !isActive && !isCompleted && !error && "border-muted bg-background text-muted-foreground"
2571
- );
2572
- const connectorClasses = (filled) => button.cn("transition-colors", filled ? "bg-primary" : "bg-muted");
2573
- if (orientation === "vertical") {
2574
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("flex gap-4", className), ...props, children: [
2575
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
2576
- /* @__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 }) }),
2577
- !isLast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("w-0.5 flex-1 min-h-[2rem] mt-1", connectorClasses(step < currentStep)) })
2578
- ] }),
2579
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("pb-6", isLast && "pb-0"), children: [
2580
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
2581
- description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
2582
- ] })
2583
- ] });
2584
- }
2585
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("flex flex-1 flex-col items-center", className), ...props, children: [
2586
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-start", children: [
2587
- step > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step <= currentStep)) }),
2588
- /* @__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 }) }),
2589
- step < totalSteps && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step < currentStep)) })
2590
- ] }),
2591
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn(
2592
- "mt-2 px-1",
2593
- isFirst && "text-left self-start",
2594
- isLast && "text-right self-end",
2595
- !isFirst && !isLast && "text-center w-full"
2596
- ), children: [
2597
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
2598
- description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
2599
- ] })
2600
- ] });
2601
- }
2602
- );
2603
- Step.displayName = "Step";
2604
- const FileUpload = React__namespace.forwardRef(
2605
- ({
2606
- className,
2607
- onFilesChange,
2608
- maxFiles = 1,
2609
- maxSize = 5 * 1024 * 1024,
2610
- // 5MB default
2611
- showPreview = true,
2612
- onError,
2613
- accept,
2614
- disabled,
2615
- ...props
2616
- }, ref) => {
2617
- const [files, setFiles] = React__namespace.useState([]);
2618
- const [dragActive, setDragActive] = React__namespace.useState(false);
2619
- const [errorMessage, setErrorMessage] = React__namespace.useState(null);
2620
- const inputRef = React__namespace.useRef(null);
2621
- const handleFiles = (newFiles) => {
2622
- if (!newFiles) return;
2623
- setErrorMessage(null);
2624
- const filesArray = Array.from(newFiles);
2625
- const oversized = filesArray.filter((f) => f.size > maxSize);
2626
- const validFiles = filesArray.filter((f) => f.size <= maxSize);
2627
- if (oversized.length > 0) {
2628
- const limitMB = (maxSize / 1024 / 1024).toFixed(0);
2629
- setErrorMessage(`${oversized.length} file(s) exceed the ${limitMB}MB limit and were not added.`);
2630
- onError == null ? void 0 : onError(oversized, "size");
2631
- }
2632
- const merged = maxFiles === 1 ? validFiles.slice(0, 1) : [...files, ...validFiles].slice(0, maxFiles);
2633
- const countRejected = maxFiles === 1 ? validFiles.slice(1) : [...files, ...validFiles].slice(maxFiles);
2634
- if (countRejected.length > 0) {
2635
- setErrorMessage(`Only ${maxFiles} file(s) allowed. ${countRejected.length} file(s) were not added.`);
2636
- onError == null ? void 0 : onError(countRejected, "count");
2637
- }
2638
- setFiles(merged);
2639
- onFilesChange == null ? void 0 : onFilesChange(merged);
2640
- };
2641
- const handleDrag = (e) => {
2642
- e.preventDefault();
2643
- e.stopPropagation();
2644
- if (e.type === "dragenter" || e.type === "dragover") {
2645
- setDragActive(true);
2646
- } else if (e.type === "dragleave") {
2647
- setDragActive(false);
2648
- }
2649
- };
2650
- const handleDrop = (e) => {
2651
- e.preventDefault();
2652
- e.stopPropagation();
2653
- setDragActive(false);
2654
- if (disabled) return;
2655
- handleFiles(e.dataTransfer.files);
2656
- };
2657
- const handleChange = (e) => {
2658
- e.preventDefault();
2659
- if (disabled) return;
2660
- handleFiles(e.target.files);
2661
- };
2662
- const removeFile = (index) => {
2663
- const updatedFiles = files.filter((_, i) => i !== index);
2664
- setFiles(updatedFiles);
2665
- onFilesChange == null ? void 0 : onFilesChange(updatedFiles);
2666
- if (updatedFiles.length === 0) setErrorMessage(null);
2667
- };
2668
- const openFileDialog = () => {
2669
- var _a;
2670
- if (!disabled) {
2671
- setErrorMessage(null);
2672
- (_a = inputRef.current) == null ? void 0 : _a.click();
2673
- }
2674
- };
2675
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("w-full", className), children: [
2676
- /* @__PURE__ */ jsxRuntime.jsxs(
2677
- "div",
2678
- {
2679
- onDragEnter: handleDrag,
2680
- onDragLeave: handleDrag,
2681
- onDragOver: handleDrag,
2682
- onDrop: handleDrop,
2683
- onClick: openFileDialog,
2684
- className: button.cn(
2685
- "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",
2686
- dragActive && "border-primary bg-primary/5",
2687
- errorMessage && "border-destructive/50",
2688
- disabled && "cursor-not-allowed opacity-50"
2689
- ),
2690
- children: [
2691
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { className: "mb-4 h-10 w-10 text-muted-foreground" }),
2692
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mb-2 text-foreground", children: [
2693
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: "Click to upload" }),
2694
- " or drag and drop"
2695
- ] }),
2696
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
2697
- maxFiles > 1 ? `Up to ${maxFiles} files` : "1 file",
2698
- " • Max ",
2699
- (maxSize / 1024 / 1024).toFixed(0),
2700
- "MB"
2701
- ] }),
2702
- /* @__PURE__ */ jsxRuntime.jsx(
2703
- "input",
2704
- {
2705
- ...props,
2706
- ref: inputRef,
2707
- type: "file",
2708
- className: "hidden",
2709
- onChange: handleChange,
2710
- multiple: maxFiles > 1,
2711
- accept,
2712
- disabled
2713
- }
2714
- )
2715
- ]
2716
- }
2717
- ),
2718
- 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: [
2719
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "h-4 w-4 shrink-0" }),
2720
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: errorMessage })
2721
- ] }),
2722
- showPreview && files.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 space-y-2", children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(
2723
- "div",
2724
- {
2725
- className: "flex items-center justify-between rounded-[var(--radius)] border border-border bg-card p-3",
2726
- children: [
2727
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
2728
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileIcon, { className: "h-5 w-5 text-muted-foreground" }),
2729
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
2730
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground", children: file.name }),
2731
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
2732
- (file.size / 1024).toFixed(2),
2733
- " KB"
2734
- ] })
2735
- ] })
2736
- ] }),
2737
- /* @__PURE__ */ jsxRuntime.jsx(
2738
- button.Button,
2739
- {
2740
- type: "button",
2741
- variant: "ghost",
2742
- size: "sm",
2743
- onClick: (e) => {
2744
- e.stopPropagation();
2745
- removeFile(index);
2746
- },
2747
- disabled,
2748
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
2749
- }
2750
- )
2751
- ]
2752
- },
2753
- index
2754
- )) })
2755
- ] });
2756
- }
2757
- );
2758
- FileUpload.displayName = "FileUpload";
2759
- const Rating = React__namespace.forwardRef(
2760
- ({
2761
- className,
2762
- value = 0,
2763
- onChange,
2764
- max = 5,
2765
- readonly = false,
2766
- disabled = false,
2767
- size = "md",
2768
- showValue = false,
2769
- allowHalf = false,
2770
- getAriaLabel,
2771
- ...props
2772
- }, ref) => {
2773
- const [hoverValue, setHoverValue] = React__namespace.useState(null);
2774
- const isInteractive = !readonly && !disabled;
2775
- const sizeStyles = {
2776
- sm: "h-4 w-4",
2777
- md: "h-5 w-5",
2778
- lg: "h-6 w-6"
2779
- };
2780
- const handleClick = (rating) => {
2781
- if (isInteractive) onChange == null ? void 0 : onChange(rating);
2782
- };
2783
- const handleMouseMove = (e, rating) => {
2784
- if (!isInteractive) return;
2785
- if (allowHalf) {
2786
- const rect = e.currentTarget.getBoundingClientRect();
2787
- setHoverValue(e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating);
2788
- } else {
2789
- setHoverValue(rating);
2790
- }
2791
- };
2792
- const handleMouseLeave = () => {
2793
- if (isInteractive) setHoverValue(null);
2794
- };
2795
- const handleClickWithHalf = (e, rating) => {
2796
- if (!isInteractive) return;
2797
- if (allowHalf) {
2798
- const rect = e.currentTarget.getBoundingClientRect();
2799
- const half = e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating;
2800
- onChange == null ? void 0 : onChange(half);
2801
- } else {
2802
- handleClick(rating);
2803
- }
2804
- };
2805
- const displayValue = hoverValue ?? value;
2806
- return /* @__PURE__ */ jsxRuntime.jsxs(
2807
- "div",
2808
- {
2809
- ref,
2810
- className: button.cn("flex items-center gap-1", disabled && "opacity-50", className),
2811
- ...props,
2812
- children: [
2813
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", role: "group", "aria-label": "Rating", children: Array.from({ length: max }, (_, index) => {
2814
- const rating = index + 1;
2815
- const isFull = rating <= displayValue;
2816
- const isHalf = allowHalf && !isFull && rating - 0.5 <= displayValue;
2817
- return /* @__PURE__ */ jsxRuntime.jsxs(
2818
- "button",
2819
- {
2820
- type: "button",
2821
- onClick: (e) => handleClickWithHalf(e, rating),
2822
- onMouseMove: (e) => handleMouseMove(e, rating),
2823
- onMouseLeave: handleMouseLeave,
2824
- disabled: readonly || disabled,
2825
- "aria-label": getAriaLabel ? getAriaLabel(rating, max) : `${rating} / ${max}`,
2826
- className: button.cn(
2827
- "relative transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
2828
- isInteractive && "cursor-pointer hover:scale-110",
2829
- !isInteractive && "cursor-default"
2830
- ),
2831
- children: [
2832
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: button.cn(sizeStyles[size], "fill-none text-muted-foreground") }),
2833
- (isFull || isHalf) && /* @__PURE__ */ jsxRuntime.jsx(
2834
- "span",
2835
- {
2836
- className: button.cn(
2837
- "absolute inset-0 overflow-hidden",
2838
- isHalf ? "w-1/2" : "w-full"
2839
- ),
2840
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: button.cn(sizeStyles[size], "fill-warning text-warning") })
2841
- }
2842
- )
2843
- ]
2844
- },
2845
- index
2846
- );
2847
- }) }),
2848
- showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: value % 1 === 0 ? value.toFixed(0) : value.toFixed(1) })
2849
- ]
2850
- }
2851
- );
2852
- }
2853
- );
2854
- Rating.displayName = "Rating";
2855
- const Search = React__namespace.forwardRef(
2856
- ({
2857
- className,
2858
- containerClassName,
2859
- onSearch,
2860
- onClear,
2861
- onChange,
2862
- size = "md",
2863
- searchLabel = "Search",
2864
- clearLabel = "Clear search",
2865
- value: controlledValue,
2866
- defaultValue,
2867
- ...props
2868
- }, ref) => {
2869
- const isControlled = controlledValue !== void 0;
2870
- const [internalValue, setInternalValue] = React__namespace.useState(
2871
- isControlled ? "" : defaultValue ?? ""
2872
- );
2873
- const displayValue = isControlled ? controlledValue : internalValue;
2874
- const sizeClasses = {
2875
- sm: "h-8 px-8 py-1 text-sm",
2876
- md: "h-10 px-10 py-2 text-base",
2877
- lg: "h-12 px-12 py-3 text-base"
2878
- };
2879
- const iconSizeClasses = {
2880
- sm: "left-2 h-3.5 w-3.5",
2881
- md: "left-3 h-4 w-4",
2882
- lg: "left-4 h-5 w-5"
2883
- };
2884
- const clearSizeClasses = {
2885
- sm: "right-2",
2886
- md: "right-3",
2887
- lg: "right-4"
2888
- };
2889
- const handleChange = (e) => {
2890
- const newValue = e.target.value;
2891
- if (!isControlled) setInternalValue(newValue);
2892
- onChange == null ? void 0 : onChange(e);
2893
- onSearch == null ? void 0 : onSearch(newValue);
2894
- };
2895
- const handleClear = () => {
2896
- if (!isControlled) setInternalValue("");
2897
- onClear == null ? void 0 : onClear();
2898
- onSearch == null ? void 0 : onSearch("");
2899
- };
2900
- const handleKeyDown = (e) => {
2901
- var _a;
2902
- if (e.key === "Escape") {
2903
- handleClear();
2904
- }
2905
- (_a = props.onKeyDown) == null ? void 0 : _a.call(props, e);
2906
- };
2907
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("relative w-full", containerClassName), children: [
2908
- /* @__PURE__ */ jsxRuntime.jsx(
2909
- lucideReact.Search,
2910
- {
2911
- "aria-hidden": "true",
2912
- className: button.cn("absolute top-1/2 -translate-y-1/2 text-muted-foreground", iconSizeClasses[size])
2913
- }
2914
- ),
2915
- /* @__PURE__ */ jsxRuntime.jsx(
2916
- "input",
2917
- {
2918
- ref,
2919
- type: "text",
2920
- value: displayValue,
2921
- onChange: handleChange,
2922
- onKeyDown: handleKeyDown,
2923
- className: button.cn(
2924
- "flex w-full rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none",
2925
- "placeholder:text-muted-foreground",
2926
- "focus:ring-2 focus:ring-primary focus:border-transparent",
2927
- "disabled:cursor-not-allowed disabled:opacity-50",
2928
- sizeClasses[size],
2929
- className
2930
- ),
2931
- "aria-label": props.placeholder || searchLabel,
2932
- ...props
2933
- }
2934
- ),
2935
- displayValue && /* @__PURE__ */ jsxRuntime.jsx(
2936
- "button",
2937
- {
2938
- type: "button",
2939
- onClick: handleClear,
2940
- "aria-label": clearLabel,
2941
- className: button.cn(
2942
- "absolute top-1/2 -translate-y-1/2 text-muted-foreground transition-colors hover:text-foreground focus:outline-none",
2943
- clearSizeClasses[size]
2944
- ),
2945
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
2946
- }
2947
- )
2948
- ] });
2949
- }
2950
- );
2951
- Search.displayName = "Search";
2952
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
2953
- const RouteMapContent = React.forwardRef(
2954
- ({ apiKey, ...props }, ref) => {
2955
- const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
2956
- const {
2957
- origin,
2958
- destination,
2959
- waypoints = [],
2960
- travelMode = "DRIVING",
2961
- height = "450px",
2962
- mapContainerClassName,
2963
- disableDefaultUI = false,
2964
- zoomControl = true,
2965
- streetViewControl = false,
2966
- mapTypeControl = false,
2967
- fullscreenControl = true,
2968
- onRouteCalculated,
2969
- className,
2970
- ...divProps
2971
- } = props;
2972
- const mapRef = React.useRef(null);
2973
- const gmpMapRef = React.useRef(null);
2974
- const directionsRendererRef = React.useRef(null);
2975
- React.useRef(false);
2976
- const isCalculatingRef = React.useRef(false);
2977
- React.useEffect(() => {
2978
- if (!isLoaded && apiKey && !loadError && load) {
2979
- load(apiKey).catch(console.error);
2980
- }
2981
- }, [isLoaded, apiKey, loadError, load]);
2982
- React.useEffect(() => {
2983
- if (!isLoaded || !gmpMapRef.current) return;
2984
- const setupMap = (map) => {
2985
- mapRef.current = map;
2986
- const computedStyle = getComputedStyle(document.documentElement);
2987
- const primaryColor = computedStyle.getPropertyValue("--primary").trim() || "#4F46E5";
2988
- if (!directionsRendererRef.current) {
2989
- directionsRendererRef.current = new google.maps.DirectionsRenderer({
2990
- map,
2991
- suppressMarkers: false,
2992
- polylineOptions: {
2993
- strokeColor: primaryColor,
2994
- strokeWeight: 5,
2995
- strokeOpacity: 0.8
2996
- }
2997
- });
2998
- } else {
2999
- directionsRendererRef.current.setMap(map);
3000
- }
3001
- };
3002
- const gmpMap = gmpMapRef.current;
3003
- if (gmpMap.innerMap) {
3004
- setupMap(gmpMap.innerMap);
3005
- } else {
3006
- const interval = setInterval(() => {
3007
- if (gmpMap.innerMap) {
3008
- setupMap(gmpMap.innerMap);
3009
- clearInterval(interval);
3010
- }
3011
- }, 100);
3012
- return () => clearInterval(interval);
3013
- }
3014
- return () => {
3015
- if (directionsRendererRef.current) {
3016
- directionsRendererRef.current.setMap(null);
3017
- }
3018
- mapRef.current = null;
3019
- };
3020
- }, [isLoaded]);
3021
- React.useEffect(() => {
3022
- if (gmpMapRef.current && origin) {
3023
- gmpMapRef.current.center = origin;
3024
- }
3025
- }, [origin.lat, origin.lng]);
3026
- React.useEffect(() => {
3027
- if (gmpMapRef.current) {
3028
- gmpMapRef.current.zoom = 13;
3029
- }
3030
- }, []);
3031
- React.useEffect(() => {
3032
- const map = mapRef.current;
3033
- const renderer = directionsRendererRef.current;
3034
- if (!map || !renderer || !isLoaded || isCalculatingRef.current) return;
3035
- if (!origin || !destination) return;
3036
- isCalculatingRef.current = true;
3037
- const directionsService = new google.maps.DirectionsService();
3038
- const request = {
3039
- origin,
3040
- destination,
3041
- waypoints: waypoints.map((wp) => ({
3042
- location: wp,
3043
- stopover: true
3044
- })),
3045
- travelMode: google.maps.TravelMode[travelMode]
3046
- };
3047
- directionsService.route(request, (result, status) => {
3048
- var _a;
3049
- isCalculatingRef.current = false;
3050
- if (status === "OK" && result) {
3051
- renderer.setDirections(result);
3052
- const route = result.routes[0];
3053
- if (((_a = route == null ? void 0 : route.legs) == null ? void 0 : _a.length) > 0 && onRouteCalculated) {
3054
- let totalDistance = 0;
3055
- let totalDuration = 0;
3056
- route.legs.forEach((leg) => {
3057
- if (leg.distance) totalDistance += leg.distance.value;
3058
- if (leg.duration) totalDuration += leg.duration.value;
3059
- });
3060
- const distanceKm = (totalDistance / 1e3).toFixed(1);
3061
- const distanceText = `${distanceKm} km`;
3062
- const hours = Math.floor(totalDuration / 3600);
3063
- const minutes = Math.floor(totalDuration % 3600 / 60);
3064
- const durationText = hours > 0 ? `${hours}h ${minutes}min` : `${minutes} min`;
3065
- onRouteCalculated(distanceText, durationText);
3066
- }
3067
- }
3068
- });
3069
- }, [isLoaded, origin.lat, origin.lng, destination.lat, destination.lng, travelMode, mapRef.current]);
3070
- if (loadError) {
3071
- return /* @__PURE__ */ jsxRuntime.jsx(
3072
- "div",
3073
- {
3074
- ref,
3075
- className: button.cn(
3076
- "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
3077
- className
3078
- ),
3079
- style: { height },
3080
- ...divProps,
3081
- 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: [
3082
- /* @__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" }) }) }),
3083
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-foreground", children: "Failed to load Google Maps" }),
3084
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
3085
- ] }) })
3086
- }
3087
- );
3088
- }
3089
- if (!isLoaded) {
3090
- return /* @__PURE__ */ jsxRuntime.jsx(
3091
- "div",
3092
- {
3093
- ref,
3094
- className: button.cn(
3095
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
3096
- className
3097
- ),
3098
- style: { height },
3099
- ...divProps
3100
- }
3101
- );
3102
- }
3103
- return /* @__PURE__ */ jsxRuntime.jsx(
3104
- "div",
3105
- {
3106
- ref,
3107
- className: button.cn(
3108
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
3109
- className
3110
- ),
3111
- style: { height },
3112
- ...divProps,
3113
- children: /* @__PURE__ */ jsxRuntime.jsx(
3114
- "gmp-map",
3115
- {
3116
- ref: gmpMapRef,
3117
- style: { height: "100%", width: "100%", display: "block" },
3118
- "map-id": props.mapId || "xertica-route-map"
3119
- }
3120
- )
3121
- }
3122
- );
3123
- }
3124
- );
3125
- RouteMapContent.displayName = "RouteMapContent";
3126
- const RouteMap = React.forwardRef(
3127
- (props, ref) => {
3128
- const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
3129
- const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("AssistantChart-BAx9VQvb.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__ && void 0 || "";
3130
- const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
3131
- if (isLoaded || isValidKey || loadError) {
3132
- return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
3133
- }
3134
- const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
3135
- if (isScriptInjected) {
3136
- return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
3137
- }
3138
- const {
3139
- origin,
3140
- destination,
3141
- waypoints,
3142
- travelMode,
3143
- height,
3144
- apiKey,
3145
- mapContainerClassName,
3146
- disableDefaultUI,
3147
- zoomControl,
3148
- streetViewControl,
3149
- mapTypeControl,
3150
- fullscreenControl,
3151
- onRouteCalculated,
3152
- ...divProps
3153
- } = props;
3154
- return /* @__PURE__ */ jsxRuntime.jsx(
3155
- "div",
3156
- {
3157
- ref,
3158
- className: button.cn(
3159
- "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
3160
- props.className
3161
- ),
3162
- style: { height: props.height || "450px" },
3163
- ...divProps,
3164
- 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: [
3165
- /* @__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: [
3166
- /* @__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" }),
3167
- /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
3168
- ] }) }),
3169
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
3170
- ] }) })
3171
- }
3172
- );
3173
- }
3174
- );
3175
- RouteMap.displayName = "RouteMap";
3176
- const SimpleMap = React.forwardRef(
3177
- ({
3178
- center,
3179
- address,
3180
- markerTitle,
3181
- markerInfo,
3182
- showMarker = true,
3183
- zoom = 15,
3184
- height = "350px",
3185
- ...props
3186
- }, ref) => {
3187
- const markers = showMarker && center ? [
3188
- {
3189
- position: center,
3190
- title: markerTitle || address || "Location",
3191
- info: markerInfo || address
3192
- }
3193
- ] : [];
3194
- return /* @__PURE__ */ jsxRuntime.jsx(
3195
- alertDialog.Map,
3196
- {
3197
- ref,
3198
- center,
3199
- zoom,
3200
- height,
3201
- markers,
3202
- ...props
3203
- }
3204
- );
3205
- }
3206
- );
3207
- SimpleMap.displayName = "SimpleMap";
3208
- function AssistantChart({
3209
- data,
3210
- config,
3211
- categoryKey = "month",
3212
- bars,
3213
- xAxisFormatter,
3214
- className
3215
- }) {
3216
- const resolvedBars = bars ?? Object.keys(config).map((key) => ({ dataKey: key }));
3217
- const formatTick = xAxisFormatter ?? ((value) => value.slice(0, 3));
3218
- return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config, className: button.cn("min-h-[200px] w-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.BarChart, { accessibilityLayer: true, data, children: [
3219
- /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { vertical: false }),
3220
- /* @__PURE__ */ jsxRuntime.jsx(
3221
- RechartsPrimitive.XAxis,
3222
- {
3223
- dataKey: categoryKey,
3224
- tickLine: false,
3225
- tickMargin: 10,
3226
- axisLine: false,
3227
- tickFormatter: formatTick
3228
- }
3229
- ),
3230
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { cursor: false, content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "dashed" }) }),
3231
- resolvedBars.map((bar) => /* @__PURE__ */ jsxRuntime.jsx(
3232
- RechartsPrimitive.Bar,
3233
- {
3234
- dataKey: bar.dataKey,
3235
- fill: bar.fill ?? `var(--color-${bar.dataKey})`,
3236
- radius: bar.radius ?? 4
3237
- },
3238
- bar.dataKey
3239
- ))
3240
- ] }) });
3241
- }
3242
- exports.Accordion = Accordion;
3243
- exports.AccordionContent = AccordionContent;
3244
- exports.AccordionItem = AccordionItem;
3245
- exports.AccordionTrigger = AccordionTrigger;
3246
- exports.AspectRatio = AspectRatio;
3247
- exports.AssistantChart = AssistantChart;
3248
- exports.Calendar = Calendar;
3249
- exports.CalendarDayButton = CalendarDayButton;
3250
- exports.Carousel = Carousel;
3251
- exports.CarouselContent = CarouselContent;
3252
- exports.CarouselItem = CarouselItem;
3253
- exports.CarouselNext = CarouselNext;
3254
- exports.CarouselPrevious = CarouselPrevious;
3255
- exports.Collapsible = Collapsible;
3256
- exports.CollapsibleContent = CollapsibleContent;
3257
- exports.CollapsibleTrigger = CollapsibleTrigger;
3258
- exports.Command = Command;
3259
- exports.CommandDialog = CommandDialog;
3260
- exports.CommandEmpty = CommandEmpty;
3261
- exports.CommandGroup = CommandGroup;
3262
- exports.CommandInput = CommandInput;
3263
- exports.CommandItem = CommandItem;
3264
- exports.CommandList = CommandList;
3265
- exports.CommandSeparator = CommandSeparator;
3266
- exports.CommandShortcut = CommandShortcut;
3267
- exports.ContextMenu = ContextMenu;
3268
- exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
3269
- exports.ContextMenuContent = ContextMenuContent;
3270
- exports.ContextMenuGroup = ContextMenuGroup;
3271
- exports.ContextMenuItem = ContextMenuItem;
3272
- exports.ContextMenuLabel = ContextMenuLabel;
3273
- exports.ContextMenuPortal = ContextMenuPortal;
3274
- exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
3275
- exports.ContextMenuRadioItem = ContextMenuRadioItem;
3276
- exports.ContextMenuSeparator = ContextMenuSeparator;
3277
- exports.ContextMenuShortcut = ContextMenuShortcut;
3278
- exports.ContextMenuSub = ContextMenuSub;
3279
- exports.ContextMenuSubContent = ContextMenuSubContent;
3280
- exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
3281
- exports.ContextMenuTrigger = ContextMenuTrigger;
3282
- exports.Drawer = Drawer;
3283
- exports.DrawerClose = DrawerClose;
3284
- exports.DrawerContent = DrawerContent;
3285
- exports.DrawerDescription = DrawerDescription;
3286
- exports.DrawerFooter = DrawerFooter;
3287
- exports.DrawerHandle = DrawerHandle;
3288
- exports.DrawerHeader = DrawerHeader;
3289
- exports.DrawerOverlay = DrawerOverlay;
3290
- exports.DrawerPortal = DrawerPortal;
3291
- exports.DrawerTitle = DrawerTitle;
3292
- exports.DrawerTrigger = DrawerTrigger;
3293
- exports.FileUpload = FileUpload;
3294
- exports.Form = Form;
3295
- exports.FormControl = FormControl;
3296
- exports.FormDescription = FormDescription;
3297
- exports.FormField = FormField;
3298
- exports.FormItem = FormItem;
3299
- exports.FormLabel = FormLabel;
3300
- exports.FormMessage = FormMessage;
3301
- exports.HoverCard = HoverCard;
3302
- exports.HoverCardContent = HoverCardContent;
3303
- exports.HoverCardTrigger = HoverCardTrigger;
3304
- exports.InputOTP = InputOTP;
3305
- exports.InputOTPGroup = InputOTPGroup;
3306
- exports.InputOTPSeparator = InputOTPSeparator;
3307
- exports.InputOTPSlot = InputOTPSlot;
3308
- exports.Menubar = Menubar;
3309
- exports.MenubarCheckboxItem = MenubarCheckboxItem;
3310
- exports.MenubarContent = MenubarContent;
3311
- exports.MenubarGroup = MenubarGroup;
3312
- exports.MenubarItem = MenubarItem;
3313
- exports.MenubarLabel = MenubarLabel;
3314
- exports.MenubarMenu = MenubarMenu;
3315
- exports.MenubarPortal = MenubarPortal;
3316
- exports.MenubarRadioGroup = MenubarRadioGroup;
3317
- exports.MenubarRadioItem = MenubarRadioItem;
3318
- exports.MenubarSeparator = MenubarSeparator;
3319
- exports.MenubarShortcut = MenubarShortcut;
3320
- exports.MenubarSub = MenubarSub;
3321
- exports.MenubarSubContent = MenubarSubContent;
3322
- exports.MenubarSubTrigger = MenubarSubTrigger;
3323
- exports.MenubarTrigger = MenubarTrigger;
3324
- exports.NavigationMenu = NavigationMenu;
3325
- exports.NavigationMenuContent = NavigationMenuContent;
3326
- exports.NavigationMenuIndicator = NavigationMenuIndicator;
3327
- exports.NavigationMenuItem = NavigationMenuItem;
3328
- exports.NavigationMenuLink = NavigationMenuLink;
3329
- exports.NavigationMenuList = NavigationMenuList;
3330
- exports.NavigationMenuTrigger = NavigationMenuTrigger;
3331
- exports.NavigationMenuViewport = NavigationMenuViewport;
3332
- exports.NotificationBadge = NotificationBadge;
3333
- exports.Pagination = Pagination;
3334
- exports.PaginationContent = PaginationContent;
3335
- exports.PaginationEllipsis = PaginationEllipsis;
3336
- exports.PaginationItem = PaginationItem;
3337
- exports.PaginationLink = PaginationLink;
3338
- exports.PaginationNext = PaginationNext;
3339
- exports.PaginationPrevious = PaginationPrevious;
3340
- exports.Rating = Rating;
3341
- exports.ResizableHandle = ResizableHandle;
3342
- exports.ResizablePanel = ResizablePanel;
3343
- exports.ResizablePanelGroup = ResizablePanelGroup;
3344
- exports.RouteMap = RouteMap;
3345
- exports.Search = Search;
3346
- exports.Sheet = Sheet;
3347
- exports.SheetBody = SheetBody;
3348
- exports.SheetClose = SheetClose;
3349
- exports.SheetContent = SheetContent;
3350
- exports.SheetDescription = SheetDescription;
3351
- exports.SheetFooter = SheetFooter;
3352
- exports.SheetHeader = SheetHeader;
3353
- exports.SheetPortal = SheetPortal;
3354
- exports.SheetTitle = SheetTitle;
3355
- exports.SheetTrigger = SheetTrigger;
3356
- exports.SimpleMap = SimpleMap;
3357
- exports.StatsCard = StatsCard;
3358
- exports.Step = Step;
3359
- exports.Stepper = Stepper;
3360
- exports.Timeline = Timeline;
3361
- exports.TimelineContent = TimelineContent;
3362
- exports.TimelineDescription = TimelineDescription;
3363
- exports.TimelineDot = TimelineDot;
3364
- exports.TimelineHeading = TimelineHeading;
3365
- exports.TimelineItem = TimelineItem;
3366
- exports.TimelineTime = TimelineTime;
3367
- exports.Toggle = Toggle;
3368
- exports.ToggleGroup = ToggleGroup;
3369
- exports.ToggleGroupItem = ToggleGroupItem;
3370
- exports.TreeView = TreeView;
3371
- exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
3372
- exports.toggleVariants = toggleVariants;
3373
- exports.useFormField = useFormField;
3374
- exports.useStepper = useStepper;