xertica-ui 2.1.3 → 2.1.4

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 (404) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/components/assistant/index.ts +6 -6
  6. package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +97 -0
  7. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -0
  8. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -0
  9. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +86 -0
  10. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +77 -0
  11. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +573 -0
  12. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +65 -0
  13. package/components/assistant/xertica-assistant/parts/AssistantTypingIndicator.tsx +41 -0
  14. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +98 -0
  15. package/components/assistant/xertica-assistant/parts/index.ts +16 -0
  16. package/components/assistant/xertica-assistant/types.ts +139 -0
  17. package/components/assistant/xertica-assistant/use-assistant.ts +5 -10
  18. package/components/assistant/xertica-assistant/xertica-assistant.tsx +125 -1096
  19. package/components/blocks/card-patterns/ActivityCard.tsx +72 -72
  20. package/components/blocks/card-patterns/FeatureCard.tsx +100 -100
  21. package/components/blocks/card-patterns/NotificationCard.tsx +127 -127
  22. package/components/blocks/card-patterns/ProfileCard.tsx +84 -84
  23. package/components/blocks/card-patterns/ProjectCard.tsx +89 -89
  24. package/components/blocks/card-patterns/QuickActionCard.tsx +62 -62
  25. package/components/blocks/card-patterns/card-patterns.stories.tsx +445 -445
  26. package/components/blocks/card-patterns/index.ts +17 -17
  27. package/components/blocks/index.ts +1 -1
  28. package/components/brand/index.ts +6 -6
  29. package/components/brand/theme-toggle/ThemeToggle.tsx +8 -27
  30. package/components/brand/xertica-provider/XerticaProvider.tsx +48 -48
  31. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  32. package/components/brand/xertica-provider/xertica-provider.test.tsx +52 -52
  33. package/components/examples/MapExamples.tsx +282 -282
  34. package/components/examples/SimpleFilterableMap.tsx +191 -191
  35. package/components/examples/index.ts +51 -51
  36. package/components/figma/ImageWithFallback.tsx +27 -27
  37. package/components/hooks/index.ts +10 -7
  38. package/components/hooks/use-layout-shortcuts.ts +46 -0
  39. package/components/index.ts +5 -5
  40. package/components/layout/header/header.test.tsx +8 -8
  41. package/components/layout/header/header.tsx +4 -4
  42. package/components/layout/index.ts +2 -2
  43. package/components/layout/sidebar/sidebar.mdx +1 -1
  44. package/components/layout/sidebar/sidebar.test.tsx +11 -11
  45. package/components/layout/sidebar/sidebar.tsx +1 -31
  46. package/components/layout/sidebar/use-sidebar.ts +2 -11
  47. package/components/media/FloatingMediaWrapper.tsx +11 -11
  48. package/components/media/audio-player/AudioPlayer.tsx +140 -215
  49. package/components/media/audio-player/use-audio-player.ts +298 -0
  50. package/components/media/index.ts +3 -3
  51. package/components/pages/home-content/HomeContent.tsx +7 -7
  52. package/components/pages/home-content/home-content.mdx +62 -62
  53. package/components/pages/home-page/HomePage.stories.tsx +39 -39
  54. package/components/pages/home-page/home-page.mdx +53 -53
  55. package/components/pages/index.ts +8 -8
  56. package/components/pages/template-content/template-content.mdx +61 -61
  57. package/components/pages/template-page/TemplatePage.stories.tsx +39 -39
  58. package/components/pages/template-page/template-page.mdx +53 -53
  59. package/components/public-api-smoke.test.tsx +52 -52
  60. package/components/shared/CustomTooltipContent.tsx +52 -0
  61. package/components/shared/assistant-utils.ts +43 -43
  62. package/components/ui/accordion/accordion.mdx +8 -8
  63. package/components/ui/accordion/accordion.stories.tsx +53 -53
  64. package/components/ui/alert/alert.mdx +8 -8
  65. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  66. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  67. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  68. package/components/ui/avatar/avatar.mdx +8 -8
  69. package/components/ui/badge/badge.mdx +8 -8
  70. package/components/ui/badge/badge.tsx +9 -9
  71. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  72. package/components/ui/button/button.mdx +8 -8
  73. package/components/ui/calendar/calendar.mdx +8 -8
  74. package/components/ui/calendar/calendar.tsx +258 -258
  75. package/components/ui/card/card.mdx +8 -8
  76. package/components/ui/card/card.stories.tsx +245 -245
  77. package/components/ui/carousel/carousel.mdx +8 -8
  78. package/components/ui/chart/chart.mdx +8 -8
  79. package/components/ui/chart/chart.stories.tsx +1303 -1303
  80. package/components/ui/chart/chart.test.tsx +154 -154
  81. package/components/ui/chart/chart.tsx +2367 -2367
  82. package/components/ui/checkbox/checkbox.mdx +8 -8
  83. package/components/ui/checkbox/checkbox.stories.tsx +20 -20
  84. package/components/ui/collapsible/collapsible.mdx +8 -8
  85. package/components/ui/command/command.mdx +8 -8
  86. package/components/ui/context-menu/context-menu.mdx +8 -8
  87. package/components/ui/dialog/dialog.mdx +8 -8
  88. package/components/ui/drawer/drawer.mdx +8 -8
  89. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  90. package/components/ui/empty/empty.mdx +8 -8
  91. package/components/ui/file-upload/file-upload.mdx +8 -8
  92. package/components/ui/google-maps-loader/google-maps-loader.tsx +2 -2
  93. package/components/ui/hover-card/hover-card.mdx +8 -8
  94. package/components/ui/input/input.mdx +8 -8
  95. package/components/ui/input-otp/input-otp.mdx +8 -8
  96. package/components/ui/input-otp/input-otp.stories.tsx +6 -6
  97. package/components/ui/label/label.mdx +8 -8
  98. package/components/ui/map/map.mdx +8 -8
  99. package/components/ui/map/map.stories.tsx +51 -51
  100. package/components/ui/map/map.tsx +2 -2
  101. package/components/ui/menubar/menubar.mdx +8 -8
  102. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  103. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  104. package/components/ui/pagination/pagination.mdx +8 -8
  105. package/components/ui/popover/popover.mdx +8 -8
  106. package/components/ui/progress/progress.mdx +8 -8
  107. package/components/ui/progress/progress.tsx +68 -68
  108. package/components/ui/radio-group/radio-group.mdx +8 -8
  109. package/components/ui/rating/rating.mdx +8 -8
  110. package/components/ui/resizable/resizable.mdx +8 -8
  111. package/components/ui/route-map/route-map.mdx +8 -8
  112. package/components/ui/route-map/route-map.stories.tsx +54 -54
  113. package/components/ui/route-map/route-map.tsx +2 -2
  114. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  115. package/components/ui/search/search.mdx +8 -8
  116. package/components/ui/select/select.mdx +8 -8
  117. package/components/ui/select/select.stories.tsx +9 -9
  118. package/components/ui/separator/separator.mdx +8 -8
  119. package/components/ui/sheet/sheet.mdx +8 -8
  120. package/components/ui/sheet/sheet.stories.tsx +95 -95
  121. package/components/ui/simple-map/simple-map.mdx +8 -8
  122. package/components/ui/simple-map/simple-map.stories.tsx +48 -48
  123. package/components/ui/skeleton/skeleton.mdx +8 -8
  124. package/components/ui/slider/slider.mdx +8 -8
  125. package/components/ui/sonner/sonner.mdx +8 -8
  126. package/components/ui/stats-card/stats-card.mdx +8 -8
  127. package/components/ui/stepper/stepper.mdx +8 -8
  128. package/components/ui/switch/switch.mdx +8 -8
  129. package/components/ui/switch/switch.stories.tsx +20 -20
  130. package/components/ui/table/table.mdx +8 -8
  131. package/components/ui/tabs/tabs.mdx +8 -8
  132. package/components/ui/tabs/tabs.stories.tsx +26 -26
  133. package/components/ui/textarea/textarea.mdx +8 -8
  134. package/components/ui/timeline/timeline.mdx +8 -8
  135. package/components/ui/toggle/toggle.mdx +8 -8
  136. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  137. package/components/ui/tooltip/tooltip.mdx +8 -8
  138. package/components/ui/tree-view/tree-view.mdx +8 -8
  139. package/components.json +1512 -1512
  140. package/contexts/ApiKeyContext.tsx +72 -72
  141. package/contexts/AssistenteContext.tsx +17 -54
  142. package/contexts/BrandColorsContext.tsx +32 -43
  143. package/contexts/LanguageContext.tsx +13 -13
  144. package/contexts/LayoutContext.test.tsx +11 -11
  145. package/contexts/LayoutContext.tsx +24 -50
  146. package/contexts/ThemeContext.tsx +26 -26
  147. package/contexts/theme-data.ts +4 -4
  148. package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
  149. package/dist/{AssistantChart-CldVCVDe.cjs → AssistantChart-BAudAfne.cjs} +5 -5
  150. package/dist/{use-mobile-DRB3BQgD.cjs → AssistantChart-BAx9VQvb.cjs} +209 -1070
  151. package/dist/{AssistantChart-Cu3m7RBo.js → AssistantChart-BP8upjMk.js} +5 -5
  152. package/dist/{use-mobile-BvYdisLP.js → AssistantChart-CVko2A1W.js} +171 -1025
  153. package/dist/{AssistantChart-C_hwFRRr.js → AssistantChart-CVzmmhx4.js} +4 -4
  154. package/dist/{AudioPlayer-C12BjQBV.cjs → AudioPlayer-1ypwE2Wh.cjs} +126 -187
  155. package/dist/{AudioPlayer-DcFKRJE_.js → AudioPlayer-DuKXrCfy.js} +80 -141
  156. package/dist/CustomTooltipContent-DHjkY0ww.js +40 -0
  157. package/dist/CustomTooltipContent-c_K-DWRr.cjs +56 -0
  158. package/dist/{ThemeContext-BoH4NLfN.js → LanguageContext-BwhwC3G2.js} +27 -104
  159. package/dist/{ThemeContext-r69W20Xg.cjs → LanguageContext-DvUt5jBg.cjs} +27 -104
  160. package/dist/{LayoutContext-BvK-ggDa.cjs → LayoutContext-BDmcZfMH.cjs} +8 -20
  161. package/dist/{LayoutContext-BAql6ZRY.js → LayoutContext-dbQvdC4O.js} +8 -20
  162. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  163. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  164. package/dist/ThemeContext-RTy1m2Uq.js +82 -0
  165. package/dist/ThemeContext-bSzuOit2.cjs +81 -0
  166. package/dist/VerifyEmailPage-BE-L9mB7.js +2828 -0
  167. package/dist/{VerifyEmailPage-Cwi3kbol.cjs → VerifyEmailPage-Bae2cBXT.cjs} +7 -7
  168. package/dist/VerifyEmailPage-CR7kb5df.cjs +2827 -0
  169. package/dist/{VerifyEmailPage-C0c2e5n0.js → VerifyEmailPage-C_ihbcth.js} +6 -6
  170. package/dist/VerifyEmailPage-CbgjOF0v.js +2828 -0
  171. package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
  172. package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
  173. package/dist/VerifyEmailPage-Dt7zgA4w.cjs +2827 -0
  174. package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
  175. package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
  176. package/dist/{XerticaProvider-cI9hSs27.cjs → XerticaProvider-CW9hpCdF.cjs} +9 -8
  177. package/dist/{XerticaProvider-DDuiIcKo.js → XerticaProvider-siSt9uG2.js} +5 -4
  178. package/dist/{LanguageSelector-D6uacAIM.cjs → XerticaXLogo-D8jf0SNv.cjs} +86 -102
  179. package/dist/{LanguageSelector-B5YfbHra.js → XerticaXLogo-fAJMy3H4.js} +87 -103
  180. package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
  181. package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
  182. package/dist/assistant.cjs.js +1 -1
  183. package/dist/assistant.es.js +1 -1
  184. package/dist/brand.cjs.js +2 -2
  185. package/dist/brand.es.js +2 -2
  186. package/dist/components/assistant/xertica-assistant/parts/AssistantCollapsedView.d.ts +13 -0
  187. package/dist/components/assistant/xertica-assistant/parts/AssistantConversationList.d.ts +16 -0
  188. package/dist/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.d.ts +17 -0
  189. package/dist/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.d.ts +19 -0
  190. package/dist/components/assistant/xertica-assistant/parts/AssistantHeader.d.ts +11 -0
  191. package/dist/components/assistant/xertica-assistant/parts/AssistantMessageBubble.d.ts +29 -0
  192. package/dist/components/assistant/xertica-assistant/parts/AssistantTabBar.d.ts +13 -0
  193. package/dist/components/assistant/xertica-assistant/parts/AssistantTypingIndicator.d.ts +4 -0
  194. package/dist/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.d.ts +17 -0
  195. package/dist/components/assistant/xertica-assistant/parts/index.d.ts +16 -0
  196. package/dist/components/assistant/xertica-assistant/types.d.ts +106 -0
  197. package/dist/components/assistant/xertica-assistant/use-assistant.d.ts +1 -2
  198. package/dist/components/assistant/xertica-assistant/xertica-assistant.d.ts +2 -96
  199. package/dist/components/hooks/index.d.ts +3 -0
  200. package/dist/components/hooks/use-layout-shortcuts.d.ts +22 -0
  201. package/dist/components/media/audio-player/AudioPlayer.d.ts +4 -1
  202. package/dist/components/media/audio-player/use-audio-player.d.ts +72 -0
  203. package/dist/components/shared/CustomTooltipContent.d.ts +20 -0
  204. package/dist/components/ui/alert/alert.d.ts +1 -1
  205. package/dist/components/ui/badge/badge.d.ts +1 -1
  206. package/dist/components/ui/button/button.d.ts +2 -2
  207. package/dist/contexts/AssistenteContext.d.ts +10 -49
  208. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  209. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  210. package/dist/hooks.cjs.js +30 -10
  211. package/dist/hooks.es.js +25 -4
  212. package/dist/index-CkTUgOwX.js +8 -0
  213. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  214. package/dist/index.cjs.js +11 -11
  215. package/dist/index.es.js +11 -11
  216. package/dist/index.umd.js +454 -1027
  217. package/dist/layout.cjs.js +3 -10
  218. package/dist/layout.es.js +3 -10
  219. package/dist/media.cjs.js +1 -1
  220. package/dist/media.es.js +1 -1
  221. package/dist/pages.cjs.js +1 -1
  222. package/dist/pages.es.js +1 -1
  223. package/dist/{sidebar-CK_0ZQHj.cjs → sidebar-CVUGHOS_.cjs} +10 -57
  224. package/dist/{sidebar-CUuOvYhK.js → sidebar-CmvwjnVb.js} +10 -40
  225. package/dist/ui.cjs.js +4 -4
  226. package/dist/ui.es.js +4 -4
  227. package/dist/use-audio-player-Bkh23vQ3.js +177 -0
  228. package/dist/use-audio-player-Dn1NR9xN.cjs +176 -0
  229. package/dist/utils/color-utils.d.ts +51 -0
  230. package/dist/{xertica-assistant-dyP7KHM5.cjs → xertica-assistant-B1IaHXnB.cjs} +388 -529
  231. package/dist/xertica-assistant-BMqdyRVi.js +2082 -0
  232. package/dist/xertica-assistant-Bj3vBCq_.cjs +2081 -0
  233. package/dist/{xertica-assistant-yX1CFBBo.js → xertica-assistant-DPsESB6t.js} +390 -531
  234. package/dist/{CodeBlock-BgfYL_rD.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  235. package/dist/{CodeBlock-DnYNI8rQ.js → xertica-assistant-gnCJdcZY.js} +7 -219
  236. package/dist/xertica-ui.css +2 -2
  237. package/docs/architecture-improvements.md +463 -0
  238. package/docs/architecture.md +1 -1
  239. package/docs/components/assistant-chart.md +1 -1
  240. package/docs/components/audio-player.md +46 -0
  241. package/docs/components/branding.md +251 -0
  242. package/docs/components/calendar.md +154 -154
  243. package/docs/components/card-patterns.md +337 -337
  244. package/docs/components/card.md +235 -235
  245. package/docs/components/code-block.md +108 -0
  246. package/docs/components/formatted-document.md +113 -0
  247. package/docs/components/hooks.md +430 -0
  248. package/docs/components/image-with-fallback.md +106 -0
  249. package/docs/components/map-layers.md +140 -0
  250. package/docs/components/map.md +84 -84
  251. package/docs/components/modern-chat-input.md +163 -0
  252. package/docs/components/pages.md +351 -0
  253. package/docs/components/xertica-provider.md +24 -24
  254. package/docs/decision-tree.md +287 -287
  255. package/docs/doc-audit.md +223 -0
  256. package/docs/getting-started.md +154 -0
  257. package/docs/llms.md +25 -5
  258. package/docs/patterns/detail-page.md +276 -0
  259. package/docs/patterns/settings.md +346 -0
  260. package/docs/patterns/wizard.md +217 -0
  261. package/guidelines/Guidelines.md +252 -252
  262. package/hooks/useTheme.ts +3 -3
  263. package/imports/Podcast.tsx +388 -388
  264. package/imports/XerticaAi.tsx +45 -45
  265. package/imports/XerticaX.tsx +19 -19
  266. package/imports/svg-aueiaqngck.ts +11 -11
  267. package/imports/svg-v9krss1ozd.ts +16 -16
  268. package/imports/svg-vhrdofe3qe.ts +5 -5
  269. package/llms-compact.txt +327 -327
  270. package/llms.txt +160 -160
  271. package/package.json +203 -203
  272. package/styles/xertica/app-overrides/chat.css +61 -61
  273. package/styles/xertica/app-overrides/scrollbar.css +33 -33
  274. package/styles/xertica/integrations/google-maps.css +76 -76
  275. package/styles/xertica/integrations/sonner.css +73 -73
  276. package/templates/CLAUDE.md +182 -182
  277. package/templates/guidelines/Guidelines.md +325 -325
  278. package/templates/package.json +2 -2
  279. package/templates/src/features/auth/index.ts +4 -4
  280. package/templates/src/features/auth/ui/AuthPageShell.tsx +34 -34
  281. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  282. package/templates/src/features/auth/ui/LoginContent.tsx +90 -90
  283. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +151 -151
  284. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +59 -59
  285. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +82 -82
  286. package/templates/src/features/home/index.ts +1 -1
  287. package/templates/src/features/home/ui/HomeContent.tsx +100 -100
  288. package/templates/src/features/template/index.ts +5 -5
  289. package/templates/src/features/template/ui/CrudTemplate.tsx +3 -3
  290. package/templates/src/features/template/ui/DashboardTemplate.tsx +3 -3
  291. package/templates/src/features/template/ui/FormTemplate.tsx +120 -120
  292. package/templates/src/features/template/ui/LoginTemplate.tsx +3 -3
  293. package/templates/src/pages/AssistantPage.tsx +328 -328
  294. package/templates/src/pages/ForgotPasswordPage.tsx +6 -6
  295. package/templates/src/pages/HomePage.tsx +57 -57
  296. package/templates/src/pages/LoginPage.tsx +10 -10
  297. package/templates/src/pages/ResetPasswordPage.tsx +6 -6
  298. package/templates/src/pages/TemplatePage.tsx +30 -30
  299. package/templates/src/pages/VerifyEmailPage.tsx +6 -6
  300. package/templates/src/shared/config/navigation.ts +20 -20
  301. package/templates/src/shared/lib/auth.ts +20 -20
  302. package/templates/src/shared/types/auth.ts +3 -3
  303. package/templates/tsconfig.json +5 -5
  304. package/utils/color-utils.ts +72 -0
  305. package/utils/gemini.ts +140 -140
  306. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  307. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  308. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  309. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  310. package/dist/CodeBlock-7TTgmdGG.cjs +0 -2094
  311. package/dist/CodeBlock-BeSt1h5P.js +0 -2078
  312. package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
  313. package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
  314. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  315. package/dist/CodeBlock-CIySIuYr.js +0 -2078
  316. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  317. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  318. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  319. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  320. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  321. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  322. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  323. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  324. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  325. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  326. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  327. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  328. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  329. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  330. package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
  331. package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
  332. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  333. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  334. package/dist/XerticaProvider-BlY2limY.cjs +0 -38
  335. package/dist/XerticaProvider-hSwhNQex.js +0 -39
  336. package/dist/breadcrumb-CqJ7bHY5.js +0 -161
  337. package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
  338. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  339. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  340. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  341. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  342. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  343. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  344. package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
  345. package/dist/dropdown-menu-DQidbKBD.js +0 -231
  346. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  347. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  348. package/dist/header-Cgy6vYPk.cjs +0 -731
  349. package/dist/header-DRlT4jgI.js +0 -715
  350. package/dist/header-Dux00SI4.cjs +0 -731
  351. package/dist/header-EkGKXPsD.js +0 -715
  352. package/dist/header-WfEywpyc.cjs +0 -731
  353. package/dist/header-tifNQn2U.js +0 -715
  354. package/dist/index-BhapVLVj.js +0 -8
  355. package/dist/index-D6fxYEY8.cjs +0 -7
  356. package/dist/index-DW5tYe26.js +0 -8
  357. package/dist/input-2R4loU86.js +0 -127
  358. package/dist/input-DWANSKGb.cjs +0 -145
  359. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  360. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  361. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  362. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  363. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  364. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  365. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  366. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  367. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  368. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  369. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  370. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  371. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  372. package/dist/rich-text-editor-D76gD-QI.js +0 -2328
  373. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  374. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  375. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  376. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  377. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  378. package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
  379. package/dist/select-Bkbr0f-Z.cjs +0 -162
  380. package/dist/select-CvIVdX2n.js +0 -145
  381. package/dist/slider-Bc5Hd0y1.js +0 -56
  382. package/dist/slider-N7hFFj6X.cjs +0 -73
  383. package/dist/tooltip-Ded96neP.cjs +0 -137
  384. package/dist/tooltip-HDOoD2-0.js +0 -120
  385. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  386. package/dist/use-mobile-BXuYROXM.js +0 -4202
  387. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  388. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  389. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  390. package/dist/use-mobile-CG2-SdXV.cjs +0 -4235
  391. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  392. package/dist/use-mobile-CYuAuGDl.js +0 -4202
  393. package/dist/use-mobile-CaENcqm-.js +0 -4508
  394. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  395. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  396. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  397. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  398. package/dist/use-mobile-DlceKf8a.js +0 -4359
  399. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  400. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  401. package/dist/use-mobile-bnKcua_i.js +0 -4202
  402. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
  403. package/dist/{rich-text-editor-DgF8s7xW.js → rich-text-editor-BmsjY03B.js} +26 -26
  404. package/dist/{rich-text-editor-mWoaSCE4.cjs → rich-text-editor-GS2kpTAK.cjs} +26 -26
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const sidebar = require("./sidebar-CK_0ZQHj.cjs");
3
+ const sidebar = require("./sidebar-CVUGHOS_.cjs");
4
4
  const React = require("react");
5
+ const useMobile = require("./use-mobile-Dlf74ufz.cjs");
5
6
  function useSidebar({
6
7
  defaultExpanded = true,
7
8
  expanded: controlledExpanded,
@@ -11,7 +12,7 @@ function useSidebar({
11
12
  const [localExpanded, setLocalExpanded] = React.useState(defaultExpanded);
12
13
  const isControlled = controlledExpanded !== void 0;
13
14
  const expanded = isControlled ? controlledExpanded : localExpanded;
14
- const [isMobileViewport, setIsMobileViewport] = React.useState(false);
15
+ const isMobileViewport = useMobile.useIsMobile();
15
16
  const [hasOverflow, setHasOverflow] = React.useState(false);
16
17
  const [visibleItems, setVisibleItems] = React.useState([]);
17
18
  const [overflowItems, setOverflowItems] = React.useState([]);
@@ -31,14 +32,6 @@ function useSidebar({
31
32
  const toggleExpanded = React.useCallback(() => {
32
33
  setExpanded((prev) => !prev);
33
34
  }, [setExpanded]);
34
- React.useEffect(() => {
35
- const checkViewport = () => {
36
- setIsMobileViewport(window.innerWidth < 768);
37
- };
38
- checkViewport();
39
- window.addEventListener("resize", checkViewport);
40
- return () => window.removeEventListener("resize", checkViewport);
41
- }, []);
42
35
  React.useEffect(() => {
43
36
  const checkOverflow = () => {
44
37
  if (!navRef.current || navigationGroups.length === 0) return;
package/dist/layout.es.js CHANGED
@@ -1,5 +1,6 @@
1
- import { H, S } from "./sidebar-CUuOvYhK.js";
1
+ import { H, S } from "./sidebar-CmvwjnVb.js";
2
2
  import { useState, useRef, useCallback, useEffect } from "react";
3
+ import { u as useIsMobile } from "./use-mobile-CNwiBNxu.js";
3
4
  function useSidebar({
4
5
  defaultExpanded = true,
5
6
  expanded: controlledExpanded,
@@ -9,7 +10,7 @@ function useSidebar({
9
10
  const [localExpanded, setLocalExpanded] = useState(defaultExpanded);
10
11
  const isControlled = controlledExpanded !== void 0;
11
12
  const expanded = isControlled ? controlledExpanded : localExpanded;
12
- const [isMobileViewport, setIsMobileViewport] = useState(false);
13
+ const isMobileViewport = useIsMobile();
13
14
  const [hasOverflow, setHasOverflow] = useState(false);
14
15
  const [visibleItems, setVisibleItems] = useState([]);
15
16
  const [overflowItems, setOverflowItems] = useState([]);
@@ -29,14 +30,6 @@ function useSidebar({
29
30
  const toggleExpanded = useCallback(() => {
30
31
  setExpanded((prev) => !prev);
31
32
  }, [setExpanded]);
32
- useEffect(() => {
33
- const checkViewport = () => {
34
- setIsMobileViewport(window.innerWidth < 768);
35
- };
36
- checkViewport();
37
- window.addEventListener("resize", checkViewport);
38
- return () => window.removeEventListener("resize", checkViewport);
39
- }, []);
40
33
  useEffect(() => {
41
34
  const checkOverflow = () => {
42
35
  if (!navRef.current || navigationGroups.length === 0) return;
package/dist/media.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const AudioPlayer = require("./AudioPlayer-CbZId7cj.cjs");
3
+ const AudioPlayer = require("./AudioPlayer-1ypwE2Wh.cjs");
4
4
  exports.AudioPlayer = AudioPlayer.AudioPlayer;
5
5
  exports.FloatingMediaWrapper = AudioPlayer.FloatingMediaWrapper;
6
6
  exports.VideoPlayer = AudioPlayer.VideoPlayer;
package/dist/media.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, F, V } from "./AudioPlayer-DU8zt8-z.js";
1
+ import { A, F, V } from "./AudioPlayer-DuKXrCfy.js";
2
2
  export {
3
3
  A as AudioPlayer,
4
4
  F as FloatingMediaWrapper,
package/dist/pages.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const VerifyEmailPage = require("./VerifyEmailPage-Cwi3kbol.cjs");
3
+ const VerifyEmailPage = require("./VerifyEmailPage-Dt7zgA4w.cjs");
4
4
  exports.ForgotPasswordPage = VerifyEmailPage.ForgotPasswordPage;
5
5
  exports.HomeContent = VerifyEmailPage.HomeContent;
6
6
  exports.HomePage = VerifyEmailPage.HomePage;
package/dist/pages.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F, H, a, L, R, T, b, V } from "./VerifyEmailPage-C0c2e5n0.js";
1
+ import { F, H, a, L, R, T, b, V } from "./VerifyEmailPage-C_ihbcth.js";
2
2
  export {
3
3
  F as ForgotPasswordPage,
4
4
  H as HomeContent,
@@ -3,32 +3,15 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const lucideReact = require("lucide-react");
5
5
  const button = require("./button-0CXwCRTm.cjs");
6
- const XerticaXLogo = require("./XerticaXLogo-xWbElCZj.cjs");
6
+ const XerticaXLogo = require("./XerticaXLogo-D8jf0SNv.cjs");
7
7
  const breadcrumb = require("./breadcrumb-DnDlQFg2.cjs");
8
8
  const dropdownMenu = require("./dropdown-menu-Ze1YZFyc.cjs");
9
9
  const avatar = require("./avatar-Cq5_E8r9.cjs");
10
- const LayoutContext = require("./LayoutContext-CwT5KLiW.cjs");
10
+ const LayoutContext = require("./LayoutContext-BDmcZfMH.cjs");
11
11
  const framerMotion = require("framer-motion");
12
12
  const input = require("./input-CPl84zAx.cjs");
13
13
  const tooltip = require("./tooltip-CNtsL5cB.cjs");
14
- const TooltipPrimitive = require("@radix-ui/react-tooltip");
15
- function _interopNamespaceDefault(e) {
16
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
17
- if (e) {
18
- for (const k in e) {
19
- if (k !== "default") {
20
- const d = Object.getOwnPropertyDescriptor(e, k);
21
- Object.defineProperty(n, k, d.get ? d : {
22
- enumerable: true,
23
- get: () => e[k]
24
- });
25
- }
26
- }
27
- }
28
- n.default = e;
29
- return Object.freeze(n);
30
- }
31
- const TooltipPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TooltipPrimitive);
14
+ const CustomTooltipContent = require("./CustomTooltipContent-c_K-DWRr.cjs");
32
15
  function Header({
33
16
  title,
34
17
  breadcrumbs,
@@ -149,36 +132,6 @@ function Header({
149
132
  ] })
150
133
  ] }) });
151
134
  }
152
- function SidebarTooltipContent({
153
- className,
154
- sideOffset = 0,
155
- children,
156
- ...props
157
- }) {
158
- return /* @__PURE__ */ jsxRuntime.jsxs(
159
- TooltipPrimitive__namespace.Content,
160
- {
161
- "data-slot": "tooltip-content",
162
- sideOffset,
163
- className: button.cn(
164
- "bg-popover text-popover-foreground shadow-lg animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
165
- className
166
- ),
167
- ...props,
168
- children: [
169
- children,
170
- /* @__PURE__ */ jsxRuntime.jsx(
171
- TooltipPrimitive__namespace.Arrow,
172
- {
173
- className: "fill-popover z-50 drop-shadow-sm",
174
- width: 8,
175
- height: 4
176
- }
177
- )
178
- ]
179
- }
180
- );
181
- }
182
135
  const SidebarContext = React.createContext(null);
183
136
  function useSidebarContext() {
184
137
  const ctx = React.useContext(SidebarContext);
@@ -382,7 +335,7 @@ function SidebarNav({
382
335
  children: Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "w-5 h-5 flex-shrink-0" })
383
336
  }
384
337
  ) }),
385
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: item.label }) })
338
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: item.label }) })
386
339
  ] }, item.path);
