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,4810 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const RechartsPrimitive = require("recharts");
5
+ const button = require("./button-0CXwCRTm.cjs");
6
+ const select = require("./select-DT7Zjn42.cjs");
7
+ const richTextEditor = require("./rich-text-editor-lyYE2ZG5.cjs");
8
+ const progress = require("./progress-EeaoqqUs.cjs");
9
+ const lucideReact = require("lucide-react");
10
+ const AspectRatioPrimitive = require("@radix-ui/react-aspect-ratio");
11
+ const NavigationMenuPrimitive = require("@radix-ui/react-navigation-menu");
12
+ const classVarianceAuthority = require("class-variance-authority");
13
+ const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
14
+ const TogglePrimitive = require("@radix-ui/react-toggle");
15
+ const inputOtp = require("input-otp");
16
+ const reactSlot = require("@radix-ui/react-slot");
17
+ const reactHookForm = require("react-hook-form");
18
+ const alertDialog = require("./alert-dialog-DSKByiKZ.cjs");
19
+ const reactDayPicker = require("react-day-picker");
20
+ const DialogPrimitive = require("@radix-ui/react-dialog");
21
+ const vaul = require("vaul");
22
+ const HoverCardPrimitive = require("@radix-ui/react-hover-card");
23
+ const ContextMenuPrimitive = require("@radix-ui/react-context-menu");
24
+ const MenubarPrimitive = require("@radix-ui/react-menubar");
25
+ const cmdk = require("cmdk");
26
+ const useFileUpload = require("./use-file-upload-CRJR68Tj.cjs");
27
+ const CollapsiblePrimitive = require("@radix-ui/react-collapsible");
28
+ const AccordionPrimitive = require("@radix-ui/react-accordion");
29
+ const useEmblaCarousel = require("embla-carousel-react");
30
+ const googleMapsLoader = require("./google-maps-loader-Y-QkD-Li.cjs");
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
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
49
+ const RechartsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RechartsPrimitive);
50
+ const AspectRatioPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AspectRatioPrimitive);
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
+ function getChartSeries(config, series) {
61
+ if (series == null ? void 0 : series.length) {
62
+ return series;
63
+ }
64
+ return Object.entries(config).map(([key, item]) => ({
65
+ key,
66
+ label: item.label
67
+ }));
68
+ }
69
+ function getSeriesColor(key, index, colors) {
70
+ if (Array.isArray(colors)) {
71
+ return colors[index] || richTextEditor.defaultChartColors[index % richTextEditor.defaultChartColors.length];
72
+ }
73
+ return (colors == null ? void 0 : colors[key]) || richTextEditor.defaultChartColors[index % richTextEditor.defaultChartColors.length];
74
+ }
75
+ function getChartConfigWithColors(config, keys, colors) {
76
+ return keys.reduce((nextConfig, key, index) => {
77
+ const item = config[key];
78
+ if ((item == null ? void 0 : item.theme) && !colors) {
79
+ nextConfig[key] = item;
80
+ return nextConfig;
81
+ }
82
+ nextConfig[key] = {
83
+ label: (item == null ? void 0 : item.label) || key,
84
+ icon: item == null ? void 0 : item.icon,
85
+ color: colors ? getSeriesColor(key, index, colors) : (item == null ? void 0 : item.color) || getSeriesColor(key, index)
86
+ };
87
+ return nextConfig;
88
+ }, {});
89
+ }
90
+ function buildChartConfig(keys, colors) {
91
+ return keys.reduce((cfg, key, index) => {
92
+ cfg[key] = {
93
+ label: key,
94
+ color: getSeriesColor(key, index, colors)
95
+ };
96
+ return cfg;
97
+ }, {});
98
+ }
99
+ function formatTick(value) {
100
+ if (typeof value !== "number") {
101
+ return value;
102
+ }
103
+ return Intl.NumberFormat("en", {
104
+ notation: "compact",
105
+ maximumFractionDigits: 1
106
+ }).format(value);
107
+ }
108
+ function defaultFilterData(data, period) {
109
+ const match = period.match(/^(\d+)/);
110
+ if (!match) {
111
+ return data;
112
+ }
113
+ const limit = Number(match[1]);
114
+ return data.slice(Math.max(data.length - limit, 0));
115
+ }
116
+ function getErrorDescription(error) {
117
+ if (typeof error === "string") {
118
+ return error;
119
+ }
120
+ if (error instanceof Error) {
121
+ return error.message;
122
+ }
123
+ return void 0;
124
+ }
125
+ function getBarSize(barSize = "md") {
126
+ return typeof barSize === "number" ? barSize : richTextEditor.chartBarSizes[barSize];
127
+ }
128
+ function hasChartData(data, series) {
129
+ if (!data.length || !series.length) {
130
+ return false;
131
+ }
132
+ return data.some(
133
+ (item) => series.some((serie) => {
134
+ const value = item[serie.key];
135
+ return value !== null && value !== void 0 && value !== "";
136
+ })
137
+ );
138
+ }
139
+ function hasPieData(data, nameKey, valueKey) {
140
+ return data.some((item) => {
141
+ const name = item[nameKey];
142
+ const value = item[valueKey];
143
+ return name !== null && name !== void 0 && name !== "" && value !== null && value !== void 0 && value !== "";
144
+ });
145
+ }
146
+ function Skeleton({ className, ...props }) {
147
+ return /* @__PURE__ */ jsxRuntime.jsx(
148
+ "div",
149
+ {
150
+ "data-slot": "skeleton",
151
+ className: button.cn("bg-accent animate-pulse rounded-md", className),
152
+ ...props
153
+ }
154
+ );
155
+ }
156
+ function ChartState({
157
+ type,
158
+ className,
159
+ error,
160
+ onRetry,
161
+ retryLabel = "Try again",
162
+ emptyTitle = "No data available",
163
+ emptyDescription = "There is no data available for this chart yet.",
164
+ errorTitle = "Connection error",
165
+ errorDescription,
166
+ loadingLabel = "Loading chart data"
167
+ }) {
168
+ if (type === "loading") {
169
+ return /* @__PURE__ */ jsxRuntime.jsxs(
170
+ "div",
171
+ {
172
+ className: button.cn(
173
+ "flex min-h-[240px] flex-col justify-end gap-3 rounded-[var(--radius-card)] border border-border p-6",
174
+ className
175
+ ),
176
+ "aria-label": typeof loadingLabel === "string" ? loadingLabel : void 0,
177
+ children: [
178
+ /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-8 w-2/5" }),
179
+ /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-14 w-3/5" }),
180
+ /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-24 w-4/5" }),
181
+ /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-36 w-full" })
182
+ ]
183
+ }
184
+ );
185
+ }
186
+ if (type === "error") {
187
+ return /* @__PURE__ */ jsxRuntime.jsx(
188
+ "div",
189
+ {
190
+ className: button.cn(
191
+ "flex min-h-[240px] items-center justify-center rounded-[var(--radius-card)] border border-border p-6",
192
+ className
193
+ ),
194
+ children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "destructive", className: "max-w-xl", children: [
195
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: errorTitle }),
196
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: errorDescription || getErrorDescription(error) || "Unable to load chart data. Check your connection and try again." }),
197
+ onRetry ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { size: "sm", variant: "outline", onClick: onRetry, children: [
198
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-4" }),
199
+ retryLabel
200
+ ] }) }) : null
201
+ ] })
202
+ }
203
+ );
204
+ }
205
+ return /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Empty, { className: button.cn("min-h-[240px]", className), children: [
206
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.EmptyIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BarChart3, { className: "size-10 text-muted-foreground" }) }),
207
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.EmptyTitle, { children: emptyTitle }),
208
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.EmptyDescription, { children: emptyDescription }),
209
+ onRetry ? /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.EmptyAction, { children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { size: "sm", variant: "outline", onClick: onRetry, children: [
210
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.WifiOff, { className: "size-4" }),
211
+ retryLabel
212
+ ] }) }) : null
213
+ ] });
214
+ }
215
+ function getChartState(state, hasData, className) {
216
+ if (state.isLoading) {
217
+ return /* @__PURE__ */ jsxRuntime.jsx(ChartState, { ...state, type: "loading", className });
218
+ }
219
+ if (state.error) {
220
+ return /* @__PURE__ */ jsxRuntime.jsx(ChartState, { ...state, type: "error", className });
221
+ }
222
+ if (!hasData) {
223
+ return /* @__PURE__ */ jsxRuntime.jsx(ChartState, { ...state, type: "empty", className });
224
+ }
225
+ return null;
226
+ }
227
+ function ChartCard({
228
+ title,
229
+ description,
230
+ action,
231
+ footer,
232
+ children,
233
+ className,
234
+ contentClassName,
235
+ ...props
236
+ }) {
237
+ return /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { className: button.cn("w-full min-w-0 overflow-hidden", className), ...props, children: [
238
+ /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
239
+ /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: title }),
240
+ description ? /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: description }) : null,
241
+ action ? /* @__PURE__ */ jsxRuntime.jsx(progress.CardAction, { children: action }) : null
242
+ ] }),
243
+ /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: contentClassName, children }),
244
+ footer ? /* @__PURE__ */ jsxRuntime.jsx(progress.CardFooter, { children: footer }) : null
245
+ ] });
246
+ }
247
+ function AreaGradientDefs({
248
+ seriesKeys,
249
+ opacity = 0.3
250
+ }) {
251
+ return /* @__PURE__ */ jsxRuntime.jsx("defs", { children: seriesKeys.map((key) => /* @__PURE__ */ jsxRuntime.jsxs(
252
+ "linearGradient",
253
+ {
254
+ id: `gradient-${key}`,
255
+ x1: "0",
256
+ y1: "0",
257
+ x2: "0",
258
+ y2: "1",
259
+ children: [
260
+ /* @__PURE__ */ jsxRuntime.jsx(
261
+ "stop",
262
+ {
263
+ offset: "5%",
264
+ stopColor: `var(--color-${key})`,
265
+ stopOpacity: opacity
266
+ }
267
+ ),
268
+ /* @__PURE__ */ jsxRuntime.jsx(
269
+ "stop",
270
+ {
271
+ offset: "95%",
272
+ stopColor: `var(--color-${key})`,
273
+ stopOpacity: 0
274
+ }
275
+ )
276
+ ]
277
+ },
278
+ key
279
+ )) });
280
+ }
281
+ function DashboardBarChart({
282
+ data,
283
+ config,
284
+ indexKey = "name",
285
+ series,
286
+ colors,
287
+ barSize = "md",
288
+ stacked = false,
289
+ showGrid = true,
290
+ showLegend = true,
291
+ valueFormatter = formatTick,
292
+ isLoading,
293
+ error,
294
+ onRetry,
295
+ retryLabel,
296
+ emptyTitle,
297
+ emptyDescription,
298
+ errorTitle,
299
+ errorDescription,
300
+ loadingLabel,
301
+ stateClassName,
302
+ className,
303
+ ...props
304
+ }) {
305
+ const chartSeries = getChartSeries(config, series);
306
+ const chartConfig = getChartConfigWithColors(
307
+ config,
308
+ chartSeries.map((item) => item.key),
309
+ colors
310
+ );
311
+ const topOfStack = React__namespace.useMemo(() => {
312
+ const result = /* @__PURE__ */ new Set();
313
+ if (stacked) {
314
+ const lastByStack = /* @__PURE__ */ new Map();
315
+ chartSeries.forEach((s) => lastByStack.set(s.stackId || "total", s.key));
316
+ lastByStack.forEach((key) => result.add(key));
317
+ }
318
+ return result;
319
+ }, [stacked, chartSeries]);
320
+ const chartState = getChartState(
321
+ {
322
+ isLoading,
323
+ error,
324
+ onRetry,
325
+ retryLabel,
326
+ emptyTitle,
327
+ emptyDescription,
328
+ errorTitle,
329
+ errorDescription,
330
+ loadingLabel
331
+ },
332
+ hasChartData(data, chartSeries),
333
+ button.cn("h-[320px] w-full", stateClassName)
334
+ );
335
+ if (chartState) {
336
+ return chartState;
337
+ }
338
+ return /* @__PURE__ */ jsxRuntime.jsx(
339
+ richTextEditor.ChartContainer,
340
+ {
341
+ config: chartConfig,
342
+ className: button.cn("h-[320px] w-full", className),
343
+ ...props,
344
+ children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.BarChart, { data, accessibilityLayer: true, barGap: 4, children: [
345
+ showGrid ? /* @__PURE__ */ jsxRuntime.jsx(
346
+ RechartsPrimitive__namespace.CartesianGrid,
347
+ {
348
+ vertical: false,
349
+ strokeDasharray: "3 3",
350
+ stroke: "var(--border)",
351
+ strokeOpacity: 0.5
352
+ }
353
+ ) : null,
354
+ /* @__PURE__ */ jsxRuntime.jsx(
355
+ RechartsPrimitive__namespace.XAxis,
356
+ {
357
+ dataKey: indexKey,
358
+ tickLine: false,
359
+ axisLine: false,
360
+ tickMargin: 8
361
+ }
362
+ ),
363
+ /* @__PURE__ */ jsxRuntime.jsx(
364
+ RechartsPrimitive__namespace.YAxis,
365
+ {
366
+ tickLine: false,
367
+ axisLine: false,
368
+ tickMargin: 8,
369
+ tickFormatter: valueFormatter
370
+ }
371
+ ),
372
+ /* @__PURE__ */ jsxRuntime.jsx(
373
+ richTextEditor.ChartTooltip,
374
+ {
375
+ cursor: { fill: "var(--muted)", opacity: 0.4, radius: 4 },
376
+ content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, {})
377
+ }
378
+ ),
379
+ showLegend ? /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, {}) }) : null,
380
+ chartSeries.map((item) => {
381
+ const isTop = !stacked || topOfStack.has(item.key);
382
+ return /* @__PURE__ */ jsxRuntime.jsx(
383
+ RechartsPrimitive__namespace.Bar,
384
+ {
385
+ dataKey: item.key,
386
+ fill: `var(--color-${item.key})`,
387
+ radius: isTop ? [4, 4, 0, 0] : [0, 0, 0, 0],
388
+ barSize: getBarSize(barSize),
389
+ stackId: stacked ? item.stackId || "total" : item.stackId,
390
+ isAnimationActive: true,
391
+ animationDuration: 600,
392
+ animationEasing: "ease-out"
393
+ },
394
+ item.key
395
+ );
396
+ })
397
+ ] })
398
+ }
399
+ );
400
+ }
401
+ function DashboardLineChart({
402
+ data,
403
+ config,
404
+ indexKey = "name",
405
+ series,
406
+ colors,
407
+ showDots = false,
408
+ showGrid = true,
409
+ showLegend = true,
410
+ curveType = "monotone",
411
+ strokeWidth = 2,
412
+ valueFormatter = formatTick,
413
+ isLoading,
414
+ error,
415
+ onRetry,
416
+ retryLabel,
417
+ emptyTitle,
418
+ emptyDescription,
419
+ errorTitle,
420
+ errorDescription,
421
+ loadingLabel,
422
+ stateClassName,
423
+ className,
424
+ ...props
425
+ }) {
426
+ const chartSeries = getChartSeries(config, series);
427
+ const chartConfig = getChartConfigWithColors(
428
+ config,
429
+ chartSeries.map((item) => item.key),
430
+ colors
431
+ );
432
+ const chartState = getChartState(
433
+ {
434
+ isLoading,
435
+ error,
436
+ onRetry,
437
+ retryLabel,
438
+ emptyTitle,
439
+ emptyDescription,
440
+ errorTitle,
441
+ errorDescription,
442
+ loadingLabel
443
+ },
444
+ hasChartData(data, chartSeries),
445
+ button.cn("h-[320px] w-full", stateClassName)
446
+ );
447
+ if (chartState) {
448
+ return chartState;
449
+ }
450
+ return /* @__PURE__ */ jsxRuntime.jsx(
451
+ richTextEditor.ChartContainer,
452
+ {
453
+ config: chartConfig,
454
+ className: button.cn("h-[320px] w-full", className),
455
+ ...props,
456
+ children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.LineChart, { data, accessibilityLayer: true, children: [
457
+ showGrid ? /* @__PURE__ */ jsxRuntime.jsx(
458
+ RechartsPrimitive__namespace.CartesianGrid,
459
+ {
460
+ vertical: false,
461
+ strokeDasharray: "3 3",
462
+ stroke: "var(--border)",
463
+ strokeOpacity: 0.5
464
+ }
465
+ ) : null,
466
+ /* @__PURE__ */ jsxRuntime.jsx(
467
+ RechartsPrimitive__namespace.XAxis,
468
+ {
469
+ dataKey: indexKey,
470
+ tickLine: false,
471
+ axisLine: false,
472
+ tickMargin: 8
473
+ }
474
+ ),
475
+ /* @__PURE__ */ jsxRuntime.jsx(
476
+ RechartsPrimitive__namespace.YAxis,
477
+ {
478
+ tickLine: false,
479
+ axisLine: false,
480
+ tickMargin: 8,
481
+ tickFormatter: valueFormatter
482
+ }
483
+ ),
484
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "line" }) }),
485
+ showLegend ? /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, {}) }) : null,
486
+ chartSeries.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
487
+ RechartsPrimitive__namespace.Line,
488
+ {
489
+ type: curveType,
490
+ dataKey: item.key,
491
+ stroke: `var(--color-${item.key})`,
492
+ strokeWidth,
493
+ dot: showDots ? { r: 3, fill: `var(--color-${item.key})`, strokeWidth: 0 } : false,
494
+ activeDot: { r: 5, strokeWidth: 0 },
495
+ yAxisId: item.yAxisId,
496
+ isAnimationActive: true,
497
+ animationDuration: 600,
498
+ animationEasing: "ease-out"
499
+ },
500
+ item.key
501
+ ))
502
+ ] })
503
+ }
504
+ );
505
+ }
506
+ function HorizontalBarChart({
507
+ data,
508
+ config,
509
+ indexKey = "name",
510
+ series,
511
+ colors,
512
+ barSize = "md",
513
+ stacked = false,
514
+ categoryWidth = 96,
515
+ showGrid = true,
516
+ showLegend = true,
517
+ valueFormatter = formatTick,
518
+ isLoading,
519
+ error,
520
+ onRetry,
521
+ retryLabel,
522
+ emptyTitle,
523
+ emptyDescription,
524
+ errorTitle,
525
+ errorDescription,
526
+ loadingLabel,
527
+ stateClassName,
528
+ className,
529
+ ...props
530
+ }) {
531
+ const chartSeries = getChartSeries(config, series);
532
+ const chartConfig = getChartConfigWithColors(
533
+ config,
534
+ chartSeries.map((item) => item.key),
535
+ colors
536
+ );
537
+ const chartState = getChartState(
538
+ {
539
+ isLoading,
540
+ error,
541
+ onRetry,
542
+ retryLabel,
543
+ emptyTitle,
544
+ emptyDescription,
545
+ errorTitle,
546
+ errorDescription,
547
+ loadingLabel
548
+ },
549
+ hasChartData(data, chartSeries),
550
+ button.cn("h-[320px] w-full", stateClassName)
551
+ );
552
+ if (chartState) {
553
+ return chartState;
554
+ }
555
+ return /* @__PURE__ */ jsxRuntime.jsx(
556
+ richTextEditor.ChartContainer,
557
+ {
558
+ config: chartConfig,
559
+ className: button.cn("h-[320px] w-full", className),
560
+ ...props,
561
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
562
+ RechartsPrimitive__namespace.BarChart,
563
+ {
564
+ data,
565
+ layout: "vertical",
566
+ accessibilityLayer: true,
567
+ margin: { left: 8, right: 16 },
568
+ children: [
569
+ showGrid ? /* @__PURE__ */ jsxRuntime.jsx(
570
+ RechartsPrimitive__namespace.CartesianGrid,
571
+ {
572
+ horizontal: false,
573
+ strokeDasharray: "3 3",
574
+ stroke: "var(--border)",
575
+ strokeOpacity: 0.5
576
+ }
577
+ ) : null,
578
+ /* @__PURE__ */ jsxRuntime.jsx(
579
+ RechartsPrimitive__namespace.XAxis,
580
+ {
581
+ type: "number",
582
+ tickLine: false,
583
+ axisLine: false,
584
+ tickMargin: 8,
585
+ tickFormatter: valueFormatter
586
+ }
587
+ ),
588
+ /* @__PURE__ */ jsxRuntime.jsx(
589
+ RechartsPrimitive__namespace.YAxis,
590
+ {
591
+ dataKey: indexKey,
592
+ type: "category",
593
+ tickLine: false,
594
+ axisLine: false,
595
+ tickMargin: 8,
596
+ width: categoryWidth
597
+ }
598
+ ),
599
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, {}) }),
600
+ showLegend ? /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, {}) }) : null,
601
+ chartSeries.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
602
+ RechartsPrimitive__namespace.Bar,
603
+ {
604
+ dataKey: item.key,
605
+ fill: `var(--color-${item.key})`,
606
+ radius: [0, 4, 4, 0],
607
+ barSize: getBarSize(barSize),
608
+ stackId: stacked ? item.stackId || "total" : item.stackId,
609
+ isAnimationActive: true,
610
+ animationDuration: 600,
611
+ animationEasing: "ease-out"
612
+ },
613
+ item.key
614
+ ))
615
+ ]
616
+ }
617
+ )
618
+ }
619
+ );
620
+ }
621
+ function InteractiveTimeSeriesChart({
622
+ data,
623
+ config,
624
+ indexKey = "date",
625
+ series,
626
+ colors,
627
+ periods = richTextEditor.defaultPeriods,
628
+ defaultPeriod = ((_a) => (_a = periods[1]) == null ? void 0 : _a.value)() || ((_b) => (_b = periods[0]) == null ? void 0 : _b.value)() || "30d",
629
+ defaultSeries,
630
+ filterData = defaultFilterData,
631
+ showGrid = true,
632
+ showLegend = false,
633
+ showDots = false,
634
+ gradientFill = true,
635
+ curveType = "monotone",
636
+ strokeWidth = 2,
637
+ valueFormatter = formatTick,
638
+ isLoading,
639
+ error,
640
+ onRetry,
641
+ retryLabel,
642
+ emptyTitle,
643
+ emptyDescription,
644
+ errorTitle,
645
+ errorDescription,
646
+ loadingLabel,
647
+ stateClassName,
648
+ className,
649
+ ...props
650
+ }) {
651
+ var _a2;
652
+ const chartSeries = getChartSeries(config, series);
653
+ const chartConfig = getChartConfigWithColors(
654
+ config,
655
+ chartSeries.map((item) => item.key),
656
+ colors
657
+ );
658
+ const [period, setPeriod] = React__namespace.useState(defaultPeriod);
659
+ const [activeSeries, setActiveSeries] = React__namespace.useState(
660
+ defaultSeries || ((_a2 = chartSeries[0]) == null ? void 0 : _a2.key) || ""
661
+ );
662
+ const filteredData = React__namespace.useMemo(
663
+ () => filterData(data, period),
664
+ [data, filterData, period]
665
+ );
666
+ const visibleSeries = chartSeries.length > 1 ? chartSeries.filter((item) => item.key === activeSeries) : chartSeries;
667
+ const chartState = getChartState(
668
+ {
669
+ isLoading,
670
+ error,
671
+ onRetry,
672
+ retryLabel,
673
+ emptyTitle,
674
+ emptyDescription,
675
+ errorTitle,
676
+ errorDescription,
677
+ loadingLabel
678
+ },
679
+ hasChartData(filteredData, visibleSeries),
680
+ button.cn("h-[320px] w-full", stateClassName)
681
+ );
682
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full space-y-4", children: [
683
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [
684
+ chartSeries.length > 1 ? /* @__PURE__ */ jsxRuntime.jsx(
685
+ "div",
686
+ {
687
+ className: "inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
688
+ role: "group",
689
+ "aria-label": "Selecionar metrica do grafico",
690
+ children: chartSeries.map((item) => {
691
+ var _a3;
692
+ const label = item.label || ((_a3 = config[item.key]) == null ? void 0 : _a3.label) || item.key;
693
+ return /* @__PURE__ */ jsxRuntime.jsx(
694
+ button.Button,
695
+ {
696
+ type: "button",
697
+ variant: "ghost",
698
+ size: "sm",
699
+ "aria-pressed": activeSeries === item.key,
700
+ onClick: () => setActiveSeries(item.key),
701
+ className: button.cn(
702
+ "h-8 px-3 text-sm font-medium transition-all",
703
+ activeSeries === item.key ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
704
+ ),
705
+ children: label
706
+ },
707
+ item.key
708
+ );
709
+ })
710
+ }
711
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", {}),
712
+ /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { value: period, onValueChange: setPeriod, children: [
713
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { className: "w-full sm:w-[160px]", size: "sm", "aria-label": "Selecionar periodo do grafico", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, { placeholder: "Period" }) }),
714
+ /* @__PURE__ */ jsxRuntime.jsx(select.SelectContent, { children: periods.map((item) => /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: item.value, children: item.label }, item.value)) })
715
+ ] })
716
+ ] }),
717
+ chartState || /* @__PURE__ */ jsxRuntime.jsx(
718
+ richTextEditor.ChartContainer,
719
+ {
720
+ config: chartConfig,
721
+ className: button.cn("h-[320px] w-full", className),
722
+ ...props,
723
+ children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.AreaChart, { data: filteredData, accessibilityLayer: true, children: [
724
+ gradientFill && /* @__PURE__ */ jsxRuntime.jsx(
725
+ AreaGradientDefs,
726
+ {
727
+ seriesKeys: visibleSeries.map((s) => s.key),
728
+ opacity: 0.4
729
+ }
730
+ ),
731
+ showGrid ? /* @__PURE__ */ jsxRuntime.jsx(
732
+ RechartsPrimitive__namespace.CartesianGrid,
733
+ {
734
+ vertical: false,
735
+ strokeDasharray: "3 3",
736
+ stroke: "var(--border)",
737
+ strokeOpacity: 0.5
738
+ }
739
+ ) : null,
740
+ /* @__PURE__ */ jsxRuntime.jsx(
741
+ RechartsPrimitive__namespace.XAxis,
742
+ {
743
+ dataKey: indexKey,
744
+ tickLine: false,
745
+ axisLine: false,
746
+ tickMargin: 8
747
+ }
748
+ ),
749
+ /* @__PURE__ */ jsxRuntime.jsx(
750
+ RechartsPrimitive__namespace.YAxis,
751
+ {
752
+ tickLine: false,
753
+ axisLine: false,
754
+ tickMargin: 8,
755
+ tickFormatter: valueFormatter
756
+ }
757
+ ),
758
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "line" }) }),
759
+ showLegend ? /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, {}) }) : null,
760
+ visibleSeries.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
761
+ RechartsPrimitive__namespace.Area,
762
+ {
763
+ type: curveType,
764
+ dataKey: item.key,
765
+ stroke: `var(--color-${item.key})`,
766
+ fill: gradientFill ? `url(#gradient-${item.key})` : `var(--color-${item.key})`,
767
+ fillOpacity: gradientFill ? 1 : 0.16,
768
+ strokeWidth,
769
+ dot: showDots ? { r: 3, fill: `var(--color-${item.key})`, strokeWidth: 0 } : false,
770
+ activeDot: { r: 5, strokeWidth: 0 },
771
+ isAnimationActive: true,
772
+ animationDuration: 600,
773
+ animationEasing: "ease-out"
774
+ },
775
+ item.key
776
+ ))
777
+ ] })
778
+ }
779
+ )
780
+ ] });
781
+ }
782
+ function ComboMetricChart({
783
+ data,
784
+ config,
785
+ indexKey = "name",
786
+ series,
787
+ colors,
788
+ barSize = "md",
789
+ showGrid = true,
790
+ showLegend = true,
791
+ gradientFill = false,
792
+ curveType = "monotone",
793
+ valueFormatter = formatTick,
794
+ isLoading,
795
+ error,
796
+ onRetry,
797
+ retryLabel,
798
+ emptyTitle,
799
+ emptyDescription,
800
+ errorTitle,
801
+ errorDescription,
802
+ loadingLabel,
803
+ stateClassName,
804
+ className,
805
+ ...props
806
+ }) {
807
+ const chartSeries = getChartSeries(config, series);
808
+ const chartConfig = getChartConfigWithColors(
809
+ config,
810
+ chartSeries.map((item) => item.key),
811
+ colors
812
+ );
813
+ const chartState = getChartState(
814
+ {
815
+ isLoading,
816
+ error,
817
+ onRetry,
818
+ retryLabel,
819
+ emptyTitle,
820
+ emptyDescription,
821
+ errorTitle,
822
+ errorDescription,
823
+ loadingLabel
824
+ },
825
+ hasChartData(data, chartSeries),
826
+ button.cn("h-[340px] w-full", stateClassName)
827
+ );
828
+ if (chartState) {
829
+ return chartState;
830
+ }
831
+ const areaSeries = gradientFill ? chartSeries.filter((s) => s.type === "area").map((s) => s.key) : [];
832
+ return /* @__PURE__ */ jsxRuntime.jsx(
833
+ richTextEditor.ChartContainer,
834
+ {
835
+ config: chartConfig,
836
+ className: button.cn("h-[340px] w-full", className),
837
+ ...props,
838
+ children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.ComposedChart, { data, accessibilityLayer: true, children: [
839
+ gradientFill && areaSeries.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(AreaGradientDefs, { seriesKeys: areaSeries, opacity: 0.35 }),
840
+ showGrid ? /* @__PURE__ */ jsxRuntime.jsx(
841
+ RechartsPrimitive__namespace.CartesianGrid,
842
+ {
843
+ vertical: false,
844
+ strokeDasharray: "3 3",
845
+ stroke: "var(--border)",
846
+ strokeOpacity: 0.5
847
+ }
848
+ ) : null,
849
+ /* @__PURE__ */ jsxRuntime.jsx(
850
+ RechartsPrimitive__namespace.XAxis,
851
+ {
852
+ dataKey: indexKey,
853
+ tickLine: false,
854
+ axisLine: false,
855
+ tickMargin: 8
856
+ }
857
+ ),
858
+ /* @__PURE__ */ jsxRuntime.jsx(
859
+ RechartsPrimitive__namespace.YAxis,
860
+ {
861
+ tickLine: false,
862
+ axisLine: false,
863
+ tickMargin: 8,
864
+ tickFormatter: valueFormatter
865
+ }
866
+ ),
867
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, {}) }),
868
+ showLegend ? /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, {}) }) : null,
869
+ chartSeries.map(
870
+ (item) => item.type === "line" ? /* @__PURE__ */ jsxRuntime.jsx(
871
+ RechartsPrimitive__namespace.Line,
872
+ {
873
+ type: curveType,
874
+ dataKey: item.key,
875
+ stroke: `var(--color-${item.key})`,
876
+ strokeWidth: 2,
877
+ dot: false,
878
+ activeDot: { r: 5, strokeWidth: 0 },
879
+ yAxisId: item.yAxisId,
880
+ isAnimationActive: true,
881
+ animationDuration: 600,
882
+ animationEasing: "ease-out"
883
+ },
884
+ item.key
885
+ ) : item.type === "area" ? /* @__PURE__ */ jsxRuntime.jsx(
886
+ RechartsPrimitive__namespace.Area,
887
+ {
888
+ type: curveType,
889
+ dataKey: item.key,
890
+ stroke: `var(--color-${item.key})`,
891
+ fill: gradientFill ? `url(#gradient-${item.key})` : `var(--color-${item.key})`,
892
+ fillOpacity: gradientFill ? 1 : 0.12,
893
+ strokeWidth: 2,
894
+ dot: false,
895
+ activeDot: { r: 5, strokeWidth: 0 },
896
+ yAxisId: item.yAxisId,
897
+ isAnimationActive: true,
898
+ animationDuration: 600,
899
+ animationEasing: "ease-out"
900
+ },
901
+ item.key
902
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
903
+ RechartsPrimitive__namespace.Bar,
904
+ {
905
+ dataKey: item.key,
906
+ fill: `var(--color-${item.key})`,
907
+ radius: [4, 4, 0, 0],
908
+ barSize: getBarSize(barSize),
909
+ yAxisId: item.yAxisId,
910
+ isAnimationActive: true,
911
+ animationDuration: 600,
912
+ animationEasing: "ease-out"
913
+ },
914
+ item.key
915
+ )
916
+ )
917
+ ] })
918
+ }
919
+ );
920
+ }
921
+ function DonutBreakdownChart({
922
+ data,
923
+ config,
924
+ nameKey = "name",
925
+ valueKey = "value",
926
+ colors,
927
+ centerLabel,
928
+ centerValue,
929
+ showLegend = true,
930
+ innerRadius = "58%",
931
+ outerRadius = "82%",
932
+ isLoading,
933
+ error,
934
+ onRetry,
935
+ retryLabel,
936
+ emptyTitle,
937
+ emptyDescription,
938
+ errorTitle,
939
+ errorDescription,
940
+ loadingLabel,
941
+ stateClassName,
942
+ className,
943
+ ...props
944
+ }) {
945
+ const [activeIndex, setActiveIndex] = React__namespace.useState(0);
946
+ const chartKeys = data.map(
947
+ (entry, index) => String(entry[nameKey] || `segment-${index}`)
948
+ );
949
+ const chartConfig = getChartConfigWithColors(config, chartKeys, colors);
950
+ const chartState = getChartState(
951
+ {
952
+ isLoading,
953
+ error,
954
+ onRetry,
955
+ retryLabel,
956
+ emptyTitle,
957
+ emptyDescription,
958
+ errorTitle,
959
+ errorDescription,
960
+ loadingLabel
961
+ },
962
+ hasPieData(data, nameKey, valueKey),
963
+ button.cn("h-[320px] w-full", stateClassName)
964
+ );
965
+ if (chartState) {
966
+ return chartState;
967
+ }
968
+ return /* @__PURE__ */ jsxRuntime.jsx(
969
+ richTextEditor.ChartContainer,
970
+ {
971
+ config: chartConfig,
972
+ className: button.cn("h-[320px] w-full", className),
973
+ ...props,
974
+ children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.PieChart, { accessibilityLayer: true, children: [
975
+ /* @__PURE__ */ jsxRuntime.jsx(
976
+ richTextEditor.ChartTooltip,
977
+ {
978
+ cursor: false,
979
+ content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { hideLabel: true, nameKey })
980
+ }
981
+ ),
982
+ showLegend ? /* @__PURE__ */ jsxRuntime.jsx(
983
+ richTextEditor.ChartLegend,
984
+ {
985
+ content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, { nameKey }),
986
+ verticalAlign: "bottom"
987
+ }
988
+ ) : null,
989
+ /* @__PURE__ */ jsxRuntime.jsxs(
990
+ RechartsPrimitive__namespace.Pie,
991
+ {
992
+ data,
993
+ dataKey: valueKey,
994
+ nameKey,
995
+ innerRadius,
996
+ outerRadius,
997
+ paddingAngle: 3,
998
+ activeIndex,
999
+ onMouseEnter: (_, index) => setActiveIndex(index),
1000
+ isAnimationActive: true,
1001
+ animationDuration: 600,
1002
+ animationEasing: "ease-out",
1003
+ children: [
1004
+ data.map((entry, index) => {
1005
+ const key = String(entry[nameKey] || `segment-${index}`);
1006
+ return /* @__PURE__ */ jsxRuntime.jsx(
1007
+ RechartsPrimitive__namespace.Cell,
1008
+ {
1009
+ fill: `var(--color-${key})`,
1010
+ opacity: index === activeIndex ? 1 : 0.7,
1011
+ stroke: "transparent"
1012
+ },
1013
+ key
1014
+ );
1015
+ }),
1016
+ centerValue || centerLabel ? /* @__PURE__ */ jsxRuntime.jsx(
1017
+ RechartsPrimitive__namespace.Label,
1018
+ {
1019
+ position: "center",
1020
+ content: ({ viewBox }) => {
1021
+ if (!viewBox || !("cx" in viewBox) || !("cy" in viewBox)) {
1022
+ return null;
1023
+ }
1024
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1025
+ "text",
1026
+ {
1027
+ x: viewBox.cx,
1028
+ y: viewBox.cy,
1029
+ textAnchor: "middle",
1030
+ dominantBaseline: "middle",
1031
+ children: [
1032
+ centerValue ? /* @__PURE__ */ jsxRuntime.jsx(
1033
+ "tspan",
1034
+ {
1035
+ x: viewBox.cx,
1036
+ y: viewBox.cy,
1037
+ className: "fill-foreground text-2xl font-semibold",
1038
+ children: centerValue
1039
+ }
1040
+ ) : null,
1041
+ centerLabel ? /* @__PURE__ */ jsxRuntime.jsx(
1042
+ "tspan",
1043
+ {
1044
+ x: viewBox.cx,
1045
+ y: Number(viewBox.cy) + 22,
1046
+ className: "fill-muted-foreground text-xs",
1047
+ children: centerLabel
1048
+ }
1049
+ ) : null
1050
+ ]
1051
+ }
1052
+ );
1053
+ }
1054
+ }
1055
+ ) : null
1056
+ ]
1057
+ }
1058
+ )
1059
+ ] })
1060
+ }
1061
+ );
1062
+ }
1063
+ function SparklineChart({
1064
+ data,
1065
+ dataKey,
1066
+ color = "var(--chart-1)",
1067
+ filled = true,
1068
+ showEndDot = true,
1069
+ curveType = "monotone",
1070
+ strokeWidth = 2,
1071
+ className
1072
+ }) {
1073
+ const sparkId = React__namespace.useId().replace(/:/g, "");
1074
+ const lastPoint = data[data.length - 1];
1075
+ const lastValue = lastPoint ? lastPoint[dataKey] : void 0;
1076
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("relative h-12 w-full min-w-0", className), children: [
1077
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(
1078
+ RechartsPrimitive__namespace.AreaChart,
1079
+ {
1080
+ data,
1081
+ margin: { top: 4, right: showEndDot ? 8 : 0, bottom: 0, left: 0 },
1082
+ children: [
1083
+ filled && /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
1084
+ "linearGradient",
1085
+ {
1086
+ id: `spark-gradient-${sparkId}`,
1087
+ x1: "0",
1088
+ y1: "0",
1089
+ x2: "0",
1090
+ y2: "1",
1091
+ children: [
1092
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "5%", stopColor: color, stopOpacity: 0.3 }),
1093
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "95%", stopColor: color, stopOpacity: 0 })
1094
+ ]
1095
+ }
1096
+ ) }),
1097
+ /* @__PURE__ */ jsxRuntime.jsx(
1098
+ RechartsPrimitive__namespace.Area,
1099
+ {
1100
+ type: curveType,
1101
+ dataKey,
1102
+ stroke: color,
1103
+ strokeWidth,
1104
+ fill: filled ? `url(#spark-gradient-${sparkId})` : "none",
1105
+ fillOpacity: 1,
1106
+ dot: false,
1107
+ activeDot: false,
1108
+ isAnimationActive: true,
1109
+ animationDuration: 600,
1110
+ animationEasing: "ease-out"
1111
+ }
1112
+ )
1113
+ ]
1114
+ }
1115
+ ) }),
1116
+ showEndDot && lastValue !== void 0 && lastValue !== null && /* @__PURE__ */ jsxRuntime.jsx(
1117
+ "div",
1118
+ {
1119
+ className: "pointer-events-none absolute right-0 top-1/2 h-2.5 w-2.5 -translate-y-1/2 rounded-full ring-2 ring-background",
1120
+ style: { backgroundColor: color }
1121
+ }
1122
+ )
1123
+ ] });
1124
+ }
1125
+ function RadarMetricChart({
1126
+ data,
1127
+ labelKey,
1128
+ series,
1129
+ colors,
1130
+ filled = true,
1131
+ fillOpacity = 0.25,
1132
+ showDots = false,
1133
+ showGrid = true,
1134
+ showLegend,
1135
+ valueFormatter,
1136
+ isLoading,
1137
+ error,
1138
+ onRetry,
1139
+ retryLabel,
1140
+ emptyTitle,
1141
+ emptyDescription,
1142
+ errorTitle,
1143
+ errorDescription,
1144
+ loadingLabel,
1145
+ stateClassName,
1146
+ className
1147
+ }) {
1148
+ const chartConfig = React__namespace.useMemo(
1149
+ () => buildChartConfig(series.map((s) => s.key), colors),
1150
+ [series, colors]
1151
+ );
1152
+ const hasData = data.length > 0 && series.length > 0;
1153
+ const chartState = getChartState(
1154
+ { isLoading, error, emptyTitle, emptyDescription, errorTitle, errorDescription, loadingLabel, stateClassName, onRetry, retryLabel },
1155
+ hasData
1156
+ );
1157
+ const displayLegend = showLegend ?? series.length > 1;
1158
+ return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config: chartConfig, className: button.cn("h-[300px] w-full", className), children: chartState ?? /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.RadarChart, { data, accessibilityLayer: true, children: [
1159
+ showGrid && /* @__PURE__ */ jsxRuntime.jsx(
1160
+ RechartsPrimitive__namespace.PolarGrid,
1161
+ {
1162
+ stroke: "var(--border)",
1163
+ strokeOpacity: 0.6
1164
+ }
1165
+ ),
1166
+ /* @__PURE__ */ jsxRuntime.jsx(
1167
+ RechartsPrimitive__namespace.PolarAngleAxis,
1168
+ {
1169
+ dataKey: labelKey,
1170
+ tick: { fill: "var(--muted-foreground)", fontSize: 12 }
1171
+ }
1172
+ ),
1173
+ /* @__PURE__ */ jsxRuntime.jsx(
1174
+ RechartsPrimitive__namespace.PolarRadiusAxis,
1175
+ {
1176
+ tick: false,
1177
+ axisLine: false,
1178
+ tickFormatter: valueFormatter
1179
+ }
1180
+ ),
1181
+ /* @__PURE__ */ jsxRuntime.jsx(
1182
+ richTextEditor.ChartTooltip,
1183
+ {
1184
+ content: /* @__PURE__ */ jsxRuntime.jsx(
1185
+ richTextEditor.ChartTooltipContent,
1186
+ {
1187
+ formatter: valueFormatter ? (v) => valueFormatter(v) : void 0
1188
+ }
1189
+ )
1190
+ }
1191
+ ),
1192
+ displayLegend && /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, {}) }),
1193
+ series.map((s) => /* @__PURE__ */ jsxRuntime.jsx(
1194
+ RechartsPrimitive__namespace.Radar,
1195
+ {
1196
+ name: s.label ?? s.key,
1197
+ dataKey: s.key,
1198
+ stroke: `var(--color-${s.key})`,
1199
+ fill: filled ? `var(--color-${s.key})` : "none",
1200
+ fillOpacity: filled ? fillOpacity : 0,
1201
+ dot: showDots ? { r: 3, fill: `var(--color-${s.key})` } : false,
1202
+ isAnimationActive: true,
1203
+ animationDuration: 600,
1204
+ animationEasing: "ease-out"
1205
+ },
1206
+ s.key
1207
+ ))
1208
+ ] }) });
1209
+ }
1210
+ function PieMetricChart({
1211
+ data,
1212
+ nameKey,
1213
+ valueKey,
1214
+ colors,
1215
+ outerRadius = "80%",
1216
+ innerRadius = 0,
1217
+ showLabels = false,
1218
+ showLegend = true,
1219
+ explodeIndex,
1220
+ explodeOffset = 12,
1221
+ valueFormatter,
1222
+ isLoading,
1223
+ error,
1224
+ onRetry,
1225
+ retryLabel,
1226
+ emptyTitle,
1227
+ emptyDescription,
1228
+ errorTitle,
1229
+ errorDescription,
1230
+ loadingLabel,
1231
+ stateClassName,
1232
+ className
1233
+ }) {
1234
+ const names = React__namespace.useMemo(
1235
+ () => data.map((d) => String(d[nameKey] ?? "")),
1236
+ [data, nameKey]
1237
+ );
1238
+ const chartConfig = React__namespace.useMemo(
1239
+ () => buildChartConfig(names, colors),
1240
+ [names, colors]
1241
+ );
1242
+ const hasData = hasPieData(data, nameKey, valueKey);
1243
+ const chartState = getChartState(
1244
+ { isLoading, error, emptyTitle, emptyDescription, errorTitle, errorDescription, loadingLabel, stateClassName, onRetry, retryLabel },
1245
+ hasData
1246
+ );
1247
+ return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config: chartConfig, className: button.cn("h-[300px] w-full", className), children: chartState ?? /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.PieChart, { accessibilityLayer: true, children: [
1248
+ /* @__PURE__ */ jsxRuntime.jsx(
1249
+ richTextEditor.ChartTooltip,
1250
+ {
1251
+ content: /* @__PURE__ */ jsxRuntime.jsx(
1252
+ richTextEditor.ChartTooltipContent,
1253
+ {
1254
+ nameKey,
1255
+ formatter: valueFormatter ? (v) => valueFormatter(v) : void 0
1256
+ }
1257
+ )
1258
+ }
1259
+ ),
1260
+ showLegend && /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartLegendContent, { nameKey }) }),
1261
+ /* @__PURE__ */ jsxRuntime.jsx(
1262
+ RechartsPrimitive__namespace.Pie,
1263
+ {
1264
+ data,
1265
+ dataKey: valueKey,
1266
+ nameKey,
1267
+ outerRadius,
1268
+ innerRadius,
1269
+ paddingAngle: 2,
1270
+ label: showLabels ? ({ cx, cy, midAngle, innerRadius: ir, outerRadius: or, percent }) => {
1271
+ const RADIAN = Math.PI / 180;
1272
+ const radius = Number(ir) + (Number(or) - Number(ir)) * 1.35;
1273
+ const x = Number(cx) + radius * Math.cos(-midAngle * RADIAN);
1274
+ const y = Number(cy) + radius * Math.sin(-midAngle * RADIAN);
1275
+ return percent > 0.04 ? /* @__PURE__ */ jsxRuntime.jsx(
1276
+ "text",
1277
+ {
1278
+ x,
1279
+ y,
1280
+ fill: "var(--foreground)",
1281
+ textAnchor: x > Number(cx) ? "start" : "end",
1282
+ dominantBaseline: "central",
1283
+ fontSize: 12,
1284
+ fontWeight: 500,
1285
+ children: `${(percent * 100).toFixed(0)}%`
1286
+ }
1287
+ ) : null;
1288
+ } : false,
1289
+ labelLine: false,
1290
+ isAnimationActive: true,
1291
+ animationDuration: 600,
1292
+ animationEasing: "ease-out",
1293
+ children: data.map((entry, index) => {
1294
+ var _a, _b;
1295
+ const name = String(entry[nameKey] ?? "");
1296
+ const isExploded = index === explodeIndex;
1297
+ return /* @__PURE__ */ jsxRuntime.jsx(
1298
+ RechartsPrimitive__namespace.Cell,
1299
+ {
1300
+ fill: ((_a = chartConfig[name]) == null ? void 0 : _a.color) ?? `var(--chart-${index % 8 + 1})`,
1301
+ stroke: "var(--background)",
1302
+ strokeWidth: 2,
1303
+ style: isExploded ? { filter: `drop-shadow(0 4px 8px color-mix(in srgb, ${((_b = chartConfig[name]) == null ? void 0 : _b.color) ?? "var(--chart-1)"} 40%, transparent))` } : void 0
1304
+ },
1305
+ `cell-${index}`
1306
+ );
1307
+ })
1308
+ }
1309
+ )
1310
+ ] }) });
1311
+ }
1312
+ function RadialBarMetricChart({
1313
+ data,
1314
+ dataKey = "value",
1315
+ nameKey = "name",
1316
+ colors,
1317
+ innerRadius = "30%",
1318
+ outerRadius = "100%",
1319
+ startAngle = 90,
1320
+ endAngle = -270,
1321
+ showBackground = true,
1322
+ showLegend = true,
1323
+ valueFormatter,
1324
+ isLoading,
1325
+ error,
1326
+ onRetry,
1327
+ retryLabel,
1328
+ emptyTitle,
1329
+ emptyDescription,
1330
+ errorTitle,
1331
+ errorDescription,
1332
+ loadingLabel,
1333
+ stateClassName,
1334
+ className
1335
+ }) {
1336
+ const names = React__namespace.useMemo(
1337
+ () => data.map((d) => String(d[nameKey] ?? "")),
1338
+ [data, nameKey]
1339
+ );
1340
+ const chartConfig = React__namespace.useMemo(
1341
+ () => buildChartConfig(names, colors),
1342
+ [names, colors]
1343
+ );
1344
+ const hasData = data.length > 0;
1345
+ const chartState = getChartState(
1346
+ { isLoading, error, emptyTitle, emptyDescription, errorTitle, errorDescription, loadingLabel, stateClassName, onRetry, retryLabel },
1347
+ hasData
1348
+ );
1349
+ const coloredData = React__namespace.useMemo(
1350
+ () => data.map((item, index) => {
1351
+ var _a;
1352
+ const name = String(item[nameKey] ?? "");
1353
+ return {
1354
+ ...item,
1355
+ fill: ((_a = chartConfig[name]) == null ? void 0 : _a.color) ?? `var(--chart-${index % 8 + 1})`
1356
+ };
1357
+ }),
1358
+ [data, nameKey, chartConfig]
1359
+ );
1360
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("flex w-full flex-col gap-3", className), children: [
1361
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config: chartConfig, className: "h-[260px] w-full", children: chartState ?? /* @__PURE__ */ jsxRuntime.jsxs(
1362
+ RechartsPrimitive__namespace.RadialBarChart,
1363
+ {
1364
+ data: coloredData,
1365
+ innerRadius,
1366
+ outerRadius,
1367
+ startAngle,
1368
+ endAngle,
1369
+ accessibilityLayer: true,
1370
+ children: [
1371
+ /* @__PURE__ */ jsxRuntime.jsx(
1372
+ richTextEditor.ChartTooltip,
1373
+ {
1374
+ cursor: false,
1375
+ content: /* @__PURE__ */ jsxRuntime.jsx(
1376
+ richTextEditor.ChartTooltipContent,
1377
+ {
1378
+ nameKey,
1379
+ formatter: valueFormatter ? (v) => valueFormatter(v) : void 0
1380
+ }
1381
+ )
1382
+ }
1383
+ ),
1384
+ /* @__PURE__ */ jsxRuntime.jsx(
1385
+ RechartsPrimitive__namespace.RadialBar,
1386
+ {
1387
+ dataKey,
1388
+ background: showBackground ? { fill: "var(--muted)" } : false,
1389
+ cornerRadius: 6,
1390
+ isAnimationActive: true,
1391
+ animationDuration: 700,
1392
+ animationEasing: "ease-out"
1393
+ }
1394
+ )
1395
+ ]
1396
+ }
1397
+ ) }),
1398
+ showLegend && !chartState && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap justify-center gap-x-4 gap-y-1.5 px-2", children: coloredData.map((item, index) => {
1399
+ const d = item;
1400
+ const name = String(d[nameKey] ?? "");
1401
+ const fillColor = d.fill ?? `var(--chart-${index % 8 + 1})`;
1402
+ const val = d[dataKey];
1403
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
1404
+ /* @__PURE__ */ jsxRuntime.jsx(
1405
+ "span",
1406
+ {
1407
+ className: "inline-block h-2.5 w-2.5 shrink-0 rounded-full",
1408
+ style: { backgroundColor: fillColor }
1409
+ }
1410
+ ),
1411
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-muted-foreground", children: [
1412
+ name,
1413
+ val !== void 0 && val !== null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-1 font-medium text-foreground", children: valueFormatter ? valueFormatter(val) : String(val) })
1414
+ ] })
1415
+ ] }, name);
1416
+ }) })
1417
+ ] });
1418
+ }
1419
+ function GaugeChart({
1420
+ value,
1421
+ min = 0,
1422
+ max = 100,
1423
+ thresholds,
1424
+ label,
1425
+ valueFormatter,
1426
+ showNeedle = true,
1427
+ className
1428
+ }) {
1429
+ const percent = Math.min(1, Math.max(0, (value - min) / (max - min)));
1430
+ const percentInt = Math.round(percent * 100);
1431
+ const activeColor = React__namespace.useMemo(() => {
1432
+ if (!thresholds || thresholds.length === 0) return "var(--chart-1)";
1433
+ for (const t of thresholds) {
1434
+ if (percentInt <= t.value) return t.color;
1435
+ }
1436
+ return thresholds[thresholds.length - 1].color;
1437
+ }, [thresholds, percentInt]);
1438
+ const displayText = valueFormatter ? valueFormatter(value, percentInt) : `${percentInt}%`;
1439
+ const cx = 100;
1440
+ const cy = 100;
1441
+ const R = 80;
1442
+ const r = 54;
1443
+ const polar = (angleDeg, radius) => {
1444
+ const rad = angleDeg * Math.PI / 180;
1445
+ return {
1446
+ x: cx + radius * Math.cos(rad),
1447
+ y: cy - radius * Math.sin(rad)
1448
+ };
1449
+ };
1450
+ const trackStart = polar(180, R);
1451
+ const trackEnd = polar(0, R);
1452
+ const trackStartI = polar(180, r);
1453
+ const trackEndI = polar(0, r);
1454
+ const trackPath = [
1455
+ `M ${trackStart.x} ${trackStart.y}`,
1456
+ `A ${R} ${R} 0 0 1 ${trackEnd.x} ${trackEnd.y}`,
1457
+ `L ${trackEndI.x} ${trackEndI.y}`,
1458
+ `A ${r} ${r} 0 0 0 ${trackStartI.x} ${trackStartI.y}`,
1459
+ "Z"
1460
+ ].join(" ");
1461
+ const valueAngle = 180 - percent * 180;
1462
+ const valueEnd = polar(valueAngle, R);
1463
+ const valueEndI = polar(valueAngle, r);
1464
+ const valuePath = percent <= 0 ? "" : percent >= 1 ? trackPath : [
1465
+ `M ${trackStart.x} ${trackStart.y}`,
1466
+ `A ${R} ${R} 0 0 1 ${valueEnd.x} ${valueEnd.y}`,
1467
+ `L ${valueEndI.x} ${valueEndI.y}`,
1468
+ `A ${r} ${r} 0 0 0 ${trackStartI.x} ${trackStartI.y}`,
1469
+ "Z"
1470
+ ].join(" ");
1471
+ const needleAngle = 180 - percent * 180;
1472
+ const needleTip = polar(needleAngle, r - 6);
1473
+ const needleBase1 = polar(needleAngle + 90, 5);
1474
+ const needleBase2 = polar(needleAngle - 90, 5);
1475
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("flex flex-col items-center gap-2", className), children: [
1476
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full max-w-[260px]", children: /* @__PURE__ */ jsxRuntime.jsxs(
1477
+ "svg",
1478
+ {
1479
+ viewBox: "0 0 200 130",
1480
+ className: "w-full",
1481
+ "aria-label": `Gauge: ${displayText}`,
1482
+ children: [
1483
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: trackPath, fill: "var(--muted)" }),
1484
+ valuePath && /* @__PURE__ */ jsxRuntime.jsx("path", { d: valuePath, fill: activeColor }),
1485
+ showNeedle && /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
1486
+ /* @__PURE__ */ jsxRuntime.jsx(
1487
+ "polygon",
1488
+ {
1489
+ points: `${needleTip.x},${needleTip.y} ${needleBase1.x},${needleBase1.y} ${needleBase2.x},${needleBase2.y}`,
1490
+ fill: "var(--foreground)",
1491
+ opacity: 0.85
1492
+ }
1493
+ ),
1494
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx, cy, r: 5, fill: "var(--foreground)" })
1495
+ ] }),
1496
+ /* @__PURE__ */ jsxRuntime.jsx(
1497
+ "text",
1498
+ {
1499
+ x: cx,
1500
+ y: cy + 18,
1501
+ textAnchor: "middle",
1502
+ dominantBaseline: "middle",
1503
+ fontSize: 22,
1504
+ fontWeight: 700,
1505
+ fill: "currentColor",
1506
+ className: "fill-foreground",
1507
+ children: displayText
1508
+ }
1509
+ ),
1510
+ label && /* @__PURE__ */ jsxRuntime.jsx(
1511
+ "text",
1512
+ {
1513
+ x: cx,
1514
+ y: cy + 36,
1515
+ textAnchor: "middle",
1516
+ dominantBaseline: "middle",
1517
+ fontSize: 10,
1518
+ fill: "currentColor",
1519
+ className: "fill-muted-foreground",
1520
+ children: label
1521
+ }
1522
+ )
1523
+ ]
1524
+ }
1525
+ ) }),
1526
+ thresholds && thresholds.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap justify-center gap-x-3 gap-y-1", children: thresholds.map((t, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
1527
+ /* @__PURE__ */ jsxRuntime.jsx(
1528
+ "span",
1529
+ {
1530
+ className: "inline-block h-2 w-2 shrink-0 rounded-full",
1531
+ style: { backgroundColor: t.color }
1532
+ }
1533
+ ),
1534
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: t.label })
1535
+ ] }, i)) })
1536
+ ] });
1537
+ }
1538
+ function AspectRatio({
1539
+ ...props
1540
+ }) {
1541
+ return /* @__PURE__ */ jsxRuntime.jsx(AspectRatioPrimitive__namespace.Root, { "data-slot": "aspect-ratio", ...props });
1542
+ }
1543
+ const ResizableContext = React__namespace.createContext(null);
1544
+ const ResizablePanelGroup = ({
1545
+ children,
1546
+ className,
1547
+ direction = "horizontal",
1548
+ id,
1549
+ autoSaveId,
1550
+ storage,
1551
+ onLayout,
1552
+ ...props
1553
+ }) => {
1554
+ const [panels, setPanels] = React__namespace.useState(/* @__PURE__ */ new Map());
1555
+ const [handles, setHandles] = React__namespace.useState(/* @__PURE__ */ new Map());
1556
+ const [sizes, setSizes] = React__namespace.useState(/* @__PURE__ */ new Map());
1557
+ const [isDragging, setIsDragging] = React__namespace.useState(false);
1558
+ const containerRef = React__namespace.useRef(null);
1559
+ const getSortedItems = React__namespace.useCallback((items) => {
1560
+ if (!containerRef.current) return [];
1561
+ return Array.from(items.values()).sort((a, b) => {
1562
+ if (!a.ref.current || !b.ref.current) return 0;
1563
+ const position = a.ref.current.compareDocumentPosition(b.ref.current);
1564
+ if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
1565
+ if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
1566
+ return 0;
1567
+ });
1568
+ }, []);
1569
+ React__namespace.useEffect(() => {
1570
+ const sortedPanels = getSortedItems(panels);
1571
+ if (sortedPanels.length === 0) return;
1572
+ const uninitialized = sortedPanels.some((p) => !sizes.has(p.id));
1573
+ if (uninitialized) {
1574
+ const newSizes = new Map(sizes);
1575
+ const remainingSpace = 100;
1576
+ const defaultSizeCount = sortedPanels.filter((p) => p.defaultSize).length;
1577
+ let usedSpace = 0;
1578
+ sortedPanels.forEach((p) => {
1579
+ if (p.defaultSize) usedSpace += p.defaultSize;
1580
+ });
1581
+ const spaceForOthers = Math.max(0, remainingSpace - usedSpace);
1582
+ const countOthers = sortedPanels.length - defaultSizeCount;
1583
+ const sizeForOthers = countOthers > 0 ? spaceForOthers / countOthers : 0;
1584
+ sortedPanels.forEach((p) => {
1585
+ if (!newSizes.has(p.id)) {
1586
+ newSizes.set(p.id, p.defaultSize ?? sizeForOthers);
1587
+ }
1588
+ });
1589
+ setSizes(newSizes);
1590
+ }
1591
+ }, [panels, sizes, getSortedItems]);
1592
+ const registerPanel = React__namespace.useCallback((data) => {
1593
+ setPanels((prev) => {
1594
+ const next = new Map(prev);
1595
+ next.set(data.id, data);
1596
+ return next;
1597
+ });
1598
+ }, []);
1599
+ const unregisterPanel = React__namespace.useCallback((id2) => {
1600
+ setPanels((prev) => {
1601
+ const next = new Map(prev);
1602
+ next.delete(id2);
1603
+ return next;
1604
+ });
1605
+ setSizes((prev) => {
1606
+ const next = new Map(prev);
1607
+ next.delete(id2);
1608
+ return next;
1609
+ });
1610
+ }, []);
1611
+ const registerHandle = React__namespace.useCallback((data) => {
1612
+ setHandles((prev) => {
1613
+ const next = new Map(prev);
1614
+ next.set(data.id, data);
1615
+ return next;
1616
+ });
1617
+ }, []);
1618
+ const unregisterHandle = React__namespace.useCallback((id2) => {
1619
+ setHandles((prev) => {
1620
+ const next = new Map(prev);
1621
+ next.delete(id2);
1622
+ return next;
1623
+ });
1624
+ }, []);
1625
+ const startDragging = React__namespace.useCallback((handleId, event) => {
1626
+ var _a, _b;
1627
+ event.preventDefault();
1628
+ setIsDragging(true);
1629
+ const sortedPanels = getSortedItems(panels);
1630
+ const sortedHandles = getSortedItems(handles);
1631
+ const handleIndex = sortedHandles.findIndex((h) => h.id === handleId);
1632
+ if (handleIndex === -1) return;
1633
+ const leftPanel = sortedPanels[handleIndex];
1634
+ const rightPanel = sortedPanels[handleIndex + 1];
1635
+ if (!leftPanel || !rightPanel) return;
1636
+ const startX = "touches" in event ? event.touches[0].clientX : event.clientX;
1637
+ const startY = "touches" in event ? event.touches[0].clientY : event.clientY;
1638
+ const startSizeLeft = sizes.get(leftPanel.id) || 0;
1639
+ const startSizeRight = sizes.get(rightPanel.id) || 0;
1640
+ const containerSize = direction === "horizontal" ? ((_a = containerRef.current) == null ? void 0 : _a.offsetWidth) || 1 : ((_b = containerRef.current) == null ? void 0 : _b.offsetHeight) || 1;
1641
+ const onMove = (e) => {
1642
+ var _a2, _b2;
1643
+ const currentX = "touches" in e ? e.touches[0].clientX : e.clientX;
1644
+ const currentY = "touches" in e ? e.touches[0].clientY : e.clientY;
1645
+ const deltaPixels = direction === "horizontal" ? currentX - startX : currentY - startY;
1646
+ const deltaPercent = deltaPixels / containerSize * 100;
1647
+ let finalLeft = startSizeLeft + deltaPercent;
1648
+ let finalRight = startSizeRight - deltaPercent;
1649
+ if (leftPanel.minSize !== void 0 && finalLeft < leftPanel.minSize) {
1650
+ const diff = leftPanel.minSize - finalLeft;
1651
+ finalLeft = leftPanel.minSize;
1652
+ finalRight -= diff;
1653
+ }
1654
+ if (rightPanel.minSize !== void 0 && finalRight < rightPanel.minSize) {
1655
+ const diff = rightPanel.minSize - finalRight;
1656
+ finalRight = rightPanel.minSize;
1657
+ finalLeft -= diff;
1658
+ }
1659
+ if (leftPanel.maxSize !== void 0 && finalLeft > leftPanel.maxSize) {
1660
+ const diff = finalLeft - leftPanel.maxSize;
1661
+ finalLeft = leftPanel.maxSize;
1662
+ finalRight += diff;
1663
+ }
1664
+ if (rightPanel.maxSize !== void 0 && finalRight > rightPanel.maxSize) {
1665
+ const diff = finalRight - rightPanel.maxSize;
1666
+ finalRight = rightPanel.maxSize;
1667
+ finalLeft -= diff;
1668
+ }
1669
+ finalLeft = Math.max(0, Math.min(100, finalLeft));
1670
+ finalRight = Math.max(0, Math.min(100, finalRight));
1671
+ setSizes((prev) => {
1672
+ const next = new Map(prev);
1673
+ next.set(leftPanel.id, finalLeft);
1674
+ next.set(rightPanel.id, finalRight);
1675
+ return next;
1676
+ });
1677
+ (_a2 = leftPanel.onResize) == null ? void 0 : _a2.call(leftPanel, finalLeft);
1678
+ (_b2 = rightPanel.onResize) == null ? void 0 : _b2.call(rightPanel, finalRight);
1679
+ };
1680
+ const onUp = () => {
1681
+ setIsDragging(false);
1682
+ window.removeEventListener("mousemove", onMove);
1683
+ window.removeEventListener("mouseup", onUp);
1684
+ window.removeEventListener("touchmove", onMove);
1685
+ window.removeEventListener("touchend", onUp);
1686
+ if (onLayout) {
1687
+ onLayout(sortedPanels.map((p) => sizes.get(p.id) || 0));
1688
+ }
1689
+ };
1690
+ window.addEventListener("mousemove", onMove);
1691
+ window.addEventListener("mouseup", onUp);
1692
+ window.addEventListener("touchmove", onMove);
1693
+ window.addEventListener("touchend", onUp);
1694
+ }, [panels, handles, sizes, direction, getSortedItems, onLayout]);
1695
+ const getPanelStyle = React__namespace.useCallback((id2) => {
1696
+ const size = sizes.get(id2);
1697
+ if (size === void 0) return { flex: "1 1 0%", overflow: "hidden" };
1698
+ return { flex: `${size} 1 0%`, overflow: "hidden" };
1699
+ }, [sizes]);
1700
+ const contextValue = React__namespace.useMemo(() => ({
1701
+ direction,
1702
+ registerPanel,
1703
+ unregisterPanel,
1704
+ registerHandle,
1705
+ unregisterHandle,
1706
+ isDragging,
1707
+ startDragging,
1708
+ getPanelStyle
1709
+ }), [direction, registerPanel, unregisterPanel, registerHandle, unregisterHandle, isDragging, startDragging, getPanelStyle]);
1710
+ return /* @__PURE__ */ jsxRuntime.jsx(ResizableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1711
+ "div",
1712
+ {
1713
+ ref: containerRef,
1714
+ "data-slot": "resizable-panel-group",
1715
+ "data-panel-group-direction": direction,
1716
+ className: button.cn(
1717
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
1718
+ className
1719
+ ),
1720
+ ...props,
1721
+ children
1722
+ }
1723
+ ) });
1724
+ };
1725
+ const ResizablePanel = ({
1726
+ className,
1727
+ defaultSize,
1728
+ minSize = 0,
1729
+ maxSize = 100,
1730
+ collapsible,
1731
+ collapsedSize,
1732
+ onCollapse,
1733
+ onExpand,
1734
+ onResize,
1735
+ order,
1736
+ tagName,
1737
+ id: propId,
1738
+ children,
1739
+ ...props
1740
+ }) => {
1741
+ const context = React__namespace.useContext(ResizableContext);
1742
+ const ref = React__namespace.useRef(null);
1743
+ const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
1744
+ const id = propId || generatedId;
1745
+ const registerPanel = context == null ? void 0 : context.registerPanel;
1746
+ const unregisterPanel = context == null ? void 0 : context.unregisterPanel;
1747
+ React__namespace.useLayoutEffect(() => {
1748
+ if (!registerPanel || !unregisterPanel) return;
1749
+ registerPanel({
1750
+ id,
1751
+ ref,
1752
+ defaultSize,
1753
+ minSize,
1754
+ maxSize,
1755
+ collapsible,
1756
+ onCollapse,
1757
+ onExpand,
1758
+ onResize
1759
+ });
1760
+ return () => unregisterPanel(id);
1761
+ }, [registerPanel, unregisterPanel, id, defaultSize, minSize, maxSize, collapsible, onCollapse, onExpand, onResize]);
1762
+ if (!context) {
1763
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("flex-1", className), ...props, children });
1764
+ }
1765
+ return /* @__PURE__ */ jsxRuntime.jsx(
1766
+ "div",
1767
+ {
1768
+ ref,
1769
+ "data-slot": "resizable-panel",
1770
+ className: button.cn("relative transition-[flex-grow] duration-0", className),
1771
+ style: context.getPanelStyle(id),
1772
+ ...props,
1773
+ children
1774
+ }
1775
+ );
1776
+ };
1777
+ const ResizableHandle = ({
1778
+ withHandle,
1779
+ className,
1780
+ id: propId,
1781
+ tagName,
1782
+ ...props
1783
+ }) => {
1784
+ const context = React__namespace.useContext(ResizableContext);
1785
+ const ref = React__namespace.useRef(null);
1786
+ const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
1787
+ const id = propId || generatedId;
1788
+ const registerHandle = context == null ? void 0 : context.registerHandle;
1789
+ const unregisterHandle = context == null ? void 0 : context.unregisterHandle;
1790
+ React__namespace.useLayoutEffect(() => {
1791
+ if (!registerHandle || !unregisterHandle) return;
1792
+ registerHandle({ id, ref });
1793
+ return () => unregisterHandle(id);
1794
+ }, [registerHandle, unregisterHandle, id]);
1795
+ const handleMouseDown = (e) => {
1796
+ if (context) {
1797
+ context.startDragging(id, e);
1798
+ }
1799
+ };
1800
+ if (!context) return null;
1801
+ return /* @__PURE__ */ jsxRuntime.jsx(
1802
+ "div",
1803
+ {
1804
+ ref,
1805
+ "data-slot": "resizable-handle",
1806
+ className: button.cn(
1807
+ "bg-border relative flex items-center justify-center focus-visible:outline-hidden",
1808
+ "touch-none select-none",
1809
+ 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",
1810
+ "after:absolute after:z-10",
1811
+ className
1812
+ ),
1813
+ onMouseDown: handleMouseDown,
1814
+ onTouchStart: handleMouseDown,
1815
+ ...props,
1816
+ 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" }) })
1817
+ }
1818
+ );
1819
+ };
1820
+ function NavigationMenu({
1821
+ className,
1822
+ children,
1823
+ viewport = true,
1824
+ ...props
1825
+ }) {
1826
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1827
+ NavigationMenuPrimitive__namespace.Root,
1828
+ {
1829
+ "data-slot": "navigation-menu",
1830
+ className: button.cn(
1831
+ "relative z-10 flex w-full flex-1 items-center justify-center",
1832
+ className
1833
+ ),
1834
+ ...props,
1835
+ children: [
1836
+ children,
1837
+ viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
1838
+ ]
1839
+ }
1840
+ );
1841
+ }
1842
+ function NavigationMenuList({
1843
+ className,
1844
+ ...props
1845
+ }) {
1846
+ return /* @__PURE__ */ jsxRuntime.jsx(
1847
+ NavigationMenuPrimitive__namespace.List,
1848
+ {
1849
+ "data-slot": "navigation-menu-list",
1850
+ className: button.cn(
1851
+ "group flex flex-1 list-none items-center justify-center gap-1",
1852
+ className
1853
+ ),
1854
+ ...props
1855
+ }
1856
+ );
1857
+ }
1858
+ function NavigationMenuItem({
1859
+ className,
1860
+ ...props
1861
+ }) {
1862
+ return /* @__PURE__ */ jsxRuntime.jsx(
1863
+ NavigationMenuPrimitive__namespace.Item,
1864
+ {
1865
+ "data-slot": "navigation-menu-item",
1866
+ className: button.cn("relative", className),
1867
+ ...props
1868
+ }
1869
+ );
1870
+ }
1871
+ const navigationMenuTriggerStyle = classVarianceAuthority.cva(
1872
+ "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"
1873
+ );
1874
+ function NavigationMenuTrigger({
1875
+ className,
1876
+ children,
1877
+ ...props
1878
+ }) {
1879
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1880
+ NavigationMenuPrimitive__namespace.Trigger,
1881
+ {
1882
+ "data-slot": "navigation-menu-trigger",
1883
+ className: button.cn(navigationMenuTriggerStyle(), "group", className),
1884
+ ...props,
1885
+ children: [
1886
+ children,
1887
+ " ",
1888
+ /* @__PURE__ */ jsxRuntime.jsx(
1889
+ lucideReact.ChevronDownIcon,
1890
+ {
1891
+ className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
1892
+ "aria-hidden": "true"
1893
+ }
1894
+ )
1895
+ ]
1896
+ }
1897
+ );
1898
+ }
1899
+ function NavigationMenuContent({
1900
+ className,
1901
+ ...props
1902
+ }) {
1903
+ return /* @__PURE__ */ jsxRuntime.jsx(
1904
+ NavigationMenuPrimitive__namespace.Content,
1905
+ {
1906
+ "data-slot": "navigation-menu-content",
1907
+ className: button.cn(
1908
+ "left-0 top-0 w-full md:w-auto",
1909
+ className
1910
+ ),
1911
+ ...props
1912
+ }
1913
+ );
1914
+ }
1915
+ function NavigationMenuViewport({
1916
+ className,
1917
+ ...props
1918
+ }) {
1919
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("absolute left-0 top-full flex justify-center w-full"), children: /* @__PURE__ */ jsxRuntime.jsx(
1920
+ NavigationMenuPrimitive__namespace.Viewport,
1921
+ {
1922
+ "data-slot": "navigation-menu-viewport",
1923
+ className: button.cn(
1924
+ "origin-top-center relative mt-1.5 overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-lg",
1925
+ className
1926
+ ),
1927
+ ...props
1928
+ }
1929
+ ) });
1930
+ }
1931
+ function NavigationMenuLink({
1932
+ className,
1933
+ ...props
1934
+ }) {
1935
+ return /* @__PURE__ */ jsxRuntime.jsx(
1936
+ NavigationMenuPrimitive__namespace.Link,
1937
+ {
1938
+ "data-slot": "navigation-menu-link",
1939
+ className: button.cn(
1940
+ "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",
1941
+ className
1942
+ ),
1943
+ ...props
1944
+ }
1945
+ );
1946
+ }
1947
+ function NavigationMenuIndicator({
1948
+ className,
1949
+ ...props
1950
+ }) {
1951
+ return /* @__PURE__ */ jsxRuntime.jsx(
1952
+ NavigationMenuPrimitive__namespace.Indicator,
1953
+ {
1954
+ "data-slot": "navigation-menu-indicator",
1955
+ className: button.cn(
1956
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
1957
+ className
1958
+ ),
1959
+ ...props,
1960
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
1961
+ }
1962
+ );
1963
+ }
1964
+ function Pagination({ className, ...props }) {
1965
+ return /* @__PURE__ */ jsxRuntime.jsx(
1966
+ "nav",
1967
+ {
1968
+ role: "navigation",
1969
+ "aria-label": "pagination",
1970
+ "data-slot": "pagination",
1971
+ className: button.cn("mx-auto flex w-full justify-center", className),
1972
+ ...props
1973
+ }
1974
+ );
1975
+ }
1976
+ function PaginationContent({
1977
+ className,
1978
+ ...props
1979
+ }) {
1980
+ return /* @__PURE__ */ jsxRuntime.jsx(
1981
+ "ul",
1982
+ {
1983
+ "data-slot": "pagination-content",
1984
+ className: button.cn("flex flex-row items-center gap-1", className),
1985
+ ...props
1986
+ }
1987
+ );
1988
+ }
1989
+ function PaginationItem({ ...props }) {
1990
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { "data-slot": "pagination-item", ...props });
1991
+ }
1992
+ function PaginationLink({
1993
+ className,
1994
+ isActive,
1995
+ disabled,
1996
+ size = "icon",
1997
+ href,
1998
+ onClick,
1999
+ ...props
2000
+ }) {
2001
+ return /* @__PURE__ */ jsxRuntime.jsx(
2002
+ "a",
2003
+ {
2004
+ "aria-current": isActive ? "page" : void 0,
2005
+ "aria-disabled": disabled ? "true" : void 0,
2006
+ tabIndex: disabled ? -1 : void 0,
2007
+ "data-slot": "pagination-link",
2008
+ "data-active": isActive,
2009
+ href: disabled ? void 0 : href ?? "#",
2010
+ onClick: disabled ? (e) => e.preventDefault() : onClick,
2011
+ className: button.cn(
2012
+ button.buttonVariants({
2013
+ variant: isActive ? "outline" : "ghost",
2014
+ size
2015
+ }),
2016
+ disabled && "pointer-events-none opacity-50",
2017
+ className
2018
+ ),
2019
+ ...props
2020
+ }
2021
+ );
2022
+ }
2023
+ function PaginationPrevious({
2024
+ className,
2025
+ disabled,
2026
+ ...props
2027
+ }) {
2028
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2029
+ PaginationLink,
2030
+ {
2031
+ "aria-label": "Go to previous page",
2032
+ size: "default",
2033
+ disabled,
2034
+ className: button.cn("gap-1 px-2.5 sm:pl-2.5", className),
2035
+ ...props,
2036
+ children: [
2037
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, {}),
2038
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Previous" })
2039
+ ]
2040
+ }
2041
+ );
2042
+ }
2043
+ function PaginationNext({
2044
+ className,
2045
+ disabled,
2046
+ ...props
2047
+ }) {
2048
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2049
+ PaginationLink,
2050
+ {
2051
+ "aria-label": "Go to next page",
2052
+ size: "default",
2053
+ disabled,
2054
+ className: button.cn("gap-1 px-2.5 sm:pr-2.5", className),
2055
+ ...props,
2056
+ children: [
2057
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Next" }),
2058
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, {})
2059
+ ]
2060
+ }
2061
+ );
2062
+ }
2063
+ function PaginationEllipsis({
2064
+ className,
2065
+ ...props
2066
+ }) {
2067
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2068
+ "span",
2069
+ {
2070
+ "aria-hidden": true,
2071
+ "data-slot": "pagination-ellipsis",
2072
+ className: button.cn("flex size-9 items-center justify-center", className),
2073
+ ...props,
2074
+ children: [
2075
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontalIcon, { className: "size-4" }),
2076
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
2077
+ ]
2078
+ }
2079
+ );
2080
+ }
2081
+ const toggleVariants = classVarianceAuthority.cva(
2082
+ "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",
2083
+ {
2084
+ variants: {
2085
+ variant: {
2086
+ default: "bg-transparent",
2087
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
2088
+ },
2089
+ size: {
2090
+ default: "h-9 px-2 min-w-9",
2091
+ sm: "h-8 px-1.5 min-w-8",
2092
+ lg: "h-10 px-2.5 min-w-10"
2093
+ }
2094
+ },
2095
+ defaultVariants: {
2096
+ variant: "default",
2097
+ size: "default"
2098
+ }
2099
+ }
2100
+ );
2101
+ const Toggle = React__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2102
+ TogglePrimitive__namespace.Root,
2103
+ {
2104
+ ref,
2105
+ "data-slot": "toggle",
2106
+ className: button.cn(toggleVariants({ variant, size, className })),
2107
+ ...props
2108
+ }
2109
+ ));
2110
+ Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
2111
+ const ToggleGroupContext = React__namespace.createContext({
2112
+ size: "default",
2113
+ variant: "default"
2114
+ });
2115
+ const ToggleGroup = React__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2116
+ ToggleGroupPrimitive__namespace.Root,
2117
+ {
2118
+ ref,
2119
+ "data-slot": "toggle-group",
2120
+ "data-variant": variant,
2121
+ "data-size": size,
2122
+ className: button.cn(
2123
+ "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
2124
+ className
2125
+ ),
2126
+ ...props,
2127
+ children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
2128
+ }
2129
+ ));
2130
+ ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
2131
+ const ToggleGroupItem = React__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
2132
+ const context = React__namespace.useContext(ToggleGroupContext);
2133
+ return /* @__PURE__ */ jsxRuntime.jsx(
2134
+ ToggleGroupPrimitive__namespace.Item,
2135
+ {
2136
+ ref,
2137
+ "data-slot": "toggle-group-item",
2138
+ "data-variant": context.variant || variant,
2139
+ "data-size": context.size || size,
2140
+ className: button.cn(
2141
+ toggleVariants({
2142
+ variant: context.variant || variant,
2143
+ size: context.size || size
2144
+ }),
2145
+ "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",
2146
+ className
2147
+ ),
2148
+ ...props,
2149
+ children
2150
+ }
2151
+ );
2152
+ });
2153
+ ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
2154
+ function InputOTP({
2155
+ className,
2156
+ containerClassName,
2157
+ ...props
2158
+ }) {
2159
+ return /* @__PURE__ */ jsxRuntime.jsx(
2160
+ inputOtp.OTPInput,
2161
+ {
2162
+ "data-slot": "input-otp",
2163
+ containerClassName: button.cn(
2164
+ "flex items-center gap-2 has-disabled:opacity-50",
2165
+ containerClassName
2166
+ ),
2167
+ className: button.cn("disabled:cursor-not-allowed", className),
2168
+ ...props
2169
+ }
2170
+ );
2171
+ }
2172
+ function InputOTPGroup({ className, ...props }) {
2173
+ return /* @__PURE__ */ jsxRuntime.jsx(
2174
+ "div",
2175
+ {
2176
+ "data-slot": "input-otp-group",
2177
+ className: button.cn("flex items-center gap-1", className),
2178
+ ...props
2179
+ }
2180
+ );
2181
+ }
2182
+ function InputOTPSlot({
2183
+ index,
2184
+ className,
2185
+ size = "md",
2186
+ ...props
2187
+ }) {
2188
+ const inputOTPContext = React__namespace.useContext(inputOtp.OTPInputContext);
2189
+ const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
2190
+ const sizeClasses = {
2191
+ sm: "h-8 w-8 text-sm",
2192
+ md: "h-10 w-10 text-base",
2193
+ lg: "h-12 w-12 text-lg"
2194
+ };
2195
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2196
+ "div",
2197
+ {
2198
+ "data-slot": "input-otp-slot",
2199
+ "data-active": isActive,
2200
+ className: button.cn(
2201
+ "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",
2202
+ sizeClasses[size],
2203
+ className
2204
+ ),
2205
+ ...props,
2206
+ children: [
2207
+ char,
2208
+ 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" }) })
2209
+ ]
2210
+ }
2211
+ );
2212
+ }
2213
+ function InputOTPSeparator({ ...props }) {
2214
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MinusIcon, {}) });
2215
+ }
2216
+ const Form = reactHookForm.FormProvider;
2217
+ const FormFieldContext = React__namespace.createContext(
2218
+ {}
2219
+ );
2220
+ const FormField = ({
2221
+ ...props
2222
+ }) => {
2223
+ return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
2224
+ };
2225
+ const useFormField = () => {
2226
+ const fieldContext = React__namespace.useContext(FormFieldContext);
2227
+ const itemContext = React__namespace.useContext(FormItemContext);
2228
+ const { getFieldState } = reactHookForm.useFormContext();
2229
+ const formState = reactHookForm.useFormState({ name: fieldContext.name });
2230
+ const fieldState = getFieldState(
2231
+ fieldContext.name,
2232
+ formState
2233
+ );
2234
+ if (!fieldContext) {
2235
+ throw new Error(
2236
+ "useFormField should be used within <FormField>"
2237
+ );
2238
+ }
2239
+ const { id } = itemContext;
2240
+ return {
2241
+ id,
2242
+ name: fieldContext.name,
2243
+ formItemId: `${id}-form-item`,
2244
+ formDescriptionId: `${id}-form-item-description`,
2245
+ formMessageId: `${id}-form-item-message`,
2246
+ ...fieldState
2247
+ };
2248
+ };
2249
+ const FormItemContext = React__namespace.createContext(
2250
+ {}
2251
+ );
2252
+ function FormItem({
2253
+ className,
2254
+ ...props
2255
+ }) {
2256
+ const id = React__namespace.useId();
2257
+ return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
2258
+ "div",
2259
+ {
2260
+ "data-slot": "form-item",
2261
+ className: button.cn("grid gap-2", className),
2262
+ ...props
2263
+ }
2264
+ ) });
2265
+ }
2266
+ function FormLabel({
2267
+ className,
2268
+ ...props
2269
+ }) {
2270
+ const { error, formItemId } = useFormField();
2271
+ return /* @__PURE__ */ jsxRuntime.jsx(
2272
+ alertDialog.Label,
2273
+ {
2274
+ "data-slot": "form-label",
2275
+ "data-error": !!error,
2276
+ className: button.cn(
2277
+ "data-[error=true]:text-destructive",
2278
+ className
2279
+ ),
2280
+ htmlFor: formItemId,
2281
+ ...props
2282
+ }
2283
+ );
2284
+ }
2285
+ function FormControl({
2286
+ ...props
2287
+ }) {
2288
+ const {
2289
+ error,
2290
+ formItemId,
2291
+ formDescriptionId,
2292
+ formMessageId
2293
+ } = useFormField();
2294
+ return /* @__PURE__ */ jsxRuntime.jsx(
2295
+ reactSlot.Slot,
2296
+ {
2297
+ "data-slot": "form-control",
2298
+ id: formItemId,
2299
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
2300
+ "aria-invalid": !!error,
2301
+ ...props
2302
+ }
2303
+ );
2304
+ }
2305
+ function FormDescription({
2306
+ className,
2307
+ ...props
2308
+ }) {
2309
+ const { formDescriptionId } = useFormField();
2310
+ return /* @__PURE__ */ jsxRuntime.jsx(
2311
+ "p",
2312
+ {
2313
+ "data-slot": "form-description",
2314
+ id: formDescriptionId,
2315
+ className: button.cn("text-muted-foreground text-sm", className),
2316
+ ...props
2317
+ }
2318
+ );
2319
+ }
2320
+ function FormMessage({
2321
+ className,
2322
+ ...props
2323
+ }) {
2324
+ const { error, formMessageId } = useFormField();
2325
+ const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
2326
+ if (!body) {
2327
+ return null;
2328
+ }
2329
+ return /* @__PURE__ */ jsxRuntime.jsx(
2330
+ "p",
2331
+ {
2332
+ "data-slot": "form-message",
2333
+ id: formMessageId,
2334
+ className: button.cn("text-destructive text-sm", className),
2335
+ ...props,
2336
+ children: body
2337
+ }
2338
+ );
2339
+ }
2340
+ function Calendar({
2341
+ className,
2342
+ classNames,
2343
+ showOutsideDays = true,
2344
+ captionLayout = "label",
2345
+ buttonVariant = "ghost",
2346
+ formatters,
2347
+ components,
2348
+ ...props
2349
+ }) {
2350
+ const defaultClassNames = reactDayPicker.getDefaultClassNames();
2351
+ const isDropdownCaption = captionLayout.startsWith("dropdown");
2352
+ return /* @__PURE__ */ jsxRuntime.jsx(
2353
+ reactDayPicker.DayPicker,
2354
+ {
2355
+ showOutsideDays,
2356
+ className: button.cn(
2357
+ "bg-background group/calendar p-4 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent font-sans",
2358
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
2359
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
2360
+ className
2361
+ ),
2362
+ captionLayout,
2363
+ formatters,
2364
+ classNames: {
2365
+ root: button.cn("w-fit", defaultClassNames.root),
2366
+ months: button.cn(
2367
+ "flex gap-6 flex-col md:flex-row relative",
2368
+ defaultClassNames.months
2369
+ ),
2370
+ month: button.cn("flex flex-col w-full gap-5", defaultClassNames.month),
2371
+ nav: button.cn(
2372
+ "flex items-center gap-2 w-full absolute top-0 inset-x-0 justify-between",
2373
+ defaultClassNames.nav
2374
+ ),
2375
+ button_previous: button.cn(
2376
+ button.buttonVariants({ variant: buttonVariant }),
2377
+ "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
2378
+ defaultClassNames.button_previous
2379
+ ),
2380
+ button_next: button.cn(
2381
+ button.buttonVariants({ variant: buttonVariant }),
2382
+ "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
2383
+ defaultClassNames.button_next
2384
+ ),
2385
+ month_caption: button.cn(
2386
+ "flex items-center justify-center w-full",
2387
+ isDropdownCaption ? "h-auto px-0" : "h-(--cell-size) px-(--cell-size)",
2388
+ defaultClassNames.month_caption
2389
+ ),
2390
+ dropdowns: button.cn(
2391
+ "w-full flex items-center justify-center gap-2",
2392
+ isDropdownCaption ? "h-auto" : "h-(--cell-size)",
2393
+ defaultClassNames.dropdowns
2394
+ ),
2395
+ dropdown_root: button.cn(
2396
+ 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",
2397
+ defaultClassNames.dropdown_root
2398
+ ),
2399
+ dropdown: button.cn(
2400
+ isDropdownCaption ? "absolute inset-0 cursor-pointer opacity-0" : "absolute bg-popover inset-0 opacity-0 cursor-pointer",
2401
+ defaultClassNames.dropdown
2402
+ ),
2403
+ caption_label: button.cn(
2404
+ "select-none font-[family-name:var(--font-family,Roboto)] tracking-tight transition-all duration-200",
2405
+ 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",
2406
+ defaultClassNames.caption_label
2407
+ ),
2408
+ table: "w-full border-collapse mt-1",
2409
+ weekdays: button.cn("flex gap-1", defaultClassNames.weekdays),
2410
+ weekday: button.cn(
2411
+ "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",
2412
+ defaultClassNames.weekday
2413
+ ),
2414
+ week: button.cn("flex w-full gap-1", defaultClassNames.week),
2415
+ week_number_header: button.cn(
2416
+ "select-none w-(--cell-size)",
2417
+ defaultClassNames.week_number_header
2418
+ ),
2419
+ week_number: button.cn(
2420
+ "select-none text-muted-foreground text-[length:var(--calendar-weekday-size)]",
2421
+ defaultClassNames.week_number
2422
+ ),
2423
+ day: button.cn(
2424
+ "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",
2425
+ props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
2426
+ defaultClassNames.day
2427
+ ),
2428
+ range_start: button.cn(
2429
+ "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",
2430
+ defaultClassNames.range_start
2431
+ ),
2432
+ range_middle: button.cn(
2433
+ "rounded-none bg-accent/30",
2434
+ defaultClassNames.range_middle
2435
+ ),
2436
+ range_end: button.cn(
2437
+ "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",
2438
+ defaultClassNames.range_end
2439
+ ),
2440
+ today: button.cn(
2441
+ "bg-accent/60 text-accent-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none font-[number:var(--font-weight-semibold)]",
2442
+ defaultClassNames.today
2443
+ ),
2444
+ outside: button.cn(
2445
+ "text-muted-foreground aria-selected:text-muted-foreground",
2446
+ defaultClassNames.outside
2447
+ ),
2448
+ disabled: button.cn(
2449
+ "text-muted-foreground/30 opacity-40",
2450
+ defaultClassNames.disabled
2451
+ ),
2452
+ hidden: button.cn("invisible", defaultClassNames.hidden),
2453
+ ...classNames
2454
+ },
2455
+ components: {
2456
+ Root: ({ className: className2, rootRef, ...props2 }) => {
2457
+ return /* @__PURE__ */ jsxRuntime.jsx(
2458
+ "div",
2459
+ {
2460
+ "data-slot": "calendar",
2461
+ ref: rootRef,
2462
+ className: button.cn(className2),
2463
+ ...props2
2464
+ }
2465
+ );
2466
+ },
2467
+ Chevron: ({ className: className2, orientation, ...props2 }) => {
2468
+ if (orientation === "left") {
2469
+ return /* @__PURE__ */ jsxRuntime.jsx(
2470
+ lucideReact.ChevronLeft,
2471
+ {
2472
+ className: button.cn("size-5 transition-transform group-hover:scale-110", className2),
2473
+ ...props2
2474
+ }
2475
+ );
2476
+ }
2477
+ if (orientation === "right") {
2478
+ return /* @__PURE__ */ jsxRuntime.jsx(
2479
+ lucideReact.ChevronRight,
2480
+ {
2481
+ className: button.cn("size-5 transition-transform group-hover:scale-110", className2),
2482
+ ...props2
2483
+ }
2484
+ );
2485
+ }
2486
+ return /* @__PURE__ */ jsxRuntime.jsx(
2487
+ lucideReact.ChevronDown,
2488
+ {
2489
+ className: button.cn("size-4", className2),
2490
+ ...props2
2491
+ }
2492
+ );
2493
+ },
2494
+ DayButton: CalendarDayButton,
2495
+ WeekNumber: ({ children, ...props2 }) => {
2496
+ 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 }) });
2497
+ },
2498
+ ...components
2499
+ },
2500
+ ...props
2501
+ }
2502
+ );
2503
+ }
2504
+ function CalendarDayButton({
2505
+ className,
2506
+ day,
2507
+ modifiers,
2508
+ ...props
2509
+ }) {
2510
+ const defaultClassNames = reactDayPicker.getDefaultClassNames();
2511
+ const ref = React__namespace.useRef(null);
2512
+ React__namespace.useEffect(() => {
2513
+ var _a;
2514
+ if (modifiers.focused) (_a = ref.current) == null ? void 0 : _a.focus();
2515
+ }, [modifiers.focused]);
2516
+ return /* @__PURE__ */ jsxRuntime.jsx(
2517
+ button.Button,
2518
+ {
2519
+ ref,
2520
+ variant: "ghost",
2521
+ size: "icon",
2522
+ "data-day": day.date.toLocaleDateString(),
2523
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
2524
+ "data-range-start": modifiers.range_start,
2525
+ "data-range-end": modifiers.range_end,
2526
+ "data-range-middle": modifiers.range_middle,
2527
+ className: button.cn(
2528
+ "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",
2529
+ "text-[length:var(--calendar-day-size)] font-[number:var(--font-weight-regular)]",
2530
+ "hover:bg-accent/70 hover:text-accent-foreground hover:scale-105",
2531
+ "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",
2532
+ "data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-foreground",
2533
+ "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",
2534
+ "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",
2535
+ "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",
2536
+ "data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius)",
2537
+ "data-[range-middle=true]:rounded-none",
2538
+ "data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius)",
2539
+ "[&>span]:opacity-80",
2540
+ defaultClassNames.day,
2541
+ className
2542
+ ),
2543
+ ...props,
2544
+ children: day.date.getDate()
2545
+ }
2546
+ );
2547
+ }
2548
+ function Sheet({ ...props }) {
2549
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
2550
+ }
2551
+ function SheetTrigger({
2552
+ ...props
2553
+ }) {
2554
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
2555
+ }
2556
+ function SheetClose({
2557
+ ...props
2558
+ }) {
2559
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "sheet-close", ...props });
2560
+ }
2561
+ function SheetPortal({
2562
+ ...props
2563
+ }) {
2564
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
2565
+ }
2566
+ const SheetOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2567
+ DialogPrimitive__namespace.Overlay,
2568
+ {
2569
+ className: button.cn(
2570
+ "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",
2571
+ className
2572
+ ),
2573
+ ...props,
2574
+ ref
2575
+ }
2576
+ ));
2577
+ SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
2578
+ function SheetContent({
2579
+ className,
2580
+ children,
2581
+ side = "right",
2582
+ ...props
2583
+ }) {
2584
+ return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
2585
+ /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
2586
+ /* @__PURE__ */ jsxRuntime.jsxs(
2587
+ DialogPrimitive__namespace.Content,
2588
+ {
2589
+ "data-slot": "sheet-content",
2590
+ className: button.cn(
2591
+ "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",
2592
+ 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",
2593
+ 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",
2594
+ 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",
2595
+ 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",
2596
+ className
2597
+ ),
2598
+ ...props,
2599
+ children: [
2600
+ children,
2601
+ /* @__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: [
2602
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
2603
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
2604
+ ] })
2605
+ ]
2606
+ }
2607
+ )
2608
+ ] });
2609
+ }
2610
+ function SheetHeader({ className, ...props }) {
2611
+ return /* @__PURE__ */ jsxRuntime.jsx(
2612
+ "div",
2613
+ {
2614
+ "data-slot": "sheet-header",
2615
+ className: button.cn("flex flex-col gap-1.5 px-6 pt-6", className),
2616
+ ...props
2617
+ }
2618
+ );
2619
+ }
2620
+ function SheetBody({ className, ...props }) {
2621
+ return /* @__PURE__ */ jsxRuntime.jsx(
2622
+ "div",
2623
+ {
2624
+ "data-slot": "sheet-body",
2625
+ className: button.cn("flex-1 overflow-auto px-6", className),
2626
+ ...props
2627
+ }
2628
+ );
2629
+ }
2630
+ function SheetFooter({ className, ...props }) {
2631
+ return /* @__PURE__ */ jsxRuntime.jsx(
2632
+ "div",
2633
+ {
2634
+ "data-slot": "sheet-footer",
2635
+ className: button.cn("mt-auto flex flex-col gap-2 px-6 pb-6", className),
2636
+ ...props
2637
+ }
2638
+ );
2639
+ }
2640
+ function SheetTitle({
2641
+ className,
2642
+ ...props
2643
+ }) {
2644
+ return /* @__PURE__ */ jsxRuntime.jsx(
2645
+ DialogPrimitive__namespace.Title,
2646
+ {
2647
+ "data-slot": "sheet-title",
2648
+ className: button.cn("text-foreground font-semibold", className),
2649
+ ...props
2650
+ }
2651
+ );
2652
+ }
2653
+ function SheetDescription({
2654
+ className,
2655
+ ...props
2656
+ }) {
2657
+ return /* @__PURE__ */ jsxRuntime.jsx(
2658
+ DialogPrimitive__namespace.Description,
2659
+ {
2660
+ "data-slot": "sheet-description",
2661
+ className: button.cn("text-muted-foreground text-sm", className),
2662
+ ...props
2663
+ }
2664
+ );
2665
+ }
2666
+ function Drawer({
2667
+ ...props
2668
+ }) {
2669
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
2670
+ }
2671
+ function DrawerTrigger({
2672
+ ...props
2673
+ }) {
2674
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
2675
+ }
2676
+ function DrawerPortal({
2677
+ ...props
2678
+ }) {
2679
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
2680
+ }
2681
+ function DrawerClose({
2682
+ ...props
2683
+ }) {
2684
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
2685
+ }
2686
+ const DrawerOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
2687
+ return /* @__PURE__ */ jsxRuntime.jsx(
2688
+ vaul.Drawer.Overlay,
2689
+ {
2690
+ ref,
2691
+ "data-slot": "drawer-overlay",
2692
+ className: button.cn(
2693
+ "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",
2694
+ className
2695
+ ),
2696
+ ...props
2697
+ }
2698
+ );
2699
+ });
2700
+ DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
2701
+ function DrawerContent({
2702
+ className,
2703
+ children,
2704
+ ...props
2705
+ }) {
2706
+ return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
2707
+ /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
2708
+ /* @__PURE__ */ jsxRuntime.jsxs(
2709
+ vaul.Drawer.Content,
2710
+ {
2711
+ "data-slot": "drawer-content",
2712
+ className: button.cn(
2713
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
2714
+ "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",
2715
+ "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",
2716
+ "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",
2717
+ "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",
2718
+ className
2719
+ ),
2720
+ ...props,
2721
+ children: [
2722
+ /* @__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" }),
2723
+ children
2724
+ ]
2725
+ }
2726
+ )
2727
+ ] });
2728
+ }
2729
+ function DrawerHeader({ className, ...props }) {
2730
+ return /* @__PURE__ */ jsxRuntime.jsx(
2731
+ "div",
2732
+ {
2733
+ "data-slot": "drawer-header",
2734
+ className: button.cn("flex flex-col gap-1.5 p-4", className),
2735
+ ...props
2736
+ }
2737
+ );
2738
+ }
2739
+ function DrawerFooter({ className, ...props }) {
2740
+ return /* @__PURE__ */ jsxRuntime.jsx(
2741
+ "div",
2742
+ {
2743
+ "data-slot": "drawer-footer",
2744
+ className: button.cn("mt-auto flex flex-col gap-2 p-4", className),
2745
+ ...props
2746
+ }
2747
+ );
2748
+ }
2749
+ function DrawerTitle({
2750
+ className,
2751
+ ...props
2752
+ }) {
2753
+ return /* @__PURE__ */ jsxRuntime.jsx(
2754
+ vaul.Drawer.Title,
2755
+ {
2756
+ "data-slot": "drawer-title",
2757
+ className: button.cn("text-foreground font-semibold", className),
2758
+ ...props
2759
+ }
2760
+ );
2761
+ }
2762
+ function DrawerDescription({
2763
+ className,
2764
+ ...props
2765
+ }) {
2766
+ return /* @__PURE__ */ jsxRuntime.jsx(
2767
+ vaul.Drawer.Description,
2768
+ {
2769
+ "data-slot": "drawer-description",
2770
+ className: button.cn("text-muted-foreground text-sm", className),
2771
+ ...props
2772
+ }
2773
+ );
2774
+ }
2775
+ function DrawerHandle({ className, ...props }) {
2776
+ return /* @__PURE__ */ jsxRuntime.jsx(
2777
+ "div",
2778
+ {
2779
+ "data-slot": "drawer-handle",
2780
+ className: button.cn("bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full", className),
2781
+ ...props
2782
+ }
2783
+ );
2784
+ }
2785
+ function HoverCard({
2786
+ ...props
2787
+ }) {
2788
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Root, { "data-slot": "hover-card", ...props });
2789
+ }
2790
+ function HoverCardTrigger({
2791
+ ...props
2792
+ }) {
2793
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Trigger, { "data-slot": "hover-card-trigger", ...props });
2794
+ }
2795
+ function HoverCardContent({
2796
+ className,
2797
+ align = "center",
2798
+ sideOffset = 4,
2799
+ ...props
2800
+ }) {
2801
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
2802
+ HoverCardPrimitive__namespace.Content,
2803
+ {
2804
+ "data-slot": "hover-card-content",
2805
+ align,
2806
+ sideOffset,
2807
+ className: button.cn(
2808
+ "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",
2809
+ className
2810
+ ),
2811
+ ...props
2812
+ }
2813
+ ) });
2814
+ }
2815
+ function ContextMenu({
2816
+ ...props
2817
+ }) {
2818
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Root, { "data-slot": "context-menu", ...props });
2819
+ }
2820
+ function ContextMenuTrigger({
2821
+ ...props
2822
+ }) {
2823
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Trigger, { "data-slot": "context-menu-trigger", ...props });
2824
+ }
2825
+ function ContextMenuGroup({
2826
+ ...props
2827
+ }) {
2828
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Group, { "data-slot": "context-menu-group", ...props });
2829
+ }
2830
+ function ContextMenuPortal({
2831
+ ...props
2832
+ }) {
2833
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { "data-slot": "context-menu-portal", ...props });
2834
+ }
2835
+ function ContextMenuSub({
2836
+ ...props
2837
+ }) {
2838
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Sub, { "data-slot": "context-menu-sub", ...props });
2839
+ }
2840
+ function ContextMenuRadioGroup({
2841
+ ...props
2842
+ }) {
2843
+ return /* @__PURE__ */ jsxRuntime.jsx(
2844
+ ContextMenuPrimitive__namespace.RadioGroup,
2845
+ {
2846
+ "data-slot": "context-menu-radio-group",
2847
+ ...props
2848
+ }
2849
+ );
2850
+ }
2851
+ function ContextMenuSubTrigger({
2852
+ className,
2853
+ inset,
2854
+ children,
2855
+ ...props
2856
+ }) {
2857
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2858
+ ContextMenuPrimitive__namespace.SubTrigger,
2859
+ {
2860
+ "data-slot": "context-menu-sub-trigger",
2861
+ "data-inset": inset,
2862
+ className: button.cn(
2863
+ "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",
2864
+ className
2865
+ ),
2866
+ ...props,
2867
+ children: [
2868
+ children,
2869
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto" })
2870
+ ]
2871
+ }
2872
+ );
2873
+ }
2874
+ function ContextMenuSubContent({
2875
+ className,
2876
+ ...props
2877
+ }) {
2878
+ return /* @__PURE__ */ jsxRuntime.jsx(
2879
+ ContextMenuPrimitive__namespace.SubContent,
2880
+ {
2881
+ "data-slot": "context-menu-sub-content",
2882
+ className: button.cn(
2883
+ "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",
2884
+ className
2885
+ ),
2886
+ ...props
2887
+ }
2888
+ );
2889
+ }
2890
+ function ContextMenuContent({
2891
+ className,
2892
+ ...props
2893
+ }) {
2894
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2895
+ ContextMenuPrimitive__namespace.Content,
2896
+ {
2897
+ "data-slot": "context-menu-content",
2898
+ className: button.cn(
2899
+ "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",
2900
+ className
2901
+ ),
2902
+ ...props
2903
+ }
2904
+ ) });
2905
+ }
2906
+ function ContextMenuItem({
2907
+ className,
2908
+ inset,
2909
+ variant = "default",
2910
+ ...props
2911
+ }) {
2912
+ return /* @__PURE__ */ jsxRuntime.jsx(
2913
+ ContextMenuPrimitive__namespace.Item,
2914
+ {
2915
+ "data-slot": "context-menu-item",
2916
+ "data-inset": inset,
2917
+ "data-variant": variant,
2918
+ className: button.cn(
2919
+ "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",
2920
+ className
2921
+ ),
2922
+ ...props
2923
+ }
2924
+ );
2925
+ }
2926
+ function ContextMenuCheckboxItem({
2927
+ className,
2928
+ children,
2929
+ checked,
2930
+ ...props
2931
+ }) {
2932
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2933
+ ContextMenuPrimitive__namespace.CheckboxItem,
2934
+ {
2935
+ "data-slot": "context-menu-checkbox-item",
2936
+ className: button.cn(
2937
+ "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",
2938
+ className
2939
+ ),
2940
+ checked,
2941
+ ...props,
2942
+ children: [
2943
+ /* @__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" }) }) }),
2944
+ children
2945
+ ]
2946
+ }
2947
+ );
2948
+ }
2949
+ function ContextMenuRadioItem({
2950
+ className,
2951
+ children,
2952
+ ...props
2953
+ }) {
2954
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2955
+ ContextMenuPrimitive__namespace.RadioItem,
2956
+ {
2957
+ "data-slot": "context-menu-radio-item",
2958
+ className: button.cn(
2959
+ "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",
2960
+ className
2961
+ ),
2962
+ ...props,
2963
+ children: [
2964
+ /* @__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" }) }) }),
2965
+ children
2966
+ ]
2967
+ }
2968
+ );
2969
+ }
2970
+ function ContextMenuLabel({
2971
+ className,
2972
+ inset,
2973
+ ...props
2974
+ }) {
2975
+ return /* @__PURE__ */ jsxRuntime.jsx(
2976
+ ContextMenuPrimitive__namespace.Label,
2977
+ {
2978
+ "data-slot": "context-menu-label",
2979
+ "data-inset": inset,
2980
+ className: button.cn(
2981
+ "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2982
+ className
2983
+ ),
2984
+ ...props
2985
+ }
2986
+ );
2987
+ }
2988
+ function ContextMenuSeparator({
2989
+ className,
2990
+ ...props
2991
+ }) {
2992
+ return /* @__PURE__ */ jsxRuntime.jsx(
2993
+ ContextMenuPrimitive__namespace.Separator,
2994
+ {
2995
+ "data-slot": "context-menu-separator",
2996
+ className: button.cn("bg-border -mx-1 my-1 h-px", className),
2997
+ ...props
2998
+ }
2999
+ );
3000
+ }
3001
+ function ContextMenuShortcut({
3002
+ className,
3003
+ ...props
3004
+ }) {
3005
+ return /* @__PURE__ */ jsxRuntime.jsx(
3006
+ "span",
3007
+ {
3008
+ "data-slot": "context-menu-shortcut",
3009
+ className: button.cn(
3010
+ "text-muted-foreground ml-auto text-xs tracking-widest",
3011
+ className
3012
+ ),
3013
+ ...props
3014
+ }
3015
+ );
3016
+ }
3017
+ function Menubar({
3018
+ className,
3019
+ ...props
3020
+ }) {
3021
+ return /* @__PURE__ */ jsxRuntime.jsx(
3022
+ MenubarPrimitive__namespace.Root,
3023
+ {
3024
+ "data-slot": "menubar",
3025
+ className: button.cn(
3026
+ "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
3027
+ className
3028
+ ),
3029
+ ...props
3030
+ }
3031
+ );
3032
+ }
3033
+ function MenubarMenu({
3034
+ ...props
3035
+ }) {
3036
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { "data-slot": "menubar-menu", ...props });
3037
+ }
3038
+ function MenubarGroup({
3039
+ ...props
3040
+ }) {
3041
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { "data-slot": "menubar-group", ...props });
3042
+ }
3043
+ function MenubarPortal({
3044
+ ...props
3045
+ }) {
3046
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { "data-slot": "menubar-portal", ...props });
3047
+ }
3048
+ function MenubarRadioGroup({
3049
+ ...props
3050
+ }) {
3051
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
3052
+ }
3053
+ function MenubarTrigger({
3054
+ className,
3055
+ ...props
3056
+ }) {
3057
+ return /* @__PURE__ */ jsxRuntime.jsx(
3058
+ MenubarPrimitive__namespace.Trigger,
3059
+ {
3060
+ "data-slot": "menubar-trigger",
3061
+ className: button.cn(
3062
+ "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",
3063
+ className
3064
+ ),
3065
+ ...props
3066
+ }
3067
+ );
3068
+ }
3069
+ function MenubarContent({
3070
+ className,
3071
+ align = "start",
3072
+ alignOffset = -4,
3073
+ sideOffset = 8,
3074
+ ...props
3075
+ }) {
3076
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
3077
+ MenubarPrimitive__namespace.Content,
3078
+ {
3079
+ "data-slot": "menubar-content",
3080
+ align,
3081
+ alignOffset,
3082
+ sideOffset,
3083
+ className: button.cn(
3084
+ "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",
3085
+ className
3086
+ ),
3087
+ ...props
3088
+ }
3089
+ ) });
3090
+ }
3091
+ function MenubarItem({
3092
+ className,
3093
+ inset,
3094
+ variant = "default",
3095
+ ...props
3096
+ }) {
3097
+ return /* @__PURE__ */ jsxRuntime.jsx(
3098
+ MenubarPrimitive__namespace.Item,
3099
+ {
3100
+ "data-slot": "menubar-item",
3101
+ "data-inset": inset,
3102
+ "data-variant": variant,
3103
+ className: button.cn(
3104
+ "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",
3105
+ className
3106
+ ),
3107
+ ...props
3108
+ }
3109
+ );
3110
+ }
3111
+ function MenubarCheckboxItem({
3112
+ className,
3113
+ children,
3114
+ checked,
3115
+ ...props
3116
+ }) {
3117
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3118
+ MenubarPrimitive__namespace.CheckboxItem,
3119
+ {
3120
+ "data-slot": "menubar-checkbox-item",
3121
+ className: button.cn(
3122
+ "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",
3123
+ className
3124
+ ),
3125
+ checked,
3126
+ ...props,
3127
+ children: [
3128
+ /* @__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" }) }) }),
3129
+ children
3130
+ ]
3131
+ }
3132
+ );
3133
+ }
3134
+ function MenubarRadioItem({
3135
+ className,
3136
+ children,
3137
+ ...props
3138
+ }) {
3139
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3140
+ MenubarPrimitive__namespace.RadioItem,
3141
+ {
3142
+ "data-slot": "menubar-radio-item",
3143
+ className: button.cn(
3144
+ "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",
3145
+ className
3146
+ ),
3147
+ ...props,
3148
+ children: [
3149
+ /* @__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" }) }) }),
3150
+ children
3151
+ ]
3152
+ }
3153
+ );
3154
+ }
3155
+ function MenubarLabel({
3156
+ className,
3157
+ inset,
3158
+ ...props
3159
+ }) {
3160
+ return /* @__PURE__ */ jsxRuntime.jsx(
3161
+ MenubarPrimitive__namespace.Label,
3162
+ {
3163
+ "data-slot": "menubar-label",
3164
+ "data-inset": inset,
3165
+ className: button.cn(
3166
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
3167
+ className
3168
+ ),
3169
+ ...props
3170
+ }
3171
+ );
3172
+ }
3173
+ function MenubarSeparator({
3174
+ className,
3175
+ ...props
3176
+ }) {
3177
+ return /* @__PURE__ */ jsxRuntime.jsx(
3178
+ MenubarPrimitive__namespace.Separator,
3179
+ {
3180
+ "data-slot": "menubar-separator",
3181
+ className: button.cn("bg-border -mx-1 my-1 h-px", className),
3182
+ ...props
3183
+ }
3184
+ );
3185
+ }
3186
+ function MenubarShortcut({
3187
+ className,
3188
+ ...props
3189
+ }) {
3190
+ return /* @__PURE__ */ jsxRuntime.jsx(
3191
+ "span",
3192
+ {
3193
+ "data-slot": "menubar-shortcut",
3194
+ className: button.cn(
3195
+ "text-muted-foreground ml-auto text-xs tracking-widest",
3196
+ className
3197
+ ),
3198
+ ...props
3199
+ }
3200
+ );
3201
+ }
3202
+ function MenubarSub({
3203
+ ...props
3204
+ }) {
3205
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
3206
+ }
3207
+ function MenubarSubTrigger({
3208
+ className,
3209
+ inset,
3210
+ children,
3211
+ ...props
3212
+ }) {
3213
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3214
+ MenubarPrimitive__namespace.SubTrigger,
3215
+ {
3216
+ "data-slot": "menubar-sub-trigger",
3217
+ "data-inset": inset,
3218
+ className: button.cn(
3219
+ "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",
3220
+ className
3221
+ ),
3222
+ ...props,
3223
+ children: [
3224
+ children,
3225
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
3226
+ ]
3227
+ }
3228
+ );
3229
+ }
3230
+ function MenubarSubContent({
3231
+ className,
3232
+ ...props
3233
+ }) {
3234
+ return /* @__PURE__ */ jsxRuntime.jsx(
3235
+ MenubarPrimitive__namespace.SubContent,
3236
+ {
3237
+ "data-slot": "menubar-sub-content",
3238
+ className: button.cn(
3239
+ "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",
3240
+ className
3241
+ ),
3242
+ ...props
3243
+ }
3244
+ );
3245
+ }
3246
+ function Command({
3247
+ className,
3248
+ ...props
3249
+ }) {
3250
+ return /* @__PURE__ */ jsxRuntime.jsx(
3251
+ cmdk.Command,
3252
+ {
3253
+ "data-slot": "command",
3254
+ className: button.cn(
3255
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
3256
+ className
3257
+ ),
3258
+ ...props
3259
+ }
3260
+ );
3261
+ }
3262
+ function CommandDialog({
3263
+ title = "Command Palette",
3264
+ description = "Search for a command to run...",
3265
+ children,
3266
+ ...props
3267
+ }) {
3268
+ return /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { ...props, children: [
3269
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { className: "sr-only", children: [
3270
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: title }),
3271
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: description })
3272
+ ] }),
3273
+ /* @__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 }) })
3274
+ ] });
3275
+ }
3276
+ function CommandInput({
3277
+ className,
3278
+ ...props
3279
+ }) {
3280
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3281
+ "div",
3282
+ {
3283
+ "data-slot": "command-input-wrapper",
3284
+ className: "flex h-9 items-center gap-2 border-b px-3",
3285
+ children: [
3286
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
3287
+ /* @__PURE__ */ jsxRuntime.jsx(
3288
+ cmdk.Command.Input,
3289
+ {
3290
+ "data-slot": "command-input",
3291
+ className: button.cn(
3292
+ "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",
3293
+ className
3294
+ ),
3295
+ ...props
3296
+ }
3297
+ )
3298
+ ]
3299
+ }
3300
+ );
3301
+ }
3302
+ function CommandList({
3303
+ className,
3304
+ ...props
3305
+ }) {
3306
+ return /* @__PURE__ */ jsxRuntime.jsx(
3307
+ cmdk.Command.List,
3308
+ {
3309
+ "data-slot": "command-list",
3310
+ role: "listbox",
3311
+ className: button.cn(
3312
+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
3313
+ className
3314
+ ),
3315
+ ...props
3316
+ }
3317
+ );
3318
+ }
3319
+ function CommandEmpty({
3320
+ ...props
3321
+ }) {
3322
+ return /* @__PURE__ */ jsxRuntime.jsx(
3323
+ cmdk.Command.Empty,
3324
+ {
3325
+ "data-slot": "command-empty",
3326
+ className: "py-6 text-center text-sm",
3327
+ ...props
3328
+ }
3329
+ );
3330
+ }
3331
+ function CommandGroup({
3332
+ className,
3333
+ ...props
3334
+ }) {
3335
+ return /* @__PURE__ */ jsxRuntime.jsx(
3336
+ cmdk.Command.Group,
3337
+ {
3338
+ "data-slot": "command-group",
3339
+ className: button.cn(
3340
+ "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",
3341
+ className
3342
+ ),
3343
+ ...props
3344
+ }
3345
+ );
3346
+ }
3347
+ function CommandSeparator({
3348
+ className,
3349
+ ...props
3350
+ }) {
3351
+ return /* @__PURE__ */ jsxRuntime.jsx(
3352
+ cmdk.Command.Separator,
3353
+ {
3354
+ "data-slot": "command-separator",
3355
+ className: button.cn("bg-border -mx-1 h-px", className),
3356
+ ...props
3357
+ }
3358
+ );
3359
+ }
3360
+ function CommandItem({
3361
+ className,
3362
+ ...props
3363
+ }) {
3364
+ return /* @__PURE__ */ jsxRuntime.jsx(
3365
+ cmdk.Command.Item,
3366
+ {
3367
+ "data-slot": "command-item",
3368
+ role: "option",
3369
+ className: button.cn(
3370
+ "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",
3371
+ className
3372
+ ),
3373
+ ...props
3374
+ }
3375
+ );
3376
+ }
3377
+ function CommandShortcut({
3378
+ className,
3379
+ ...props
3380
+ }) {
3381
+ return /* @__PURE__ */ jsxRuntime.jsx(
3382
+ "span",
3383
+ {
3384
+ "data-slot": "command-shortcut",
3385
+ className: button.cn(
3386
+ "text-muted-foreground ml-auto text-xs tracking-widest",
3387
+ className
3388
+ ),
3389
+ ...props
3390
+ }
3391
+ );
3392
+ }
3393
+ const variantStyles = {
3394
+ default: "bg-primary text-primary-foreground",
3395
+ secondary: "bg-secondary text-secondary-foreground",
3396
+ destructive: "bg-destructive text-destructive-foreground",
3397
+ outline: "border-2 border-primary bg-background text-primary",
3398
+ success: "bg-success text-success-foreground",
3399
+ info: "bg-info text-info-foreground",
3400
+ warning: "bg-warning text-warning-foreground"
3401
+ };
3402
+ const NotificationBadge = React__namespace.forwardRef(
3403
+ ({
3404
+ className,
3405
+ count = 0,
3406
+ max = 99,
3407
+ showZero = false,
3408
+ dot = false,
3409
+ variant = "destructive",
3410
+ children,
3411
+ ...props
3412
+ }, ref) => {
3413
+ const displayCount = count > max ? `${max}+` : count;
3414
+ const shouldShow = count > 0 || showZero;
3415
+ if (!shouldShow && !dot) {
3416
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children });
3417
+ }
3418
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("relative inline-block", className), ...props, children: [
3419
+ children,
3420
+ /* @__PURE__ */ jsxRuntime.jsx(
3421
+ "span",
3422
+ {
3423
+ className: button.cn(
3424
+ "absolute -right-1 -top-1 flex items-center justify-center rounded-full",
3425
+ variantStyles[variant],
3426
+ dot ? "h-2 w-2" : "min-w-[1.25rem] h-5 px-1.5"
3427
+ ),
3428
+ children: !dot && shouldShow && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-medium leading-none", children: displayCount })
3429
+ }
3430
+ )
3431
+ ] });
3432
+ }
3433
+ );
3434
+ NotificationBadge.displayName = "NotificationBadge";
3435
+ const StatsCard = React__namespace.forwardRef(
3436
+ ({ className, title, value, description, trend, icon, ...props }, ref) => {
3437
+ const getTrendIcon = () => {
3438
+ if (!trend) return null;
3439
+ if (trend.value > 0) {
3440
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingUp, { className: "h-4 w-4 text-success" });
3441
+ } else if (trend.value < 0) {
3442
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingDown, { className: "h-4 w-4 text-destructive" });
3443
+ } else {
3444
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "h-4 w-4 text-muted-foreground" });
3445
+ }
3446
+ };
3447
+ const getTrendColor = () => {
3448
+ if (!trend) return "";
3449
+ if (trend.value > 0) {
3450
+ return "text-success";
3451
+ } else if (trend.value < 0) {
3452
+ return "text-destructive";
3453
+ } else {
3454
+ return "text-muted-foreground";
3455
+ }
3456
+ };
3457
+ return /* @__PURE__ */ jsxRuntime.jsx(progress.Card, { ref, className: button.cn("", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
3458
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
3459
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-1 text-sm", children: title }),
3460
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-2", children: [
3461
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-xl sm:text-2xl", children: value }),
3462
+ trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("flex items-center gap-1 text-sm", getTrendColor()), children: [
3463
+ getTrendIcon(),
3464
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
3465
+ Math.abs(trend.value),
3466
+ "%"
3467
+ ] })
3468
+ ] })
3469
+ ] }),
3470
+ (description || (trend == null ? void 0 : trend.label)) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mt-1 text-xs sm:text-sm", children: (trend == null ? void 0 : trend.label) || description })
3471
+ ] }),
3472
+ icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius)] bg-muted p-2 sm:p-3 text-muted-foreground flex-shrink-0", children: icon })
3473
+ ] }) }) });
3474
+ }
3475
+ );
3476
+ StatsCard.displayName = "StatsCard";
3477
+ const Timeline = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3478
+ "ol",
3479
+ {
3480
+ ref,
3481
+ className: button.cn("relative border-l border-border", className),
3482
+ ...props
3483
+ }
3484
+ ));
3485
+ Timeline.displayName = "Timeline";
3486
+ const TimelineItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3487
+ "li",
3488
+ {
3489
+ ref,
3490
+ className: button.cn("mb-10 ml-6", className),
3491
+ ...props
3492
+ }
3493
+ ));
3494
+ TimelineItem.displayName = "TimelineItem";
3495
+ const TimelineDot = React__namespace.forwardRef(({ className, variant = "default", icon, children, ...props }, ref) => {
3496
+ const variantStyles2 = {
3497
+ default: "bg-muted border-border",
3498
+ primary: "bg-primary border-primary",
3499
+ success: "bg-success border-success",
3500
+ info: "bg-info border-info",
3501
+ warning: "bg-warning border-warning",
3502
+ destructive: "bg-destructive border-destructive",
3503
+ outline: "bg-background border-border"
3504
+ };
3505
+ const iconColorStyles = {
3506
+ default: "text-muted-foreground",
3507
+ primary: "text-primary-foreground",
3508
+ success: "text-success-foreground",
3509
+ info: "text-info-foreground",
3510
+ warning: "text-warning-foreground",
3511
+ destructive: "text-destructive-foreground",
3512
+ outline: "text-foreground"
3513
+ };
3514
+ if (icon || children) {
3515
+ return /* @__PURE__ */ jsxRuntime.jsx(
3516
+ "div",
3517
+ {
3518
+ ref,
3519
+ className: button.cn(
3520
+ "absolute -left-[17px] mt-0.5 h-8 w-8 rounded-full border-2 flex items-center justify-center",
3521
+ variantStyles2[variant],
3522
+ className
3523
+ ),
3524
+ ...props,
3525
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: button.cn("h-4 w-4", iconColorStyles[variant]), children: icon || children })
3526
+ }
3527
+ );
3528
+ }
3529
+ return /* @__PURE__ */ jsxRuntime.jsx(
3530
+ "div",
3531
+ {
3532
+ ref,
3533
+ className: button.cn(
3534
+ "absolute -left-[9px] mt-1.5 h-4 w-4 rounded-full border-2",
3535
+ variantStyles2[variant],
3536
+ className
3537
+ ),
3538
+ ...props
3539
+ }
3540
+ );
3541
+ });
3542
+ TimelineDot.displayName = "TimelineDot";
3543
+ const TimelineContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3544
+ "div",
3545
+ {
3546
+ ref,
3547
+ className: button.cn("", className),
3548
+ ...props
3549
+ }
3550
+ ));
3551
+ TimelineContent.displayName = "TimelineContent";
3552
+ const TimelineHeading = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3553
+ "h3",
3554
+ {
3555
+ ref,
3556
+ className: button.cn("mb-1 text-foreground", className),
3557
+ ...props
3558
+ }
3559
+ ));
3560
+ TimelineHeading.displayName = "TimelineHeading";
3561
+ const TimelineTime = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3562
+ "time",
3563
+ {
3564
+ ref,
3565
+ className: button.cn("mb-2 block text-muted-foreground", className),
3566
+ ...props
3567
+ }
3568
+ ));
3569
+ TimelineTime.displayName = "TimelineTime";
3570
+ const TimelineDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3571
+ "p",
3572
+ {
3573
+ ref,
3574
+ className: button.cn("text-muted-foreground", className),
3575
+ ...props
3576
+ }
3577
+ ));
3578
+ TimelineDescription.displayName = "TimelineDescription";
3579
+ const TreeView = React__namespace.forwardRef(
3580
+ ({ className, data, onNodeClick, onNodeSelect, defaultExpanded = [], selectedNodeId, "aria-label": ariaLabel, ...props }, ref) => {
3581
+ var _a;
3582
+ const {
3583
+ expanded,
3584
+ effectiveSelectedId,
3585
+ getNodeRef,
3586
+ toggleExpand,
3587
+ handleSelect,
3588
+ handleKeyDown
3589
+ } = useFileUpload.useTreeView({ data, defaultExpanded, selectedNodeId, onNodeClick, onNodeSelect });
3590
+ const firstRootId = (_a = data[0]) == null ? void 0 : _a.id;
3591
+ const focusableId = effectiveSelectedId ?? firstRootId;
3592
+ return (
3593
+ // TV-2: aria-label is required on role="tree" (WCAG 4.1.2)
3594
+ /* @__PURE__ */ jsxRuntime.jsx(
3595
+ "div",
3596
+ {
3597
+ ref,
3598
+ className: button.cn("w-full", className),
3599
+ role: "tree",
3600
+ "aria-label": ariaLabel ?? "Navegação em árvore",
3601
+ ...props,
3602
+ children: data.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
3603
+ TreeNodeComponent,
3604
+ {
3605
+ node,
3606
+ level: 0,
3607
+ expanded,
3608
+ selectedId: effectiveSelectedId,
3609
+ focusableId,
3610
+ onToggle: toggleExpand,
3611
+ onSelect: handleSelect,
3612
+ onKeyDown: handleKeyDown,
3613
+ getNodeRef
3614
+ },
3615
+ node.id
3616
+ ))
3617
+ }
3618
+ )
3619
+ );
3620
+ }
3621
+ );
3622
+ TreeView.displayName = "TreeView";
3623
+ const TreeNodeComponent = ({
3624
+ node,
3625
+ level,
3626
+ expanded,
3627
+ selectedId,
3628
+ focusableId,
3629
+ onToggle,
3630
+ onSelect,
3631
+ onKeyDown,
3632
+ getNodeRef
3633
+ }) => {
3634
+ var _a;
3635
+ const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
3636
+ const isExpanded = expanded.has(node.id);
3637
+ const isSelected = node.id === selectedId;
3638
+ const handleClick = () => {
3639
+ if (hasChildren) onToggle(node.id);
3640
+ onSelect(node);
3641
+ };
3642
+ return (
3643
+ // TV-3: WAI-ARIA tree pattern requires role="group" to be a child of role="treeitem".
3644
+ // The outer wrapper uses role="none" to neutralise the div's implicit role;
3645
+ // the button carries role="treeitem" and wraps its own children group.
3646
+ // Since HTML does not allow a div inside a button, the group is a sibling
3647
+ // of the button, both inside the role="none" wrapper — this is the accepted
3648
+ // pattern when the treeitem cannot literally contain the group element.
3649
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "none", children: [
3650
+ /* @__PURE__ */ jsxRuntime.jsxs(
3651
+ "button",
3652
+ {
3653
+ ref: getNodeRef(node.id),
3654
+ role: "treeitem",
3655
+ "aria-expanded": hasChildren ? isExpanded : void 0,
3656
+ "aria-selected": isSelected,
3657
+ tabIndex: node.id === focusableId ? 0 : -1,
3658
+ onClick: handleClick,
3659
+ onKeyDown: (e) => onKeyDown(e, node),
3660
+ className: button.cn(
3661
+ "flex w-full items-center gap-2 rounded-[var(--radius)] px-2 py-1.5 text-left transition-colors",
3662
+ "hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
3663
+ isSelected && "bg-primary/10 text-primary font-medium"
3664
+ ),
3665
+ style: { paddingLeft: `${level * 1.5 + 0.5}rem` },
3666
+ children: [
3667
+ 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" }),
3668
+ node.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: node.icon }),
3669
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-foreground", children: node.label })
3670
+ ]
3671
+ }
3672
+ ),
3673
+ hasChildren && isExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", children: node.children.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
3674
+ TreeNodeComponent,
3675
+ {
3676
+ node: child,
3677
+ level: level + 1,
3678
+ expanded,
3679
+ selectedId,
3680
+ focusableId,
3681
+ onToggle,
3682
+ onSelect,
3683
+ onKeyDown,
3684
+ getNodeRef
3685
+ },
3686
+ child.id
3687
+ )) })
3688
+ ] })
3689
+ );
3690
+ };
3691
+ function Collapsible({
3692
+ ...props
3693
+ }) {
3694
+ return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
3695
+ }
3696
+ function CollapsibleTrigger({
3697
+ ...props
3698
+ }) {
3699
+ return /* @__PURE__ */ jsxRuntime.jsx(
3700
+ CollapsiblePrimitive__namespace.CollapsibleTrigger,
3701
+ {
3702
+ "data-slot": "collapsible-trigger",
3703
+ ...props
3704
+ }
3705
+ );
3706
+ }
3707
+ function CollapsibleContent({
3708
+ ...props
3709
+ }) {
3710
+ return /* @__PURE__ */ jsxRuntime.jsx(
3711
+ CollapsiblePrimitive__namespace.CollapsibleContent,
3712
+ {
3713
+ "data-slot": "collapsible-content",
3714
+ ...props
3715
+ }
3716
+ );
3717
+ }
3718
+ function Accordion({
3719
+ ...props
3720
+ }) {
3721
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { "data-slot": "accordion", ...props });
3722
+ }
3723
+ function AccordionItem({
3724
+ className,
3725
+ ...props
3726
+ }) {
3727
+ return /* @__PURE__ */ jsxRuntime.jsx(
3728
+ AccordionPrimitive__namespace.Item,
3729
+ {
3730
+ "data-slot": "accordion-item",
3731
+ className: button.cn("border-b last:border-b-0", className),
3732
+ ...props
3733
+ }
3734
+ );
3735
+ }
3736
+ function AccordionTrigger({
3737
+ className,
3738
+ children,
3739
+ ...props
3740
+ }) {
3741
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
3742
+ AccordionPrimitive__namespace.Trigger,
3743
+ {
3744
+ "data-slot": "accordion-trigger",
3745
+ className: button.cn(
3746
+ "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",
3747
+ className
3748
+ ),
3749
+ ...props,
3750
+ children: [
3751
+ children,
3752
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
3753
+ ]
3754
+ }
3755
+ ) });
3756
+ }
3757
+ function AccordionContent({
3758
+ className,
3759
+ children,
3760
+ ...props
3761
+ }) {
3762
+ return /* @__PURE__ */ jsxRuntime.jsx(
3763
+ AccordionPrimitive__namespace.Content,
3764
+ {
3765
+ "data-slot": "accordion-content",
3766
+ className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
3767
+ ...props,
3768
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("pt-0 pb-4", className), children })
3769
+ }
3770
+ );
3771
+ }
3772
+ const CarouselContext = React__namespace.createContext(null);
3773
+ function useCarousel() {
3774
+ const context = React__namespace.useContext(CarouselContext);
3775
+ if (!context) {
3776
+ throw new Error("useCarousel must be used within a <Carousel />");
3777
+ }
3778
+ return context;
3779
+ }
3780
+ function Carousel({
3781
+ orientation = "horizontal",
3782
+ opts,
3783
+ setApi,
3784
+ plugins,
3785
+ className,
3786
+ children,
3787
+ ...props
3788
+ }) {
3789
+ const [carouselRef, api] = useEmblaCarousel(
3790
+ {
3791
+ ...opts,
3792
+ axis: orientation === "horizontal" ? "x" : "y"
3793
+ },
3794
+ plugins
3795
+ );
3796
+ const [canScrollPrev, setCanScrollPrev] = React__namespace.useState(false);
3797
+ const [canScrollNext, setCanScrollNext] = React__namespace.useState(false);
3798
+ const onSelect = React__namespace.useCallback((api2) => {
3799
+ if (!api2) return;
3800
+ setCanScrollPrev(api2.canScrollPrev());
3801
+ setCanScrollNext(api2.canScrollNext());
3802
+ }, []);
3803
+ const scrollPrev = React__namespace.useCallback(() => {
3804
+ api == null ? void 0 : api.scrollPrev();
3805
+ }, [api]);
3806
+ const scrollNext = React__namespace.useCallback(() => {
3807
+ api == null ? void 0 : api.scrollNext();
3808
+ }, [api]);
3809
+ const handleKeyDown = React__namespace.useCallback(
3810
+ (event) => {
3811
+ if (event.key === "ArrowLeft") {
3812
+ event.preventDefault();
3813
+ scrollPrev();
3814
+ } else if (event.key === "ArrowRight") {
3815
+ event.preventDefault();
3816
+ scrollNext();
3817
+ }
3818
+ },
3819
+ [scrollPrev, scrollNext]
3820
+ );
3821
+ React__namespace.useEffect(() => {
3822
+ if (!api || !setApi) return;
3823
+ setApi(api);
3824
+ }, [api, setApi]);
3825
+ React__namespace.useEffect(() => {
3826
+ if (!api) return;
3827
+ onSelect(api);
3828
+ api.on("reInit", onSelect);
3829
+ api.on("select", onSelect);
3830
+ return () => {
3831
+ api == null ? void 0 : api.off("select", onSelect);
3832
+ };
3833
+ }, [api, onSelect]);
3834
+ return /* @__PURE__ */ jsxRuntime.jsx(
3835
+ CarouselContext.Provider,
3836
+ {
3837
+ value: {
3838
+ carouselRef,
3839
+ api,
3840
+ opts,
3841
+ orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
3842
+ scrollPrev,
3843
+ scrollNext,
3844
+ canScrollPrev,
3845
+ canScrollNext
3846
+ },
3847
+ children: /* @__PURE__ */ jsxRuntime.jsx(
3848
+ "div",
3849
+ {
3850
+ onKeyDownCapture: handleKeyDown,
3851
+ className: button.cn("relative", className),
3852
+ role: "region",
3853
+ "aria-roledescription": "carousel",
3854
+ "data-slot": "carousel",
3855
+ ...props,
3856
+ children
3857
+ }
3858
+ )
3859
+ }
3860
+ );
3861
+ }
3862
+ function CarouselContent({ className, ...props }) {
3863
+ const { carouselRef, orientation } = useCarousel();
3864
+ return /* @__PURE__ */ jsxRuntime.jsx(
3865
+ "div",
3866
+ {
3867
+ ref: carouselRef,
3868
+ className: "overflow-hidden",
3869
+ "data-slot": "carousel-content",
3870
+ children: /* @__PURE__ */ jsxRuntime.jsx(
3871
+ "div",
3872
+ {
3873
+ className: button.cn(
3874
+ "flex",
3875
+ orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
3876
+ className
3877
+ ),
3878
+ ...props
3879
+ }
3880
+ )
3881
+ }
3882
+ );
3883
+ }
3884
+ function CarouselItem({ className, ...props }) {
3885
+ const { orientation } = useCarousel();
3886
+ return /* @__PURE__ */ jsxRuntime.jsx(
3887
+ "div",
3888
+ {
3889
+ role: "group",
3890
+ "aria-roledescription": "slide",
3891
+ "data-slot": "carousel-item",
3892
+ className: button.cn(
3893
+ "min-w-0 shrink-0 grow-0 basis-full",
3894
+ orientation === "horizontal" ? "pl-4" : "pt-4",
3895
+ className
3896
+ ),
3897
+ ...props
3898
+ }
3899
+ );
3900
+ }
3901
+ function CarouselPrevious({
3902
+ className,
3903
+ variant = "outline",
3904
+ size = "icon",
3905
+ ...props
3906
+ }) {
3907
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
3908
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3909
+ button.Button,
3910
+ {
3911
+ "data-slot": "carousel-previous",
3912
+ variant,
3913
+ size,
3914
+ className: button.cn(
3915
+ "absolute size-8 rounded-full",
3916
+ orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
3917
+ className
3918
+ ),
3919
+ disabled: !canScrollPrev,
3920
+ onClick: scrollPrev,
3921
+ ...props,
3922
+ children: [
3923
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
3924
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
3925
+ ]
3926
+ }
3927
+ );
3928
+ }
3929
+ function CarouselNext({
3930
+ className,
3931
+ variant = "outline",
3932
+ size = "icon",
3933
+ ...props
3934
+ }) {
3935
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
3936
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3937
+ button.Button,
3938
+ {
3939
+ "data-slot": "carousel-next",
3940
+ variant,
3941
+ size,
3942
+ className: button.cn(
3943
+ "absolute size-8 rounded-full",
3944
+ orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
3945
+ className
3946
+ ),
3947
+ disabled: !canScrollNext,
3948
+ onClick: scrollNext,
3949
+ ...props,
3950
+ children: [
3951
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
3952
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
3953
+ ]
3954
+ }
3955
+ );
3956
+ }
3957
+ const StepperContext = React__namespace.createContext(void 0);
3958
+ const useStepperContext = () => {
3959
+ const context = React__namespace.useContext(StepperContext);
3960
+ if (!context) throw new Error("useStepperContext must be used within a Stepper");
3961
+ return context;
3962
+ };
3963
+ const Stepper = React__namespace.forwardRef(
3964
+ ({ currentStep, orientation = "horizontal", className, children, ...props }, ref) => {
3965
+ const totalSteps = React__namespace.Children.count(children);
3966
+ return /* @__PURE__ */ jsxRuntime.jsx(StepperContext.Provider, { value: { currentStep, totalSteps, orientation }, children: /* @__PURE__ */ jsxRuntime.jsx(
3967
+ "div",
3968
+ {
3969
+ ref,
3970
+ className: button.cn("w-full", className),
3971
+ role: "list",
3972
+ "aria-label": `Progresso: etapa ${currentStep} de ${totalSteps}`,
3973
+ ...props,
3974
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn(
3975
+ orientation === "horizontal" ? "flex items-start justify-between" : "flex flex-col gap-0"
3976
+ ), children })
3977
+ }
3978
+ ) });
3979
+ }
3980
+ );
3981
+ Stepper.displayName = "Stepper";
3982
+ const Step = React__namespace.forwardRef(
3983
+ ({ step, label, description, error = false, className, ...props }, ref) => {
3984
+ const { currentStep, totalSteps, orientation } = useStepperContext();
3985
+ const isActive = step === currentStep;
3986
+ const isCompleted = step < currentStep && !error;
3987
+ const isFirst = step === 1;
3988
+ const isLast = step === totalSteps;
3989
+ const circleClasses = button.cn(
3990
+ "relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors",
3991
+ isActive && !error && "border-primary bg-primary text-primary-foreground",
3992
+ isCompleted && "border-primary bg-primary text-primary-foreground",
3993
+ error && "border-destructive bg-destructive text-destructive-foreground",
3994
+ !isActive && !isCompleted && !error && "border-muted bg-background text-muted-foreground"
3995
+ );
3996
+ const connectorClasses = (filled) => button.cn("transition-colors", filled ? "bg-primary" : "bg-muted");
3997
+ if (orientation === "vertical") {
3998
+ return (
3999
+ // ST-2: role="listitem" + aria-current="step" communicate state to screen readers
4000
+ /* @__PURE__ */ jsxRuntime.jsxs(
4001
+ "div",
4002
+ {
4003
+ ref,
4004
+ role: "listitem",
4005
+ "aria-current": isActive ? "step" : void 0,
4006
+ "aria-label": `Etapa ${step} de ${totalSteps}: ${label}${isCompleted ? ", concluída" : ""}${error ? ", erro" : ""}`,
4007
+ className: button.cn("flex gap-4", className),
4008
+ ...props,
4009
+ children: [
4010
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
4011
+ /* @__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 }) }),
4012
+ !isLast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("w-0.5 flex-1 min-h-[2rem] mt-1", connectorClasses(step < currentStep)) })
4013
+ ] }),
4014
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("pb-6", isLast && "pb-0"), children: [
4015
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
4016
+ description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
4017
+ ] })
4018
+ ]
4019
+ }
4020
+ )
4021
+ );
4022
+ }
4023
+ return (
4024
+ // ST-2: role="listitem" + aria-current="step" communicate state to screen readers
4025
+ /* @__PURE__ */ jsxRuntime.jsxs(
4026
+ "div",
4027
+ {
4028
+ ref,
4029
+ role: "listitem",
4030
+ "aria-current": isActive ? "step" : void 0,
4031
+ "aria-label": `Etapa ${step} de ${totalSteps}: ${label}${isCompleted ? ", concluída" : ""}${error ? ", erro" : ""}`,
4032
+ className: button.cn("flex flex-1 flex-col items-center", className),
4033
+ ...props,
4034
+ children: [
4035
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-start", children: [
4036
+ step > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step <= currentStep)) }),
4037
+ /* @__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 }) }),
4038
+ step < totalSteps && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step < currentStep)) })
4039
+ ] }),
4040
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn(
4041
+ "mt-2 px-1",
4042
+ isFirst && "text-left self-start",
4043
+ isLast && "text-right self-end",
4044
+ !isFirst && !isLast && "text-center w-full"
4045
+ ), children: [
4046
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
4047
+ description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
4048
+ ] })
4049
+ ]
4050
+ }
4051
+ )
4052
+ );
4053
+ }
4054
+ );
4055
+ Step.displayName = "Step";
4056
+ const FileUpload = React__namespace.forwardRef(
4057
+ ({
4058
+ className,
4059
+ onFilesChange,
4060
+ maxFiles = 1,
4061
+ maxSize = 5 * 1024 * 1024,
4062
+ // 5MB default
4063
+ showPreview = true,
4064
+ onError,
4065
+ accept,
4066
+ disabled,
4067
+ ...props
4068
+ }, ref) => {
4069
+ const {
4070
+ files,
4071
+ dragActive,
4072
+ errorMessage,
4073
+ inputRef,
4074
+ handleDrag,
4075
+ handleDrop,
4076
+ handleChange,
4077
+ removeFile,
4078
+ openFileDialog
4079
+ } = useFileUpload.useFileUpload({ maxFiles, maxSize, onFilesChange, onError, disabled, accept });
4080
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("w-full", className), children: [
4081
+ /* @__PURE__ */ jsxRuntime.jsxs(
4082
+ "div",
4083
+ {
4084
+ role: "button",
4085
+ tabIndex: disabled ? -1 : 0,
4086
+ "aria-label": "Área de upload de arquivos. Clique ou pressione Enter para selecionar arquivos, ou arraste e solte.",
4087
+ onDragEnter: handleDrag,
4088
+ onDragLeave: handleDrag,
4089
+ onDragOver: handleDrag,
4090
+ onDrop: handleDrop,
4091
+ onClick: openFileDialog,
4092
+ onKeyDown: (e) => {
4093
+ if (!disabled && (e.key === "Enter" || e.key === " ")) {
4094
+ e.preventDefault();
4095
+ openFileDialog();
4096
+ }
4097
+ },
4098
+ className: button.cn(
4099
+ "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 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
4100
+ dragActive && "border-primary bg-primary/5",
4101
+ errorMessage && "border-destructive/50",
4102
+ disabled && "cursor-not-allowed opacity-50"
4103
+ ),
4104
+ children: [
4105
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { className: "mb-4 h-10 w-10 text-muted-foreground" }),
4106
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mb-2 text-foreground", children: [
4107
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: "Clique para enviar" }),
4108
+ " ou arraste e solte"
4109
+ ] }),
4110
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
4111
+ maxFiles > 1 ? `Até ${maxFiles} arquivos` : "1 arquivo",
4112
+ " • Máx. ",
4113
+ (maxSize / 1024 / 1024).toFixed(0),
4114
+ "MB"
4115
+ ] }),
4116
+ /* @__PURE__ */ jsxRuntime.jsx(
4117
+ "input",
4118
+ {
4119
+ ...props,
4120
+ ref: inputRef,
4121
+ type: "file",
4122
+ className: "hidden",
4123
+ onChange: handleChange,
4124
+ multiple: maxFiles > 1,
4125
+ accept,
4126
+ disabled
4127
+ }
4128
+ )
4129
+ ]
4130
+ }
4131
+ ),
4132
+ 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: [
4133
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "h-4 w-4 shrink-0" }),
4134
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: errorMessage })
4135
+ ] }),
4136
+ showPreview && files.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 space-y-2", children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(
4137
+ "div",
4138
+ {
4139
+ className: "flex items-center justify-between rounded-[var(--radius)] border border-border bg-card p-3",
4140
+ children: [
4141
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
4142
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileIcon, { className: "h-5 w-5 text-muted-foreground" }),
4143
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
4144
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground", children: file.name }),
4145
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: file.size >= 1024 * 1024 ? `${(file.size / 1024 / 1024).toFixed(2)} MB` : `${(file.size / 1024).toFixed(2)} KB` })
4146
+ ] })
4147
+ ] }),
4148
+ /* @__PURE__ */ jsxRuntime.jsx(
4149
+ button.Button,
4150
+ {
4151
+ type: "button",
4152
+ variant: "ghost",
4153
+ size: "sm",
4154
+ onClick: (e) => {
4155
+ e.stopPropagation();
4156
+ removeFile(index);
4157
+ },
4158
+ disabled,
4159
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
4160
+ }
4161
+ )
4162
+ ]
4163
+ },
4164
+ index
4165
+ )) })
4166
+ ] });
4167
+ }
4168
+ );
4169
+ FileUpload.displayName = "FileUpload";
4170
+ const Rating = React__namespace.forwardRef(
4171
+ ({
4172
+ className,
4173
+ value = 0,
4174
+ onChange,
4175
+ max = 5,
4176
+ readonly = false,
4177
+ disabled = false,
4178
+ size = "md",
4179
+ showValue = false,
4180
+ allowHalf = false,
4181
+ getAriaLabel,
4182
+ ...props
4183
+ }, ref) => {
4184
+ const [hoverValue, setHoverValue] = React__namespace.useState(null);
4185
+ const isInteractive = !readonly && !disabled;
4186
+ const sizeStyles = {
4187
+ sm: "h-4 w-4",
4188
+ md: "h-5 w-5",
4189
+ lg: "h-6 w-6"
4190
+ };
4191
+ const handleClick = (rating) => {
4192
+ if (isInteractive) onChange == null ? void 0 : onChange(rating);
4193
+ };
4194
+ const handleMouseMove = (e, rating) => {
4195
+ if (!isInteractive) return;
4196
+ if (allowHalf) {
4197
+ const rect = e.currentTarget.getBoundingClientRect();
4198
+ setHoverValue(e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating);
4199
+ } else {
4200
+ setHoverValue(rating);
4201
+ }
4202
+ };
4203
+ const handleMouseLeave = () => {
4204
+ if (isInteractive) setHoverValue(null);
4205
+ };
4206
+ const handleClickWithHalf = (e, rating) => {
4207
+ if (!isInteractive) return;
4208
+ if (allowHalf) {
4209
+ const rect = e.currentTarget.getBoundingClientRect();
4210
+ const half = e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating;
4211
+ onChange == null ? void 0 : onChange(half);
4212
+ } else {
4213
+ handleClick(rating);
4214
+ }
4215
+ };
4216
+ const displayValue = hoverValue ?? value;
4217
+ return /* @__PURE__ */ jsxRuntime.jsxs(
4218
+ "div",
4219
+ {
4220
+ ref,
4221
+ className: button.cn("flex items-center gap-1", disabled && "opacity-50", className),
4222
+ ...props,
4223
+ children: [
4224
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", role: "group", "aria-label": "Rating", children: Array.from({ length: max }, (_, index) => {
4225
+ const rating = index + 1;
4226
+ const isFull = rating <= displayValue;
4227
+ const isHalf = allowHalf && !isFull && rating - 0.5 <= displayValue;
4228
+ return /* @__PURE__ */ jsxRuntime.jsxs(
4229
+ "button",
4230
+ {
4231
+ type: "button",
4232
+ onClick: (e) => handleClickWithHalf(e, rating),
4233
+ onMouseMove: (e) => handleMouseMove(e, rating),
4234
+ onMouseLeave: handleMouseLeave,
4235
+ disabled: readonly || disabled,
4236
+ "aria-label": getAriaLabel ? getAriaLabel(rating, max) : `${rating} / ${max}`,
4237
+ className: button.cn(
4238
+ "relative transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
4239
+ isInteractive && "cursor-pointer hover:scale-110",
4240
+ !isInteractive && "cursor-default"
4241
+ ),
4242
+ children: [
4243
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: button.cn(sizeStyles[size], "fill-none text-muted-foreground") }),
4244
+ (isFull || isHalf) && /* @__PURE__ */ jsxRuntime.jsx(
4245
+ "span",
4246
+ {
4247
+ className: button.cn(
4248
+ "absolute inset-0 overflow-hidden",
4249
+ isHalf ? "w-1/2" : "w-full"
4250
+ ),
4251
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: button.cn(sizeStyles[size], "fill-warning text-warning") })
4252
+ }
4253
+ )
4254
+ ]
4255
+ },
4256
+ index
4257
+ );
4258
+ }) }),
4259
+ showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: value % 1 === 0 ? value.toFixed(0) : value.toFixed(1) })
4260
+ ]
4261
+ }
4262
+ );
4263
+ }
4264
+ );
4265
+ Rating.displayName = "Rating";
4266
+ const Search = React__namespace.forwardRef(
4267
+ ({
4268
+ className,
4269
+ containerClassName,
4270
+ onSearch,
4271
+ onClear,
4272
+ onChange,
4273
+ size = "md",
4274
+ searchLabel = "Search",
4275
+ clearLabel = "Clear search",
4276
+ value: controlledValue,
4277
+ defaultValue,
4278
+ ...props
4279
+ }, ref) => {
4280
+ const isControlled = controlledValue !== void 0;
4281
+ const [internalValue, setInternalValue] = React__namespace.useState(
4282
+ isControlled ? "" : defaultValue ?? ""
4283
+ );
4284
+ const displayValue = isControlled ? controlledValue : internalValue;
4285
+ const sizeClasses = {
4286
+ sm: "h-8 px-8 py-1 text-sm",
4287
+ md: "h-10 px-10 py-2 text-base",
4288
+ lg: "h-12 px-12 py-3 text-base"
4289
+ };
4290
+ const iconSizeClasses = {
4291
+ sm: "left-2 h-3.5 w-3.5",
4292
+ md: "left-3 h-4 w-4",
4293
+ lg: "left-4 h-5 w-5"
4294
+ };
4295
+ const clearSizeClasses = {
4296
+ sm: "right-2",
4297
+ md: "right-3",
4298
+ lg: "right-4"
4299
+ };
4300
+ const handleChange = (e) => {
4301
+ const newValue = e.target.value;
4302
+ if (!isControlled) setInternalValue(newValue);
4303
+ onChange == null ? void 0 : onChange(e);
4304
+ onSearch == null ? void 0 : onSearch(newValue);
4305
+ };
4306
+ const handleClear = () => {
4307
+ if (!isControlled) setInternalValue("");
4308
+ onClear == null ? void 0 : onClear();
4309
+ onSearch == null ? void 0 : onSearch("");
4310
+ };
4311
+ const handleKeyDown = (e) => {
4312
+ var _a;
4313
+ if (e.key === "Escape") {
4314
+ handleClear();
4315
+ }
4316
+ (_a = props.onKeyDown) == null ? void 0 : _a.call(props, e);
4317
+ };
4318
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("relative w-full", containerClassName), children: [
4319
+ /* @__PURE__ */ jsxRuntime.jsx(
4320
+ lucideReact.Search,
4321
+ {
4322
+ "aria-hidden": "true",
4323
+ className: button.cn("absolute top-1/2 -translate-y-1/2 text-muted-foreground", iconSizeClasses[size])
4324
+ }
4325
+ ),
4326
+ /* @__PURE__ */ jsxRuntime.jsx(
4327
+ "input",
4328
+ {
4329
+ ref,
4330
+ type: "text",
4331
+ value: displayValue,
4332
+ onChange: handleChange,
4333
+ onKeyDown: handleKeyDown,
4334
+ className: button.cn(
4335
+ "flex w-full rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none",
4336
+ "placeholder:text-muted-foreground",
4337
+ "focus:ring-2 focus:ring-primary focus:border-transparent",
4338
+ "disabled:cursor-not-allowed disabled:opacity-50",
4339
+ sizeClasses[size],
4340
+ className
4341
+ ),
4342
+ "aria-label": props.placeholder || searchLabel,
4343
+ ...props
4344
+ }
4345
+ ),
4346
+ displayValue && /* @__PURE__ */ jsxRuntime.jsx(
4347
+ "button",
4348
+ {
4349
+ type: "button",
4350
+ onClick: handleClear,
4351
+ "aria-label": clearLabel,
4352
+ className: button.cn(
4353
+ "absolute top-1/2 -translate-y-1/2 text-muted-foreground transition-colors hover:text-foreground focus:outline-none",
4354
+ clearSizeClasses[size]
4355
+ ),
4356
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
4357
+ }
4358
+ )
4359
+ ] });
4360
+ }
4361
+ );
4362
+ Search.displayName = "Search";
4363
+ 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" };
4364
+ const RouteMapContent = React.forwardRef(
4365
+ ({ apiKey, ...props }, ref) => {
4366
+ const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
4367
+ const {
4368
+ origin,
4369
+ destination,
4370
+ waypoints = [],
4371
+ travelMode = "DRIVING",
4372
+ height = "450px",
4373
+ mapContainerClassName,
4374
+ disableDefaultUI = false,
4375
+ zoomControl = true,
4376
+ streetViewControl = false,
4377
+ mapTypeControl = false,
4378
+ fullscreenControl = true,
4379
+ onRouteCalculated,
4380
+ className,
4381
+ ...divProps
4382
+ } = props;
4383
+ const mapRef = React.useRef(null);
4384
+ const gmpMapRef = React.useRef(null);
4385
+ const directionsRendererRef = React.useRef(null);
4386
+ React.useRef(false);
4387
+ const isCalculatingRef = React.useRef(false);
4388
+ React.useEffect(() => {
4389
+ if (!isLoaded && apiKey && !loadError && load) {
4390
+ load(apiKey).catch(console.error);
4391
+ }
4392
+ }, [isLoaded, apiKey, loadError, load]);
4393
+ React.useEffect(() => {
4394
+ if (!isLoaded || !gmpMapRef.current) return;
4395
+ const setupMap = (map) => {
4396
+ mapRef.current = map;
4397
+ const computedStyle = getComputedStyle(document.documentElement);
4398
+ const primaryColor = computedStyle.getPropertyValue("--primary").trim() || "#4F46E5";
4399
+ if (!directionsRendererRef.current) {
4400
+ directionsRendererRef.current = new google.maps.DirectionsRenderer({
4401
+ map,
4402
+ suppressMarkers: false,
4403
+ polylineOptions: {
4404
+ strokeColor: primaryColor,
4405
+ strokeWeight: 5,
4406
+ strokeOpacity: 0.8
4407
+ }
4408
+ });
4409
+ } else {
4410
+ directionsRendererRef.current.setMap(map);
4411
+ }
4412
+ };
4413
+ const gmpMap = gmpMapRef.current;
4414
+ if (gmpMap.innerMap) {
4415
+ setupMap(gmpMap.innerMap);
4416
+ } else {
4417
+ const interval = setInterval(() => {
4418
+ if (gmpMap.innerMap) {
4419
+ setupMap(gmpMap.innerMap);
4420
+ clearInterval(interval);
4421
+ }
4422
+ }, 100);
4423
+ return () => clearInterval(interval);
4424
+ }
4425
+ return () => {
4426
+ if (directionsRendererRef.current) {
4427
+ directionsRendererRef.current.setMap(null);
4428
+ }
4429
+ mapRef.current = null;
4430
+ };
4431
+ }, [isLoaded]);
4432
+ React.useEffect(() => {
4433
+ if (gmpMapRef.current && origin) {
4434
+ gmpMapRef.current.center = origin;
4435
+ }
4436
+ }, [origin.lat, origin.lng]);
4437
+ React.useEffect(() => {
4438
+ if (gmpMapRef.current) {
4439
+ gmpMapRef.current.zoom = 13;
4440
+ }
4441
+ }, []);
4442
+ React.useEffect(() => {
4443
+ const map = mapRef.current;
4444
+ const renderer = directionsRendererRef.current;
4445
+ if (!map || !renderer || !isLoaded || isCalculatingRef.current) return;
4446
+ if (!origin || !destination) return;
4447
+ isCalculatingRef.current = true;
4448
+ const directionsService = new google.maps.DirectionsService();
4449
+ const request = {
4450
+ origin,
4451
+ destination,
4452
+ waypoints: waypoints.map((wp) => ({
4453
+ location: wp,
4454
+ stopover: true
4455
+ })),
4456
+ travelMode: google.maps.TravelMode[travelMode]
4457
+ };
4458
+ directionsService.route(request, (result, status) => {
4459
+ var _a;
4460
+ isCalculatingRef.current = false;
4461
+ if (status === "OK" && result) {
4462
+ renderer.setDirections(result);
4463
+ const route = result.routes[0];
4464
+ if (((_a = route == null ? void 0 : route.legs) == null ? void 0 : _a.length) > 0 && onRouteCalculated) {
4465
+ let totalDistance = 0;
4466
+ let totalDuration = 0;
4467
+ route.legs.forEach((leg) => {
4468
+ if (leg.distance) totalDistance += leg.distance.value;
4469
+ if (leg.duration) totalDuration += leg.duration.value;
4470
+ });
4471
+ const distanceKm = (totalDistance / 1e3).toFixed(1);
4472
+ const distanceText = `${distanceKm} km`;
4473
+ const hours = Math.floor(totalDuration / 3600);
4474
+ const minutes = Math.floor(totalDuration % 3600 / 60);
4475
+ const durationText = hours > 0 ? `${hours}h ${minutes}min` : `${minutes} min`;
4476
+ onRouteCalculated(distanceText, durationText);
4477
+ }
4478
+ }
4479
+ });
4480
+ }, [isLoaded, origin.lat, origin.lng, destination.lat, destination.lng, travelMode, mapRef.current]);
4481
+ if (loadError) {
4482
+ return /* @__PURE__ */ jsxRuntime.jsx(
4483
+ "div",
4484
+ {
4485
+ ref,
4486
+ className: button.cn(
4487
+ "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
4488
+ className
4489
+ ),
4490
+ style: { height },
4491
+ ...divProps,
4492
+ 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: [
4493
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
4494
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-foreground", children: "Failed to load Google Maps" }),
4495
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
4496
+ ] }) })
4497
+ }
4498
+ );
4499
+ }
4500
+ if (!isLoaded) {
4501
+ return /* @__PURE__ */ jsxRuntime.jsx(
4502
+ "div",
4503
+ {
4504
+ ref,
4505
+ className: button.cn(
4506
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
4507
+ className
4508
+ ),
4509
+ style: { height },
4510
+ ...divProps
4511
+ }
4512
+ );
4513
+ }
4514
+ return /* @__PURE__ */ jsxRuntime.jsx(
4515
+ "div",
4516
+ {
4517
+ ref,
4518
+ className: button.cn(
4519
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
4520
+ className
4521
+ ),
4522
+ style: { height },
4523
+ ...divProps,
4524
+ children: /* @__PURE__ */ jsxRuntime.jsx(
4525
+ "gmp-map",
4526
+ {
4527
+ ref: gmpMapRef,
4528
+ style: { height: "100%", width: "100%", display: "block" },
4529
+ "map-id": props.mapId || "xertica-route-map"
4530
+ }
4531
+ )
4532
+ }
4533
+ );
4534
+ }
4535
+ );
4536
+ RouteMapContent.displayName = "RouteMapContent";
4537
+ const RouteMap = React.forwardRef(
4538
+ (props, ref) => {
4539
+ const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
4540
+ const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("AssistantChart-zjsy2GaZ.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__ && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
4541
+ const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
4542
+ if (isLoaded || isValidKey || loadError) {
4543
+ return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
4544
+ }
4545
+ const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
4546
+ if (isScriptInjected) {
4547
+ return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
4548
+ }
4549
+ const {
4550
+ origin,
4551
+ destination,
4552
+ waypoints,
4553
+ travelMode,
4554
+ height,
4555
+ apiKey,
4556
+ mapContainerClassName,
4557
+ disableDefaultUI,
4558
+ zoomControl,
4559
+ streetViewControl,
4560
+ mapTypeControl,
4561
+ fullscreenControl,
4562
+ onRouteCalculated,
4563
+ ...divProps
4564
+ } = props;
4565
+ return /* @__PURE__ */ jsxRuntime.jsx(
4566
+ "div",
4567
+ {
4568
+ ref,
4569
+ className: button.cn(
4570
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
4571
+ props.className
4572
+ ),
4573
+ style: { height: props.height || "450px" },
4574
+ ...divProps,
4575
+ 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: [
4576
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
4577
+ /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
4578
+ /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
4579
+ ] }) }),
4580
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
4581
+ ] }) })
4582
+ }
4583
+ );
4584
+ }
4585
+ );
4586
+ RouteMap.displayName = "RouteMap";
4587
+ const SimpleMap = React.forwardRef(
4588
+ ({
4589
+ center,
4590
+ address,
4591
+ markerTitle,
4592
+ markerInfo,
4593
+ showMarker = true,
4594
+ zoom = 15,
4595
+ height = "350px",
4596
+ ...props
4597
+ }, ref) => {
4598
+ const markers = showMarker && center ? [
4599
+ {
4600
+ position: center,
4601
+ title: markerTitle || address || "Location",
4602
+ info: markerInfo || address
4603
+ }
4604
+ ] : [];
4605
+ return /* @__PURE__ */ jsxRuntime.jsx(
4606
+ alertDialog.Map,
4607
+ {
4608
+ ref,
4609
+ center,
4610
+ zoom,
4611
+ height,
4612
+ markers,
4613
+ ...props
4614
+ }
4615
+ );
4616
+ }
4617
+ );
4618
+ SimpleMap.displayName = "SimpleMap";
4619
+ function AssistantChart({
4620
+ data,
4621
+ config,
4622
+ categoryKey = "month",
4623
+ bars,
4624
+ xAxisFormatter,
4625
+ className
4626
+ }) {
4627
+ const resolvedBars = bars ?? Object.keys(config).map((key) => ({ dataKey: key }));
4628
+ const formatTick2 = xAxisFormatter ?? ((value) => value.slice(0, 3));
4629
+ 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: [
4630
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { vertical: false }),
4631
+ /* @__PURE__ */ jsxRuntime.jsx(
4632
+ RechartsPrimitive.XAxis,
4633
+ {
4634
+ dataKey: categoryKey,
4635
+ tickLine: false,
4636
+ tickMargin: 10,
4637
+ axisLine: false,
4638
+ tickFormatter: formatTick2
4639
+ }
4640
+ ),
4641
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { cursor: false, content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "dashed" }) }),
4642
+ resolvedBars.map((bar) => /* @__PURE__ */ jsxRuntime.jsx(
4643
+ RechartsPrimitive.Bar,
4644
+ {
4645
+ dataKey: bar.dataKey,
4646
+ fill: bar.fill ?? `var(--color-${bar.dataKey})`,
4647
+ radius: bar.radius ?? 4
4648
+ },
4649
+ bar.dataKey
4650
+ ))
4651
+ ] }) });
4652
+ }
4653
+ exports.Accordion = Accordion;
4654
+ exports.AccordionContent = AccordionContent;
4655
+ exports.AccordionItem = AccordionItem;
4656
+ exports.AccordionTrigger = AccordionTrigger;
4657
+ exports.AreaGradientDefs = AreaGradientDefs;
4658
+ exports.AspectRatio = AspectRatio;
4659
+ exports.AssistantChart = AssistantChart;
4660
+ exports.Calendar = Calendar;
4661
+ exports.CalendarDayButton = CalendarDayButton;
4662
+ exports.Carousel = Carousel;
4663
+ exports.CarouselContent = CarouselContent;
4664
+ exports.CarouselItem = CarouselItem;
4665
+ exports.CarouselNext = CarouselNext;
4666
+ exports.CarouselPrevious = CarouselPrevious;
4667
+ exports.ChartCard = ChartCard;
4668
+ exports.Collapsible = Collapsible;
4669
+ exports.CollapsibleContent = CollapsibleContent;
4670
+ exports.CollapsibleTrigger = CollapsibleTrigger;
4671
+ exports.ComboMetricChart = ComboMetricChart;
4672
+ exports.Command = Command;
4673
+ exports.CommandDialog = CommandDialog;
4674
+ exports.CommandEmpty = CommandEmpty;
4675
+ exports.CommandGroup = CommandGroup;
4676
+ exports.CommandInput = CommandInput;
4677
+ exports.CommandItem = CommandItem;
4678
+ exports.CommandList = CommandList;
4679
+ exports.CommandSeparator = CommandSeparator;
4680
+ exports.CommandShortcut = CommandShortcut;
4681
+ exports.ContextMenu = ContextMenu;
4682
+ exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
4683
+ exports.ContextMenuContent = ContextMenuContent;
4684
+ exports.ContextMenuGroup = ContextMenuGroup;
4685
+ exports.ContextMenuItem = ContextMenuItem;
4686
+ exports.ContextMenuLabel = ContextMenuLabel;
4687
+ exports.ContextMenuPortal = ContextMenuPortal;
4688
+ exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
4689
+ exports.ContextMenuRadioItem = ContextMenuRadioItem;
4690
+ exports.ContextMenuSeparator = ContextMenuSeparator;
4691
+ exports.ContextMenuShortcut = ContextMenuShortcut;
4692
+ exports.ContextMenuSub = ContextMenuSub;
4693
+ exports.ContextMenuSubContent = ContextMenuSubContent;
4694
+ exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
4695
+ exports.ContextMenuTrigger = ContextMenuTrigger;
4696
+ exports.DashboardBarChart = DashboardBarChart;
4697
+ exports.DashboardLineChart = DashboardLineChart;
4698
+ exports.DonutBreakdownChart = DonutBreakdownChart;
4699
+ exports.Drawer = Drawer;
4700
+ exports.DrawerClose = DrawerClose;
4701
+ exports.DrawerContent = DrawerContent;
4702
+ exports.DrawerDescription = DrawerDescription;
4703
+ exports.DrawerFooter = DrawerFooter;
4704
+ exports.DrawerHandle = DrawerHandle;
4705
+ exports.DrawerHeader = DrawerHeader;
4706
+ exports.DrawerOverlay = DrawerOverlay;
4707
+ exports.DrawerPortal = DrawerPortal;
4708
+ exports.DrawerTitle = DrawerTitle;
4709
+ exports.DrawerTrigger = DrawerTrigger;
4710
+ exports.FileUpload = FileUpload;
4711
+ exports.Form = Form;
4712
+ exports.FormControl = FormControl;
4713
+ exports.FormDescription = FormDescription;
4714
+ exports.FormField = FormField;
4715
+ exports.FormItem = FormItem;
4716
+ exports.FormLabel = FormLabel;
4717
+ exports.FormMessage = FormMessage;
4718
+ exports.GaugeChart = GaugeChart;
4719
+ exports.HorizontalBarChart = HorizontalBarChart;
4720
+ exports.HoverCard = HoverCard;
4721
+ exports.HoverCardContent = HoverCardContent;
4722
+ exports.HoverCardTrigger = HoverCardTrigger;
4723
+ exports.InputOTP = InputOTP;
4724
+ exports.InputOTPGroup = InputOTPGroup;
4725
+ exports.InputOTPSeparator = InputOTPSeparator;
4726
+ exports.InputOTPSlot = InputOTPSlot;
4727
+ exports.InteractiveTimeSeriesChart = InteractiveTimeSeriesChart;
4728
+ exports.Menubar = Menubar;
4729
+ exports.MenubarCheckboxItem = MenubarCheckboxItem;
4730
+ exports.MenubarContent = MenubarContent;
4731
+ exports.MenubarGroup = MenubarGroup;
4732
+ exports.MenubarItem = MenubarItem;
4733
+ exports.MenubarLabel = MenubarLabel;
4734
+ exports.MenubarMenu = MenubarMenu;
4735
+ exports.MenubarPortal = MenubarPortal;
4736
+ exports.MenubarRadioGroup = MenubarRadioGroup;
4737
+ exports.MenubarRadioItem = MenubarRadioItem;
4738
+ exports.MenubarSeparator = MenubarSeparator;
4739
+ exports.MenubarShortcut = MenubarShortcut;
4740
+ exports.MenubarSub = MenubarSub;
4741
+ exports.MenubarSubContent = MenubarSubContent;
4742
+ exports.MenubarSubTrigger = MenubarSubTrigger;
4743
+ exports.MenubarTrigger = MenubarTrigger;
4744
+ exports.NavigationMenu = NavigationMenu;
4745
+ exports.NavigationMenuContent = NavigationMenuContent;
4746
+ exports.NavigationMenuIndicator = NavigationMenuIndicator;
4747
+ exports.NavigationMenuItem = NavigationMenuItem;
4748
+ exports.NavigationMenuLink = NavigationMenuLink;
4749
+ exports.NavigationMenuList = NavigationMenuList;
4750
+ exports.NavigationMenuTrigger = NavigationMenuTrigger;
4751
+ exports.NavigationMenuViewport = NavigationMenuViewport;
4752
+ exports.NotificationBadge = NotificationBadge;
4753
+ exports.Pagination = Pagination;
4754
+ exports.PaginationContent = PaginationContent;
4755
+ exports.PaginationEllipsis = PaginationEllipsis;
4756
+ exports.PaginationItem = PaginationItem;
4757
+ exports.PaginationLink = PaginationLink;
4758
+ exports.PaginationNext = PaginationNext;
4759
+ exports.PaginationPrevious = PaginationPrevious;
4760
+ exports.PieMetricChart = PieMetricChart;
4761
+ exports.RadarMetricChart = RadarMetricChart;
4762
+ exports.RadialBarMetricChart = RadialBarMetricChart;
4763
+ exports.Rating = Rating;
4764
+ exports.ResizableHandle = ResizableHandle;
4765
+ exports.ResizablePanel = ResizablePanel;
4766
+ exports.ResizablePanelGroup = ResizablePanelGroup;
4767
+ exports.RouteMap = RouteMap;
4768
+ exports.Search = Search;
4769
+ exports.Sheet = Sheet;
4770
+ exports.SheetBody = SheetBody;
4771
+ exports.SheetClose = SheetClose;
4772
+ exports.SheetContent = SheetContent;
4773
+ exports.SheetDescription = SheetDescription;
4774
+ exports.SheetFooter = SheetFooter;
4775
+ exports.SheetHeader = SheetHeader;
4776
+ exports.SheetPortal = SheetPortal;
4777
+ exports.SheetTitle = SheetTitle;
4778
+ exports.SheetTrigger = SheetTrigger;
4779
+ exports.SimpleMap = SimpleMap;
4780
+ exports.Skeleton = Skeleton;
4781
+ exports.SparklineChart = SparklineChart;
4782
+ exports.StatsCard = StatsCard;
4783
+ exports.Step = Step;
4784
+ exports.Stepper = Stepper;
4785
+ exports.Timeline = Timeline;
4786
+ exports.TimelineContent = TimelineContent;
4787
+ exports.TimelineDescription = TimelineDescription;
4788
+ exports.TimelineDot = TimelineDot;
4789
+ exports.TimelineHeading = TimelineHeading;
4790
+ exports.TimelineItem = TimelineItem;
4791
+ exports.TimelineTime = TimelineTime;
4792
+ exports.Toggle = Toggle;
4793
+ exports.ToggleGroup = ToggleGroup;
4794
+ exports.ToggleGroupItem = ToggleGroupItem;
4795
+ exports.TreeView = TreeView;
4796
+ exports.buildChartConfig = buildChartConfig;
4797
+ exports.defaultFilterData = defaultFilterData;
4798
+ exports.formatTick = formatTick;
4799
+ exports.getBarSize = getBarSize;
4800
+ exports.getChartConfigWithColors = getChartConfigWithColors;
4801
+ exports.getChartSeries = getChartSeries;
4802
+ exports.getChartState = getChartState;
4803
+ exports.getErrorDescription = getErrorDescription;
4804
+ exports.getSeriesColor = getSeriesColor;
4805
+ exports.hasChartData = hasChartData;
4806
+ exports.hasPieData = hasPieData;
4807
+ exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
4808
+ exports.toggleVariants = toggleVariants;
4809
+ exports.useFormField = useFormField;
4810
+ exports.useStepperContext = useStepperContext;