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