387
340
  }
388
341
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -472,7 +425,7 @@ function SidebarNav({
472
425
  children: React.isValidElement(GroupIcon) ? GroupIcon : /* @__PURE__ */ jsxRuntime.jsx(GroupIcon, { className: "h-5 w-5" })
473
426
  }
474
427
  ) }),
475
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: group.label }) })
428
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: group.label }) })
476
429
  ] }) }, group.id);
477
430
  }
478
431
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "py-2 group", children: [
@@ -624,7 +577,7 @@ function SidebarSearch({
624
577
  children: React.isValidElement(fixedArea.icon) ? fixedArea.icon : /* @__PURE__ */ jsxRuntime.jsx(fixedArea.icon, { className: "h-5 w-5" })
625
578
  }
626
579
  ) }),
627
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", children: "Nova Conversa" })
580
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", children: "Nova Conversa" })
628
581
  ] }),
629
582
  (search == null ? void 0 : search.show) && /* @__PURE__ */ jsxRuntime.jsxs(tooltip.Tooltip, { children: [
630
583
  /* @__PURE__ */ jsxRuntime.jsx(tooltip.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -635,7 +588,7 @@ function SidebarSearch({
635
588
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "h-5 w-5" })
636
589
  }
637
590
  ) }),
638
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", children: "Buscar" })
591
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", children: "Buscar" })
639
592
  ] })
