xertica-ui 2.5.1 → 2.5.3

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 (544) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +14 -16
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/generate-tokens.ts +262 -262
  6. package/bin/language-config.ts +2 -1
  7. package/components/assistant/code-block/CodeBlock.tsx +268 -268
  8. package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
  9. package/components/assistant/modern-chat-input/ModernChatInput.tsx +564 -564
  10. package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +99 -99
  11. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -104
  12. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
  13. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -88
  14. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
  15. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -564
  16. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
  17. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
  18. package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
  19. package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -611
  20. package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
  21. package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
  22. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +58 -58
  23. package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
  24. package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
  25. package/components/blocks/card-patterns/ProfileCard.tsx +112 -112
  26. package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
  27. package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
  28. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +67 -67
  29. package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
  30. package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
  31. package/components/blocks/card-patterns/index.ts +29 -29
  32. package/components/brand/language-selector/LanguageSelector.tsx +102 -102
  33. package/components/brand/language-selector/language-selector.stories.tsx +111 -111
  34. package/components/brand/language-selector/language-selector.test.tsx +101 -101
  35. package/components/brand/theme-toggle/ThemeToggle.tsx +74 -74
  36. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  37. package/components/index.ts +86 -86
  38. package/components/layout/sidebar/sidebar.mdx +1 -1
  39. package/components/layout/sidebar/sidebar.stories.tsx +1033 -787
  40. package/components/layout/sidebar/sidebar.tsx +346 -4
  41. package/components/media/FloatingMediaWrapper.tsx +371 -371
  42. package/components/media/audio-player/AudioPlayer.tsx +768 -768
  43. package/components/media/video-player/VideoPlayer.tsx +310 -310
  44. package/components/pages/home-content/HomeContent.tsx +2 -3
  45. package/components/pages/home-content/home-content.mdx +62 -62
  46. package/components/pages/home-page/HomePage.tsx +78 -78
  47. package/components/pages/home-page/home-page.mdx +53 -53
  48. package/components/pages/template-content/TemplateContent.tsx +2 -3
  49. package/components/pages/template-content/template-content.mdx +61 -61
  50. package/components/pages/template-page/TemplatePage.stories.tsx +32 -32
  51. package/components/pages/template-page/template-page.mdx +53 -53
  52. package/components/shared/error-boundary.stories.tsx +114 -114
  53. package/components/shared/error-boundary.tsx +150 -150
  54. package/components/shared/error-fallbacks.tsx +222 -222
  55. package/components/ui/accordion/accordion.mdx +8 -8
  56. package/components/ui/alert/alert.mdx +8 -8
  57. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  58. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  59. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  60. package/components/ui/avatar/avatar.mdx +8 -8
  61. package/components/ui/badge/badge.mdx +8 -8
  62. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  63. package/components/ui/button/button.mdx +8 -8
  64. package/components/ui/calendar/calendar.mdx +8 -8
  65. package/components/ui/card/card.mdx +8 -8
  66. package/components/ui/carousel/carousel.mdx +8 -8
  67. package/components/ui/chart/chart.mdx +8 -8
  68. package/components/ui/chart/chart.test.tsx +178 -178
  69. package/components/ui/chart/chart.tsx +2245 -2239
  70. package/components/ui/checkbox/checkbox.mdx +8 -8
  71. package/components/ui/collapsible/collapsible.mdx +8 -8
  72. package/components/ui/command/command.mdx +8 -8
  73. package/components/ui/context-menu/context-menu.mdx +8 -8
  74. package/components/ui/dialog/dialog.mdx +8 -8
  75. package/components/ui/drawer/drawer.mdx +8 -8
  76. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  77. package/components/ui/empty/empty.mdx +8 -8
  78. package/components/ui/file-upload/file-upload.mdx +8 -8
  79. package/components/ui/hover-card/hover-card.mdx +8 -8
  80. package/components/ui/input/input.mdx +8 -8
  81. package/components/ui/input-otp/input-otp.mdx +8 -8
  82. package/components/ui/label/label.mdx +8 -8
  83. package/components/ui/map/map.mdx +8 -8
  84. package/components/ui/menubar/menubar.mdx +8 -8
  85. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  86. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  87. package/components/ui/pagination/pagination.mdx +8 -8
  88. package/components/ui/popover/popover.mdx +8 -8
  89. package/components/ui/progress/progress.mdx +8 -8
  90. package/components/ui/radio-group/radio-group.mdx +8 -8
  91. package/components/ui/rating/rating.mdx +8 -8
  92. package/components/ui/resizable/resizable.mdx +8 -8
  93. package/components/ui/route-map/route-map.mdx +8 -8
  94. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  95. package/components/ui/search/search.mdx +8 -8
  96. package/components/ui/select/select.mdx +8 -8
  97. package/components/ui/separator/separator.mdx +8 -8
  98. package/components/ui/sheet/sheet.mdx +8 -8
  99. package/components/ui/simple-map/simple-map.mdx +8 -8
  100. package/components/ui/skeleton/skeleton.mdx +8 -8
  101. package/components/ui/slider/slider.mdx +8 -8
  102. package/components/ui/sonner/sonner.mdx +8 -8
  103. package/components/ui/stats-card/index.ts +2 -2
  104. package/components/ui/stats-card/stats-card-skeleton.tsx +60 -60
  105. package/components/ui/stats-card/stats-card.mdx +8 -8
  106. package/components/ui/stats-card/stats-card.tsx +109 -109
  107. package/components/ui/stepper/stepper.mdx +8 -8
  108. package/components/ui/switch/switch.mdx +8 -8
  109. package/components/ui/table/table.mdx +8 -8
  110. package/components/ui/tabs/tabs.mdx +8 -8
  111. package/components/ui/textarea/textarea.mdx +8 -8
  112. package/components/ui/timeline/timeline.mdx +8 -8
  113. package/components/ui/toggle/toggle.mdx +8 -8
  114. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  115. package/components/ui/tooltip/tooltip.mdx +8 -8
  116. package/components/ui/tree-view/tree-view.mdx +8 -8
  117. package/components.json +511 -511
  118. package/contexts/AuthContext.tsx +121 -121
  119. package/contexts/BrandColorsContext.tsx +282 -282
  120. package/contexts/LanguageContext.test.tsx +121 -121
  121. package/contexts/LanguageContext.tsx +250 -250
  122. package/contexts/theme-data.ts +391 -391
  123. package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
  124. package/dist/{AssistantChart-CldVCVDe.cjs → AssistantChart-BAudAfne.cjs} +5 -5
  125. package/dist/{AssistantChart-Bdd44uBn.cjs → AssistantChart-BAx9VQvb.cjs} +127 -388
  126. package/dist/{AssistantChart-Cu3m7RBo.js → AssistantChart-BP8upjMk.js} +5 -5
  127. package/dist/{AssistantChart-WeycT5Pd.cjs → AssistantChart-BW9JK6jw.cjs} +2 -2
  128. package/dist/{AssistantChart-CFhDdGyU.js → AssistantChart-CVko2A1W.js} +130 -391
  129. package/dist/{AssistantChart-C_hwFRRr.js → AssistantChart-CVzmmhx4.js} +4 -4
  130. package/dist/{AssistantChart-BKVtGUKF.js → AssistantChart-DNdwuS-t.js} +1 -1
  131. package/dist/{AudioPlayer-IAU5q5T1.cjs → AudioPlayer-1ypwE2Wh.cjs} +1 -1
  132. package/dist/{AudioPlayer-CGRUtUdN.js → AudioPlayer-DuKXrCfy.js} +1 -1
  133. package/dist/{LanguageContext-CS14yCpi.js → LanguageContext-BwhwC3G2.js} +2 -2
  134. package/dist/{LanguageContext-B_KFTCzT.cjs → LanguageContext-DvUt5jBg.cjs} +2 -2
  135. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  136. package/dist/{ThemeContext-Bmod0Cg2.cjs → ThemeContext-BblcjQup.cjs} +13 -8
  137. package/dist/{ThemeContext-BWq9ACPo.js → ThemeContext-Bo-W2WZH.js} +13 -8
  138. package/dist/{ThemeContext-j5aGtPky.cjs → ThemeContext-CP3a0jxy.cjs} +193 -262
  139. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  140. package/dist/ThemeContext-CpqYShLq.cjs +324 -0
  141. package/dist/{ThemeContext-CQSo4Iwc.js → ThemeContext-D3LzacmG.js} +8 -1
  142. package/dist/ThemeContext-Du2nE1PL.js +325 -0
  143. package/dist/ThemeContext-GeEBTJ3q.cjs +1621 -0
  144. package/dist/ThemeContext-JyLK9B1o.js +1622 -0
  145. package/dist/{ThemeContext-CGk3KK0k.cjs → ThemeContext-U4dEYc6C.cjs} +8 -1
  146. package/dist/{ThemeContext-BXjrgUjW.js → ThemeContext-ept8jhXI.js} +200 -261
  147. package/dist/{VerifyEmailPage-CGIwmWrm.js → VerifyEmailPage-B31mCrMc.js} +1 -1
  148. package/dist/{VerifyEmailPage-C0c2e5n0.js → VerifyEmailPage-BE-L9mB7.js} +7 -7
  149. package/dist/{VerifyEmailPage-DSBMRHtl.js → VerifyEmailPage-BIBOKV7Z.js} +41 -36
  150. package/dist/{VerifyEmailPage-DgIid028.js → VerifyEmailPage-BJjAMUTW.js} +4 -4
  151. package/dist/{VerifyEmailPage--1Vurewl.cjs → VerifyEmailPage-BRSP-Pwt.cjs} +3 -3
  152. package/dist/{VerifyEmailPage-Cwi3kbol.cjs → VerifyEmailPage-Bae2cBXT.cjs} +7 -7
  153. package/dist/{VerifyEmailPage-C5TNQTBa.js → VerifyEmailPage-Bci0bA-P.js} +150 -77
  154. package/dist/{VerifyEmailPage-De6bQjrz.cjs → VerifyEmailPage-BiRm7Nh4.cjs} +41 -36
  155. package/dist/{VerifyEmailPage-ByerOcm4.cjs → VerifyEmailPage-Bv8Ah_TK.cjs} +23 -20
  156. package/dist/VerifyEmailPage-Bvfv8HVQ.js +3214 -0
  157. package/dist/{VerifyEmailPage-B4peJjAT.cjs → VerifyEmailPage-C7KiYXrm.cjs} +151 -78
  158. package/dist/{VerifyEmailPage-BComraR7.cjs → VerifyEmailPage-CR7kb5df.cjs} +22 -12
  159. package/dist/{VerifyEmailPage-CpqqpLpo.cjs → VerifyEmailPage-C_Zk6Gen.cjs} +1 -1
  160. package/dist/{VerifyEmailPage-MTD7AG1Z.js → VerifyEmailPage-C_ihbcth.js} +4 -4
  161. package/dist/{VerifyEmailPage-1WwWczAn.js → VerifyEmailPage-CbgjOF0v.js} +22 -12
  162. package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
  163. package/dist/{VerifyEmailPage-By3Jf__L.cjs → VerifyEmailPage-CkBYfsNy.cjs} +4 -4
  164. package/dist/{VerifyEmailPage-CJLz3jrn.js → VerifyEmailPage-Cyl55sJb.js} +23 -20
  165. package/dist/VerifyEmailPage-D-FRj5TU.cjs +3213 -0
  166. package/dist/VerifyEmailPage-DF2ilhum.cjs +3210 -0
  167. package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
  168. package/dist/{VerifyEmailPage-CgMxRb4z.js → VerifyEmailPage-DTtFfC-J.js} +3 -3
  169. package/dist/{VerifyEmailPage-CFLMls1p.cjs → VerifyEmailPage-Dt7zgA4w.cjs} +4 -4
  170. package/dist/VerifyEmailPage-EhudUdqF.js +3211 -0
  171. package/dist/{VerifyEmailPage-DGhuIqkb.js → VerifyEmailPage-X14vhdyl.js} +4 -4
  172. package/dist/VerifyEmailPage-hdB8JQGv.cjs +3213 -0
  173. package/dist/{VerifyEmailPage-Bp1XXl3H.cjs → VerifyEmailPage-u_Dn7t1U.cjs} +4 -4
  174. package/dist/VerifyEmailPage-vYHbYK3q.js +3214 -0
  175. package/dist/{XerticaProvider-CBGc4EMA.cjs → XerticaProvider-AChwphCO.cjs} +4 -4
  176. package/dist/{XerticaProvider-BIrqfZ-i.cjs → XerticaProvider-AbWlr7Af.cjs} +8 -11
  177. package/dist/{XerticaProvider-D-yNhF94.cjs → XerticaProvider-B8CaV7xu.cjs} +1 -1
  178. package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
  179. package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
  180. package/dist/{XerticaProvider-C1DKnvLh.js → XerticaProvider-CUYJZc32.js} +4 -4
  181. package/dist/{XerticaProvider-ET0ihewn.cjs → XerticaProvider-CW9hpCdF.cjs} +2 -2
  182. package/dist/{XerticaProvider-Dt5HEzbQ.js → XerticaProvider-CWgby5mY.js} +10 -10
  183. package/dist/XerticaProvider-CWs6EwNa.js +49 -0
  184. package/dist/XerticaProvider-CjQAQPcn.cjs +48 -0
  185. package/dist/XerticaProvider-D5lLumH-.js +49 -0
  186. package/dist/{XerticaProvider-DYq4JWtg.js → XerticaProvider-DQtvJU7m.js} +1 -1
  187. package/dist/XerticaProvider-qQUDop71.cjs +48 -0
  188. package/dist/{XerticaProvider-B7EVH-NF.js → XerticaProvider-siSt9uG2.js} +2 -2
  189. package/dist/{XerticaXLogo-Zw2B276b.cjs → XerticaXLogo-8TTzBjHw.cjs} +1 -1
  190. package/dist/{XerticaXLogo-B7xQ5dhi.js → XerticaXLogo-BWaag64t.js} +1 -1
  191. package/dist/{XerticaXLogo-DZbo4vOE.js → XerticaXLogo-CFuIlYFH.js} +12 -12
  192. package/dist/{XerticaXLogo-bvZSgwGF.cjs → XerticaXLogo-CU-U-GP4.cjs} +7 -13
  193. package/dist/XerticaXLogo-ChryA6xj.js +252 -0
  194. package/dist/{XerticaXLogo-CQUUjXoH.cjs → XerticaXLogo-CziKMQil.cjs} +8 -8
  195. package/dist/XerticaXLogo-DHz5SugF.js +252 -0
  196. package/dist/XerticaXLogo-DTee_y8X.cjs +251 -0
  197. package/dist/{XerticaXLogo-Cmsp-Eey.js → XerticaXLogo-DfUvz-lD.js} +9 -9
  198. package/dist/XerticaXLogo-kslQ8Tk_.cjs +251 -0
  199. package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
  200. package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
  201. package/dist/assistant.cjs.js +1 -1
  202. package/dist/assistant.es.js +1 -1
  203. package/dist/cli.js +2 -1
  204. package/dist/components/ui/chart/chart.d.ts +7 -5
  205. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  206. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  207. package/dist/index-CkTUgOwX.js +8 -0
  208. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  209. package/dist/index.cjs.js +8 -8
  210. package/dist/index.es.js +6 -6
  211. package/dist/index.umd.js +454 -1027
  212. package/dist/input-B0_vbA3g.js +65 -0
  213. package/dist/{input-DWANSKGb.cjs → input-ByYuOv8A.cjs} +23 -77
  214. package/dist/layout.cjs.js +1 -1
  215. package/dist/layout.es.js +1 -1
  216. package/dist/pages.cjs.js +1 -1
  217. package/dist/pages.es.js +1 -1
  218. package/dist/{rich-text-editor-B-IkcPD0.js → rich-text-editor-DV1SixzE.js} +82 -66
  219. package/dist/{rich-text-editor-bRkNoeZY.cjs → rich-text-editor-DnSDglzW.cjs} +92 -19
  220. package/dist/{sidebar-DAaY8bRU.cjs → sidebar-B3EYhli0.cjs} +33 -24
  221. package/dist/{sidebar-nzPoVHBQ.cjs → sidebar-B9NR0lCe.cjs} +46 -41
  222. package/dist/{sidebar-CeTMuzOx.cjs → sidebar-BvF5I2Ue.cjs} +47 -128
  223. package/dist/{sidebar-q7P2Godd.cjs → sidebar-C5B_LHek.cjs} +1 -1
  224. package/dist/{sidebar-CrQDDdcz.js → sidebar-CA6_ek3f.js} +33 -24
  225. package/dist/sidebar-CLmIjgNd.cjs +1136 -0
  226. package/dist/sidebar-CQn_rwxP.cjs +1150 -0
  227. package/dist/{sidebar-BxGXsDAd.cjs → sidebar-CVUGHOS_.cjs} +8 -16
  228. package/dist/{sidebar-BViy8Eeu.js → sidebar-CmvwjnVb.js} +9 -17
  229. package/dist/{sidebar-B6SlKZYN.js → sidebar-CplprZpM.js} +49 -40
  230. package/dist/sidebar-Duermn32.js +1133 -0
  231. package/dist/{sidebar-BbVIQvlP.js → sidebar-Dz7bd3zP.js} +1 -1
  232. package/dist/{sidebar-0ocFLSks.js → sidebar-KIS0C2JH.js} +50 -127
  233. package/dist/sidebar-OTO_up7Z.js +801 -0
  234. package/dist/sidebar-QwCoeoZ_.js +1147 -0
  235. package/dist/sidebar-zowjejT2.cjs +800 -0
  236. package/dist/ui.cjs.js +5 -5
  237. package/dist/ui.es.js +3 -3
  238. package/dist/{use-audio-player-nv8ZSGa1.js → use-audio-player-Bkh23vQ3.js} +3 -7
  239. package/dist/{use-audio-player-NKsWyjWu.cjs → use-audio-player-Dn1NR9xN.cjs} +3 -7
  240. package/dist/{xertica-assistant-dyP7KHM5.cjs → xertica-assistant-B1IaHXnB.cjs} +388 -529
  241. package/dist/{xertica-assistant-ciJaWqm1.js → xertica-assistant-BMqdyRVi.js} +10 -28
  242. package/dist/{xertica-assistant-V_IdW4WF.cjs → xertica-assistant-Bj3vBCq_.cjs} +9 -27
  243. package/dist/{xertica-assistant-CrgTb6Hs.cjs → xertica-assistant-BrF9jScR.cjs} +49 -24
  244. package/dist/{xertica-assistant-DCsnQyi5.js → xertica-assistant-CsBsxTsI.js} +46 -29
  245. package/dist/{xertica-assistant-yX1CFBBo.js → xertica-assistant-DPsESB6t.js} +390 -531
  246. package/dist/{CodeBlock-7TTgmdGG.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  247. package/dist/{CodeBlock-BeSt1h5P.js → xertica-assistant-gnCJdcZY.js} +7 -219
  248. package/dist/xertica-ui.css +2 -2
  249. package/docs/architecture-improvements.md +456 -456
  250. package/docs/architecture.md +312 -312
  251. package/docs/components/assistant.md +428 -428
  252. package/docs/components/branding.md +252 -252
  253. package/docs/components/card-patterns.md +447 -447
  254. package/docs/components/error-boundary.md +201 -201
  255. package/docs/components/hooks.md +432 -432
  256. package/docs/components/language-selector.md +176 -176
  257. package/docs/components/pages.md +323 -323
  258. package/docs/components/sidebar.md +331 -331
  259. package/docs/components/stats-card.md +138 -138
  260. package/docs/doc-audit.md +244 -244
  261. package/docs/getting-started.md +616 -616
  262. package/docs/guidelines.md +330 -330
  263. package/docs/i18n.md +480 -480
  264. package/docs/installation.md +268 -268
  265. package/docs/llms.md +295 -295
  266. package/docs/state-management.md +289 -289
  267. package/guidelines/Guidelines.md +409 -409
  268. package/llms-compact.txt +1 -1
  269. package/llms-full.txt +10688 -10688
  270. package/llms.txt +1 -1
  271. package/package.json +1 -1
  272. package/styles/xertica/base.css +90 -90
  273. package/styles/xertica/tokens.css +240 -240
  274. package/templates/.prettierignore +4 -4
  275. package/templates/.prettierrc +10 -10
  276. package/templates/CLAUDE.md +180 -180
  277. package/templates/package.json +2 -2
  278. package/templates/src/app/App.tsx +46 -46
  279. package/templates/src/app/components/AuthGuard.tsx +131 -131
  280. package/templates/src/features/assistant/data/mock.ts +75 -75
  281. package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
  282. package/templates/src/features/assistant/index.ts +5 -5
  283. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  284. package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
  285. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +183 -183
  286. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
  287. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +80 -80
  288. package/templates/src/features/home/data/mock.ts +41 -41
  289. package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
  290. package/templates/src/features/home/index.ts +11 -11
  291. package/templates/src/features/home/ui/HomeContent.tsx +2 -3
  292. package/templates/src/features/template/ui/CrudTemplate.tsx +112 -112
  293. package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
  294. package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
  295. package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
  296. package/templates/src/features/template/ui/TemplateContent.tsx +2 -3
  297. package/templates/src/i18n.ts +124 -124
  298. package/templates/src/locales/en/common.json +21 -21
  299. package/templates/src/locales/en/components/activityCard.json +10 -10
  300. package/templates/src/locales/en/components/assistant.json +119 -119
  301. package/templates/src/locales/en/components/media.json +29 -29
  302. package/templates/src/locales/en/components/notificationCard.json +5 -5
  303. package/templates/src/locales/en/components/profileCard.json +8 -8
  304. package/templates/src/locales/en/components/projectCard.json +10 -10
  305. package/templates/src/locales/en/components/sidebar.json +14 -14
  306. package/templates/src/locales/en/components/stats.json +8 -8
  307. package/templates/src/locales/en/components/team.json +14 -14
  308. package/templates/src/locales/en/errors.json +9 -9
  309. package/templates/src/locales/en/languageSelector.json +7 -7
  310. package/templates/src/locales/en/nav.json +6 -6
  311. package/templates/src/locales/en/pages/crudTemplate.json +25 -25
  312. package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
  313. package/templates/src/locales/en/pages/forgotPassword.json +10 -10
  314. package/templates/src/locales/en/pages/formTemplate.json +16 -16
  315. package/templates/src/locales/en/pages/home.json +7 -7
  316. package/templates/src/locales/en/pages/login.json +15 -15
  317. package/templates/src/locales/en/pages/loginTemplate.json +9 -9
  318. package/templates/src/locales/en/pages/resetPassword.json +18 -18
  319. package/templates/src/locales/en/pages/templates.json +317 -317
  320. package/templates/src/locales/en/pages/verifyEmail.json +12 -12
  321. package/templates/src/locales/en/themeToggle.json +6 -6
  322. package/templates/src/locales/es/common.json +21 -21
  323. package/templates/src/locales/es/components/activityCard.json +10 -10
  324. package/templates/src/locales/es/components/assistant.json +119 -119
  325. package/templates/src/locales/es/components/media.json +29 -29
  326. package/templates/src/locales/es/components/notificationCard.json +5 -5
  327. package/templates/src/locales/es/components/profileCard.json +8 -8
  328. package/templates/src/locales/es/components/projectCard.json +10 -10
  329. package/templates/src/locales/es/components/sidebar.json +14 -14
  330. package/templates/src/locales/es/components/stats.json +8 -8
  331. package/templates/src/locales/es/components/team.json +14 -14
  332. package/templates/src/locales/es/errors.json +9 -9
  333. package/templates/src/locales/es/languageSelector.json +7 -7
  334. package/templates/src/locales/es/nav.json +6 -6
  335. package/templates/src/locales/es/pages/crudTemplate.json +25 -25
  336. package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
  337. package/templates/src/locales/es/pages/forgotPassword.json +10 -10
  338. package/templates/src/locales/es/pages/formTemplate.json +16 -16
  339. package/templates/src/locales/es/pages/home.json +7 -7
  340. package/templates/src/locales/es/pages/login.json +15 -15
  341. package/templates/src/locales/es/pages/loginTemplate.json +9 -9
  342. package/templates/src/locales/es/pages/resetPassword.json +18 -18
  343. package/templates/src/locales/es/pages/templates.json +317 -317
  344. package/templates/src/locales/es/pages/verifyEmail.json +12 -12
  345. package/templates/src/locales/es/themeToggle.json +6 -6
  346. package/templates/src/locales/pt-BR/common.json +21 -21
  347. package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
  348. package/templates/src/locales/pt-BR/components/assistant.json +119 -119
  349. package/templates/src/locales/pt-BR/components/media.json +29 -29
  350. package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
  351. package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
  352. package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
  353. package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
  354. package/templates/src/locales/pt-BR/components/stats.json +8 -8
  355. package/templates/src/locales/pt-BR/components/team.json +14 -14
  356. package/templates/src/locales/pt-BR/errors.json +9 -9
  357. package/templates/src/locales/pt-BR/languageSelector.json +7 -7
  358. package/templates/src/locales/pt-BR/nav.json +6 -6
  359. package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
  360. package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
  361. package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
  362. package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
  363. package/templates/src/locales/pt-BR/pages/home.json +7 -7
  364. package/templates/src/locales/pt-BR/pages/login.json +15 -15
  365. package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
  366. package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
  367. package/templates/src/locales/pt-BR/pages/templates.json +317 -317
  368. package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
  369. package/templates/src/locales/pt-BR/themeToggle.json +6 -6
  370. package/templates/src/pages/AssistantPage.tsx +470 -470
  371. package/templates/src/pages/HomePage.tsx +53 -53
  372. package/templates/src/shared/error-boundary.tsx +150 -150
  373. package/templates/src/shared/error-fallbacks.tsx +222 -222
  374. package/templates/src/styles/xertica/tokens.css +240 -240
  375. package/templates/vite.config.js +20 -20
  376. package/templates/vite.config.ts +55 -55
  377. package/dist/AssistantChart-CxGjH7Qk.js +0 -3477
  378. package/dist/AssistantChart-DIpshm3i.js +0 -4784
  379. package/dist/AssistantChart-D_PTeu8P.cjs +0 -3503
  380. package/dist/AssistantChart-zjsy2GaZ.cjs +0 -4810
  381. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  382. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  383. package/dist/AudioPlayer-BpRPS4-1.cjs +0 -1277
  384. package/dist/AudioPlayer-C12BjQBV.cjs +0 -997
  385. package/dist/AudioPlayer-CFeV8t-5.cjs +0 -936
  386. package/dist/AudioPlayer-Coly3q5R.js +0 -1278
  387. package/dist/AudioPlayer-CySJIyvL.js +0 -937
  388. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  389. package/dist/AudioPlayer-DcFKRJE_.js +0 -998
  390. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  391. package/dist/BrandColorsContext-565dDHd5.js +0 -660
  392. package/dist/BrandColorsContext-BcJbtkqn.cjs +0 -659
  393. package/dist/CodeBlock-BgfYL_rD.cjs +0 -2094
  394. package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
  395. package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
  396. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  397. package/dist/CodeBlock-CIySIuYr.js +0 -2078
  398. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  399. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  400. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  401. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  402. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  403. package/dist/CodeBlock-DnYNI8rQ.js +0 -2078
  404. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  405. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  406. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  407. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  408. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  409. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  410. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  411. package/dist/FeatureCard-CxC-7C-C.cjs +0 -300
  412. package/dist/FeatureCard-DbHWCb4E.js +0 -301
  413. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  414. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  415. package/dist/LanguageSelector-B5YfbHra.js +0 -231
  416. package/dist/LanguageSelector-D6uacAIM.cjs +0 -230
  417. package/dist/LayoutContext-B45-e9DI.cjs +0 -93
  418. package/dist/LayoutContext-BAql6ZRY.js +0 -97
  419. package/dist/LayoutContext-Bav3UMEA.js +0 -94
  420. package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
  421. package/dist/ThemeContext-BoH4NLfN.js +0 -734
  422. package/dist/ThemeContext-r69W20Xg.cjs +0 -733
  423. package/dist/VerifyEmailPage-COiyNl1y.js +0 -2825
  424. package/dist/VerifyEmailPage-CqKsR2v8.js +0 -2827
  425. package/dist/VerifyEmailPage-DjQKRlUS.cjs +0 -2824
  426. package/dist/VerifyEmailPage-s-1X3LDJ.cjs +0 -2826
  427. package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
  428. package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
  429. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  430. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  431. package/dist/XerticaProvider-BlY2limY.cjs +0 -38
  432. package/dist/XerticaProvider-DDuiIcKo.js +0 -39
  433. package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
  434. package/dist/XerticaProvider-hSwhNQex.js +0 -39
  435. package/dist/alert-dialog-BOje--vD.js +0 -847
  436. package/dist/alert-dialog-BtEuQqrg.cjs +0 -870
  437. package/dist/breadcrumb-CqJ7bHY5.js +0 -161
  438. package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
  439. package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +0 -6
  440. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +0 -21
  441. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +0 -49
  442. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +0 -16
  443. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  444. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  445. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  446. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  447. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  448. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  449. package/dist/components/ui/chart/parts/chart-dashboard.d.ts +0 -113
  450. package/dist/components/ui/chart/parts/chart-metric.d.ts +0 -118
  451. package/dist/components/ui/chart/parts/chart-primitives.d.ts +0 -101
  452. package/dist/components/ui/chart/parts/chart-shared.d.ts +0 -20
  453. package/dist/components/ui/chart/parts/chart-utils.d.ts +0 -12
  454. package/dist/components/ui/chart/parts/index.d.ts +0 -5
  455. package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
  456. package/dist/dropdown-menu-DQidbKBD.js +0 -231
  457. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  458. package/dist/google-maps-loader-BKcdgFbu.cjs +0 -312
  459. package/dist/google-maps-loader-CumCNXeG.js +0 -312
  460. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  461. package/dist/header-Cgy6vYPk.cjs +0 -731
  462. package/dist/header-DRlT4jgI.js +0 -715
  463. package/dist/header-Dux00SI4.cjs +0 -731
  464. package/dist/header-EkGKXPsD.js +0 -715
  465. package/dist/header-WfEywpyc.cjs +0 -731
  466. package/dist/header-tifNQn2U.js +0 -715
  467. package/dist/index-BhapVLVj.js +0 -8
  468. package/dist/index-D6fxYEY8.cjs +0 -7
  469. package/dist/index-DAIp0_HK.js +0 -8
  470. package/dist/index-DW5tYe26.js +0 -8
  471. package/dist/index-GA__GvnG.cjs +0 -7
  472. package/dist/input-2R4loU86.js +0 -127
  473. package/dist/progress-DPtzoVV8.js +0 -175
  474. package/dist/progress-EeaoqqUs.cjs +0 -191
  475. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  476. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  477. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  478. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  479. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  480. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  481. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  482. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  483. package/dist/rich-text-editor-Bp3zQqMC.js +0 -2954
  484. package/dist/rich-text-editor-CMgSN_w2.js +0 -1189
  485. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  486. package/dist/rich-text-editor-CeucBdIv.cjs +0 -2971
  487. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  488. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  489. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  490. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  491. package/dist/rich-text-editor-D76gD-QI.js +0 -2328
  492. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  493. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  494. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  495. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  496. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  497. package/dist/rich-text-editor-lyYE2ZG5.cjs +0 -1207
  498. package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
  499. package/dist/select-Bkbr0f-Z.cjs +0 -162
  500. package/dist/select-CvIVdX2n.js +0 -145
  501. package/dist/sidebar-CK_0ZQHj.cjs +0 -803
  502. package/dist/sidebar-CUuOvYhK.js +0 -787
  503. package/dist/sidebar-DQj1z3jG.cjs +0 -758
  504. package/dist/sidebar-Djn5syhi.cjs +0 -786
  505. package/dist/sidebar-LluMXfam.js +0 -759
  506. package/dist/sidebar-_rT7rBMk.js +0 -787
  507. package/dist/slider-Bc5Hd0y1.js +0 -56
  508. package/dist/slider-N7hFFj6X.cjs +0 -73
  509. package/dist/tooltip-Ded96neP.cjs +0 -137
  510. package/dist/tooltip-HDOoD2-0.js +0 -120
  511. package/dist/use-audio-player-B31J-aqh.cjs +0 -187
  512. package/dist/use-audio-player-BkmEmj8Q.js +0 -185
  513. package/dist/use-audio-player-CLFTWFW1.cjs +0 -184
  514. package/dist/use-audio-player-CLLn00I6.js +0 -188
  515. package/dist/use-file-upload-BcjEo2S5.js +0 -404
  516. package/dist/use-file-upload-CRJR68Tj.cjs +0 -403
  517. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  518. package/dist/use-mobile-BXuYROXM.js +0 -4202
  519. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  520. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  521. package/dist/use-mobile-BvYdisLP.js +0 -4202
  522. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  523. package/dist/use-mobile-CG2-SdXV.cjs +0 -4235
  524. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  525. package/dist/use-mobile-CYuAuGDl.js +0 -4202
  526. package/dist/use-mobile-CaENcqm-.js +0 -4508
  527. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  528. package/dist/use-mobile-Cd4xPrKq.cjs +0 -46
  529. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  530. package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
  531. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  532. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  533. package/dist/use-mobile-DlceKf8a.js +0 -4359
  534. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  535. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  536. package/dist/use-mobile-bnKcua_i.js +0 -4202
  537. package/dist/use-mobile-j4w2Jrf1.js +0 -30
  538. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
  539. package/dist/use-rich-text-editor-DjiddBGv.js +0 -282
  540. package/dist/use-rich-text-editor-lpeswbCs.cjs +0 -281
  541. package/dist/xertica-assistant-BdiZag0h.js +0 -2187
  542. package/dist/xertica-assistant-DUBpmEgo.cjs +0 -2186
  543. package/dist/{rich-text-editor-DgF8s7xW.js → rich-text-editor-BmsjY03B.js} +26 -26
  544. package/dist/{rich-text-editor-mWoaSCE4.cjs → rich-text-editor-GS2kpTAK.cjs} +26 -26
@@ -1,1748 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const React = require("react");
4
- const RechartsPrimitive = require("recharts");
5
- const tooltip = require("./tooltip-Ded96neP.cjs");
6
- const select = require("./select-Bkbr0f-Z.cjs");
7
- const TabsPrimitive = require("@radix-ui/react-tabs");
8
- const DialogPrimitive = require("@radix-ui/react-dialog");
9
- const lucideReact = require("lucide-react");
10
- const classVarianceAuthority = require("class-variance-authority");
11
- const dropdownMenu = require("./dropdown-menu-BDB5CmQs.cjs");
12
- const input = require("./input-DWANSKGb.cjs");
13
- function _interopNamespaceDefault(e) {
14
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
15
- if (e) {
16
- for (const k in e) {
17
- if (k !== "default") {
18
- const d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: () => e[k]
22
- });
23
- }
24
- }
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
28
- }
29
- const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
30
- const RechartsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RechartsPrimitive);
31
- const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
32
- const DialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DialogPrimitive);
33
- function Card({ className, ...props }) {
34
- return /* @__PURE__ */ jsxRuntime.jsx(
35
- "div",
36
- {
37
- "data-slot": "card",
38
- className: tooltip.cn(
39
- "bg-card text-card-foreground flex flex-col gap-6 rounded-[var(--radius-card)]",
40
- className
41
- ),
42
- ...props
43
- }
44
- );
45
- }
46
- function CardHeader({ className, ...props }) {
47
- return /* @__PURE__ */ jsxRuntime.jsx(
48
- "div",
49
- {
50
- "data-slot": "card-header",
51
- className: tooltip.cn(
52
- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
53
- className
54
- ),
55
- ...props
56
- }
57
- );
58
- }
59
- function CardTitle({ className, ...props }) {
60
- return /* @__PURE__ */ jsxRuntime.jsx(
61
- "h4",
62
- {
63
- "data-slot": "card-title",
64
- className: tooltip.cn("leading-none", className),
65
- ...props
66
- }
67
- );
68
- }
69
- function CardDescription({ className, ...props }) {
70
- return /* @__PURE__ */ jsxRuntime.jsx(
71
- "p",
72
- {
73
- "data-slot": "card-description",
74
- className: tooltip.cn("text-muted-foreground", className),
75
- ...props
76
- }
77
- );
78
- }
79
- function CardAction({ className, ...props }) {
80
- return /* @__PURE__ */ jsxRuntime.jsx(
81
- "div",
82
- {
83
- "data-slot": "card-action",
84
- className: tooltip.cn(
85
- "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
86
- className
87
- ),
88
- ...props
89
- }
90
- );
91
- }
92
- function CardContent({ className, ...props }) {
93
- return /* @__PURE__ */ jsxRuntime.jsx(
94
- "div",
95
- {
96
- "data-slot": "card-content",
97
- className: tooltip.cn("px-6 [&:last-child]:pb-6", className),
98
- ...props
99
- }
100
- );
101
- }
102
- function CardFooter({ className, ...props }) {
103
- return /* @__PURE__ */ jsxRuntime.jsx(
104
- "div",
105
- {
106
- "data-slot": "card-footer",
107
- className: tooltip.cn("flex items-center px-6 pb-6 [.border-t]:pt-6", className),
108
- ...props
109
- }
110
- );
111
- }
112
- function Tabs({
113
- className,
114
- ...props
115
- }) {
116
- return /* @__PURE__ */ jsxRuntime.jsx(
117
- TabsPrimitive__namespace.Root,
118
- {
119
- "data-slot": "tabs",
120
- className: tooltip.cn("flex flex-col gap-2", className),
121
- ...props
122
- }
123
- );
124
- }
125
- function TabsList({
126
- className,
127
- ...props
128
- }) {
129
- return /* @__PURE__ */ jsxRuntime.jsx(
130
- TabsPrimitive__namespace.List,
131
- {
132
- "data-slot": "tabs-list",
133
- className: tooltip.cn(
134
- "relative inline-flex h-12 w-fit items-end justify-start border-b border-border bg-transparent",
135
- className
136
- ),
137
- ...props
138
- }
139
- );
140
- }
141
- function TabsTrigger({
142
- className,
143
- ...props
144
- }) {
145
- return /* @__PURE__ */ jsxRuntime.jsx(
146
- TabsPrimitive__namespace.Trigger,
147
- {
148
- "data-slot": "tabs-trigger",
149
- className: tooltip.cn(
150
- "relative inline-flex h-12 items-center justify-center gap-1.5 bg-transparent px-4 py-3 text-sm font-medium whitespace-nowrap transition-all duration-200 ease-in-out border-b-2 border-transparent text-muted-foreground hover:text-foreground hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-primary data-[state=active]:border-primary data-[state=active]:bg-transparent [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
151
- className
152
- ),
153
- ...props
154
- }
155
- );
156
- }
157
- function TabsContent({
158
- className,
159
- ...props
160
- }) {
161
- return /* @__PURE__ */ jsxRuntime.jsx(
162
- TabsPrimitive__namespace.Content,
163
- {
164
- "data-slot": "tabs-content",
165
- className: tooltip.cn("flex-1 outline-none", className),
166
- ...props
167
- }
168
- );
169
- }
170
- const THEMES = { light: "", dark: ".dark" };
171
- const defaultPeriods = [
172
- { value: "7d", label: "7 days" },
173
- { value: "30d", label: "30 days" },
174
- { value: "90d", label: "90 days" }
175
- ];
176
- const ChartContext = React__namespace.createContext(null);
177
- function useChart() {
178
- const context = React__namespace.useContext(ChartContext);
179
- if (!context) {
180
- throw new Error("useChart must be used within a <ChartContainer />");
181
- }
182
- return context;
183
- }
184
- function ChartContainer({
185
- id,
186
- className,
187
- children,
188
- config,
189
- ...props
190
- }) {
191
- const uniqueId = React__namespace.useId();
192
- const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
193
- return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
194
- "div",
195
- {
196
- "data-slot": "chart",
197
- "data-chart": chartId,
198
- className: tooltip.cn(
199
- "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex justify-center text-xs overflow-hidden [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden h-[300px] w-full",
200
- className
201
- ),
202
- ...props,
203
- children: [
204
- /* @__PURE__ */ jsxRuntime.jsx(ChartStyle, { id: chartId, config }),
205
- /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.ResponsiveContainer, { width: "100%", height: "100%", children })
206
- ]
207
- }
208
- ) });
209
- }
210
- const ChartStyle = ({ id, config }) => {
211
- const colorConfig = Object.entries(config).filter(
212
- ([, config2]) => config2.theme || config2.color
213
- );
214
- if (!colorConfig.length) {
215
- return null;
216
- }
217
- return /* @__PURE__ */ jsxRuntime.jsx(
218
- "style",
219
- {
220
- dangerouslySetInnerHTML: {
221
- __html: Object.entries(THEMES).map(
222
- ([theme, prefix]) => `
223
- ${prefix} [data-chart=${id}] {
224
- ${colorConfig.map(([key, itemConfig]) => {
225
- var _a;
226
- const color = ((_a = itemConfig.theme) == null ? void 0 : _a[theme]) || itemConfig.color;
227
- return color ? ` --color-${key}: ${color};` : null;
228
- }).join("\n")}
229
- }
230
- `
231
- ).join("\n")
232
- }
233
- }
234
- );
235
- };
236
- const ChartTooltip = RechartsPrimitive__namespace.Tooltip;
237
- function ChartTooltipContent({
238
- active,
239
- payload,
240
- className,
241
- indicator = "dot",
242
- hideLabel = false,
243
- hideIndicator = false,
244
- label,
245
- labelFormatter,
246
- labelClassName,
247
- formatter,
248
- color,
249
- nameKey,
250
- labelKey
251
- }) {
252
- const { config } = useChart();
253
- const tooltipLabel = React__namespace.useMemo(() => {
254
- var _a;
255
- if (hideLabel || !(payload == null ? void 0 : payload.length)) {
256
- return null;
257
- }
258
- const [item] = payload;
259
- const key = `${labelKey || (item == null ? void 0 : item.dataKey) || (item == null ? void 0 : item.name) || "value"}`;
260
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
261
- const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
262
- if (labelFormatter) {
263
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
264
- }
265
- if (!value) {
266
- return null;
267
- }
268
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("font-medium", labelClassName), children: value });
269
- }, [
270
- label,
271
- labelFormatter,
272
- payload,
273
- hideLabel,
274
- labelClassName,
275
- config,
276
- labelKey
277
- ]);
278
- if (!active || !(payload == null ? void 0 : payload.length)) {
279
- return null;
280
- }
281
- const nestLabel = payload.length === 1 && indicator !== "dot";
282
- return /* @__PURE__ */ jsxRuntime.jsxs(
283
- "div",
284
- {
285
- className: tooltip.cn(
286
- "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
287
- className
288
- ),
289
- children: [
290
- !nestLabel ? tooltipLabel : null,
291
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
292
- var _a;
293
- const key = `${nameKey || item.name || item.dataKey || "value"}`;
294
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
295
- const indicatorColor = color || ((_a = item.payload) == null ? void 0 : _a.fill) || item.color;
296
- return /* @__PURE__ */ jsxRuntime.jsx(
297
- "div",
298
- {
299
- className: tooltip.cn(
300
- "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
301
- indicator === "dot" && "items-center"
302
- ),
303
- children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
304
- (itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsxRuntime.jsx(
305
- "div",
306
- {
307
- className: tooltip.cn(
308
- "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
309
- {
310
- "h-2.5 w-2.5": indicator === "dot",
311
- "w-1": indicator === "line",
312
- "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
313
- "my-0.5": nestLabel && indicator === "dashed"
314
- }
315
- ),
316
- style: {
317
- "--color-bg": indicatorColor,
318
- "--color-border": indicatorColor
319
- }
320
- }
321
- ),
322
- /* @__PURE__ */ jsxRuntime.jsxs(
323
- "div",
324
- {
325
- className: tooltip.cn(
326
- "flex flex-1 justify-between leading-none",
327
- nestLabel ? "items-end" : "items-center"
328
- ),
329
- children: [
330
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1.5", children: [
331
- nestLabel ? tooltipLabel : null,
332
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
333
- ] }),
334
- item.value && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground font-mono font-medium tabular-nums", children: item.value.toLocaleString() })
335
- ]
336
- }
337
- )
338
- ] })
339
- },
340
- item.dataKey
341
- );
342
- }) })
343
- ]
344
- }
345
- );
346
- }
347
- const ChartLegend = RechartsPrimitive__namespace.Legend;
348
- function ChartLegendContent({
349
- className,
350
- hideIcon = false,
351
- payload,
352
- verticalAlign = "bottom",
353
- nameKey
354
- }) {
355
- const { config } = useChart();
356
- if (!(payload == null ? void 0 : payload.length)) {
357
- return null;
358
- }
359
- return /* @__PURE__ */ jsxRuntime.jsx(
360
- "div",
361
- {
362
- className: tooltip.cn(
363
- "flex items-center justify-center gap-4",
364
- verticalAlign === "top" ? "pb-3" : "pt-3",
365
- className
366
- ),
367
- children: payload.map((item) => {
368
- const key = `${nameKey || item.dataKey || "value"}`;
369
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
370
- return /* @__PURE__ */ jsxRuntime.jsxs(
371
- "div",
372
- {
373
- className: tooltip.cn(
374
- "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
375
- ),
376
- children: [
377
- (itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsxRuntime.jsx(
378
- "div",
379
- {
380
- className: "h-2 w-2 shrink-0 rounded-[2px] bg-[--color-bg]",
381
- style: {
382
- "--color-bg": item.color
383
- }
384
- }
385
- ),
386
- itemConfig == null ? void 0 : itemConfig.label
387
- ]
388
- },
389
- item.value
390
- );
391
- })
392
- }
393
- );
394
- }
395
- function getPayloadConfigFromPayload(config, payload, key) {
396
- if (typeof payload !== "object" || payload === null) {
397
- return void 0;
398
- }
399
- const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
400
- let configLabelKey = key;
401
- if (key in payload && typeof payload[key] === "string") {
402
- configLabelKey = payload[key];
403
- } else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
404
- configLabelKey = payloadPayload[key];
405
- }
406
- return configLabelKey in config ? config[configLabelKey] : config[key];
407
- }
408
- function getChartSeries(config, series) {
409
- if (series == null ? void 0 : series.length) {
410
- return series;
411
- }
412
- return Object.entries(config).map(([key, item]) => ({
413
- key,
414
- label: item.label
415
- }));
416
- }
417
- function formatTick(value) {
418
- if (typeof value !== "number") {
419
- return value;
420
- }
421
- return Intl.NumberFormat("en", {
422
- notation: "compact",
423
- maximumFractionDigits: 1
424
- }).format(value);
425
- }
426
- function defaultFilterData(data, period) {
427
- const match = period.match(/^(\d+)/);
428
- if (!match) {
429
- return data;
430
- }
431
- const limit = Number(match[1]);
432
- return data.slice(Math.max(data.length - limit, 0));
433
- }
434
- function ChartCard({
435
- title,
436
- description,
437
- action,
438
- footer,
439
- children,
440
- className,
441
- contentClassName,
442
- ...props
443
- }) {
444
- return /* @__PURE__ */ jsxRuntime.jsxs(Card, { className: tooltip.cn("overflow-hidden", className), ...props, children: [
445
- /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { children: [
446
- /* @__PURE__ */ jsxRuntime.jsx(CardTitle, { children: title }),
447
- description ? /* @__PURE__ */ jsxRuntime.jsx(CardDescription, { children: description }) : null,
448
- action ? /* @__PURE__ */ jsxRuntime.jsx(CardAction, { children: action }) : null
449
- ] }),
450
- /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: contentClassName, children }),
451
- footer ? /* @__PURE__ */ jsxRuntime.jsx(CardFooter, { children: footer }) : null
452
- ] });
453
- }
454
- function DashboardBarChart({
455
- data,
456
- config,
457
- indexKey = "name",
458
- series,
459
- stacked = false,
460
- showGrid = true,
461
- showLegend = true,
462
- valueFormatter = formatTick,
463
- className,
464
- ...props
465
- }) {
466
- const chartSeries = getChartSeries(config, series);
467
- return /* @__PURE__ */ jsxRuntime.jsx(
468
- ChartContainer,
469
- {
470
- config,
471
- className: tooltip.cn("h-[320px] w-full", className),
472
- ...props,
473
- children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.BarChart, { data, accessibilityLayer: true, children: [
474
- showGrid ? /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.CartesianGrid, { vertical: false }) : null,
475
- /* @__PURE__ */ jsxRuntime.jsx(
476
- RechartsPrimitive__namespace.XAxis,
477
- {
478
- dataKey: indexKey,
479
- tickLine: false,
480
- axisLine: false,
481
- tickMargin: 8
482
- }
483
- ),
484
- /* @__PURE__ */ jsxRuntime.jsx(
485
- RechartsPrimitive__namespace.YAxis,
486
- {
487
- tickLine: false,
488
- axisLine: false,
489
- tickMargin: 8,
490
- tickFormatter: valueFormatter
491
- }
492
- ),
493
- /* @__PURE__ */ jsxRuntime.jsx(ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(ChartTooltipContent, {}) }),
494
- showLegend ? /* @__PURE__ */ jsxRuntime.jsx(ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(ChartLegendContent, {}) }) : null,
495
- chartSeries.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
496
- RechartsPrimitive__namespace.Bar,
497
- {
498
- dataKey: item.key,
499
- fill: `var(--color-${item.key})`,
500
- radius: [4, 4, 0, 0],
501
- stackId: stacked ? item.stackId || "total" : item.stackId
502
- },
503
- item.key
504
- ))
505
- ] })
506
- }
507
- );
508
- }
509
- function InteractiveTimeSeriesChart({
510
- data,
511
- config,
512
- indexKey = "date",
513
- series,
514
- periods = defaultPeriods,
515
- defaultPeriod = ((_a) => (_a = periods[1]) == null ? void 0 : _a.value)() || ((_b) => (_b = periods[0]) == null ? void 0 : _b.value)() || "30d",
516
- defaultSeries,
517
- filterData = defaultFilterData,
518
- showGrid = true,
519
- showLegend = false,
520
- valueFormatter = formatTick,
521
- className,
522
- ...props
523
- }) {
524
- var _a2;
525
- const chartSeries = getChartSeries(config, series);
526
- const [period, setPeriod] = React__namespace.useState(defaultPeriod);
527
- const [activeSeries, setActiveSeries] = React__namespace.useState(
528
- defaultSeries || ((_a2 = chartSeries[0]) == null ? void 0 : _a2.key) || ""
529
- );
530
- const filteredData = React__namespace.useMemo(
531
- () => filterData(data, period),
532
- [data, filterData, period]
533
- );
534
- const visibleSeries = chartSeries.length > 1 ? chartSeries.filter((item) => item.key === activeSeries) : chartSeries;
535
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
536
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [
537
- chartSeries.length > 1 ? /* @__PURE__ */ jsxRuntime.jsx(Tabs, { value: activeSeries, onValueChange: setActiveSeries, children: /* @__PURE__ */ jsxRuntime.jsx(TabsList, { className: "h-10", children: chartSeries.map((item) => {
538
- var _a3;
539
- return /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: item.key, className: "h-10", children: item.label || ((_a3 = config[item.key]) == null ? void 0 : _a3.label) || item.key }, item.key);
540
- }) }) }) : /* @__PURE__ */ jsxRuntime.jsx("div", {}),
541
- /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { value: period, onValueChange: setPeriod, children: [
542
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { className: "w-full sm:w-[160px]", size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, { placeholder: "Period" }) }),
543
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectContent, { children: periods.map((item) => /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: item.value, children: item.label }, item.value)) })
544
- ] })
545
- ] }),
546
- /* @__PURE__ */ jsxRuntime.jsx(
547
- ChartContainer,
548
- {
549
- config,
550
- className: tooltip.cn("h-[320px] w-full", className),
551
- ...props,
552
- children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.AreaChart, { data: filteredData, accessibilityLayer: true, children: [
553
- showGrid ? /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.CartesianGrid, { vertical: false }) : null,
554
- /* @__PURE__ */ jsxRuntime.jsx(
555
- RechartsPrimitive__namespace.XAxis,
556
- {
557
- dataKey: indexKey,
558
- tickLine: false,
559
- axisLine: false,
560
- tickMargin: 8
561
- }
562
- ),
563
- /* @__PURE__ */ jsxRuntime.jsx(
564
- RechartsPrimitive__namespace.YAxis,
565
- {
566
- tickLine: false,
567
- axisLine: false,
568
- tickMargin: 8,
569
- tickFormatter: valueFormatter
570
- }
571
- ),
572
- /* @__PURE__ */ jsxRuntime.jsx(ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(ChartTooltipContent, { indicator: "line" }) }),
573
- showLegend ? /* @__PURE__ */ jsxRuntime.jsx(ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(ChartLegendContent, {}) }) : null,
574
- visibleSeries.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
575
- RechartsPrimitive__namespace.Area,
576
- {
577
- type: "monotone",
578
- dataKey: item.key,
579
- stroke: `var(--color-${item.key})`,
580
- fill: `var(--color-${item.key})`,
581
- fillOpacity: 0.16,
582
- strokeWidth: 2,
583
- dot: false
584
- },
585
- item.key
586
- ))
587
- ] })
588
- }
589
- )
590
- ] });
591
- }
592
- function ComboMetricChart({
593
- data,
594
- config,
595
- indexKey = "name",
596
- series,
597
- showGrid = true,
598
- showLegend = true,
599
- valueFormatter = formatTick,
600
- className,
601
- ...props
602
- }) {
603
- const chartSeries = getChartSeries(config, series);
604
- return /* @__PURE__ */ jsxRuntime.jsx(
605
- ChartContainer,
606
- {
607
- config,
608
- className: tooltip.cn("h-[340px] w-full", className),
609
- ...props,
610
- children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.ComposedChart, { data, accessibilityLayer: true, children: [
611
- showGrid ? /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.CartesianGrid, { vertical: false }) : null,
612
- /* @__PURE__ */ jsxRuntime.jsx(
613
- RechartsPrimitive__namespace.XAxis,
614
- {
615
- dataKey: indexKey,
616
- tickLine: false,
617
- axisLine: false,
618
- tickMargin: 8
619
- }
620
- ),
621
- /* @__PURE__ */ jsxRuntime.jsx(
622
- RechartsPrimitive__namespace.YAxis,
623
- {
624
- tickLine: false,
625
- axisLine: false,
626
- tickMargin: 8,
627
- tickFormatter: valueFormatter
628
- }
629
- ),
630
- /* @__PURE__ */ jsxRuntime.jsx(ChartTooltip, { content: /* @__PURE__ */ jsxRuntime.jsx(ChartTooltipContent, {}) }),
631
- showLegend ? /* @__PURE__ */ jsxRuntime.jsx(ChartLegend, { content: /* @__PURE__ */ jsxRuntime.jsx(ChartLegendContent, {}) }) : null,
632
- chartSeries.map(
633
- (item) => item.type === "line" ? /* @__PURE__ */ jsxRuntime.jsx(
634
- RechartsPrimitive__namespace.Line,
635
- {
636
- type: "monotone",
637
- dataKey: item.key,
638
- stroke: `var(--color-${item.key})`,
639
- strokeWidth: 2,
640
- dot: false,
641
- yAxisId: item.yAxisId
642
- },
643
- item.key
644
- ) : item.type === "area" ? /* @__PURE__ */ jsxRuntime.jsx(
645
- RechartsPrimitive__namespace.Area,
646
- {
647
- type: "monotone",
648
- dataKey: item.key,
649
- stroke: `var(--color-${item.key})`,
650
- fill: `var(--color-${item.key})`,
651
- fillOpacity: 0.12,
652
- strokeWidth: 2,
653
- dot: false,
654
- yAxisId: item.yAxisId
655
- },
656
- item.key
657
- ) : /* @__PURE__ */ jsxRuntime.jsx(
658
- RechartsPrimitive__namespace.Bar,
659
- {
660
- dataKey: item.key,
661
- fill: `var(--color-${item.key})`,
662
- radius: [4, 4, 0, 0],
663
- yAxisId: item.yAxisId
664
- },
665
- item.key
666
- )
667
- )
668
- ] })
669
- }
670
- );
671
- }
672
- function DonutBreakdownChart({
673
- data,
674
- config,
675
- nameKey = "name",
676
- valueKey = "value",
677
- centerLabel,
678
- centerValue,
679
- showLegend = true,
680
- className,
681
- ...props
682
- }) {
683
- const [activeIndex, setActiveIndex] = React__namespace.useState(0);
684
- return /* @__PURE__ */ jsxRuntime.jsx(
685
- ChartContainer,
686
- {
687
- config,
688
- className: tooltip.cn("h-[320px] w-full", className),
689
- ...props,
690
- children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive__namespace.PieChart, { accessibilityLayer: true, children: [
691
- /* @__PURE__ */ jsxRuntime.jsx(
692
- ChartTooltip,
693
- {
694
- cursor: false,
695
- content: /* @__PURE__ */ jsxRuntime.jsx(ChartTooltipContent, { hideLabel: true, nameKey })
696
- }
697
- ),
698
- showLegend ? /* @__PURE__ */ jsxRuntime.jsx(
699
- ChartLegend,
700
- {
701
- content: /* @__PURE__ */ jsxRuntime.jsx(ChartLegendContent, { nameKey }),
702
- verticalAlign: "bottom"
703
- }
704
- ) : null,
705
- /* @__PURE__ */ jsxRuntime.jsxs(
706
- RechartsPrimitive__namespace.Pie,
707
- {
708
- data,
709
- dataKey: valueKey,
710
- nameKey,
711
- innerRadius: "58%",
712
- outerRadius: "82%",
713
- paddingAngle: 2,
714
- activeIndex,
715
- onMouseEnter: (_, index) => setActiveIndex(index),
716
- children: [
717
- data.map((entry, index) => {
718
- const key = String(entry[nameKey] || `segment-${index}`);
719
- return /* @__PURE__ */ jsxRuntime.jsx(
720
- RechartsPrimitive__namespace.Cell,
721
- {
722
- fill: `var(--color-${key})`,
723
- opacity: index === activeIndex ? 1 : 0.72
724
- },
725
- key
726
- );
727
- }),
728
- centerValue || centerLabel ? /* @__PURE__ */ jsxRuntime.jsx(
729
- RechartsPrimitive__namespace.Label,
730
- {
731
- position: "center",
732
- content: ({ viewBox }) => {
733
- if (!viewBox || !("cx" in viewBox) || !("cy" in viewBox)) {
734
- return null;
735
- }
736
- return /* @__PURE__ */ jsxRuntime.jsxs(
737
- "text",
738
- {
739
- x: viewBox.cx,
740
- y: viewBox.cy,
741
- textAnchor: "middle",
742
- dominantBaseline: "middle",
743
- children: [
744
- centerValue ? /* @__PURE__ */ jsxRuntime.jsx(
745
- "tspan",
746
- {
747
- x: viewBox.cx,
748
- y: viewBox.cy,
749
- className: "fill-foreground text-2xl font-semibold",
750
- children: centerValue
751
- }
752
- ) : null,
753
- centerLabel ? /* @__PURE__ */ jsxRuntime.jsx(
754
- "tspan",
755
- {
756
- x: viewBox.cx,
757
- y: Number(viewBox.cy) + 22,
758
- className: "fill-muted-foreground text-xs",
759
- children: centerLabel
760
- }
761
- ) : null
762
- ]
763
- }
764
- );
765
- }
766
- }
767
- ) : null
768
- ]
769
- }
770
- )
771
- ] })
772
- }
773
- );
774
- }
775
- function Table({ className, ...props }) {
776
- return /* @__PURE__ */ jsxRuntime.jsx(
777
- "div",
778
- {
779
- "data-slot": "table-container",
780
- className: "relative w-full overflow-x-auto",
781
- children: /* @__PURE__ */ jsxRuntime.jsx(
782
- "table",
783
- {
784
- "data-slot": "table",
785
- className: tooltip.cn("w-full caption-bottom text-sm", className),
786
- ...props
787
- }
788
- )
789
- }
790
- );
791
- }
792
- function TableHeader({ className, ...props }) {
793
- return /* @__PURE__ */ jsxRuntime.jsx(
794
- "thead",
795
- {
796
- "data-slot": "table-header",
797
- className: tooltip.cn("[&_tr]:border-b", className),
798
- ...props
799
- }
800
- );
801
- }
802
- function TableBody({ className, ...props }) {
803
- return /* @__PURE__ */ jsxRuntime.jsx(
804
- "tbody",
805
- {
806
- "data-slot": "table-body",
807
- className: tooltip.cn("[&_tr:last-child]:border-0", className),
808
- ...props
809
- }
810
- );
811
- }
812
- function TableFooter({ className, ...props }) {
813
- return /* @__PURE__ */ jsxRuntime.jsx(
814
- "tfoot",
815
- {
816
- "data-slot": "table-footer",
817
- className: tooltip.cn(
818
- "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
819
- className
820
- ),
821
- ...props
822
- }
823
- );
824
- }
825
- function TableRow({ className, ...props }) {
826
- return /* @__PURE__ */ jsxRuntime.jsx(
827
- "tr",
828
- {
829
- "data-slot": "table-row",
830
- className: tooltip.cn(
831
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
832
- className
833
- ),
834
- ...props
835
- }
836
- );
837
- }
838
- function TableHead({ className, ...props }) {
839
- return /* @__PURE__ */ jsxRuntime.jsx(
840
- "th",
841
- {
842
- "data-slot": "table-head",
843
- className: tooltip.cn(
844
- "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
845
- className
846
- ),
847
- ...props
848
- }
849
- );
850
- }
851
- function TableCell({ className, ...props }) {
852
- return /* @__PURE__ */ jsxRuntime.jsx(
853
- "td",
854
- {
855
- "data-slot": "table-cell",
856
- className: tooltip.cn(
857
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
858
- className
859
- ),
860
- ...props
861
- }
862
- );
863
- }
864
- function TableCaption({
865
- className,
866
- ...props
867
- }) {
868
- return /* @__PURE__ */ jsxRuntime.jsx(
869
- "caption",
870
- {
871
- "data-slot": "table-caption",
872
- className: tooltip.cn("text-muted-foreground mt-4 text-sm", className),
873
- ...props
874
- }
875
- );
876
- }
877
- function Dialog({
878
- ...props
879
- }) {
880
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "dialog", ...props });
881
- }
882
- function DialogTrigger({
883
- ...props
884
- }) {
885
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "dialog-trigger", ...props });
886
- }
887
- function DialogPortal({
888
- ...props
889
- }) {
890
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "dialog-portal", ...props });
891
- }
892
- function DialogClose({
893
- ...props
894
- }) {
895
- return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "dialog-close", ...props });
896
- }
897
- const DialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
898
- DialogPrimitive__namespace.Overlay,
899
- {
900
- ref,
901
- "data-slot": "dialog-overlay",
902
- className: tooltip.cn(
903
- "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/40 backdrop-blur-sm",
904
- className
905
- ),
906
- ...props
907
- }
908
- ));
909
- DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
910
- const dialogVariants = classVarianceAuthority.cva(
911
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex flex-col w-full translate-x-[-50%] translate-y-[-50%] border shadow-elevation-sm duration-200 rounded-[var(--radius-card)] overflow-hidden max-h-[calc(100dvh-2rem)]",
912
- {
913
- variants: {
914
- size: {
915
- sm: "max-w-sm",
916
- md: "max-w-md",
917
- lg: "max-w-lg",
918
- xl: "max-w-xl",
919
- "2xl": "max-w-2xl",
920
- "3xl": "max-w-3xl",
921
- "4xl": "max-w-4xl",
922
- "5xl": "max-w-5xl",
923
- full: "max-w-[calc(100vw-2rem)] h-[calc(100dvh-2rem)]"
924
- }
925
- },
926
- defaultVariants: {
927
- size: "lg"
928
- }
929
- }
930
- );
931
- const DialogContent = React__namespace.forwardRef(({ className, children, size, showClose = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
932
- /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
933
- /* @__PURE__ */ jsxRuntime.jsxs(
934
- DialogPrimitive__namespace.Content,
935
- {
936
- ref,
937
- "data-slot": "dialog-content",
938
- className: tooltip.cn(dialogVariants({ size }), className),
939
- ...props,
940
- children: [
941
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-4 p-6 overflow-y-auto flex-1 min-h-0", children }),
942
- showClose && /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "absolute top-4 right-4 z-10 rounded-full p-2 opacity-70 transition-all hover:opacity-100 hover:bg-accent focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
943
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {}),
944
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
945
- ] })
946
- ]
947
- }
948
- )
949
- ] }));
950
- DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
951
- function DialogHeader({ className, ...props }) {
952
- return /* @__PURE__ */ jsxRuntime.jsx(
953
- "div",
954
- {
955
- "data-slot": "dialog-header",
956
- className: tooltip.cn("flex flex-col gap-2 text-left shrink-0", className),
957
- ...props
958
- }
959
- );
960
- }
961
- function DialogBody({ className, ...props }) {
962
- return /* @__PURE__ */ jsxRuntime.jsx(
963
- "div",
964
- {
965
- "data-slot": "dialog-body",
966
- className: tooltip.cn("flex-1 overflow-y-auto min-h-0 -mx-6 px-6", className),
967
- ...props
968
- }
969
- );
970
- }
971
- function DialogFooter({ className, ...props }) {
972
- return /* @__PURE__ */ jsxRuntime.jsx(
973
- "div",
974
- {
975
- "data-slot": "dialog-footer",
976
- className: tooltip.cn(
977
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end shrink-0",
978
- className
979
- ),
980
- ...props
981
- }
982
- );
983
- }
984
- function DialogTitle({
985
- className,
986
- ...props
987
- }) {
988
- return /* @__PURE__ */ jsxRuntime.jsx(
989
- DialogPrimitive__namespace.Title,
990
- {
991
- "data-slot": "dialog-title",
992
- className: tooltip.cn("text-foreground font-semibold leading-tight text-[length:var(--text-h4)]", className),
993
- ...props
994
- }
995
- );
996
- }
997
- function DialogDescription({
998
- className,
999
- ...props
1000
- }) {
1001
- return /* @__PURE__ */ jsxRuntime.jsx(
1002
- DialogPrimitive__namespace.Description,
1003
- {
1004
- "data-slot": "dialog-description",
1005
- className: tooltip.cn("text-muted-foreground", className),
1006
- ...props
1007
- }
1008
- );
1009
- }
1010
- const Textarea = React__namespace.forwardRef(
1011
- ({ className, size = "md", ...props }, ref) => {
1012
- const sizeClasses = {
1013
- sm: "px-2 py-1 text-sm",
1014
- md: "px-3 py-2 text-base",
1015
- lg: "px-4 py-3 text-base"
1016
- };
1017
- return /* @__PURE__ */ jsxRuntime.jsx(
1018
- "textarea",
1019
- {
1020
- "data-slot": "textarea",
1021
- className: tooltip.cn(
1022
- "flex min-h-16 w-full bg-background rounded-[var(--radius)] border border-border transition-colors outline-none resize-none text-foreground",
1023
- "placeholder:text-muted-foreground",
1024
- "focus:ring-2 focus:ring-primary focus:border-transparent",
1025
- "disabled:cursor-not-allowed disabled:opacity-50",
1026
- sizeClasses[size],
1027
- className
1028
- ),
1029
- ref,
1030
- ...props
1031
- }
1032
- );
1033
- }
1034
- );
1035
- Textarea.displayName = "Textarea";
1036
- function RichTextEditor({
1037
- value,
1038
- onChange,
1039
- placeholder,
1040
- className,
1041
- actionButton,
1042
- allowSearch = true,
1043
- allowLinks = true,
1044
- allowUndoRedo = true,
1045
- allowHeadings = true,
1046
- allowFormatting = true,
1047
- allowAlignment = true,
1048
- allowLists = true,
1049
- showWordCount = true,
1050
- showCharacterCount = true,
1051
- disabled = false,
1052
- readOnly = false,
1053
- onFocus,
1054
- onBlur,
1055
- minHeight,
1056
- maxHeight
1057
- }) {
1058
- const isEditable = !disabled && !readOnly;
1059
- const showToolbar = isEditable;
1060
- const editorRef = React.useRef(null);
1061
- const [activeFormats, setActiveFormats] = React.useState({});
1062
- const [isSearchOpen, setIsSearchOpen] = React.useState(false);
1063
- const [searchQuery, setSearchQuery] = React.useState("");
1064
- const [linkUrl, setLinkUrl] = React.useState("https://");
1065
- const [isLinkOpen, setIsLinkOpen] = React.useState(false);
1066
- const searchInputRef = React.useRef(null);
1067
- const linkInputRef = React.useRef(null);
1068
- const savedSelection = React.useRef(null);
1069
- const findParentTag = (node, tagName) => {
1070
- let current = node;
1071
- while (current && current !== editorRef.current) {
1072
- if (current.nodeName === tagName) return current;
1073
- current = current.parentNode;
1074
- }
1075
- return null;
1076
- };
1077
- const updateActiveFormats = () => {
1078
- let formatBlock = "";
1079
- try {
1080
- formatBlock = document.queryCommandValue("formatBlock");
1081
- } catch (e) {
1082
- }
1083
- const selection = window.getSelection();
1084
- const anchorNode = selection == null ? void 0 : selection.anchorNode;
1085
- const focusNode = selection == null ? void 0 : selection.focusNode;
1086
- setActiveFormats({
1087
- bold: document.queryCommandState("bold"),
1088
- italic: document.queryCommandState("italic"),
1089
- underline: document.queryCommandState("underline"),
1090
- justifyLeft: document.queryCommandState("justifyLeft"),
1091
- justifyCenter: document.queryCommandState("justifyCenter"),
1092
- justifyRight: document.queryCommandState("justifyRight"),
1093
- insertUnorderedList: document.queryCommandState("insertUnorderedList"),
1094
- insertOrderedList: document.queryCommandState("insertOrderedList"),
1095
- link: !!(findParentTag(anchorNode || null, "A") || findParentTag(focusNode || null, "A")),
1096
- h1: formatBlock === "h1" || formatBlock === "H1",
1097
- h2: formatBlock === "h2" || formatBlock === "H2",
1098
- h3: formatBlock === "h3" || formatBlock === "H3",
1099
- p: formatBlock === "p" || formatBlock === "P" || formatBlock === "div" || formatBlock === "DIV" || formatBlock === ""
1100
- });
1101
- };
1102
- const getCurrentBlockLabel = () => {
1103
- if (activeFormats.h1) return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1104
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heading1, { className: "w-4 h-4 mr-1 shrink-0" }),
1105
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: "Título 1" })
1106
- ] });
1107
- if (activeFormats.h2) return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1108
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heading2, { className: "w-4 h-4 mr-1 shrink-0" }),
1109
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: "Título 2" })
1110
- ] });
1111
- if (activeFormats.h3) return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1112
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heading3, { className: "w-4 h-4 mr-1 shrink-0" }),
1113
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: "Título 3" })
1114
- ] });
1115
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1116
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Type, { className: "w-4 h-4 mr-1 shrink-0" }),
1117
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: "Parágrafo" })
1118
- ] });
1119
- };
1120
- React.useEffect(() => {
1121
- if (editorRef.current && editorRef.current.innerHTML !== value) {
1122
- editorRef.current.innerHTML = value;
1123
- }
1124
- const handleSelectionChange = () => {
1125
- if (document.activeElement === editorRef.current) {
1126
- updateActiveFormats();
1127
- }
1128
- };
1129
- document.addEventListener("selectionchange", handleSelectionChange);
1130
- return () => document.removeEventListener("selectionchange", handleSelectionChange);
1131
- }, []);
1132
- const execCommand = (command, value2 = "") => {
1133
- var _a;
1134
- document.execCommand(command, false, value2);
1135
- updateActiveFormats();
1136
- (_a = editorRef.current) == null ? void 0 : _a.focus();
1137
- handleInput();
1138
- };
1139
- const handleInput = () => {
1140
- if (editorRef.current) {
1141
- onChange == null ? void 0 : onChange(editorRef.current.innerHTML);
1142
- updateActiveFormats();
1143
- }
1144
- };
1145
- const getWordCount = () => {
1146
- var _a;
1147
- const text = ((_a = editorRef.current) == null ? void 0 : _a.innerText) || "";
1148
- return text.trim() ? text.trim().split(/\s+/).length : 0;
1149
- };
1150
- const getCharacterCount = () => {
1151
- var _a;
1152
- const text = ((_a = editorRef.current) == null ? void 0 : _a.innerText) || "";
1153
- return text.trim() ? text.length : 0;
1154
- };
1155
- const performSearch = (text, backward = false) => {
1156
- var _a, _b;
1157
- if (!text || !editorRef.current) return;
1158
- const editor = editorRef.current;
1159
- const selection = window.getSelection();
1160
- if (!selection) return;
1161
- const walker = document.createTreeWalker(editor, NodeFilter.SHOW_TEXT);
1162
- const segments = [];
1163
- let offset = 0;
1164
- let node;
1165
- while (node = walker.nextNode()) {
1166
- segments.push({ node, start: offset });
1167
- offset += node.length;
1168
- }
1169
- const fullText = segments.reduce((acc, s) => acc + (s.node.textContent ?? ""), "");
1170
- let searchFrom = 0;
1171
- if (selection.rangeCount > 0) {
1172
- const range2 = selection.getRangeAt(0);
1173
- if (editor.contains(range2.startContainer)) {
1174
- const seg = segments.find((s) => s.node === range2.startContainer);
1175
- if (seg) {
1176
- searchFrom = backward ? seg.start + range2.startOffset - 1 : seg.start + range2.endOffset;
1177
- }
1178
- }
1179
- }
1180
- const lowerFull = fullText.toLowerCase();
1181
- const lowerQuery = text.toLowerCase();
1182
- let matchStart = -1;
1183
- if (backward) {
1184
- matchStart = lowerFull.lastIndexOf(lowerQuery, Math.max(0, searchFrom));
1185
- if (matchStart === -1) matchStart = lowerFull.lastIndexOf(lowerQuery);
1186
- } else {
1187
- matchStart = lowerFull.indexOf(lowerQuery, searchFrom);
1188
- if (matchStart === -1) matchStart = lowerFull.indexOf(lowerQuery);
1189
- }
1190
- if (matchStart === -1) return;
1191
- const matchEnd = matchStart + text.length;
1192
- const range = document.createRange();
1193
- let startSet = false;
1194
- let endSet = false;
1195
- for (let i = 0; i < segments.length && !endSet; i++) {
1196
- const seg = segments[i];
1197
- const segEnd = seg.start + seg.node.length;
1198
- if (!startSet && matchStart < segEnd && matchStart >= seg.start) {
1199
- range.setStart(seg.node, matchStart - seg.start);
1200
- startSet = true;
1201
- }
1202
- if (startSet && matchEnd <= segEnd) {
1203
- range.setEnd(seg.node, matchEnd - seg.start);
1204
- endSet = true;
1205
- }
1206
- }
1207
- if (startSet && endSet) {
1208
- selection.removeAllRanges();
1209
- selection.addRange(range);
1210
- (_b = (_a = range.startContainer.parentElement) == null ? void 0 : _a.scrollIntoView) == null ? void 0 : _b.call(_a, { block: "nearest" });
1211
- }
1212
- };
1213
- const handleCreateLink = () => {
1214
- if (savedSelection.current) {
1215
- const selection2 = window.getSelection();
1216
- selection2 == null ? void 0 : selection2.removeAllRanges();
1217
- selection2 == null ? void 0 : selection2.addRange(savedSelection.current);
1218
- }
1219
- const selection = window.getSelection();
1220
- const anchorNode = selection == null ? void 0 : selection.anchorNode;
1221
- const existingLink = findParentTag(anchorNode || null, "A");
1222
- if (existingLink) {
1223
- if (linkUrl) {
1224
- existingLink.setAttribute("href", linkUrl);
1225
- existingLink.setAttribute("target", "_blank");
1226
- existingLink.setAttribute("rel", "noopener noreferrer");
1227
- existingLink.style.color = "hsl(var(--primary))";
1228
- existingLink.style.textDecoration = "underline";
1229
- existingLink.style.cursor = "pointer";
1230
- }
1231
- handleInput();
1232
- setIsLinkOpen(false);
1233
- savedSelection.current = null;
1234
- return;
1235
- }
1236
- if (!selection || selection.rangeCount === 0 || selection.isCollapsed) {
1237
- return;
1238
- }
1239
- if (linkUrl) {
1240
- execCommand("createLink", linkUrl);
1241
- setTimeout(() => {
1242
- var _a;
1243
- const anchor = findParentTag(((_a = window.getSelection()) == null ? void 0 : _a.anchorNode) || null, "A");
1244
- if (anchor) {
1245
- anchor.setAttribute("target", "_blank");
1246
- anchor.setAttribute("rel", "noopener noreferrer");
1247
- anchor.style.color = "hsl(var(--primary))";
1248
- anchor.style.textDecoration = "underline";
1249
- anchor.style.cursor = "pointer";
1250
- }
1251
- handleInput();
1252
- }, 10);
1253
- setIsLinkOpen(false);
1254
- savedSelection.current = null;
1255
- }
1256
- };
1257
- const handleUnlink = () => {
1258
- const selection = window.getSelection();
1259
- const anchorNode = selection == null ? void 0 : selection.anchorNode;
1260
- const existingLink = findParentTag(anchorNode || null, "A");
1261
- if (existingLink) {
1262
- const parent = existingLink.parentNode;
1263
- while (existingLink.firstChild) {
1264
- parent == null ? void 0 : parent.insertBefore(existingLink.firstChild, existingLink);
1265
- }
1266
- parent == null ? void 0 : parent.removeChild(existingLink);
1267
- handleInput();
1268
- } else {
1269
- execCommand("unlink");
1270
- }
1271
- };
1272
- const onLinkPopoverOpenChange = (open) => {
1273
- if (open) {
1274
- const selection = window.getSelection();
1275
- const anchorNode = selection == null ? void 0 : selection.anchorNode;
1276
- const focusNode = selection == null ? void 0 : selection.focusNode;
1277
- const existingLink = findParentTag(anchorNode || null, "A") || findParentTag(focusNode || null, "A");
1278
- if (existingLink) {
1279
- setLinkUrl(existingLink.getAttribute("href") || "https://");
1280
- } else {
1281
- setLinkUrl("https://");
1282
- }
1283
- if (selection && selection.rangeCount > 0 && (!selection.isCollapsed || existingLink)) {
1284
- savedSelection.current = selection.getRangeAt(0).cloneRange();
1285
- } else {
1286
- savedSelection.current = null;
1287
- }
1288
- setTimeout(() => {
1289
- var _a;
1290
- return (_a = linkInputRef.current) == null ? void 0 : _a.focus();
1291
- }, 100);
1292
- }
1293
- setIsLinkOpen(open);
1294
- };
1295
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("flex flex-col h-full w-full bg-background sm:border border-border sm:shadow-sm sm:rounded-lg overflow-hidden", disabled && "opacity-50 pointer-events-none", className), children: [
1296
- /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
1297
- [contenteditable]:empty:before {
1298
- content: attr(data-placeholder);
1299
- color: hsl(var(--muted-foreground));
1300
- pointer-events: none;
1301
- display: block;
1302
- }
1303
- .prose-editor ul {
1304
- list-style-type: disc !important;
1305
- padding-left: 1.5rem !important;
1306
- margin-top: 0.5rem !important;
1307
- margin-bottom: 0.5rem !important;
1308
- }
1309
- .prose-editor ol {
1310
- list-style-type: decimal !important;
1311
- padding-left: 1.5rem !important;
1312
- margin-top: 0.5rem !important;
1313
- margin-bottom: 0.5rem !important;
1314
- }
1315
- .prose-editor b, .prose-editor strong {
1316
- font-weight: 600 !important;
1317
- }
1318
- .prose-editor i, .prose-editor em {
1319
- font-style: italic !important;
1320
- }
1321
- .prose-editor u {
1322
- text-decoration: underline !important;
1323
- }
1324
- .prose-editor h1 {
1325
- font-size: 2.25rem !important;
1326
- font-weight: 700 !important;
1327
- margin-bottom: 1.25rem !important;
1328
- line-height: 1.2 !important;
1329
- margin-top: 2rem !important;
1330
- color: hsl(var(--foreground));
1331
- }
1332
- .prose-editor h2 {
1333
- font-size: 1.75rem !important;
1334
- font-weight: 600 !important;
1335
- margin-bottom: 1rem !important;
1336
- margin-top: 1.5rem !important;
1337
- color: hsl(var(--foreground));
1338
- }
1339
- .prose-editor h3 {
1340
- font-size: 1.35rem !important;
1341
- font-weight: 600 !important;
1342
- margin-bottom: 0.75rem !important;
1343
- margin-top: 1.25rem !important;
1344
- color: hsl(var(--foreground));
1345
- }
1346
- .prose-editor p {
1347
- margin-bottom: 1rem !important;
1348
- line-height: 1.6 !important;
1349
- }
1350
- .prose-editor a {
1351
- color: var(--info) !important;
1352
- text-decoration: underline !important;
1353
- cursor: pointer !important;
1354
- }
1355
- .prose-editor h1:first-child, .prose-editor h2:first-child, .prose-editor h3:first-child, .prose-editor p:first-child {
1356
- margin-top: 0 !important;
1357
- }
1358
- .prose-editor {
1359
- outline: none !important;
1360
- }
1361
- ` }),
1362
- showToolbar && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-3 py-2 border-b border-border bg-muted/30 flex items-center gap-1 flex-wrap shrink-0", children: [
1363
- allowUndoRedo && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1364
- /* @__PURE__ */ jsxRuntime.jsx(
1365
- tooltip.Button,
1366
- {
1367
- variant: "ghost",
1368
- size: "icon",
1369
- className: "h-8 w-8 text-muted-foreground",
1370
- onClick: () => execCommand("undo"),
1371
- title: "Desfazer",
1372
- "aria-label": "Desfazer",
1373
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Undo, { className: "w-4 h-4" })
1374
- }
1375
- ),
1376
- /* @__PURE__ */ jsxRuntime.jsx(
1377
- tooltip.Button,
1378
- {
1379
- variant: "ghost",
1380
- size: "icon",
1381
- className: "h-8 w-8 text-muted-foreground",
1382
- onClick: () => execCommand("redo"),
1383
- title: "Refazer",
1384
- "aria-label": "Refazer",
1385
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Redo, { className: "w-4 h-4" })
1386
- }
1387
- ),
1388
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-6 bg-border mx-1 hidden sm:block" })
1389
- ] }),
1390
- allowHeadings && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1391
- /* @__PURE__ */ jsxRuntime.jsxs(dropdownMenu.DropdownMenu, { modal: false, children: [
1392
- /* @__PURE__ */ jsxRuntime.jsx(dropdownMenu.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(tooltip.Button, { variant: "ghost", size: "sm", className: "h-8 gap-0 text-muted-foreground w-[120px] justify-start px-2", children: [
1393
- getCurrentBlockLabel(),
1394
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "w-3 h-3 ml-auto opacity-50 shrink-0" })
1395
- ] }) }),
1396
- /* @__PURE__ */ jsxRuntime.jsxs(dropdownMenu.DropdownMenuContent, { align: "start", className: "w-[160px]", style: { zIndex: 9999 }, children: [
1397
- /* @__PURE__ */ jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem, { onPointerDown: (e) => e.preventDefault(), onClick: () => execCommand("formatBlock", "P"), className: "gap-2", children: [
1398
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Type, { className: "w-4 h-4 text-muted-foreground" }),
1399
- " Parágrafo"
1400
- ] }),
1401
- /* @__PURE__ */ jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem, { onPointerDown: (e) => e.preventDefault(), onClick: () => execCommand("formatBlock", "H1"), className: "gap-2", children: [
1402
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heading1, { className: "w-4 h-4 text-muted-foreground" }),
1403
- " Título 1"
1404
- ] }),
1405
- /* @__PURE__ */ jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem, { onPointerDown: (e) => e.preventDefault(), onClick: () => execCommand("formatBlock", "H2"), className: "gap-2", children: [
1406
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heading2, { className: "w-4 h-4 text-muted-foreground" }),
1407
- " Título 2"
1408
- ] }),
1409
- /* @__PURE__ */ jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem, { onPointerDown: (e) => e.preventDefault(), onClick: () => execCommand("formatBlock", "H3"), className: "gap-2", children: [
1410
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heading3, { className: "w-4 h-4 text-muted-foreground" }),
1411
- " Título 3"
1412
- ] })
1413
- ] })
1414
- ] }),
1415
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-6 bg-border mx-1 hidden sm:block" })
1416
- ] }),
1417
- allowFormatting && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1418
- /* @__PURE__ */ jsxRuntime.jsx(
1419
- tooltip.Button,
1420
- {
1421
- variant: "ghost",
1422
- size: "icon",
1423
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.bold && "bg-muted text-foreground"),
1424
- onClick: () => execCommand("bold"),
1425
- title: "Negrito",
1426
- "aria-label": "Negrito",
1427
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bold, { className: "w-4 h-4" })
1428
- }
1429
- ),
1430
- /* @__PURE__ */ jsxRuntime.jsx(
1431
- tooltip.Button,
1432
- {
1433
- variant: "ghost",
1434
- size: "icon",
1435
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.italic && "bg-muted text-foreground"),
1436
- onClick: () => execCommand("italic"),
1437
- title: "Itálico",
1438
- "aria-label": "Itálico",
1439
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Italic, { className: "w-4 h-4" })
1440
- }
1441
- ),
1442
- /* @__PURE__ */ jsxRuntime.jsx(
1443
- tooltip.Button,
1444
- {
1445
- variant: "ghost",
1446
- size: "icon",
1447
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.underline && "bg-muted text-foreground"),
1448
- onClick: () => execCommand("underline"),
1449
- title: "Sublinhado",
1450
- "aria-label": "Sublinhado",
1451
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Underline, { className: "w-4 h-4" })
1452
- }
1453
- ),
1454
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-6 bg-border mx-1 hidden sm:block" })
1455
- ] }),
1456
- allowAlignment && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1457
- /* @__PURE__ */ jsxRuntime.jsx(
1458
- tooltip.Button,
1459
- {
1460
- variant: "ghost",
1461
- size: "icon",
1462
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.justifyLeft && "bg-muted text-foreground"),
1463
- onClick: () => execCommand("justifyLeft"),
1464
- title: "Alinhar à esquerda",
1465
- "aria-label": "Alinhar à esquerda",
1466
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlignLeft, { className: "w-4 h-4" })
1467
- }
1468
- ),
1469
- /* @__PURE__ */ jsxRuntime.jsx(
1470
- tooltip.Button,
1471
- {
1472
- variant: "ghost",
1473
- size: "icon",
1474
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.justifyCenter && "bg-muted text-foreground"),
1475
- onClick: () => execCommand("justifyCenter"),
1476
- title: "Centralizar",
1477
- "aria-label": "Centralizar",
1478
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlignCenter, { className: "w-4 h-4" })
1479
- }
1480
- ),
1481
- /* @__PURE__ */ jsxRuntime.jsx(
1482
- tooltip.Button,
1483
- {
1484
- variant: "ghost",
1485
- size: "icon",
1486
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.justifyRight && "bg-muted text-foreground"),
1487
- onClick: () => execCommand("justifyRight"),
1488
- title: "Alinhar à direita",
1489
- "aria-label": "Alinhar à direita",
1490
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlignRight, { className: "w-4 h-4" })
1491
- }
1492
- ),
1493
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-6 bg-border mx-1 hidden sm:block" })
1494
- ] }),
1495
- allowLists && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1496
- /* @__PURE__ */ jsxRuntime.jsx(
1497
- tooltip.Button,
1498
- {
1499
- variant: "ghost",
1500
- size: "icon",
1501
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.insertUnorderedList && "bg-muted text-foreground"),
1502
- onClick: () => execCommand("insertUnorderedList"),
1503
- title: "Lista com marcadores",
1504
- "aria-label": "Lista com marcadores",
1505
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.List, { className: "w-4 h-4" })
1506
- }
1507
- ),
1508
- /* @__PURE__ */ jsxRuntime.jsx(
1509
- tooltip.Button,
1510
- {
1511
- variant: "ghost",
1512
- size: "icon",
1513
- className: tooltip.cn("h-8 w-8 text-muted-foreground", activeFormats.insertOrderedList && "bg-muted text-foreground"),
1514
- onClick: () => execCommand("insertOrderedList"),
1515
- title: "Lista numerada",
1516
- "aria-label": "Lista numerada",
1517
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ListOrdered, { className: "w-4 h-4" })
1518
- }
1519
- ),
1520
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-6 bg-border mx-1 hidden sm:block" })
1521
- ] }),
1522
- allowLinks && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1523
- /* @__PURE__ */ jsxRuntime.jsxs(input.Popover, { open: isLinkOpen, onOpenChange: onLinkPopoverOpenChange, modal: false, children: [
1524
- /* @__PURE__ */ jsxRuntime.jsx(input.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1525
- tooltip.Button,
1526
- {
1527
- variant: "ghost",
1528
- size: "icon",
1529
- className: tooltip.cn("h-8 w-8 text-muted-foreground", (activeFormats.link || isLinkOpen) && "bg-muted text-foreground"),
1530
- title: "Inserir link",
1531
- "aria-label": "Inserir link",
1532
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link, { className: "w-4 h-4" })
1533
- }
1534
- ) }),
1535
- /* @__PURE__ */ jsxRuntime.jsx(input.PopoverContent, { className: "w-80 p-3", align: "start", style: { zIndex: 9999 }, children: !savedSelection.current && !activeFormats.link ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground py-1", children: "Selecione um texto para criar um link." }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
1536
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium", children: activeFormats.link ? "Editar Link" : "Inserir Link" }),
1537
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
1538
- /* @__PURE__ */ jsxRuntime.jsx(
1539
- input.Input,
1540
- {
1541
- ref: linkInputRef,
1542
- placeholder: "https://...",
1543
- value: linkUrl,
1544
- onChange: (e) => setLinkUrl(e.target.value),
1545
- onKeyDown: (e) => e.key === "Enter" && handleCreateLink(),
1546
- className: "h-8 text-xs"
1547
- }
1548
- ),
1549
- /* @__PURE__ */ jsxRuntime.jsx(tooltip.Button, { size: "sm", className: "h-8", onClick: handleCreateLink, children: "Aplicar" })
1550
- ] })
1551
- ] }) })
1552
- ] }),
1553
- /* @__PURE__ */ jsxRuntime.jsx(
1554
- tooltip.Button,
1555
- {
1556
- variant: "ghost",
1557
- size: "icon",
1558
- className: "h-8 w-8 text-muted-foreground",
1559
- onClick: handleUnlink,
1560
- title: "Remover link",
1561
- "aria-label": "Remover link",
1562
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-4 h-4" })
1563
- }
1564
- ),
1565
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-6 bg-border mx-1 hidden sm:block" })
1566
- ] }),
1567
- (allowFormatting || allowHeadings || allowAlignment || allowLists || allowLinks) && /* @__PURE__ */ jsxRuntime.jsx(
1568
- tooltip.Button,
1569
- {
1570
- variant: "ghost",
1571
- size: "icon",
1572
- className: "h-8 w-8 text-muted-foreground",
1573
- onClick: () => execCommand("removeFormat"),
1574
- title: "Limpar formatação",
1575
- "aria-label": "Limpar formatação",
1576
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Type, { className: "w-4 h-4" })
1577
- }
1578
- ),
1579
- allowSearch && /* @__PURE__ */ jsxRuntime.jsx(
1580
- tooltip.Button,
1581
- {
1582
- variant: "ghost",
1583
- size: "icon",
1584
- className: tooltip.cn("h-8 w-8 text-muted-foreground", isSearchOpen && "bg-muted text-foreground"),
1585
- onClick: () => {
1586
- setIsSearchOpen(!isSearchOpen);
1587
- if (!isSearchOpen) setTimeout(() => {
1588
- var _a;
1589
- return (_a = searchInputRef.current) == null ? void 0 : _a.focus();
1590
- }, 100);
1591
- },
1592
- title: "Buscar",
1593
- "aria-label": "Buscar",
1594
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "w-4 h-4" })
1595
- }
1596
- ),
1597
- actionButton && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1598
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1" }),
1599
- actionButton
1600
- ] })
1601
- ] }),
1602
- isSearchOpen && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-3 py-1.5 border-b border-border bg-muted/20 flex items-center gap-2", children: [
1603
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1 max-w-sm", children: [
1604
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground" }),
1605
- /* @__PURE__ */ jsxRuntime.jsx(
1606
- input.Input,
1607
- {
1608
- ref: searchInputRef,
1609
- placeholder: "Buscar no texto...",
1610
- value: searchQuery,
1611
- onChange: (e) => setSearchQuery(e.target.value),
1612
- onKeyDown: (e) => {
1613
- if (e.key === "Enter") {
1614
- e.preventDefault();
1615
- performSearch(searchQuery, e.shiftKey);
1616
- }
1617
- if (e.key === "Escape") {
1618
- setIsSearchOpen(false);
1619
- }
1620
- },
1621
- className: "h-8 pl-8 text-xs bg-background"
1622
- }
1623
- )
1624
- ] }),
1625
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
1626
- /* @__PURE__ */ jsxRuntime.jsx(
1627
- tooltip.Button,
1628
- {
1629
- variant: "ghost",
1630
- size: "icon",
1631
- className: "h-7 w-7",
1632
- onMouseDown: (e) => e.preventDefault(),
1633
- onClick: () => performSearch(searchQuery, true),
1634
- title: "Anterior",
1635
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "w-4 h-4" })
1636
- }
1637
- ),
1638
- /* @__PURE__ */ jsxRuntime.jsx(
1639
- tooltip.Button,
1640
- {
1641
- variant: "ghost",
1642
- size: "icon",
1643
- className: "h-7 w-7",
1644
- onMouseDown: (e) => e.preventDefault(),
1645
- onClick: () => performSearch(searchQuery, false),
1646
- title: "Próximo",
1647
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "w-4 h-4" })
1648
- }
1649
- ),
1650
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-px h-4 bg-border mx-1" }),
1651
- /* @__PURE__ */ jsxRuntime.jsx(
1652
- tooltip.Button,
1653
- {
1654
- variant: "ghost",
1655
- size: "icon",
1656
- className: "h-7 w-7 text-muted-foreground hover:text-foreground",
1657
- onClick: () => setIsSearchOpen(false),
1658
- title: "Fechar busca",
1659
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-4 h-4" })
1660
- }
1661
- )
1662
- ] }),
1663
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block text-[10px] text-muted-foreground ml-auto uppercase tracking-wider font-medium", children: "Pressione Enter para buscar" })
1664
- ] }),
1665
- /* @__PURE__ */ jsxRuntime.jsx(
1666
- "div",
1667
- {
1668
- className: "flex-1 overflow-y-auto p-4 sm:p-8 bg-background scrollbar-thin",
1669
- style: { minHeight, maxHeight },
1670
- children: /* @__PURE__ */ jsxRuntime.jsx(
1671
- "div",
1672
- {
1673
- ref: editorRef,
1674
- contentEditable: isEditable,
1675
- onInput: handleInput,
1676
- onSelect: isEditable ? updateActiveFormats : void 0,
1677
- onFocus: () => {
1678
- updateActiveFormats();
1679
- onFocus == null ? void 0 : onFocus();
1680
- },
1681
- onBlur,
1682
- className: "prose-editor min-h-full max-w-none focus:outline-none",
1683
- "data-placeholder": placeholder
1684
- }
1685
- )
1686
- }
1687
- ),
1688
- (showWordCount || showCharacterCount) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-4 py-2 border-t border-border bg-muted/20 flex items-center justify-between", children: [
1689
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[10px] sm:text-xs text-muted-foreground font-medium uppercase tracking-wider flex items-center gap-2", children: [
1690
- showWordCount && /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1691
- getWordCount(),
1692
- " ",
1693
- getWordCount() === 1 ? "palavra" : "palavras"
1694
- ] }),
1695
- showWordCount && showCharacterCount && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "•" }),
1696
- showCharacterCount && /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1697
- getCharacterCount(),
1698
- " ",
1699
- getCharacterCount() === 1 ? "caractere" : "caracteres"
1700
- ] })
1701
- ] }),
1702
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[10px] sm:text-xs text-muted-foreground/60 italic", children: "Auto-save ativo" })
1703
- ] })
1704
- ] });
1705
- }
1706
- exports.Card = Card;
1707
- exports.CardAction = CardAction;
1708
- exports.CardContent = CardContent;
1709
- exports.CardDescription = CardDescription;
1710
- exports.CardFooter = CardFooter;
1711
- exports.CardHeader = CardHeader;
1712
- exports.CardTitle = CardTitle;
1713
- exports.ChartCard = ChartCard;
1714
- exports.ChartContainer = ChartContainer;
1715
- exports.ChartLegend = ChartLegend;
1716
- exports.ChartLegendContent = ChartLegendContent;
1717
- exports.ChartStyle = ChartStyle;
1718
- exports.ChartTooltip = ChartTooltip;
1719
- exports.ChartTooltipContent = ChartTooltipContent;
1720
- exports.ComboMetricChart = ComboMetricChart;
1721
- exports.DashboardBarChart = DashboardBarChart;
1722
- exports.Dialog = Dialog;
1723
- exports.DialogBody = DialogBody;
1724
- exports.DialogClose = DialogClose;
1725
- exports.DialogContent = DialogContent;
1726
- exports.DialogDescription = DialogDescription;
1727
- exports.DialogFooter = DialogFooter;
1728
- exports.DialogHeader = DialogHeader;
1729
- exports.DialogOverlay = DialogOverlay;
1730
- exports.DialogPortal = DialogPortal;
1731
- exports.DialogTitle = DialogTitle;
1732
- exports.DialogTrigger = DialogTrigger;
1733
- exports.DonutBreakdownChart = DonutBreakdownChart;
1734
- exports.InteractiveTimeSeriesChart = InteractiveTimeSeriesChart;
1735
- exports.RichTextEditor = RichTextEditor;
1736
- exports.Table = Table;
1737
- exports.TableBody = TableBody;
1738
- exports.TableCaption = TableCaption;
1739
- exports.TableCell = TableCell;
1740
- exports.TableFooter = TableFooter;
1741
- exports.TableHead = TableHead;
1742
- exports.TableHeader = TableHeader;
1743
- exports.TableRow = TableRow;
1744
- exports.Tabs = Tabs;
1745
- exports.TabsContent = TabsContent;
1746
- exports.TabsList = TabsList;
1747
- exports.TabsTrigger = TabsTrigger;
1748
- exports.Textarea = Textarea;