640
593
  ] })
641
594
  ] });
@@ -674,7 +627,7 @@ function SidebarFooter({
674
627
  ] })
675
628
  }
676
629
  ) }),
677
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: (user == null ? void 0 : user.name) || "Perfil" }) })
630
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: (user == null ? void 0 : user.name) || "Perfil" }) })
678
631
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs("button", { className: "w-full h-10 flex items-center gap-3 px-3 justify-start rounded-[var(--radius-button)] transition-all duration-200 text-sidebar-foreground/80 hover:bg-sidebar-foreground/15 hover:text-sidebar-foreground", children: [
679
632
  /* @__PURE__ */ jsxRuntime.jsxs(avatar.Avatar, { className: "w-7 h-7 flex-shrink-0", children: [
680
633
  /* @__PURE__ */ jsxRuntime.jsx(avatar.AvatarImage, { src: user == null ? void 0 : user.avatar, alt: (user == null ? void 0 : user.name) || "User" }),
@@ -695,7 +648,7 @@ function SidebarFooter({
695
648
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "w-5 h-5 flex-shrink-0" })
696
649
  }
697
650
  ) }),
698
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Configurações" }) })
651
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Configurações" }) })
699
652
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(
700
653
  "button",
701
654
  {
@@ -720,7 +673,7 @@ function SidebarFooter({
720
673
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LogOut, { className: "w-5 h-5 flex-shrink-0" })
721
674
  }
722
675
  ) }),
723
- /* @__PURE__ */ jsxRuntime.jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Sair" }) })
676
+ /* @__PURE__ */ jsxRuntime.jsx(CustomTooltipContent.CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Sair" }) })
724
677
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(
725
678
  "button",
726
679
  {
@@ -2,15 +2,15 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import React__default, { createContext, useState, useEffect, useRef, useContext } from "react";
3
3
  import { Menu, Settings, User, LogOut, ArrowLeft, Search, Filter, MoreVertical, ChevronRight } from "lucide-react";
4
4
  import { B as Button, c as cn } from "./button-qkz7Icqf.js";
5
- import { L as LanguageSelector, T as ThemeToggle, X as XerticaLogo, a as XerticaXLogo } from "./XerticaXLogo-DzXKZBtG.js";
5
+ import { L as LanguageSelector, T as ThemeToggle, X as XerticaLogo, a as XerticaXLogo } from "./XerticaXLogo-fAJMy3H4.js";
6
6
  import { B as Breadcrumb, d as BreadcrumbList, b as BreadcrumbItem, c as BreadcrumbLink, e as BreadcrumbPage, f as BreadcrumbSeparator } from "./breadcrumb-CVzzzqfo.js";
7
7
  import { D as DropdownMenu, n as DropdownMenuTrigger, b as DropdownMenuContent, e as DropdownMenuLabel, i as DropdownMenuSeparator, d as DropdownMenuItem, k as DropdownMenuSub, m as DropdownMenuSubTrigger, f as DropdownMenuPortal, l as DropdownMenuSubContent } from "./dropdown-menu-nc_Lvg-u.js";
8
8
  import { A as Avatar, b as AvatarImage, a as AvatarFallback } from "./avatar-DSBfJMRJ.js";
9
- import { a as useOptionalLayout } from "./LayoutContext-DVLCsoQn.js";
9
+ import { a as useOptionalLayout } from "./LayoutContext-dbQvdC4O.js";
10
10
  import { AnimatePresence, motion } from "framer-motion";
11
11
  import { I as Input, S as ScrollArea, P as Popover, c as PopoverTrigger, b as PopoverContent } from "./input-D-6IsAca.js";
12
12
  import { b as TooltipProvider, T as Tooltip, c as TooltipTrigger } from "./tooltip-CTyZCD8h.js";
13
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
13
+ import { C as CustomTooltipContent } from "./CustomTooltipContent-DHjkY0ww.js";
14
14
  function Header({
15
15
  title,
16
16
  breadcrumbs,
@@ -131,36 +131,6 @@ function Header({
131
131
  ] })
132
132
  ] }) });
133
133
  }
134
- function SidebarTooltipContent({
135
- className,
136
- sideOffset = 0,
137
- children,
138
- ...props
139
- }) {
140
- return /* @__PURE__ */ jsxs(
141
- TooltipPrimitive.Content,
142
- {
143
- "data-slot": "tooltip-content",
144
- sideOffset,
145
- className: cn(
146
- "bg-popover text-popover-foreground shadow-lg animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
147
- className
148
- ),
149
- ...props,
150
- children: [
151
- children,
152
- /* @__PURE__ */ jsx(
153
- TooltipPrimitive.Arrow,
154
- {
155
- className: "fill-popover z-50 drop-shadow-sm",
156
- width: 8,
157
- height: 4
158
- }
159
- )
160
- ]
161
- }
162
- );
163
- }
164
134
  const SidebarContext = createContext(null);
165
135
  function useSidebarContext() {
166
136
  const ctx = useContext(SidebarContext);
@@ -364,7 +334,7 @@ function SidebarNav({
364
334
  children: Icon && /* @__PURE__ */ jsx(Icon, { className: "w-5 h-5 flex-shrink-0" })
365
335
  }
366
336
  ) }),
367
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: item.label }) })
337
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: item.label }) })
368
338
  ] }, item.path);
369
339
  }
370
340
  return /* @__PURE__ */ jsxs(
@@ -454,7 +424,7 @@ function SidebarNav({
454
424
  children: React__default.isValidElement(GroupIcon) ? GroupIcon : /* @__PURE__ */ jsx(GroupIcon, { className: "h-5 w-5" })
455
425
  }
456
426
  ) }),
457
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", children: /* @__PURE__ */ jsx("p", { children: group.label }) })
427
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", children: /* @__PURE__ */ jsx("p", { children: group.label }) })
458
428
  ] }) }, group.id);
459
429
  }
460
430
  return /* @__PURE__ */ jsxs("div", { className: "py-2 group", children: [
@@ -606,7 +576,7 @@ function SidebarSearch({
606
576
  children: React__default.isValidElement(fixedArea.icon) ? fixedArea.icon : /* @__PURE__ */ jsx(fixedArea.icon, { className: "h-5 w-5" })
607
577
  }
608
578
  ) }),
609
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", children: "Nova Conversa" })
579
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", children: "Nova Conversa" })
610
580
  ] }),
611
581
  (search == null ? void 0 : search.show) && /* @__PURE__ */ jsxs(Tooltip, { children: [
612
582
  /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
@@ -617,7 +587,7 @@ function SidebarSearch({
617
587
  children: /* @__PURE__ */ jsx(Search, { className: "h-5 w-5" })
618
588
  }
619
589
  ) }),
620
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", children: "Buscar" })
590
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", children: "Buscar" })
621
591
  ] })
622
592
  ] })
623
593
  ] });
@@ -656,7 +626,7 @@ function SidebarFooter({
656
626
  ] })
657
627
  }
658
628
  ) }),
659
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: (user == null ? void 0 : user.name) || "Perfil" }) })
629
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: (user == null ? void 0 : user.name) || "Perfil" }) })
660
630
  ] }) : /* @__PURE__ */ jsxs("button", { className: "w-full h-10 flex items-center gap-3 px-3 justify-start rounded-[var(--radius-button)] transition-all duration-200 text-sidebar-foreground/80 hover:bg-sidebar-foreground/15 hover:text-sidebar-foreground", children: [
661
631
  /* @__PURE__ */ jsxs(Avatar, { className: "w-7 h-7 flex-shrink-0", children: [
662
632
  /* @__PURE__ */ jsx(AvatarImage, { src: user == null ? void 0 : user.avatar, alt: (user == null ? void 0 : user.name) || "User" }),
@@ -677,7 +647,7 @@ function SidebarFooter({
677
647
  children: /* @__PURE__ */ jsx(Settings, { className: "w-5 h-5 flex-shrink-0" })
678
648
  }
679
649
  ) }),
680
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: "Configurações" }) })
650
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: "Configurações" }) })
681
651
  ] }) : /* @__PURE__ */ jsxs(
682
652
  "button",
683
653
  {
@@ -702,7 +672,7 @@ function SidebarFooter({
702
672
  children: /* @__PURE__ */ jsx(LogOut, { className: "w-5 h-5 flex-shrink-0" })
703
673
  }
704
674
  ) }),
705
- /* @__PURE__ */ jsx(SidebarTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: "Sair" }) })
675
+ /* @__PURE__ */ jsx(CustomTooltipContent, { side: "right", sideOffset: 0, children: /* @__PURE__ */ jsx("p", { children: "Sair" }) })
706
676
  ] }) : /* @__PURE__ */ jsxs(
707
677
  "button",
708
678
  {
package/dist/ui.cjs.js CHANGED
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const button = require("./button-0CXwCRTm.cjs");
4
4
  const card = require("./card-DJTsYhLL.cjs");
5
- const alertDialog = require("./alert-dialog-DSKByiKZ.cjs");
6
- const AssistantChart = require("./AssistantChart-CldVCVDe.cjs");
5
+ const alertDialog = require("./alert-dialog-yckpaOpy.cjs");
6
+ const AssistantChart = require("./AssistantChart-BAudAfne.cjs");
7
7
  const breadcrumb = require("./breadcrumb-DnDlQFg2.cjs");
8
8
  const input = require("./input-CPl84zAx.cjs");
9
- const richTextEditor = require("./rich-text-editor-mWoaSCE4.cjs");
9
+ const richTextEditor = require("./rich-text-editor-GS2kpTAK.cjs");
10
10
  const slider = require("./slider-CPmwzm_3.cjs");
11
11
  const select = require("./select-DT7Zjn42.cjs");
12
12
  const tooltip = require("./tooltip-CNtsL5cB.cjs");
@@ -14,7 +14,7 @@ const dropdownMenu = require("./dropdown-menu-Ze1YZFyc.cjs");
14
14
  const progress = require("./progress-BLwqortq.cjs");
15
15
  const sonner = require("./sonner-DeUIj0Zg.cjs");
16
16
  const avatar = require("./avatar-Cq5_E8r9.cjs");
17
- const googleMapsLoader = require("./google-maps-loader-Y-QkD-Li.cjs");
17
+ const googleMapsLoader = require("./google-maps-loader-BqsYL48U.cjs");
18
18
  const useMobile = require("./use-mobile-Dlf74ufz.cjs");
19
19
  exports.Button = button.Button;
20
20
  exports.buttonVariants = button.buttonVariants;
package/dist/ui.es.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { B, b, c } from "./button-qkz7Icqf.js";
2
2
  import { C, a, b as b2, c as c2, d, e, f } from "./card-fi8zAN-I.js";
3
- import { A, a as a2, b as b3, c as c3, d as d2, e as e2, f as f2, g, h, i, j, C as C2, I, L, M, P, k, l, R, m, S, n, T, o, p, q, u } from "./alert-dialog-s-vmNkJ_.js";
4
- import { A as A2, a as a3, b as b4, c as c4, d as d3, e as e3, C as C3, f as f3, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, o as o2, p as p2, q as q2, r, s, t, u as u2, v, w, x, y, z, B as B2, D, E, F, G, H, I as I2, J, K, L as L2, M as M2, N, O, P as P2, Q, R as R2, S as S2, T as T2, U, V, W, X, Y, Z, _, $, a0, a1, a2 as a22, a3 as a32, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2 as b22, b3 as b32, b4 as b42, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi } from "./AssistantChart-Cu3m7RBo.js";
3
+ import { A, a as a2, b as b3, c as c3, d as d2, e as e2, f as f2, g, h, i, j, C as C2, I, L, M, P, k, l, R, m, S, n, T, o, p, q, u } from "./alert-dialog-iDe5VE5o.js";
4
+ import { A as A2, a as a3, b as b4, c as c4, d as d3, e as e3, C as C3, f as f3, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, o as o2, p as p2, q as q2, r, s, t, u as u2, v, w, x, y, z, B as B2, D, E, F, G, H, I as I2, J, K, L as L2, M as M2, N, O, P as P2, Q, R as R2, S as S2, T as T2, U, V, W, X, Y, Z, _, $, a0, a1, a2 as a22, a3 as a32, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2 as b22, b3 as b32, b4 as b42, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi } from "./AssistantChart-BP8upjMk.js";
5
5
  import { B as B3, a as a10, b as b10, c as c5, d as d4, e as e4, f as f4 } from "./breadcrumb-CVzzzqfo.js";
6
6
  import { I as I3, P as P3, a as a11, b as b11, c as c6, S as S3, d as d5 } from "./input-D-6IsAca.js";
7
- import { A as A3, a as a12, b as b12, C as C4, c as c7, d as d6, e as e5, f as f5, g as g3, h as h3, i as i3, D as D2, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q3, r as r2, s as s2, t as t2, u as u3, v as v2, E as E2, w as w2, x as x2, y as y2, z as z2, B as B4, G as G2, H as H2, I as I4, P as P4, R as R3, F as F2, J as J2, S as S4, K as K2, T as T3, L as L3, M as M3, N as N2, O as O2, Q as Q2, U as U2, V as V2, W as W2, X as X2, Y as Y2 } from "./rich-text-editor-DgF8s7xW.js";
7
+ import { A as A3, a as a12, b as b12, C as C4, c as c7, d as d6, e as e5, f as f5, g as g3, h as h3, i as i3, D as D2, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q3, r as r2, s as s2, t as t2, u as u3, v as v2, E as E2, w as w2, x as x2, y as y2, z as z2, B as B4, G as G2, H as H2, I as I4, P as P4, R as R3, F as F2, J as J2, S as S4, K as K2, T as T3, L as L3, M as M3, N as N2, O as O2, Q as Q2, U as U2, V as V2, W as W2, X as X2, Y as Y2 } from "./rich-text-editor-BmsjY03B.js";
8
8
  import { S as S5 } from "./slider-C0JKA9k3.js";
9
9
  import { S as S6, a as a13, b as b13, c as c8, d as d7, e as e6, f as f6, g as g4, h as h4, i as i4 } from "./select-En8DkoaQ.js";
10
10
  import { T as T4, a as a14, b as b14, c as c9 } from "./tooltip-CTyZCD8h.js";
@@ -12,7 +12,7 @@ import { D as D3, a as a15, b as b15, c as c10, d as d8, e as e7, f as f7, g as
12
12
  import { B as B5, P as P5, b as b16 } from "./progress-D9mtsf6j.js";
13
13
  import { T as T5 } from "./sonner-g9RIfi35.js";
14
14
  import { A as A4, a as a16, b as b17 } from "./avatar-DSBfJMRJ.js";
15
- import { G as G3, a as a17, b as b18, c as c11, r as r3, u as u4 } from "./google-maps-loader-CTYySAun.js";
15
+ import { G as G3, a as a17, b as b18, c as c11, r as r3, u as u4 } from "./google-maps-loader-t2IlYBzw.js";
16
16
  import { u as u5, a as a18 } from "./use-mobile-CNwiBNxu.js";
17
17
  export {
18
18
  A2 as Accordion,
@@ -0,0 +1,177 @@
1
+ import { useRef, useState, useEffect, useCallback } from "react";
2
+ import { u as useIsMobile } from "./use-mobile-CNwiBNxu.js";
3
+ import { a as useOptionalLayout } from "./LayoutContext-dbQvdC4O.js";
4
+ function useAudioPlayer({
5
+ src,
6
+ autoPlay = false,
7
+ initialTime = 0,
8
+ initialDuration,
9
+ variant = "card",
10
+ isOpen = true,
11
+ enableAutoFloat = true,
12
+ onCloseFloating
13
+ } = {}) {
14
+ const audioRef = useRef(null);
15
+ const containerRef = useRef(null);
16
+ const layout = useOptionalLayout();
17
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? false;
18
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 256;
19
+ const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? false;
20
+ const isMobile = useIsMobile();
21
+ const [isPlaying, setIsPlaying] = useState(false);
22
+ const [volume, setVolume] = useState(0.8);
23
+ const [isMuted, setIsMuted] = useState(false);
24
+ const [currentTime, setCurrentTime] = useState(initialTime);
25
+ const [duration, setDuration] = useState(initialDuration || 0);
26
+ const [playbackSpeed, setPlaybackSpeedState] = useState(1);
27
+ const [isFloating, setIsFloating] = useState(false);
28
+ const [isManualFloating, setIsManualFloating] = useState(false);
29
+ const [enableAutoFloatLocal, setEnableAutoFloatLocal] = useState(enableAutoFloat);
30
+ const [isVisible, setIsVisible] = useState(variant === "card");
31
+ useEffect(() => {
32
+ if (variant === "bar") {
33
+ if (isOpen) {
34
+ setIsVisible(true);
35
+ } else {
36
+ const timer = setTimeout(() => setIsVisible(false), 300);
37
+ return () => clearTimeout(timer);
38
+ }
39
+ } else {
40
+ setIsVisible(true);
41
+ }
42
+ }, [isOpen, variant]);
43
+ useEffect(() => {
44
+ const audio = audioRef.current;
45
+ if (!audio) return;
46
+ audio.volume = volume;
47
+ audio.muted = isMuted;
48
+ audio.playbackRate = playbackSpeed;
49
+ }, [volume, isMuted, playbackSpeed, src]);
50
+ useEffect(() => {
51
+ if (variant !== "card" || !enableAutoFloatLocal) return;
52
+ const container = containerRef.current;
53
+ if (!container) return;
54
+ if (typeof IntersectionObserver === "undefined") return;
55
+ const observer = new IntersectionObserver(
56
+ ([entry]) => {
57
+ if (isPlaying && !entry.isIntersecting && !isFloating) {
58
+ if (audioRef.current) setCurrentTime(audioRef.current.currentTime);
59
+ setIsFloating(true);
60
+ } else if (entry.isIntersecting && isFloating && !isManualFloating) {
61
+ if (audioRef.current) setCurrentTime(audioRef.current.currentTime);
62
+ setIsFloating(false);
63
+ setIsManualFloating(false);
64
+ }
65
+ },
66
+ { threshold: 0.2 }
67
+ );
68
+ observer.observe(container);
69
+ return () => observer.disconnect();
70
+ }, [isPlaying, isFloating, isManualFloating, variant, enableAutoFloatLocal]);
71
+ useEffect(() => {
72
+ const audio = audioRef.current;
73
+ if (audio) {
74
+ if (Math.abs(audio.currentTime - currentTime) > 0.5) {
75
+ audio.currentTime = currentTime;
76
+ }
77
+ if (isPlaying) {
78
+ audio.play().catch((err) => console.log("Playback interrupted:", err));
79
+ }
80
+ }
81
+ }, [isFloating, variant]);
82
+ const handleSetFloating = useCallback((floating) => {
83
+ if (audioRef.current) setCurrentTime(audioRef.current.currentTime);
84
+ setIsFloating(floating);
85
+ if (!floating) {
86
+ setIsManualFloating(false);
87
+ if (onCloseFloating) onCloseFloating();
88
+ }
89
+ }, [onCloseFloating]);
90
+ const togglePlay = useCallback(() => {
91
+ if (audioRef.current) {
92
+ if (isPlaying) {
93
+ audioRef.current.pause();
94
+ } else {
95
+ audioRef.current.play().catch((err) => console.log("Playback error:", err));
96
+ }
97
+ }
98
+ }, [isPlaying]);
99
+ const toggleMute = useCallback(() => {
100
+ setIsMuted((prev) => !prev);
101
+ }, []);
102
+ const handleSeek = useCallback((value) => {
103
+ if (audioRef.current) {
104
+ audioRef.current.currentTime = value[0];
105
+ setCurrentTime(value[0]);
106
+ }
107
+ }, []);
108
+ const handleVolumeChange = useCallback((value) => {
109
+ const newVolume = value[0];
110
+ setVolume(newVolume);
111
+ setIsMuted(newVolume === 0);
112
+ }, []);
113
+ const handleEnableManualFloat = useCallback(() => {
114
+ setEnableAutoFloatLocal(true);
115
+ setIsManualFloating(true);
116
+ if (audioRef.current) setCurrentTime(audioRef.current.currentTime);
117
+ setIsFloating(true);
118
+ }, []);
119
+ const setPlaybackSpeed = useCallback((speed) => {
120
+ setPlaybackSpeedState(speed);
121
+ }, []);
122
+ const resetAudio = useCallback(() => {
123
+ if (audioRef.current) {
124
+ audioRef.current.currentTime = 0;
125
+ }
126
+ }, []);
127
+ const formatTime = useCallback((time) => {
128
+ if (isNaN(time) || time === Infinity || !isFinite(time)) return "0:00";
129
+ const minutes = Math.floor(time / 60);
130
+ const seconds = Math.floor(time % 60);
131
+ return `${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
132
+ }, []);
133
+ const onPlay = useCallback(() => setIsPlaying(true), []);
134
+ const onPause = useCallback(() => setIsPlaying(false), []);
135
+ const onEnded = useCallback(() => setIsPlaying(false), []);
136
+ const onTimeUpdate = useCallback((e) => {
137
+ setCurrentTime(e.currentTarget.currentTime);
138
+ }, []);
139
+ const onLoadedMetadata = useCallback((e) => {
140
+ setDuration(e.currentTarget.duration);
141
+ }, []);
142
+ return {
143
+ audioRef,
144
+ containerRef,
145
+ isPlaying,
146
+ currentTime,
147
+ duration,
148
+ volume,
149
+ isMuted,
150
+ playbackSpeed,
151
+ isFloating,
152
+ isManualFloating,
153
+ isVisible,
154
+ isMobile,
155
+ enableAutoFloatLocal,
156
+ sidebarExpanded,
157
+ sidebarWidth,
158
+ assistenteExpanded,
159
+ togglePlay,
160
+ toggleMute,
161
+ handleSeek,
162
+ handleVolumeChange,
163
+ handleSetFloating,
164
+ handleEnableManualFloat,
165
+ setPlaybackSpeed,
166
+ resetAudio,
167
+ onPlay,
168
+ onPause,
169
+ onEnded,
170
+ onTimeUpdate,
171
+ onLoadedMetadata,
172
+ formatTime
173
+ };
174
+ }
175
+ export {
176
+ useAudioPlayer as u
177
+ };