xertica-ui 2.5.0 → 2.5.2

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 (536) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +56 -17
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/cli.ts +14 -2
  6. package/bin/generate-tokens.ts +262 -262
  7. package/bin/language-config.ts +359 -358
  8. package/components/assistant/code-block/CodeBlock.tsx +268 -268
  9. package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
  10. package/components/assistant/modern-chat-input/ModernChatInput.tsx +564 -564
  11. package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +99 -99
  12. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -104
  13. package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
  14. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -88
  15. package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
  16. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -564
  17. package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
  18. package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
  19. package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
  20. package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -611
  21. package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
  22. package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
  23. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +58 -58
  24. package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
  25. package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
  26. package/components/blocks/card-patterns/ProfileCard.tsx +112 -112
  27. package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
  28. package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
  29. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +67 -67
  30. package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
  31. package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
  32. package/components/blocks/card-patterns/index.ts +29 -29
  33. package/components/brand/language-selector/LanguageSelector.tsx +102 -102
  34. package/components/brand/language-selector/language-selector.stories.tsx +111 -111
  35. package/components/brand/language-selector/language-selector.test.tsx +101 -101
  36. package/components/brand/theme-toggle/ThemeToggle.tsx +74 -74
  37. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  38. package/components/index.ts +86 -86
  39. package/components/layout/sidebar/sidebar.mdx +1 -1
  40. package/components/layout/sidebar/sidebar.stories.tsx +1033 -787
  41. package/components/layout/sidebar/sidebar.tsx +338 -1
  42. package/components/media/FloatingMediaWrapper.tsx +371 -371
  43. package/components/media/audio-player/AudioPlayer.tsx +768 -768
  44. package/components/media/video-player/VideoPlayer.tsx +310 -310
  45. package/components/pages/home-content/HomeContent.tsx +120 -120
  46. package/components/pages/home-content/home-content.mdx +62 -62
  47. package/components/pages/home-page/HomePage.tsx +78 -78
  48. package/components/pages/home-page/home-page.mdx +53 -53
  49. package/components/pages/template-content/TemplateContent.tsx +1354 -1354
  50. package/components/pages/template-content/template-content.mdx +61 -61
  51. package/components/pages/template-page/TemplatePage.stories.tsx +32 -32
  52. package/components/pages/template-page/template-page.mdx +53 -53
  53. package/components/shared/error-boundary.stories.tsx +114 -114
  54. package/components/shared/error-boundary.tsx +150 -150
  55. package/components/shared/error-fallbacks.tsx +222 -222
  56. package/components/ui/accordion/accordion.mdx +8 -8
  57. package/components/ui/alert/alert.mdx +8 -8
  58. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  59. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  60. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  61. package/components/ui/avatar/avatar.mdx +8 -8
  62. package/components/ui/badge/badge.mdx +8 -8
  63. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  64. package/components/ui/button/button.mdx +8 -8
  65. package/components/ui/calendar/calendar.mdx +8 -8
  66. package/components/ui/card/card.mdx +8 -8
  67. package/components/ui/carousel/carousel.mdx +8 -8
  68. package/components/ui/chart/chart.mdx +8 -8
  69. package/components/ui/chart/chart.test.tsx +178 -178
  70. package/components/ui/chart/chart.tsx +2245 -2239
  71. package/components/ui/checkbox/checkbox.mdx +8 -8
  72. package/components/ui/collapsible/collapsible.mdx +8 -8
  73. package/components/ui/command/command.mdx +8 -8
  74. package/components/ui/context-menu/context-menu.mdx +8 -8
  75. package/components/ui/dialog/dialog.mdx +8 -8
  76. package/components/ui/drawer/drawer.mdx +8 -8
  77. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  78. package/components/ui/empty/empty.mdx +8 -8
  79. package/components/ui/file-upload/file-upload.mdx +8 -8
  80. package/components/ui/hover-card/hover-card.mdx +8 -8
  81. package/components/ui/input/input.mdx +8 -8
  82. package/components/ui/input-otp/input-otp.mdx +8 -8
  83. package/components/ui/label/label.mdx +8 -8
  84. package/components/ui/map/map.mdx +8 -8
  85. package/components/ui/menubar/menubar.mdx +8 -8
  86. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  87. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  88. package/components/ui/pagination/pagination.mdx +8 -8
  89. package/components/ui/popover/popover.mdx +8 -8
  90. package/components/ui/progress/progress.mdx +8 -8
  91. package/components/ui/radio-group/radio-group.mdx +8 -8
  92. package/components/ui/rating/rating.mdx +8 -8
  93. package/components/ui/resizable/resizable.mdx +8 -8
  94. package/components/ui/route-map/route-map.mdx +8 -8
  95. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  96. package/components/ui/search/search.mdx +8 -8
  97. package/components/ui/select/select.mdx +8 -8
  98. package/components/ui/separator/separator.mdx +8 -8
  99. package/components/ui/sheet/sheet.mdx +8 -8
  100. package/components/ui/simple-map/simple-map.mdx +8 -8
  101. package/components/ui/skeleton/skeleton.mdx +8 -8
  102. package/components/ui/slider/slider.mdx +8 -8
  103. package/components/ui/sonner/sonner.mdx +8 -8
  104. package/components/ui/stats-card/index.ts +2 -2
  105. package/components/ui/stats-card/stats-card-skeleton.tsx +60 -60
  106. package/components/ui/stats-card/stats-card.mdx +8 -8
  107. package/components/ui/stats-card/stats-card.tsx +109 -109
  108. package/components/ui/stepper/stepper.mdx +8 -8
  109. package/components/ui/switch/switch.mdx +8 -8
  110. package/components/ui/table/table.mdx +8 -8
  111. package/components/ui/tabs/tabs.mdx +8 -8
  112. package/components/ui/textarea/textarea.mdx +8 -8
  113. package/components/ui/timeline/timeline.mdx +8 -8
  114. package/components/ui/toggle/toggle.mdx +8 -8
  115. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  116. package/components/ui/tooltip/tooltip.mdx +8 -8
  117. package/components/ui/tree-view/tree-view.mdx +8 -8
  118. package/components.json +511 -511
  119. package/contexts/AuthContext.tsx +121 -121
  120. package/contexts/BrandColorsContext.tsx +282 -282
  121. package/contexts/LanguageContext.test.tsx +121 -121
  122. package/contexts/LanguageContext.tsx +250 -250
  123. package/contexts/theme-data.ts +391 -391
  124. package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
  125. package/dist/{AssistantChart-CldVCVDe.cjs → AssistantChart-BAudAfne.cjs} +5 -5
  126. package/dist/{AssistantChart-Bdd44uBn.cjs → AssistantChart-BAx9VQvb.cjs} +127 -388
  127. package/dist/{AssistantChart-Cu3m7RBo.js → AssistantChart-BP8upjMk.js} +5 -5
  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/{AudioPlayer-IAU5q5T1.cjs → AudioPlayer-1ypwE2Wh.cjs} +1 -1
  131. package/dist/{AudioPlayer-CGRUtUdN.js → AudioPlayer-DuKXrCfy.js} +1 -1
  132. package/dist/{LanguageContext-CS14yCpi.js → LanguageContext-BwhwC3G2.js} +2 -2
  133. package/dist/{LanguageContext-B_KFTCzT.cjs → LanguageContext-DvUt5jBg.cjs} +2 -2
  134. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  135. package/dist/{ThemeContext-Bmod0Cg2.cjs → ThemeContext-BblcjQup.cjs} +13 -8
  136. package/dist/{ThemeContext-BWq9ACPo.js → ThemeContext-Bo-W2WZH.js} +13 -8
  137. package/dist/{ThemeContext-j5aGtPky.cjs → ThemeContext-CP3a0jxy.cjs} +193 -262
  138. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  139. package/dist/ThemeContext-CpqYShLq.cjs +324 -0
  140. package/dist/{ThemeContext-CQSo4Iwc.js → ThemeContext-D3LzacmG.js} +8 -1
  141. package/dist/ThemeContext-Du2nE1PL.js +325 -0
  142. package/dist/ThemeContext-GeEBTJ3q.cjs +1621 -0
  143. package/dist/ThemeContext-JyLK9B1o.js +1622 -0
  144. package/dist/{ThemeContext-CGk3KK0k.cjs → ThemeContext-U4dEYc6C.cjs} +8 -1
  145. package/dist/{ThemeContext-BXjrgUjW.js → ThemeContext-ept8jhXI.js} +200 -261
  146. package/dist/{VerifyEmailPage-CGIwmWrm.js → VerifyEmailPage-B31mCrMc.js} +1 -1
  147. package/dist/{VerifyEmailPage-C0c2e5n0.js → VerifyEmailPage-BE-L9mB7.js} +7 -7
  148. package/dist/{VerifyEmailPage-DSBMRHtl.js → VerifyEmailPage-BIBOKV7Z.js} +41 -36
  149. package/dist/{VerifyEmailPage-DgIid028.js → VerifyEmailPage-BJjAMUTW.js} +4 -4
  150. package/dist/{VerifyEmailPage--1Vurewl.cjs → VerifyEmailPage-BRSP-Pwt.cjs} +3 -3
  151. package/dist/{VerifyEmailPage-Cwi3kbol.cjs → VerifyEmailPage-Bae2cBXT.cjs} +7 -7
  152. package/dist/{VerifyEmailPage-De6bQjrz.cjs → VerifyEmailPage-BiRm7Nh4.cjs} +41 -36
  153. package/dist/{VerifyEmailPage-ByerOcm4.cjs → VerifyEmailPage-Bv8Ah_TK.cjs} +23 -20
  154. package/dist/VerifyEmailPage-Bvfv8HVQ.js +3214 -0
  155. package/dist/{VerifyEmailPage-BComraR7.cjs → VerifyEmailPage-CR7kb5df.cjs} +22 -12
  156. package/dist/{VerifyEmailPage-CpqqpLpo.cjs → VerifyEmailPage-C_Zk6Gen.cjs} +1 -1
  157. package/dist/{VerifyEmailPage-MTD7AG1Z.js → VerifyEmailPage-C_ihbcth.js} +4 -4
  158. package/dist/{VerifyEmailPage-1WwWczAn.js → VerifyEmailPage-CbgjOF0v.js} +22 -12
  159. package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
  160. package/dist/{VerifyEmailPage-By3Jf__L.cjs → VerifyEmailPage-CkBYfsNy.cjs} +4 -4
  161. package/dist/{VerifyEmailPage-CJLz3jrn.js → VerifyEmailPage-Cyl55sJb.js} +23 -20
  162. package/dist/VerifyEmailPage-D-FRj5TU.cjs +3213 -0
  163. package/dist/{VerifyEmailPage-B4peJjAT.cjs → VerifyEmailPage-DF2ilhum.cjs} +334 -356
  164. package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
  165. package/dist/{VerifyEmailPage-CgMxRb4z.js → VerifyEmailPage-DTtFfC-J.js} +3 -3
  166. package/dist/{VerifyEmailPage-CFLMls1p.cjs → VerifyEmailPage-Dt7zgA4w.cjs} +4 -4
  167. package/dist/{VerifyEmailPage-C5TNQTBa.js → VerifyEmailPage-EhudUdqF.js} +343 -355
  168. package/dist/{VerifyEmailPage-DGhuIqkb.js → VerifyEmailPage-X14vhdyl.js} +4 -4
  169. package/dist/VerifyEmailPage-hdB8JQGv.cjs +3213 -0
  170. package/dist/{VerifyEmailPage-Bp1XXl3H.cjs → VerifyEmailPage-u_Dn7t1U.cjs} +4 -4
  171. package/dist/VerifyEmailPage-vYHbYK3q.js +3214 -0
  172. package/dist/{XerticaProvider-CBGc4EMA.cjs → XerticaProvider-AChwphCO.cjs} +4 -4
  173. package/dist/{XerticaProvider-BIrqfZ-i.cjs → XerticaProvider-AbWlr7Af.cjs} +8 -11
  174. package/dist/{XerticaProvider-D-yNhF94.cjs → XerticaProvider-B8CaV7xu.cjs} +1 -1
  175. package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
  176. package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
  177. package/dist/{XerticaProvider-C1DKnvLh.js → XerticaProvider-CUYJZc32.js} +4 -4
  178. package/dist/{XerticaProvider-ET0ihewn.cjs → XerticaProvider-CW9hpCdF.cjs} +2 -2
  179. package/dist/{XerticaProvider-Dt5HEzbQ.js → XerticaProvider-CWgby5mY.js} +10 -10
  180. package/dist/XerticaProvider-CWs6EwNa.js +49 -0
  181. package/dist/XerticaProvider-CjQAQPcn.cjs +48 -0
  182. package/dist/XerticaProvider-D5lLumH-.js +49 -0
  183. package/dist/{XerticaProvider-DYq4JWtg.js → XerticaProvider-DQtvJU7m.js} +1 -1
  184. package/dist/XerticaProvider-qQUDop71.cjs +48 -0
  185. package/dist/{XerticaProvider-B7EVH-NF.js → XerticaProvider-siSt9uG2.js} +2 -2
  186. package/dist/{XerticaXLogo-Zw2B276b.cjs → XerticaXLogo-8TTzBjHw.cjs} +1 -1
  187. package/dist/{XerticaXLogo-B7xQ5dhi.js → XerticaXLogo-BWaag64t.js} +1 -1
  188. package/dist/{XerticaXLogo-DZbo4vOE.js → XerticaXLogo-CFuIlYFH.js} +12 -12
  189. package/dist/{XerticaXLogo-bvZSgwGF.cjs → XerticaXLogo-CU-U-GP4.cjs} +7 -13
  190. package/dist/XerticaXLogo-ChryA6xj.js +252 -0
  191. package/dist/{XerticaXLogo-CQUUjXoH.cjs → XerticaXLogo-CziKMQil.cjs} +8 -8
  192. package/dist/XerticaXLogo-DHz5SugF.js +252 -0
  193. package/dist/XerticaXLogo-DTee_y8X.cjs +251 -0
  194. package/dist/{XerticaXLogo-Cmsp-Eey.js → XerticaXLogo-DfUvz-lD.js} +9 -9
  195. package/dist/XerticaXLogo-kslQ8Tk_.cjs +251 -0
  196. package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
  197. package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
  198. package/dist/cli.js +16 -6
  199. package/dist/components/ui/chart/chart.d.ts +7 -5
  200. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  201. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  202. package/dist/index-CkTUgOwX.js +8 -0
  203. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  204. package/dist/index.cjs.js +2 -2
  205. package/dist/index.es.js +2 -2
  206. package/dist/index.umd.js +454 -1027
  207. package/dist/layout.cjs.js +1 -1
  208. package/dist/layout.es.js +1 -1
  209. package/dist/pages.cjs.js +1 -1
  210. package/dist/pages.es.js +1 -1
  211. package/dist/{sidebar-DAaY8bRU.cjs → sidebar-B3EYhli0.cjs} +33 -24
  212. package/dist/{sidebar-nzPoVHBQ.cjs → sidebar-B9NR0lCe.cjs} +46 -41
  213. package/dist/{sidebar-CeTMuzOx.cjs → sidebar-BvF5I2Ue.cjs} +47 -128
  214. package/dist/{sidebar-q7P2Godd.cjs → sidebar-C5B_LHek.cjs} +1 -1
  215. package/dist/{sidebar-CrQDDdcz.js → sidebar-CA6_ek3f.js} +33 -24
  216. package/dist/sidebar-CLmIjgNd.cjs +1136 -0
  217. package/dist/{sidebar-BxGXsDAd.cjs → sidebar-CVUGHOS_.cjs} +8 -16
  218. package/dist/{sidebar-BViy8Eeu.js → sidebar-CmvwjnVb.js} +9 -17
  219. package/dist/{sidebar-B6SlKZYN.js → sidebar-CplprZpM.js} +49 -40
  220. package/dist/sidebar-Duermn32.js +1133 -0
  221. package/dist/{sidebar-BbVIQvlP.js → sidebar-Dz7bd3zP.js} +1 -1
  222. package/dist/{sidebar-0ocFLSks.js → sidebar-KIS0C2JH.js} +50 -127
  223. package/dist/sidebar-OTO_up7Z.js +801 -0
  224. package/dist/sidebar-zowjejT2.cjs +800 -0
  225. package/dist/{use-audio-player-nv8ZSGa1.js → use-audio-player-Bkh23vQ3.js} +3 -7
  226. package/dist/{use-audio-player-NKsWyjWu.cjs → use-audio-player-Dn1NR9xN.cjs} +3 -7
  227. package/dist/{xertica-assistant-dyP7KHM5.cjs → xertica-assistant-B1IaHXnB.cjs} +388 -529
  228. package/dist/{xertica-assistant-ciJaWqm1.js → xertica-assistant-BMqdyRVi.js} +10 -28
  229. package/dist/{xertica-assistant-V_IdW4WF.cjs → xertica-assistant-Bj3vBCq_.cjs} +9 -27
  230. package/dist/{xertica-assistant-yX1CFBBo.js → xertica-assistant-DPsESB6t.js} +390 -531
  231. package/dist/{CodeBlock-7TTgmdGG.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  232. package/dist/{CodeBlock-BeSt1h5P.js → xertica-assistant-gnCJdcZY.js} +7 -219
  233. package/dist/xertica-ui.css +2 -2
  234. package/docs/architecture-improvements.md +456 -456
  235. package/docs/architecture.md +312 -312
  236. package/docs/components/assistant.md +428 -428
  237. package/docs/components/branding.md +252 -252
  238. package/docs/components/card-patterns.md +447 -447
  239. package/docs/components/error-boundary.md +201 -201
  240. package/docs/components/hooks.md +432 -432
  241. package/docs/components/language-selector.md +176 -176
  242. package/docs/components/pages.md +323 -323
  243. package/docs/components/sidebar.md +331 -331
  244. package/docs/components/stats-card.md +138 -138
  245. package/docs/doc-audit.md +244 -244
  246. package/docs/getting-started.md +616 -616
  247. package/docs/guidelines.md +330 -330
  248. package/docs/i18n.md +480 -480
  249. package/docs/installation.md +268 -268
  250. package/docs/llms.md +295 -295
  251. package/docs/state-management.md +289 -289
  252. package/guidelines/Guidelines.md +409 -409
  253. package/llms-compact.txt +1 -1
  254. package/llms-full.txt +10688 -10688
  255. package/llms.txt +1 -1
  256. package/package.json +1 -1
  257. package/styles/xertica/base.css +90 -90
  258. package/styles/xertica/tokens.css +240 -240
  259. package/templates/.prettierignore +4 -4
  260. package/templates/.prettierrc +10 -10
  261. package/templates/CLAUDE.md +180 -180
  262. package/templates/package.json +2 -2
  263. package/templates/src/app/App.tsx +46 -46
  264. package/templates/src/app/components/AuthGuard.tsx +131 -131
  265. package/templates/src/features/assistant/data/mock.ts +75 -75
  266. package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
  267. package/templates/src/features/assistant/index.ts +5 -5
  268. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  269. package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
  270. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +183 -183
  271. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
  272. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +80 -80
  273. package/templates/src/features/home/data/mock.ts +41 -41
  274. package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
  275. package/templates/src/features/home/index.ts +11 -11
  276. package/templates/src/features/home/ui/HomeContent.tsx +117 -117
  277. package/templates/src/features/template/ui/CrudTemplate.tsx +112 -112
  278. package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
  279. package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
  280. package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
  281. package/templates/src/features/template/ui/TemplateContent.tsx +1322 -1322
  282. package/templates/src/i18n.ts +124 -124
  283. package/templates/src/locales/en/common.json +21 -21
  284. package/templates/src/locales/en/components/activityCard.json +10 -10
  285. package/templates/src/locales/en/components/assistant.json +119 -119
  286. package/templates/src/locales/en/components/media.json +29 -29
  287. package/templates/src/locales/en/components/notificationCard.json +5 -5
  288. package/templates/src/locales/en/components/profileCard.json +8 -8
  289. package/templates/src/locales/en/components/projectCard.json +10 -10
  290. package/templates/src/locales/en/components/sidebar.json +14 -14
  291. package/templates/src/locales/en/components/stats.json +8 -8
  292. package/templates/src/locales/en/components/team.json +14 -14
  293. package/templates/src/locales/en/errors.json +9 -9
  294. package/templates/src/locales/en/languageSelector.json +7 -7
  295. package/templates/src/locales/en/nav.json +6 -6
  296. package/templates/src/locales/en/pages/crudTemplate.json +25 -25
  297. package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
  298. package/templates/src/locales/en/pages/forgotPassword.json +10 -10
  299. package/templates/src/locales/en/pages/formTemplate.json +16 -16
  300. package/templates/src/locales/en/pages/home.json +7 -7
  301. package/templates/src/locales/en/pages/login.json +15 -15
  302. package/templates/src/locales/en/pages/loginTemplate.json +9 -9
  303. package/templates/src/locales/en/pages/resetPassword.json +18 -18
  304. package/templates/src/locales/en/pages/templates.json +317 -317
  305. package/templates/src/locales/en/pages/verifyEmail.json +12 -12
  306. package/templates/src/locales/en/themeToggle.json +6 -6
  307. package/templates/src/locales/es/common.json +21 -21
  308. package/templates/src/locales/es/components/activityCard.json +10 -10
  309. package/templates/src/locales/es/components/assistant.json +119 -119
  310. package/templates/src/locales/es/components/media.json +29 -29
  311. package/templates/src/locales/es/components/notificationCard.json +5 -5
  312. package/templates/src/locales/es/components/profileCard.json +8 -8
  313. package/templates/src/locales/es/components/projectCard.json +10 -10
  314. package/templates/src/locales/es/components/sidebar.json +14 -14
  315. package/templates/src/locales/es/components/stats.json +8 -8
  316. package/templates/src/locales/es/components/team.json +14 -14
  317. package/templates/src/locales/es/errors.json +9 -9
  318. package/templates/src/locales/es/languageSelector.json +7 -7
  319. package/templates/src/locales/es/nav.json +6 -6
  320. package/templates/src/locales/es/pages/crudTemplate.json +25 -25
  321. package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
  322. package/templates/src/locales/es/pages/forgotPassword.json +10 -10
  323. package/templates/src/locales/es/pages/formTemplate.json +16 -16
  324. package/templates/src/locales/es/pages/home.json +7 -7
  325. package/templates/src/locales/es/pages/login.json +15 -15
  326. package/templates/src/locales/es/pages/loginTemplate.json +9 -9
  327. package/templates/src/locales/es/pages/resetPassword.json +18 -18
  328. package/templates/src/locales/es/pages/templates.json +317 -317
  329. package/templates/src/locales/es/pages/verifyEmail.json +12 -12
  330. package/templates/src/locales/es/themeToggle.json +6 -6
  331. package/templates/src/locales/pt-BR/common.json +21 -21
  332. package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
  333. package/templates/src/locales/pt-BR/components/assistant.json +119 -119
  334. package/templates/src/locales/pt-BR/components/media.json +29 -29
  335. package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
  336. package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
  337. package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
  338. package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
  339. package/templates/src/locales/pt-BR/components/stats.json +8 -8
  340. package/templates/src/locales/pt-BR/components/team.json +14 -14
  341. package/templates/src/locales/pt-BR/errors.json +9 -9
  342. package/templates/src/locales/pt-BR/languageSelector.json +7 -7
  343. package/templates/src/locales/pt-BR/nav.json +6 -6
  344. package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
  345. package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
  346. package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
  347. package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
  348. package/templates/src/locales/pt-BR/pages/home.json +7 -7
  349. package/templates/src/locales/pt-BR/pages/login.json +15 -15
  350. package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
  351. package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
  352. package/templates/src/locales/pt-BR/pages/templates.json +317 -317
  353. package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
  354. package/templates/src/locales/pt-BR/themeToggle.json +6 -6
  355. package/templates/src/pages/AssistantPage.tsx +470 -470
  356. package/templates/src/pages/HomePage.tsx +53 -53
  357. package/templates/src/shared/error-boundary.tsx +150 -150
  358. package/templates/src/shared/error-fallbacks.tsx +222 -222
  359. package/templates/src/styles/xertica/tokens.css +240 -240
  360. package/templates/vite.config.js +20 -20
  361. package/templates/vite.config.ts +55 -55
  362. package/dist/AssistantChart-BKVtGUKF.js +0 -3383
  363. package/dist/AssistantChart-CxGjH7Qk.js +0 -3477
  364. package/dist/AssistantChart-DIpshm3i.js +0 -4784
  365. package/dist/AssistantChart-D_PTeu8P.cjs +0 -3503
  366. package/dist/AssistantChart-WeycT5Pd.cjs +0 -3551
  367. package/dist/AssistantChart-zjsy2GaZ.cjs +0 -4810
  368. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  369. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  370. package/dist/AudioPlayer-BpRPS4-1.cjs +0 -1277
  371. package/dist/AudioPlayer-C12BjQBV.cjs +0 -997
  372. package/dist/AudioPlayer-CFeV8t-5.cjs +0 -936
  373. package/dist/AudioPlayer-Coly3q5R.js +0 -1278
  374. package/dist/AudioPlayer-CySJIyvL.js +0 -937
  375. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  376. package/dist/AudioPlayer-DcFKRJE_.js +0 -998
  377. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  378. package/dist/BrandColorsContext-565dDHd5.js +0 -660
  379. package/dist/BrandColorsContext-BcJbtkqn.cjs +0 -659
  380. package/dist/CodeBlock-BgfYL_rD.cjs +0 -2094
  381. package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
  382. package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
  383. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  384. package/dist/CodeBlock-CIySIuYr.js +0 -2078
  385. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  386. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  387. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  388. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  389. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  390. package/dist/CodeBlock-DnYNI8rQ.js +0 -2078
  391. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  392. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  393. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  394. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  395. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  396. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  397. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  398. package/dist/FeatureCard-CxC-7C-C.cjs +0 -300
  399. package/dist/FeatureCard-DbHWCb4E.js +0 -301
  400. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  401. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  402. package/dist/LanguageSelector-B5YfbHra.js +0 -231
  403. package/dist/LanguageSelector-D6uacAIM.cjs +0 -230
  404. package/dist/LayoutContext-B45-e9DI.cjs +0 -93
  405. package/dist/LayoutContext-BAql6ZRY.js +0 -97
  406. package/dist/LayoutContext-Bav3UMEA.js +0 -94
  407. package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
  408. package/dist/ThemeContext-BoH4NLfN.js +0 -734
  409. package/dist/ThemeContext-r69W20Xg.cjs +0 -733
  410. package/dist/VerifyEmailPage-COiyNl1y.js +0 -2825
  411. package/dist/VerifyEmailPage-CqKsR2v8.js +0 -2827
  412. package/dist/VerifyEmailPage-DjQKRlUS.cjs +0 -2824
  413. package/dist/VerifyEmailPage-s-1X3LDJ.cjs +0 -2826
  414. package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
  415. package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
  416. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  417. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  418. package/dist/XerticaProvider-BlY2limY.cjs +0 -38
  419. package/dist/XerticaProvider-DDuiIcKo.js +0 -39
  420. package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
  421. package/dist/XerticaProvider-hSwhNQex.js +0 -39
  422. package/dist/alert-dialog-BOje--vD.js +0 -847
  423. package/dist/alert-dialog-BtEuQqrg.cjs +0 -870
  424. package/dist/breadcrumb-CqJ7bHY5.js +0 -161
  425. package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
  426. package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +0 -6
  427. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +0 -21
  428. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +0 -49
  429. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +0 -16
  430. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  431. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  432. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  433. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  434. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  435. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  436. package/dist/components/ui/chart/parts/chart-dashboard.d.ts +0 -113
  437. package/dist/components/ui/chart/parts/chart-metric.d.ts +0 -118
  438. package/dist/components/ui/chart/parts/chart-primitives.d.ts +0 -101
  439. package/dist/components/ui/chart/parts/chart-shared.d.ts +0 -20
  440. package/dist/components/ui/chart/parts/chart-utils.d.ts +0 -12
  441. package/dist/components/ui/chart/parts/index.d.ts +0 -5
  442. package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
  443. package/dist/dropdown-menu-DQidbKBD.js +0 -231
  444. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  445. package/dist/google-maps-loader-BKcdgFbu.cjs +0 -312
  446. package/dist/google-maps-loader-CumCNXeG.js +0 -312
  447. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  448. package/dist/header-Cgy6vYPk.cjs +0 -731
  449. package/dist/header-DRlT4jgI.js +0 -715
  450. package/dist/header-Dux00SI4.cjs +0 -731
  451. package/dist/header-EkGKXPsD.js +0 -715
  452. package/dist/header-WfEywpyc.cjs +0 -731
  453. package/dist/header-tifNQn2U.js +0 -715
  454. package/dist/index-BhapVLVj.js +0 -8
  455. package/dist/index-D6fxYEY8.cjs +0 -7
  456. package/dist/index-DAIp0_HK.js +0 -8
  457. package/dist/index-DW5tYe26.js +0 -8
  458. package/dist/index-GA__GvnG.cjs +0 -7
  459. package/dist/input-2R4loU86.js +0 -127
  460. package/dist/input-DWANSKGb.cjs +0 -145
  461. package/dist/progress-DPtzoVV8.js +0 -175
  462. package/dist/progress-EeaoqqUs.cjs +0 -191
  463. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  464. package/dist/rich-text-editor-B-IkcPD0.js +0 -2874
  465. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  466. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  467. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  468. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  469. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  470. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  471. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  472. package/dist/rich-text-editor-Bp3zQqMC.js +0 -2954
  473. package/dist/rich-text-editor-CMgSN_w2.js +0 -1189
  474. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  475. package/dist/rich-text-editor-CeucBdIv.cjs +0 -2971
  476. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  477. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  478. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  479. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  480. package/dist/rich-text-editor-D76gD-QI.js +0 -2328
  481. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  482. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  483. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  484. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  485. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  486. package/dist/rich-text-editor-bRkNoeZY.cjs +0 -2891
  487. package/dist/rich-text-editor-lyYE2ZG5.cjs +0 -1207
  488. package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
  489. package/dist/select-Bkbr0f-Z.cjs +0 -162
  490. package/dist/select-CvIVdX2n.js +0 -145
  491. package/dist/sidebar-CK_0ZQHj.cjs +0 -803
  492. package/dist/sidebar-CUuOvYhK.js +0 -787
  493. package/dist/sidebar-DQj1z3jG.cjs +0 -758
  494. package/dist/sidebar-Djn5syhi.cjs +0 -786
  495. package/dist/sidebar-LluMXfam.js +0 -759
  496. package/dist/sidebar-_rT7rBMk.js +0 -787
  497. package/dist/slider-Bc5Hd0y1.js +0 -56
  498. package/dist/slider-N7hFFj6X.cjs +0 -73
  499. package/dist/tooltip-Ded96neP.cjs +0 -137
  500. package/dist/tooltip-HDOoD2-0.js +0 -120
  501. package/dist/use-audio-player-B31J-aqh.cjs +0 -187
  502. package/dist/use-audio-player-BkmEmj8Q.js +0 -185
  503. package/dist/use-audio-player-CLFTWFW1.cjs +0 -184
  504. package/dist/use-audio-player-CLLn00I6.js +0 -188
  505. package/dist/use-file-upload-BcjEo2S5.js +0 -404
  506. package/dist/use-file-upload-CRJR68Tj.cjs +0 -403
  507. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  508. package/dist/use-mobile-BXuYROXM.js +0 -4202
  509. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  510. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  511. package/dist/use-mobile-BvYdisLP.js +0 -4202
  512. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  513. package/dist/use-mobile-CG2-SdXV.cjs +0 -4235
  514. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  515. package/dist/use-mobile-CYuAuGDl.js +0 -4202
  516. package/dist/use-mobile-CaENcqm-.js +0 -4508
  517. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  518. package/dist/use-mobile-Cd4xPrKq.cjs +0 -46
  519. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  520. package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
  521. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  522. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  523. package/dist/use-mobile-DlceKf8a.js +0 -4359
  524. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  525. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  526. package/dist/use-mobile-bnKcua_i.js +0 -4202
  527. package/dist/use-mobile-j4w2Jrf1.js +0 -30
  528. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
  529. package/dist/use-rich-text-editor-DjiddBGv.js +0 -282
  530. package/dist/use-rich-text-editor-lpeswbCs.cjs +0 -281
  531. package/dist/xertica-assistant-BdiZag0h.js +0 -2187
  532. package/dist/xertica-assistant-CrgTb6Hs.cjs +0 -2155
  533. package/dist/xertica-assistant-DCsnQyi5.js +0 -2156
  534. package/dist/xertica-assistant-DUBpmEgo.cjs +0 -2186
  535. package/dist/{rich-text-editor-DgF8s7xW.js → rich-text-editor-BmsjY03B.js} +26 -26
  536. package/dist/{rich-text-editor-mWoaSCE4.cjs → rich-text-editor-GS2kpTAK.cjs} +26 -26
@@ -1,2826 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const React = require("react");
4
- const button = require("./button-0CXwCRTm.cjs");
5
- const input = require("./input-CPl84zAx.cjs");
6
- const alertDialog = require("./alert-dialog-DSKByiKZ.cjs");
7
- const XerticaXLogo = require("./XerticaXLogo-D8jf0SNv.cjs");
8
- const lucideReact = require("lucide-react");
9
- const reactRouterDom = require("react-router-dom");
10
- const sidebar = require("./sidebar-BxGXsDAd.cjs");
11
- const progress = require("./progress-EeaoqqUs.cjs");
12
- const LayoutContext = require("./LayoutContext-BDmcZfMH.cjs");
13
- const xerticaAssistant = require("./xertica-assistant-DUBpmEgo.cjs");
14
- const richTextEditor = require("./rich-text-editor-lyYE2ZG5.cjs");
15
- const select = require("./select-DT7Zjn42.cjs");
16
- const slider = require("./slider-CPmwzm_3.cjs");
17
- const sonner = require("sonner");
18
- function ForgotPasswordPage() {
19
- const navigate = reactRouterDom.useNavigate();
20
- const [email, setEmail] = React.useState("");
21
- const [isLoading, setIsLoading] = React.useState(false);
22
- const handleSubmit = async (e) => {
23
- e.preventDefault();
24
- setIsLoading(true);
25
- await new Promise((resolve) => setTimeout(resolve, 1500));
26
- navigate("/verify-email", { state: { email } });
27
- setIsLoading(false);
28
- };
29
- const handleSocialLogin = (_provider) => {
30
- };
31
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen flex", children: [
32
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
33
- /* @__PURE__ */ jsxRuntime.jsx(
34
- alertDialog.ImageWithFallback,
35
- {
36
- src: "https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1200&h=800&fit=crop&auto=format",
37
- alt: "Segurança e tecnologia",
38
- className: "absolute inset-0 w-full h-full object-cover"
39
- }
40
- ),
41
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
42
- ] }),
43
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
44
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
45
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
46
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
47
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
48
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
49
- XerticaXLogo.XerticaLogo,
50
- {
51
- className: "h-12 w-auto text-primary dark:text-foreground",
52
- variant: "theme"
53
- }
54
- ) }),
55
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: "Recuperar senha" }),
56
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: "Digite seu e-mail e enviaremos as instruções para redefinir sua senha" })
57
- ] }),
58
- /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
59
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "form-group space-y-2", children: [
60
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", className: "form-label", children: "E-mail" }),
61
- /* @__PURE__ */ jsxRuntime.jsx(
62
- input.Input,
63
- {
64
- id: "email",
65
- name: "email",
66
- type: "email",
67
- required: true,
68
- className: "w-full",
69
- placeholder: "seu@email.com",
70
- value: email,
71
- onChange: (e) => setEmail(e.target.value)
72
- }
73
- )
74
- ] }),
75
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
76
- /* @__PURE__ */ jsxRuntime.jsx(
77
- button.Button,
78
- {
79
- type: "submit",
80
- className: "w-full",
81
- disabled: isLoading,
82
- children: isLoading ? "Enviando..." : "Enviar instruções"
83
- }
84
- ),
85
- /* @__PURE__ */ jsxRuntime.jsxs(
86
- button.Button,
87
- {
88
- type: "button",
89
- onClick: () => navigate("/login"),
90
- variant: "outline",
91
- className: "w-full text-muted-foreground hover:text-foreground",
92
- children: [
93
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4 mr-2" }),
94
- "Voltar para o login"
95
- ]
96
- }
97
- )
98
- ] })
99
- ] }),
100
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
101
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
102
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
103
- ] }),
104
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
105
- /* @__PURE__ */ jsxRuntime.jsxs(
106
- button.Button,
107
- {
108
- type: "button",
109
- variant: "outline",
110
- className: "w-full justify-center",
111
- onClick: () => handleSocialLogin(),
112
- children: [
113
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
114
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
115
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
116
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
117
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
118
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
119
- ] }),
120
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com Google" })
121
- ]
122
- }
123
- ),
124
- /* @__PURE__ */ jsxRuntime.jsxs(
125
- button.Button,
126
- {
127
- type: "button",
128
- variant: "outline",
129
- className: "w-full justify-center",
130
- onClick: () => handleSocialLogin(),
131
- children: [
132
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
133
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com MT Login" })
134
- ]
135
- }
136
- ),
137
- /* @__PURE__ */ jsxRuntime.jsx(
138
- button.Button,
139
- {
140
- type: "button",
141
- variant: "outline",
142
- className: "w-full justify-center font-normal",
143
- onClick: () => handleSocialLogin(),
144
- children: /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
145
- "Entrar com ",
146
- /* @__PURE__ */ jsxRuntime.jsx("strong", { className: "font-semibold", children: "gov.br" })
147
- ] })
148
- }
149
- )
150
- ] })
151
- ] })
152
- ] })
153
- ] });
154
- }
155
- const routes = [
156
- {
157
- path: "/home",
158
- label: "Home",
159
- icon: lucideReact.Home
160
- },
161
- {
162
- path: "/template",
163
- label: "Template",
164
- icon: lucideReact.FileText
165
- }
166
- ];
167
- const getRouteByPath = (path) => {
168
- return routes.find((route) => route.path === path);
169
- };
170
- const SIDEBAR_COLLAPSED_WIDTH = 80;
171
- function HomeContent({ user, onLogout, onSettings }) {
172
- const layout = LayoutContext.useOptionalLayout();
173
- const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? false;
174
- const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 256;
175
- const location = reactRouterDom.useLocation();
176
- const navigate = reactRouterDom.useNavigate();
177
- const labelTranslations = {
178
- "home": "Início",
179
- "template": "Template"
180
- };
181
- const currentRoute = getRouteByPath(location.pathname);
182
- (currentRoute == null ? void 0 : currentRoute.label) ? labelTranslations[currentRoute.label.toLowerCase()] || currentRoute.label : "Início";
183
- return /* @__PURE__ */ jsxRuntime.jsxs(
184
- "div",
185
- {
186
- style: {
187
- paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : SIDEBAR_COLLAPSED_WIDTH
188
- },
189
- className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
190
- children: [
191
- /* @__PURE__ */ jsxRuntime.jsx(
192
- sidebar.Header,
193
- {
194
- showThemeToggle: true,
195
- showLanguageSelector: true,
196
- breadcrumbs: [
197
- { label: "Design System", href: "/home" },
198
- { label: "Início" }
199
- ],
200
- renderLink: (href, props) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, ...props })
201
- }
202
- ),
203
- /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(input.ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
204
- /* @__PURE__ */ jsxRuntime.jsx(
205
- alertDialog.PageHeader,
206
- {
207
- title: "Bem-vindo ao Design System!",
208
- subtitle: "Sua plataforma inteligente para automação e análise de dados"
209
- }
210
- ),
211
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { className: "hover:shadow-xl transition-shadow duration-200 flex flex-col h-full", children: [
212
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
213
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 bg-[var(--chart-2)]/20 rounded-[var(--radius)]", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "w-6 h-6 text-[var(--chart-2)]" }) }),
214
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
215
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { className: "text-sm", children: "Template CLI" }),
216
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", className: "text-xs", children: "Novo" })
217
- ] })
218
- ] }) }),
219
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Página de template pronta para uso CLI com todos os componentes configurados." }) }),
220
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
221
- button.Button,
222
- {
223
- variant: "outline",
224
- className: "w-full",
225
- onClick: () => navigate("/template"),
226
- children: "Visualizar"
227
- }
228
- ) })
229
- ] }) })
230
- ] }) }) }) })
231
- ]
232
- }
233
- );
234
- }
235
- const richSuggestions = [
236
- { id: "chart-1", text: "Ver análise de desempenho" },
237
- { id: "table-1", text: "Gerar relatório do projeto" },
238
- { id: "doc-1", text: "Criar documento de requisitos" },
239
- { id: "pod-1", text: "Gerar podcast de resumo diário" }
240
- ];
241
- const feedbackOptions = [
242
- "Não era o que eu estava procurando",
243
- "Informações incorretas",
244
- "Resposta incompleta"
245
- ];
246
- function HomePage({ user, onLogout }) {
247
- const layout = LayoutContext.useOptionalLayout();
248
- const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
249
- const [localAssistantExpanded, setLocalAssistantExpanded] = React.useState(false);
250
- const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
251
- const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
252
- const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
253
- const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
254
- const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
255
- const location = reactRouterDom.useLocation();
256
- const navigate = reactRouterDom.useNavigate();
257
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
258
- /* @__PURE__ */ jsxRuntime.jsx(
259
- sidebar.Sidebar,
260
- {
261
- expanded: sidebarExpanded,
262
- width: sidebarWidth,
263
- onToggle: toggleSidebar,
264
- user: {
265
- ...user,
266
- name: "Ariel Santos",
267
- avatar: "https://github.com/shadcn.png"
268
- },
269
- onLogout,
270
- onSettingsClick: () => navigate("/settings"),
271
- location,
272
- navigate,
273
- routes
274
- }
275
- ),
276
- /* @__PURE__ */ jsxRuntime.jsx(
277
- HomeContent,
278
- {
279
- user,
280
- onLogout,
281
- onSettings: () => navigate("/settings")
282
- }
283
- ),
284
- /* @__PURE__ */ jsxRuntime.jsx(
285
- xerticaAssistant.XerticaAssistant,
286
- {
287
- isExpanded: assistenteExpanded,
288
- onToggle: toggleAssistente,
289
- defaultTab: "chat",
290
- demoMode: true,
291
- responseGenerator: xerticaAssistant.gerarResposta,
292
- richSuggestions,
293
- feedbackOptions,
294
- onEvaluation: () => {
295
- }
296
- }
297
- )
298
- ] });
299
- }
300
- function LoginPage({ onLogin }) {
301
- const navigate = reactRouterDom.useNavigate();
302
- const [email, setEmail] = React.useState("");
303
- const [password, setPassword] = React.useState("");
304
- const [isLoading, setIsLoading] = React.useState(false);
305
- const [error, setError] = React.useState("");
306
- const handleSubmit = async (e) => {
307
- e.preventDefault();
308
- setError("");
309
- setIsLoading(true);
310
- await new Promise((resolve) => setTimeout(resolve, 1e3));
311
- const success = onLogin(email, password);
312
- if (!success) {
313
- setError("Por favor, preencha todos os campos");
314
- }
315
- setIsLoading(false);
316
- };
317
- const handleSocialLogin = (_provider) => {
318
- onLogin("social@user.com", "social-auth");
319
- };
320
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen flex", children: [
321
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
322
- /* @__PURE__ */ jsxRuntime.jsx(
323
- alertDialog.ImageWithFallback,
324
- {
325
- src: "https://images.unsplash.com/photo-1551434678-e076c223a692?w=1200&h=800&fit=crop&auto=format",
326
- alt: "Equipe trabalhando com tecnologia",
327
- className: "absolute inset-0 w-full h-full object-cover"
328
- }
329
- ),
330
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
331
- ] }),
332
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
333
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
334
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
335
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
336
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
337
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
338
- XerticaXLogo.XerticaLogo,
339
- {
340
- className: "h-12 w-auto text-primary dark:text-foreground",
341
- variant: "theme"
342
- }
343
- ) }),
344
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: "Acesse sua conta" })
345
- ] }),
346
- /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
347
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
348
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children: "E-mail" }),
349
- /* @__PURE__ */ jsxRuntime.jsx(
350
- input.Input,
351
- {
352
- id: "email",
353
- name: "email",
354
- type: "email",
355
- required: true,
356
- className: "w-full",
357
- placeholder: "seu@email.com",
358
- value: email,
359
- onChange: (e) => setEmail(e.target.value)
360
- }
361
- )
362
- ] }),
363
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
364
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children: "Senha" }),
365
- /* @__PURE__ */ jsxRuntime.jsx(
366
- input.Input,
367
- {
368
- id: "password",
369
- name: "password",
370
- type: "password",
371
- required: true,
372
- className: "w-full",
373
- placeholder: "••••••••",
374
- value: password,
375
- onChange: (e) => setPassword(e.target.value)
376
- }
377
- )
378
- ] }),
379
- error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive text-sm text-center", children: error }),
380
- /* @__PURE__ */ jsxRuntime.jsx(
381
- button.Button,
382
- {
383
- type: "submit",
384
- className: "w-full",
385
- disabled: isLoading,
386
- children: isLoading ? "Entrando..." : "Entrar"
387
- }
388
- ),
389
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
390
- "button",
391
- {
392
- type: "button",
393
- onClick: () => navigate("/forgot-password"),
394
- className: "text-sm text-primary hover:opacity-80 transition-colors",
395
- children: "Esqueceu sua senha?"
396
- }
397
- ) })
398
- ] }),
399
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
400
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
401
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
402
- ] }),
403
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
404
- /* @__PURE__ */ jsxRuntime.jsxs(
405
- button.Button,
406
- {
407
- type: "button",
408
- variant: "outline",
409
- className: "w-full justify-center",
410
- onClick: () => handleSocialLogin(),
411
- children: [
412
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
413
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
414
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
415
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
416
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
417
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
418
- ] }),
419
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com Google" })
420
- ]
421
- }
422
- ),
423
- /* @__PURE__ */ jsxRuntime.jsxs(
424
- button.Button,
425
- {
426
- type: "button",
427
- variant: "outline",
428
- className: "w-full justify-center",
429
- onClick: () => handleSocialLogin(),
430
- children: [
431
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
432
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com MT Login" })
433
- ]
434
- }
435
- ),
436
- /* @__PURE__ */ jsxRuntime.jsx(
437
- button.Button,
438
- {
439
- type: "button",
440
- variant: "outline",
441
- className: "w-full justify-center font-normal",
442
- onClick: () => handleSocialLogin(),
443
- children: /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
444
- "Entrar com ",
445
- /* @__PURE__ */ jsxRuntime.jsx("strong", { className: "font-semibold", children: "gov.br" })
446
- ] })
447
- }
448
- )
449
- ] })
450
- ] })
451
- ] })
452
- ] });
453
- }
454
- function ResetPasswordPage() {
455
- const navigate = reactRouterDom.useNavigate();
456
- const [password, setPassword] = React.useState("");
457
- const [confirmPassword, setConfirmPassword] = React.useState("");
458
- const [isLoading, setIsLoading] = React.useState(false);
459
- const [error, setError] = React.useState("");
460
- const [passwordStrength, setPasswordStrength] = React.useState(null);
461
- const checkPasswordStrength = (pwd) => {
462
- if (pwd.length === 0) {
463
- setPasswordStrength(null);
464
- return;
465
- }
466
- if (pwd.length < 6) {
467
- setPasswordStrength("weak");
468
- } else if (pwd.length < 10) {
469
- setPasswordStrength("medium");
470
- } else {
471
- setPasswordStrength("strong");
472
- }
473
- };
474
- const handlePasswordChange = (value) => {
475
- setPassword(value);
476
- checkPasswordStrength(value);
477
- setError("");
478
- };
479
- const handleSubmit = async (e) => {
480
- e.preventDefault();
481
- setError("");
482
- if (password.length < 6) {
483
- setError("A senha deve ter pelo menos 6 caracteres");
484
- return;
485
- }
486
- if (password !== confirmPassword) {
487
- setError("As senhas não coincidem");
488
- return;
489
- }
490
- setIsLoading(true);
491
- await new Promise((resolve) => setTimeout(resolve, 1500));
492
- navigate("/login", { state: { resetSuccess: true } });
493
- setIsLoading(false);
494
- };
495
- const getStrengthColor = () => {
496
- switch (passwordStrength) {
497
- case "weak":
498
- return "text-destructive";
499
- case "medium":
500
- return "text-[var(--chart-3)]";
501
- case "strong":
502
- return "text-[var(--chart-2)]";
503
- default:
504
- return "text-muted-foreground";
505
- }
506
- };
507
- const getStrengthText = () => {
508
- switch (passwordStrength) {
509
- case "weak":
510
- return "Senha fraca";
511
- case "medium":
512
- return "Senha média";
513
- case "strong":
514
- return "Senha forte";
515
- default:
516
- return "";
517
- }
518
- };
519
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen flex", children: [
520
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
521
- /* @__PURE__ */ jsxRuntime.jsx(
522
- alertDialog.ImageWithFallback,
523
- {
524
- src: "https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop&auto=format",
525
- alt: "Segurança e proteção",
526
- className: "absolute inset-0 w-full h-full object-cover"
527
- }
528
- ),
529
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
530
- ] }),
531
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
532
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
533
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
534
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
535
- /* @__PURE__ */ jsxRuntime.jsxs(
536
- "button",
537
- {
538
- onClick: () => navigate("/login"),
539
- className: "flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",
540
- children: [
541
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4" }),
542
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small", children: "Voltar para o login" })
543
- ]
544
- }
545
- ),
546
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
547
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
548
- XerticaXLogo.XerticaLogo,
549
- {
550
- className: "h-12 w-auto text-primary dark:text-foreground",
551
- variant: "theme"
552
- }
553
- ) }),
554
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: "Redefinir senha" }),
555
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: "Crie uma nova senha segura para sua conta" })
556
- ] }),
557
- /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
558
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
559
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children: "Nova senha" }),
560
- /* @__PURE__ */ jsxRuntime.jsx(
561
- input.Input,
562
- {
563
- id: "password",
564
- name: "password",
565
- type: "password",
566
- required: true,
567
- className: "w-full",
568
- placeholder: "••••••••",
569
- value: password,
570
- onChange: (e) => handlePasswordChange(e.target.value)
571
- }
572
- ),
573
- passwordStrength && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
574
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 h-1 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
575
- "div",
576
- {
577
- className: `h-full transition-all duration-300 ${passwordStrength === "weak" ? "w-1/3 bg-destructive" : passwordStrength === "medium" ? "w-2/3 bg-[var(--chart-3)]" : "w-full bg-[var(--chart-2)]"}`
578
- }
579
- ) }),
580
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-small ${getStrengthColor()}`, children: getStrengthText() })
581
- ] })
582
- ] }),
583
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
584
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "confirmPassword", children: "Confirmar senha" }),
585
- /* @__PURE__ */ jsxRuntime.jsx(
586
- input.Input,
587
- {
588
- id: "confirmPassword",
589
- name: "confirmPassword",
590
- type: "password",
591
- required: true,
592
- className: "w-full",
593
- placeholder: "••••••••",
594
- value: confirmPassword,
595
- onChange: (e) => {
596
- setConfirmPassword(e.target.value);
597
- setError("");
598
- }
599
- }
600
- )
601
- ] }),
602
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-2", children: [
603
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: "Requisitos de senha:" }),
604
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
605
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
606
- /* @__PURE__ */ jsxRuntime.jsx(
607
- lucideReact.CheckCircle2,
608
- {
609
- className: `w-4 h-4 ${password.length >= 6 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
610
- }
611
- ),
612
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: "Mínimo de 6 caracteres" })
613
- ] }),
614
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
615
- /* @__PURE__ */ jsxRuntime.jsx(
616
- lucideReact.CheckCircle2,
617
- {
618
- className: `w-4 h-4 ${password === confirmPassword && password.length > 0 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
619
- }
620
- ),
621
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: "As senhas coincidem" })
622
- ] })
623
- ] })
624
- ] }),
625
- error && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-destructive bg-destructive/10 rounded-[var(--radius)] p-3", children: [
626
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "w-4 h-4 flex-shrink-0" }),
627
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: error })
628
- ] }),
629
- /* @__PURE__ */ jsxRuntime.jsx(
630
- button.Button,
631
- {
632
- type: "submit",
633
- className: "w-full",
634
- disabled: isLoading,
635
- children: isLoading ? "Redefinindo..." : "Redefinir senha"
636
- }
637
- )
638
- ] })
639
- ] })
640
- ] })
641
- ] });
642
- }
643
- function createLucideIconSvg(iconName) {
644
- const iconPaths = {
645
- utensils: '<path d="M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"></path><path d="M7 2v20"></path><path d="M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7"></path>',
646
- hotel: '<path d="M18 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"></path><path d="M8 6h8"></path><path d="M8 10h8"></path><path d="M8 14h8"></path><path d="M8 18h8"></path>',
647
- landmark: '<path d="m3 21 18-18"></path><path d="M9 15V6h6v9"></path><path d="M12 3v3"></path><path d="M3 15h18"></path><path d="M6 21v-6"></path><path d="M18 21v-6"></path>',
648
- shopping: '<path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"></path><path d="M3 6h18"></path><path d="M16 10a4 4 0 0 1-8 0"></path>',
649
- coffee: '<path d="M17 8h1a4 4 0 1 1 0 8h-1"></path><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z"></path><line x1="6" x2="6" y1="2" y2="4"></line><line x1="10" x2="10" y1="2" y2="4"></line><line x1="14" x2="14" y1="2" y2="4"></line>'
650
- };
651
- const path = iconPaths[iconName] || "";
652
- return `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">${path}</svg>`;
653
- }
654
- const markerGroups = {
655
- restaurant: {
656
- id: "restaurant",
657
- name: "Restaurantes",
658
- color: "var(--destructive)",
659
- // red
660
- iconColor: "#FFFFFF",
661
- // white para contraste
662
- iconName: "utensils",
663
- icon: lucideReact.Utensils
664
- },
665
- hotel: {
666
- id: "hotel",
667
- name: "Hotéis",
668
- color: "var(--info)",
669
- // blue
670
- iconColor: "#FFFFFF",
671
- iconName: "hotel",
672
- icon: lucideReact.Hotel
673
- },
674
- landmark: {
675
- id: "landmark",
676
- name: "Pontos Turísticos",
677
- color: "var(--success)",
678
- // green
679
- iconColor: "#FFFFFF",
680
- iconName: "landmark",
681
- icon: lucideReact.Landmark
682
- },
683
- shopping: {
684
- id: "shopping",
685
- name: "Compras",
686
- color: "var(--warning)",
687
- // orange
688
- iconColor: "#FFFFFF",
689
- iconName: "shopping",
690
- icon: lucideReact.ShoppingBag
691
- },
692
- cafe: {
693
- id: "cafe",
694
- name: "Cafeterias",
695
- color: "var(--primary)",
696
- // purple
697
- iconColor: "#FFFFFF",
698
- iconName: "coffee",
699
- icon: lucideReact.Coffee
700
- }
701
- };
702
- const sampleLocations = [
703
- // Restaurantes
704
- {
705
- position: { lat: -23.5505, lng: -46.6333 },
706
- title: "Restaurante Italiano",
707
- info: "Melhor pizza da cidade",
708
- group: "restaurant"
709
- },
710
- {
711
- position: { lat: -23.5485, lng: -46.635 },
712
- title: "Sushi Bar",
713
- info: "Comida japonesa autêntica",
714
- group: "restaurant"
715
- },
716
- {
717
- position: { lat: -23.552, lng: -46.631 },
718
- title: "Churrascaria Premium",
719
- info: "Rodízio tradicional brasileiro",
720
- group: "restaurant"
721
- },
722
- // Hotéis
723
- {
724
- position: { lat: -23.5475, lng: -46.6361 },
725
- title: "Hotel Luxo",
726
- info: "5 estrelas - Vista panorâmica",
727
- group: "hotel"
728
- },
729
- {
730
- position: { lat: -23.553, lng: -46.634 },
731
- title: "Hotel Boutique",
732
- info: "Design moderno e aconchegante",
733
- group: "hotel"
734
- },
735
- // Pontos Turísticos
736
- {
737
- position: { lat: -23.5613, lng: -46.6563 },
738
- title: "Parque Ibirapuera",
739
- info: "Maior parque urbano da cidade",
740
- group: "landmark"
741
- },
742
- {
743
- position: { lat: -23.5558, lng: -46.6396 },
744
- title: "MASP",
745
- info: "Museu de Arte de São Paulo",
746
- group: "landmark"
747
- },
748
- {
749
- position: { lat: -23.5489, lng: -46.6388 },
750
- title: "Avenida Paulista",
751
- info: "Centro financeiro e cultural",
752
- group: "landmark"
753
- },
754
- // Shopping
755
- {
756
- position: { lat: -23.5465, lng: -46.64 },
757
- title: "Shopping Center",
758
- info: "Mais de 300 lojas",
759
- group: "shopping"
760
- },
761
- {
762
- position: { lat: -23.554, lng: -46.638 },
763
- title: "Galeria de Arte",
764
- info: "Arte contemporânea e design",
765
- group: "shopping"
766
- },
767
- // Cafeterias
768
- {
769
- position: { lat: -23.5495, lng: -46.6345 },
770
- title: "Café Artesanal",
771
- info: "Café especial e brunch",
772
- group: "cafe"
773
- },
774
- {
775
- position: { lat: -23.551, lng: -46.637 },
776
- title: "Coffee House",
777
- info: "Café gourmet e wi-fi",
778
- group: "cafe"
779
- },
780
- {
781
- position: { lat: -23.5525, lng: -46.6355 },
782
- title: "Café Cultural",
783
- info: "Livros e café",
784
- group: "cafe"
785
- }
786
- ];
787
- function FilterableMapExample({ apiKey }) {
788
- const [activeFilters, setActiveFilters] = React.useState(
789
- new Set(Object.keys(markerGroups))
790
- );
791
- const [showFilters, setShowFilters] = React.useState(true);
792
- const filteredLocations = React.useMemo(() => {
793
- return sampleLocations.filter((location) => activeFilters.has(location.group));
794
- }, [activeFilters]);
795
- const toggleFilter = (groupId) => {
796
- setActiveFilters((prev) => {
797
- const newFilters = new Set(prev);
798
- if (newFilters.has(groupId)) {
799
- newFilters.delete(groupId);
800
- } else {
801
- newFilters.add(groupId);
802
- }
803
- return newFilters;
804
- });
805
- };
806
- const toggleAll = () => {
807
- if (activeFilters.size === Object.keys(markerGroups).length) {
808
- setActiveFilters(/* @__PURE__ */ new Set());
809
- } else {
810
- setActiveFilters(new Set(Object.keys(markerGroups)));
811
- }
812
- };
813
- const markersWithCustomization = filteredLocations.map((location) => ({
814
- ...location,
815
- customColor: markerGroups[location.group].color,
816
- iconSvg: createLucideIconSvg(markerGroups[location.group].iconName),
817
- iconColor: markerGroups[location.group].iconColor
818
- }));
819
- const getGroupCount = (groupId) => {
820
- return sampleLocations.filter((loc) => loc.group === groupId).length;
821
- };
822
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
823
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
824
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
825
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-primary" }),
826
- /* @__PURE__ */ jsxRuntime.jsx("h3", { children: "Filtro por Categorias" })
827
- ] }),
828
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Badge, { variant: "secondary", children: [
829
- filteredLocations.length,
830
- " de ",
831
- sampleLocations.length,
832
- " locais"
833
- ] })
834
- ] }),
835
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Use os filtros compactos no canto superior esquerdo do mapa para visualizar marcadores por categoria" }),
836
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
837
- /* @__PURE__ */ jsxRuntime.jsx(
838
- alertDialog.Map,
839
- {
840
- center: { lat: -23.5505, lng: -46.6333 },
841
- zoom: 14,
842
- markers: markersWithCustomization,
843
- height: "500px",
844
- zoomControl: true,
845
- fullscreenControl: true,
846
- apiKey
847
- }
848
- ),
849
- /* @__PURE__ */ jsxRuntime.jsx(
850
- "div",
851
- {
852
- className: button.cn(
853
- "absolute top-4 left-4 z-10 transition-all duration-300",
854
- showFilters ? "translate-x-0" : "-translate-x-full"
855
- ),
856
- children: /* @__PURE__ */ jsxRuntime.jsxs(
857
- "div",
858
- {
859
- className: "p-2.5 rounded-lg shadow-[var(--shadow-elevation-sm)] bg-card border border-border max-w-[220px]",
860
- children: [
861
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-2 gap-2", children: [
862
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
863
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "w-3.5 h-3.5 text-foreground" }),
864
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-foreground", children: "Filtros" })
865
- ] }),
866
- /* @__PURE__ */ jsxRuntime.jsx(
867
- button.Button,
868
- {
869
- size: "sm",
870
- variant: "ghost",
871
- onClick: () => setShowFilters(false),
872
- className: "h-5 w-5 p-0",
873
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-3 h-3" })
874
- }
875
- )
876
- ] }),
877
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
878
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
879
- /* @__PURE__ */ jsxRuntime.jsx(
880
- alertDialog.Checkbox,
881
- {
882
- id: "filter-all",
883
- checked: activeFilters.size === Object.keys(markerGroups).length,
884
- onCheckedChange: toggleAll
885
- }
886
- ),
887
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "filter-all", className: "flex items-center gap-1.5 cursor-pointer text-sm", children: [
888
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-3.5 h-3.5" }),
889
- "Todos",
890
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", className: "text-xs h-4 px-1", children: sampleLocations.length })
891
- ] })
892
- ] }),
893
- Object.entries(markerGroups).map(([id, group]) => {
894
- const groupId = id;
895
- const Icon = group.icon;
896
- const isActive = activeFilters.has(groupId);
897
- const count = getGroupCount(groupId);
898
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
899
- /* @__PURE__ */ jsxRuntime.jsx(
900
- alertDialog.Checkbox,
901
- {
902
- id: `filter-${id}`,
903
- checked: isActive,
904
- onCheckedChange: () => toggleFilter(groupId)
905
- }
906
- ),
907
- /* @__PURE__ */ jsxRuntime.jsxs(
908
- alertDialog.Label,
909
- {
910
- htmlFor: `filter-${id}`,
911
- className: "flex items-center gap-1.5 cursor-pointer text-sm",
912
- children: [
913
- /* @__PURE__ */ jsxRuntime.jsx(
914
- Icon,
915
- {
916
- className: "w-3.5 h-3.5",
917
- style: { color: group.color }
918
- }
919
- ),
920
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: isActive ? "text-foreground" : "text-muted-foreground", children: group.name }),
921
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "text-xs h-4 px-1", children: count })
922
- ]
923
- }
924
- )
925
- ] }, id);
926
- })
927
- ] })
928
- ]
929
- }
930
- )
931
- }
932
- ),
933
- !showFilters && /* @__PURE__ */ jsxRuntime.jsxs(
934
- button.Button,
935
- {
936
- size: "sm",
937
- onClick: () => setShowFilters(true),
938
- className: "absolute top-4 left-4 z-10 h-8 bg-primary text-primary-foreground",
939
- children: [
940
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "w-3.5 h-3.5 mr-1.5" }),
941
- "Filtros"
942
- ]
943
- }
944
- )
945
- ] }),
946
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3 justify-center pt-2 border-t border-border", children: Object.entries(markerGroups).map(([id, group]) => {
947
- const Icon = group.icon;
948
- const count = getGroupCount(id);
949
- return /* @__PURE__ */ jsxRuntime.jsxs(
950
- "div",
951
- {
952
- className: "flex items-center gap-2 px-3 py-1 rounded-lg bg-muted",
953
- children: [
954
- /* @__PURE__ */ jsxRuntime.jsx(
955
- "div",
956
- {
957
- className: "w-3 h-3 rounded-full",
958
- style: { backgroundColor: group.color }
959
- }
960
- ),
961
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "w-4 h-4", style: { color: group.color } }),
962
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", style: { color: "var(--foreground)" }, children: group.name }),
963
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", className: "text-xs h-5", children: count })
964
- ]
965
- },
966
- id
967
- );
968
- }) }),
969
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: [
970
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
971
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Total de Locais" }),
972
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-foreground", children: sampleLocations.length })
973
- ] }),
974
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
975
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Visíveis" }),
976
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-primary", children: filteredLocations.length })
977
- ] }),
978
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
979
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Categorias" }),
980
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-foreground", children: Object.keys(markerGroups).length })
981
- ] }),
982
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
983
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Filtros Ativos" }),
984
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl text-chart-2", children: activeFilters.size })
985
- ] })
986
- ] })
987
- ] });
988
- }
989
- function DrawingMapExample({ apiKey }) {
990
- const [mapInstance, setMapInstance] = React.useState(null);
991
- const [selectedMode, setSelectedMode] = React.useState(null);
992
- const [shapes, setShapes] = React.useState([]);
993
- const [showSaveDialog, setShowSaveDialog] = React.useState(false);
994
- const [savedData, setSavedData] = React.useState("");
995
- const [isDrawingPolygon, setIsDrawingPolygon] = React.useState(false);
996
- const tempPolylineRef = React.useRef(null);
997
- const polygonPathRef = React.useRef([]);
998
- const mapListenersRef = React.useRef([]);
999
- const colors = {
1000
- fill: "#2C275B",
1001
- // Primary do CSS
1002
- stroke: "#2C275B",
1003
- fillOpacity: 0.2,
1004
- strokeWeight: 2,
1005
- editable: true,
1006
- draggable: true
1007
- };
1008
- const addMarker = React.useCallback((position) => {
1009
- if (!mapInstance) return;
1010
- const marker = new google.maps.marker.AdvancedMarkerElement({
1011
- position,
1012
- map: mapInstance,
1013
- gmpDraggable: true,
1014
- // Propriedade correta para AdvancedMarkerElement
1015
- title: "Marcador"
1016
- });
1017
- marker.addListener("dragend", () => {
1018
- sonner.toast.info("Posição do marcador atualizada");
1019
- });
1020
- const newShape = { type: "marker", overlay: marker };
1021
- setShapes((prev) => [...prev, newShape]);
1022
- sonner.toast.success("Marcador adicionado");
1023
- }, [mapInstance]);
1024
- const addCircle = React.useCallback((center) => {
1025
- if (!mapInstance) return;
1026
- const circle = new google.maps.Circle({
1027
- map: mapInstance,
1028
- center,
1029
- radius: 500,
1030
- fillColor: colors.fill,
1031
- fillOpacity: colors.fillOpacity,
1032
- strokeColor: colors.stroke,
1033
- strokeWeight: colors.strokeWeight,
1034
- editable: true,
1035
- draggable: true
1036
- });
1037
- const newShape = { type: "circle", overlay: circle };
1038
- setShapes((prev) => [...prev, newShape]);
1039
- sonner.toast.success("Círculo adicionado");
1040
- }, [mapInstance, colors]);
1041
- const addRectangle = React.useCallback((center) => {
1042
- if (!mapInstance) return;
1043
- const offset = 5e-3;
1044
- const bounds = {
1045
- north: center.lat() + offset,
1046
- south: center.lat() - offset,
1047
- east: center.lng() + offset,
1048
- west: center.lng() - offset
1049
- };
1050
- const rectangle = new google.maps.Rectangle({
1051
- map: mapInstance,
1052
- bounds,
1053
- fillColor: colors.fill,
1054
- fillOpacity: colors.fillOpacity,
1055
- strokeColor: colors.stroke,
1056
- strokeWeight: colors.strokeWeight,
1057
- editable: true,
1058
- draggable: true
1059
- });
1060
- const newShape = { type: "rectangle", overlay: rectangle };
1061
- setShapes((prev) => [...prev, newShape]);
1062
- sonner.toast.success("Retângulo adicionado");
1063
- }, [mapInstance, colors]);
1064
- const cancelPolygonDrawing = React.useCallback(() => {
1065
- if (tempPolylineRef.current) {
1066
- tempPolylineRef.current.setMap(null);
1067
- tempPolylineRef.current = null;
1068
- }
1069
- polygonPathRef.current = [];
1070
- setIsDrawingPolygon(false);
1071
- }, []);
1072
- const finishPolygon = React.useCallback(() => {
1073
- if (!mapInstance || polygonPathRef.current.length < 3) {
1074
- if (polygonPathRef.current.length < 3 && polygonPathRef.current.length > 0) {
1075
- sonner.toast.error("Polígono precisa de pelo menos 3 pontos.");
1076
- }
1077
- return;
1078
- }
1079
- const polygon = new google.maps.Polygon({
1080
- map: mapInstance,
1081
- paths: polygonPathRef.current,
1082
- fillColor: colors.fill,
1083
- fillOpacity: colors.fillOpacity,
1084
- strokeColor: colors.stroke,
1085
- strokeWeight: colors.strokeWeight,
1086
- editable: true,
1087
- draggable: true
1088
- });
1089
- const newShape = { type: "polygon", overlay: polygon };
1090
- setShapes((prev) => [...prev, newShape]);
1091
- cancelPolygonDrawing();
1092
- sonner.toast.success("Polígono criado com sucesso!");
1093
- }, [mapInstance, colors, cancelPolygonDrawing]);
1094
- const addPolygonPoint = React.useCallback((point) => {
1095
- var _a;
1096
- if (!mapInstance) return;
1097
- if (!isDrawingPolygon) {
1098
- setIsDrawingPolygon(true);
1099
- polygonPathRef.current = [point];
1100
- tempPolylineRef.current = new google.maps.Polyline({
1101
- map: mapInstance,
1102
- path: polygonPathRef.current,
1103
- strokeColor: colors.stroke,
1104
- strokeOpacity: 0.8,
1105
- strokeWeight: 2,
1106
- geodesic: true,
1107
- clickable: false
1108
- // Importante: não capturar cliques para não atrapalhar o mapa
1109
- });
1110
- sonner.toast.info("Clique para adicionar pontos. Duplo clique ou botão check para fechar.", { duration: 4e3 });
1111
- } else {
1112
- polygonPathRef.current.push(point);
1113
- (_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
1114
- }
1115
- }, [mapInstance, isDrawingPolygon, colors]);
1116
- const clearListeners = () => {
1117
- mapListenersRef.current.forEach((listener) => google.maps.event.removeListener(listener));
1118
- mapListenersRef.current = [];
1119
- };
1120
- React.useEffect(() => {
1121
- if (!mapInstance) return;
1122
- clearListeners();
1123
- if (!selectedMode) {
1124
- mapInstance.setOptions({ draggableCursor: "grab", clickableIcons: true });
1125
- return;
1126
- }
1127
- mapInstance.setOptions({
1128
- draggableCursor: "crosshair",
1129
- clickableIcons: false
1130
- });
1131
- const clickListener = mapInstance.addListener("click", (e) => {
1132
- if (!e.latLng) return;
1133
- switch (selectedMode) {
1134
- case "marker":
1135
- addMarker(e.latLng);
1136
- break;
1137
- case "circle":
1138
- addCircle(e.latLng);
1139
- break;
1140
- case "rectangle":
1141
- addRectangle(e.latLng);
1142
- break;
1143
- case "polygon":
1144
- addPolygonPoint(e.latLng);
1145
- break;
1146
- }
1147
- });
1148
- mapListenersRef.current.push(clickListener);
1149
- if (selectedMode === "polygon") {
1150
- const dblClickListener = mapInstance.addListener("dblclick", (e) => {
1151
- if (e.domEvent) e.domEvent.stopPropagation();
1152
- finishPolygon();
1153
- });
1154
- mapListenersRef.current.push(dblClickListener);
1155
- }
1156
- return () => {
1157
- clearListeners();
1158
- };
1159
- }, [mapInstance, selectedMode, addMarker, addCircle, addRectangle, addPolygonPoint, finishPolygon]);
1160
- const handleModeChange = (mode) => {
1161
- if (isDrawingPolygon) {
1162
- cancelPolygonDrawing();
1163
- }
1164
- setSelectedMode(mode);
1165
- };
1166
- const clearAll = () => {
1167
- shapes.forEach((shape) => {
1168
- if ("setMap" in shape.overlay) shape.overlay.setMap(null);
1169
- else shape.overlay.map = null;
1170
- });
1171
- setShapes([]);
1172
- if (isDrawingPolygon) cancelPolygonDrawing();
1173
- sonner.toast.info("Mapa limpo");
1174
- };
1175
- const undoLast = () => {
1176
- var _a;
1177
- if (isDrawingPolygon) {
1178
- if (polygonPathRef.current.length > 0) {
1179
- polygonPathRef.current.pop();
1180
- (_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
1181
- if (polygonPathRef.current.length === 0) {
1182
- cancelPolygonDrawing();
1183
- }
1184
- }
1185
- return;
1186
- }
1187
- if (shapes.length === 0) return;
1188
- const lastShape = shapes[shapes.length - 1];
1189
- if ("setMap" in lastShape.overlay) lastShape.overlay.setMap(null);
1190
- else lastShape.overlay.map = null;
1191
- setShapes((prev) => prev.slice(0, prev.length - 1));
1192
- };
1193
- const handleSave = () => {
1194
- if (shapes.length === 0) {
1195
- sonner.toast.error("Adicione desenhos ao mapa antes de salvar.");
1196
- return;
1197
- }
1198
- const exportData = shapes.map((s) => {
1199
- var _a, _b;
1200
- let data = {};
1201
- if (s.type === "marker") {
1202
- const marker = s.overlay;
1203
- const pos = marker.position;
1204
- if (pos) {
1205
- const lat = typeof pos.lat === "function" ? pos.lat() : pos.lat;
1206
- const lng = typeof pos.lng === "function" ? pos.lng() : pos.lng;
1207
- data = { lat, lng };
1208
- }
1209
- } else if (s.type === "circle") {
1210
- const circle = s.overlay;
1211
- data = {
1212
- center: { lat: (_a = circle.getCenter()) == null ? void 0 : _a.lat(), lng: (_b = circle.getCenter()) == null ? void 0 : _b.lng() },
1213
- radius: circle.getRadius()
1214
- };
1215
- } else if (s.type === "rectangle") {
1216
- const rect = s.overlay;
1217
- const bounds = rect.getBounds();
1218
- data = {
1219
- north: bounds == null ? void 0 : bounds.getNorthEast().lat(),
1220
- south: bounds == null ? void 0 : bounds.getSouthWest().lat(),
1221
- east: bounds == null ? void 0 : bounds.getNorthEast().lng(),
1222
- west: bounds == null ? void 0 : bounds.getSouthWest().lng()
1223
- };
1224
- } else if (s.type === "polygon") {
1225
- const poly = s.overlay;
1226
- const path = poly.getPath();
1227
- data = path.getArray().map((coord) => ({ lat: coord.lat(), lng: coord.lng() }));
1228
- }
1229
- return { type: s.type, data };
1230
- });
1231
- setSavedData(JSON.stringify(exportData, null, 2));
1232
- setShowSaveDialog(true);
1233
- };
1234
- const ToolButton = ({
1235
- active,
1236
- onClick,
1237
- icon: Icon,
1238
- label
1239
- }) => /* @__PURE__ */ jsxRuntime.jsxs(
1240
- button.Button,
1241
- {
1242
- variant: active ? "default" : "ghost",
1243
- className: `w-full justify-start gap-3 ${active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"}`,
1244
- onClick,
1245
- children: [
1246
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-4 w-4" }),
1247
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: label })
1248
- ]
1249
- }
1250
- );
1251
- return /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { className: "h-full border-0 shadow-none md:border md:shadow-sm", children: [
1252
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardHeader, { className: "border-b bg-muted/20 pb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
1253
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1254
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Ferramentas de Desenho" }),
1255
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { className: "mt-1", children: "Crie geometrias personalizadas no mapa" })
1256
- ] }),
1257
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Badge, { variant: "outline", className: "h-6", children: [
1258
- shapes.length,
1259
- " ",
1260
- shapes.length === 1 ? "elemento" : "elementos"
1261
- ] })
1262
- ] }) }),
1263
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "p-0 flex flex-col md:flex-row h-[600px] bg-background", children: [
1264
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full md:w-64 border-b md:border-b-0 md:border-r bg-muted/10 flex flex-col", children: [
1265
- /* @__PURE__ */ jsxRuntime.jsx(input.ScrollArea, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 space-y-6", children: [
1266
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
1267
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ferramentas" }),
1268
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
1269
- /* @__PURE__ */ jsxRuntime.jsx(
1270
- ToolButton,
1271
- {
1272
- active: selectedMode === null,
1273
- onClick: () => handleModeChange(null),
1274
- icon: lucideReact.MousePointer2,
1275
- label: "Navegar"
1276
- }
1277
- ),
1278
- /* @__PURE__ */ jsxRuntime.jsx(
1279
- ToolButton,
1280
- {
1281
- active: selectedMode === "marker",
1282
- onClick: () => handleModeChange("marker"),
1283
- icon: lucideReact.MapPin,
1284
- label: "Marcador"
1285
- }
1286
- ),
1287
- /* @__PURE__ */ jsxRuntime.jsx(
1288
- ToolButton,
1289
- {
1290
- active: selectedMode === "circle",
1291
- onClick: () => handleModeChange("circle"),
1292
- icon: lucideReact.Circle,
1293
- label: "Círculo"
1294
- }
1295
- ),
1296
- /* @__PURE__ */ jsxRuntime.jsx(
1297
- ToolButton,
1298
- {
1299
- active: selectedMode === "rectangle",
1300
- onClick: () => handleModeChange("rectangle"),
1301
- icon: lucideReact.Square,
1302
- label: "Retângulo"
1303
- }
1304
- ),
1305
- /* @__PURE__ */ jsxRuntime.jsx(
1306
- ToolButton,
1307
- {
1308
- active: selectedMode === "polygon",
1309
- onClick: () => handleModeChange("polygon"),
1310
- icon: lucideReact.Hexagon,
1311
- label: "Polígono"
1312
- }
1313
- )
1314
- ] })
1315
- ] }),
1316
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
1317
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
1318
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ações" }),
1319
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1320
- /* @__PURE__ */ jsxRuntime.jsxs(
1321
- button.Button,
1322
- {
1323
- variant: "outline",
1324
- onClick: undoLast,
1325
- disabled: shapes.length === 0 && !isDrawingPolygon,
1326
- className: "w-full",
1327
- title: "Desfazer último",
1328
- "aria-label": "Desfazer último",
1329
- children: [
1330
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Undo, { className: "h-4 w-4 mr-2" }),
1331
- "Desfazer"
1332
- ]
1333
- }
1334
- ),
1335
- /* @__PURE__ */ jsxRuntime.jsxs(
1336
- button.Button,
1337
- {
1338
- variant: "destructive",
1339
- onClick: clearAll,
1340
- disabled: shapes.length === 0 && !isDrawingPolygon,
1341
- className: "w-full bg-destructive/10 text-destructive hover:bg-destructive hover:text-destructive-foreground border-0 shadow-none",
1342
- children: [
1343
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "h-4 w-4 mr-2" }),
1344
- "Limpar"
1345
- ]
1346
- }
1347
- )
1348
- ] }),
1349
- /* @__PURE__ */ jsxRuntime.jsxs(
1350
- button.Button,
1351
- {
1352
- variant: "default",
1353
- onClick: handleSave,
1354
- disabled: shapes.length === 0,
1355
- className: "w-full mt-2",
1356
- children: [
1357
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Save, { className: "h-4 w-4 mr-2" }),
1358
- "Salvar GeoJSON"
1359
- ]
1360
- }
1361
- )
1362
- ] })
1363
- ] }) }),
1364
- isDrawingPolygon && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 bg-primary/5 border-t border-primary/10", children: [
1365
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-2 text-primary text-xs font-medium", children: [
1366
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative flex h-2 w-2", children: [
1367
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75" }),
1368
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary" })
1369
- ] }),
1370
- "Desenhando Polígono..."
1371
- ] }),
1372
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
1373
- /* @__PURE__ */ jsxRuntime.jsxs(
1374
- button.Button,
1375
- {
1376
- size: "sm",
1377
- className: "w-full bg-green-600 hover:bg-green-700 text-white",
1378
- onClick: finishPolygon,
1379
- children: [
1380
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3 w-3 mr-1" }),
1381
- " Concluir"
1382
- ]
1383
- }
1384
- ),
1385
- /* @__PURE__ */ jsxRuntime.jsxs(
1386
- button.Button,
1387
- {
1388
- size: "sm",
1389
- variant: "outline",
1390
- className: "w-full",
1391
- onClick: cancelPolygonDrawing,
1392
- children: [
1393
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3 w-3 mr-1" }),
1394
- " Cancelar"
1395
- ]
1396
- }
1397
- )
1398
- ] })
1399
- ] })
1400
- ] }),
1401
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 relative bg-muted/5 min-h-[400px]", children: [
1402
- /* @__PURE__ */ jsxRuntime.jsx(
1403
- alertDialog.Map,
1404
- {
1405
- className: "h-full w-full rounded-none md:rounded-br-lg",
1406
- center: { lat: -23.5505, lng: -46.6333 },
1407
- zoom: 13,
1408
- height: "100%",
1409
- mapContainerClassName: "h-full w-full rounded-none md:rounded-br-lg",
1410
- disableDefaultUI: true,
1411
- zoomControl: true,
1412
- onMapLoad: setMapInstance,
1413
- apiKey
1414
- }
1415
- ),
1416
- selectedMode && !isDrawingPolygon && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute bottom-6 left-1/2 -translate-x-1/2 bg-background/90 backdrop-blur border px-4 py-2 rounded-full shadow-sm text-xs font-medium text-muted-foreground pointer-events-none z-10", children: [
1417
- selectedMode === "marker" && "Clique no mapa para adicionar um marcador",
1418
- selectedMode === "circle" && "Clique no mapa para definir o centro do círculo",
1419
- selectedMode === "rectangle" && "Clique no mapa para criar um retângulo",
1420
- selectedMode === "polygon" && "Clique sequencialmente para desenhar a área"
1421
- ] })
1422
- ] }),
1423
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.Dialog, { open: showSaveDialog, onOpenChange: setShowSaveDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogContent, { className: "max-w-md", children: [
1424
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { children: [
1425
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: "Dados Geográficos (GeoJSON)" }),
1426
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: "Copie os dados das formas desenhadas abaixo." })
1427
- ] }),
1428
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative mt-2", children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "p-4 rounded-lg bg-muted overflow-auto max-h-[300px] text-xs font-mono", "data-custom-scrollbar": true, children: savedData }) }),
1429
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end mt-4", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: () => setShowSaveDialog(false), children: "Fechar" }) })
1430
- ] }) })
1431
- ] })
1432
- ] });
1433
- }
1434
- function MapShowcase() {
1435
- const [activeTab, setActiveTab] = React.useState("simple");
1436
- const [isTransitioning, setIsTransitioning] = React.useState(false);
1437
- const [apiKey, setApiKey] = React.useState("");
1438
- const [inputApiKey, setInputApiKey] = React.useState("");
1439
- const [showTraffic, setShowTraffic] = React.useState(false);
1440
- const [showTransit, setShowTransit] = React.useState(false);
1441
- const [showBicycling, setShowBicycling] = React.useState(false);
1442
- const [showZoomControl, setShowZoomControl] = React.useState(true);
1443
- const [showMapTypeControl, setShowMapTypeControl] = React.useState(false);
1444
- const [showStreetViewControl, setShowStreetViewControl] = React.useState(false);
1445
- const [showFullscreenControl, setShowFullscreenControl] = React.useState(true);
1446
- const handleTabChange = (value) => {
1447
- if (value === activeTab) return;
1448
- setIsTransitioning(true);
1449
- setTimeout(() => {
1450
- setActiveTab(value);
1451
- setIsTransitioning(false);
1452
- }, 50);
1453
- };
1454
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-8", children: [
1455
- /* @__PURE__ */ jsxRuntime.jsx(
1456
- alertDialog.PageHeader,
1457
- {
1458
- title: "Mapas",
1459
- subtitle: "Biblioteca de componentes de mapa para visualização de dados geoespaciais. Utiliza a API do Google Maps com estilização personalizada do Xertica UI.",
1460
- actions: /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { children: "Design System" })
1461
- }
1462
- ),
1463
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1464
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1465
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Configuração da API Key" }),
1466
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Insira sua Google Maps API Key para renderizar os mapas abaixo." })
1467
- ] }),
1468
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-md items-center space-x-2", children: [
1469
- /* @__PURE__ */ jsxRuntime.jsx(
1470
- input.Input,
1471
- {
1472
- type: "password",
1473
- placeholder: "Cole sua Google Maps API Key aqui",
1474
- "aria-label": "Google Maps API Key",
1475
- value: inputApiKey,
1476
- onChange: (e) => setInputApiKey(e.target.value),
1477
- className: "max-w-md h-10"
1478
- }
1479
- ),
1480
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: () => setApiKey(inputApiKey), children: "Salvar" })
1481
- ] }) })
1482
- ] }),
1483
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { value: activeTab, onValueChange: handleTabChange, className: "w-full", children: [
1484
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "grid w-full grid-cols-4 mb-8", children: [
1485
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "simple", children: "Mapas Simples" }),
1486
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "markers", children: "Marcadores" }),
1487
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "controls", children: "Controles" }),
1488
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsTrigger, { value: "drawing", className: "flex items-center gap-2", children: [
1489
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "w-3 h-3" }),
1490
- " Desenho"
1491
- ] })
1492
- ] }),
1493
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "simple", className: "space-y-8", children: !isTransitioning && activeTab === "simple" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1494
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1495
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1496
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Mapa Padrão" }),
1497
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Configuração básica do mapa centralizado em uma coordenada específica." })
1498
- ] }),
1499
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1500
- alertDialog.Map,
1501
- {
1502
- center: { lat: -23.5505, lng: -46.6333 },
1503
- zoom: 13,
1504
- height: "400px",
1505
- apiKey
1506
- }
1507
- ) })
1508
- ] }),
1509
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1510
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1511
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Camadas (Layers)" }),
1512
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Sobreposição de informações como tráfego, transporte público e ciclovias." })
1513
- ] }),
1514
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-4", children: [
1515
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-6 p-4 border rounded-lg bg-muted/50", children: [
1516
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1517
- /* @__PURE__ */ jsxRuntime.jsx(
1518
- alertDialog.Switch,
1519
- {
1520
- id: "traffic",
1521
- checked: showTraffic,
1522
- onCheckedChange: setShowTraffic
1523
- }
1524
- ),
1525
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "traffic", className: "flex items-center gap-2", children: [
1526
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Layers, { className: "w-4 h-4" }),
1527
- " Trânsito"
1528
- ] })
1529
- ] }),
1530
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1531
- /* @__PURE__ */ jsxRuntime.jsx(
1532
- alertDialog.Switch,
1533
- {
1534
- id: "transit",
1535
- checked: showTransit,
1536
- onCheckedChange: setShowTransit
1537
- }
1538
- ),
1539
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "transit", className: "flex items-center gap-2", children: [
1540
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Layers, { className: "w-4 h-4" }),
1541
- " Transporte"
1542
- ] })
1543
- ] }),
1544
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1545
- /* @__PURE__ */ jsxRuntime.jsx(
1546
- alertDialog.Switch,
1547
- {
1548
- id: "bicycling",
1549
- checked: showBicycling,
1550
- onCheckedChange: setShowBicycling
1551
- }
1552
- ),
1553
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Label, { htmlFor: "bicycling", className: "flex items-center gap-2", children: [
1554
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Layers, { className: "w-4 h-4" }),
1555
- " Ciclovias"
1556
- ] })
1557
- ] })
1558
- ] }),
1559
- /* @__PURE__ */ jsxRuntime.jsx(
1560
- alertDialog.Map,
1561
- {
1562
- center: { lat: -23.5505, lng: -46.6333 },
1563
- zoom: 12,
1564
- height: "500px",
1565
- layers: {
1566
- traffic: showTraffic,
1567
- transit: showTransit,
1568
- bicycling: showBicycling
1569
- },
1570
- apiKey
1571
- }
1572
- )
1573
- ] })
1574
- ] }),
1575
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid md:grid-cols-3 gap-4", children: [
1576
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1577
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { className: "text-sm", children: "São Paulo" }) }),
1578
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsxRuntime.jsx(
1579
- alertDialog.Map,
1580
- {
1581
- center: { lat: -23.5505, lng: -46.6333 },
1582
- zoom: 11,
1583
- height: "200px",
1584
- disableDefaultUI: true,
1585
- apiKey
1586
- }
1587
- ) })
1588
- ] }),
1589
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1590
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { className: "text-sm", children: "Rio de Janeiro" }) }),
1591
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsxRuntime.jsx(
1592
- alertDialog.Map,
1593
- {
1594
- center: { lat: -22.9068, lng: -43.1729 },
1595
- zoom: 11,
1596
- height: "200px",
1597
- disableDefaultUI: true,
1598
- apiKey
1599
- }
1600
- ) })
1601
- ] }),
1602
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1603
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { className: "text-sm", children: "New York" }) }),
1604
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsxRuntime.jsx(
1605
- alertDialog.Map,
1606
- {
1607
- center: { lat: 40.7128, lng: -74.006 },
1608
- zoom: 11,
1609
- height: "200px",
1610
- disableDefaultUI: true,
1611
- apiKey
1612
- }
1613
- ) })
1614
- ] })
1615
- ] })
1616
- ] }) }),
1617
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "markers", className: "space-y-8", children: !isTransitioning && activeTab === "markers" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1618
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1619
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1620
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Marcadores e Pins" }),
1621
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Exemplos de marcadores personalizados com diferentes cores e informações." })
1622
- ] }),
1623
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1624
- alertDialog.Map,
1625
- {
1626
- center: { lat: -23.5505, lng: -46.6333 },
1627
- zoom: 13,
1628
- height: "500px",
1629
- apiKey,
1630
- markers: [
1631
- {
1632
- position: { lat: -23.5505, lng: -46.6333 },
1633
- title: "Principal",
1634
- info: "Marcador padrão",
1635
- customColor: "#4F46E5"
1636
- },
1637
- {
1638
- position: { lat: -23.54, lng: -46.64 },
1639
- title: "Secundário",
1640
- info: "Marcador de alerta",
1641
- customColor: "#EF4444",
1642
- icon: "!"
1643
- },
1644
- {
1645
- position: { lat: -23.56, lng: -46.62 },
1646
- title: "Loja",
1647
- info: "Ponto de venda",
1648
- customColor: "#10B981",
1649
- icon: "S"
1650
- }
1651
- ]
1652
- }
1653
- ) })
1654
- ] }),
1655
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1656
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1657
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Marcador com Ações" }),
1658
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Marcador interativo que exibe conteúdo rico (texto, imagem, botões) ao ser clicado." })
1659
- ] }),
1660
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1661
- alertDialog.Map,
1662
- {
1663
- center: { lat: -23.5505, lng: -46.6333 },
1664
- zoom: 13,
1665
- height: "500px",
1666
- apiKey,
1667
- markers: [
1668
- {
1669
- position: { lat: -23.5505, lng: -46.6333 },
1670
- label: "🏢",
1671
- richContent: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 max-w-[260px]", children: [
1672
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
1673
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-base", children: "Xertica HQ" }),
1674
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "text-[10px] h-5", children: "Open" })
1675
- ] }),
1676
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full h-32 bg-muted rounded-md mb-3 overflow-hidden relative", children: [
1677
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" }),
1678
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center text-white font-medium", children: "Office View" })
1679
- ] }),
1680
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mb-3 leading-relaxed", children: "Sede principal em São Paulo. Espaço moderno para reuniões e eventos." }),
1681
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1682
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", className: "w-full h-8 text-xs shadow-sm", children: "Navegar" }),
1683
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", variant: "outline", className: "w-full h-8 text-xs bg-background", children: "Detalhes" })
1684
- ] })
1685
- ] })
1686
- }
1687
- ]
1688
- }
1689
- ) })
1690
- ] }),
1691
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1692
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1693
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Áreas e Zonas" }),
1694
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Delimitação de áreas geográficas usando círculos e polígonos." })
1695
- ] }),
1696
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(
1697
- alertDialog.Map,
1698
- {
1699
- center: { lat: -23.5505, lng: -46.6333 },
1700
- zoom: 12,
1701
- height: "500px",
1702
- apiKey,
1703
- markers: [
1704
- {
1705
- position: { lat: -23.5505, lng: -46.6333 },
1706
- title: "Centro da Zona",
1707
- info: "Raio de 3km",
1708
- customColor: "#6366F1"
1709
- }
1710
- ],
1711
- circle: {
1712
- center: { lat: -23.5505, lng: -46.6333 },
1713
- radius: 3e3,
1714
- fillColor: "#6366F1",
1715
- strokeColor: "#4F46E5"
1716
- },
1717
- polygon: {
1718
- paths: [
1719
- [
1720
- { lat: -23.52, lng: -46.6 },
1721
- { lat: -23.52, lng: -46.66 },
1722
- { lat: -23.58, lng: -46.66 },
1723
- { lat: -23.58, lng: -46.6 }
1724
- ]
1725
- ],
1726
- fillColor: "#10B981",
1727
- strokeColor: "#059669"
1728
- }
1729
- }
1730
- ) })
1731
- ] })
1732
- ] }) }),
1733
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "controls", className: "space-y-8", children: !isTransitioning && activeTab === "controls" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1734
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1735
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1736
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Controles do Mapa" }),
1737
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Personalize a interface do mapa ativando ou desativando controles nativos." })
1738
- ] }),
1739
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-4", children: [
1740
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 p-4 border rounded-lg bg-muted/50", children: [
1741
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1742
- /* @__PURE__ */ jsxRuntime.jsx(
1743
- alertDialog.Checkbox,
1744
- {
1745
- id: "zoom",
1746
- checked: showZoomControl,
1747
- onCheckedChange: (c) => setShowZoomControl(!!c)
1748
- }
1749
- ),
1750
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "zoom", children: "Zoom Control" })
1751
- ] }),
1752
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1753
- /* @__PURE__ */ jsxRuntime.jsx(
1754
- alertDialog.Checkbox,
1755
- {
1756
- id: "maptype",
1757
- checked: showMapTypeControl,
1758
- onCheckedChange: (c) => setShowMapTypeControl(!!c)
1759
- }
1760
- ),
1761
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "maptype", children: "Map Type" })
1762
- ] }),
1763
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1764
- /* @__PURE__ */ jsxRuntime.jsx(
1765
- alertDialog.Checkbox,
1766
- {
1767
- id: "streetview",
1768
- checked: showStreetViewControl,
1769
- onCheckedChange: (c) => setShowStreetViewControl(!!c)
1770
- }
1771
- ),
1772
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "streetview", children: "Street View" })
1773
- ] }),
1774
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
1775
- /* @__PURE__ */ jsxRuntime.jsx(
1776
- alertDialog.Checkbox,
1777
- {
1778
- id: "fullscreen",
1779
- checked: showFullscreenControl,
1780
- onCheckedChange: (c) => setShowFullscreenControl(!!c)
1781
- }
1782
- ),
1783
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "fullscreen", children: "Fullscreen" })
1784
- ] })
1785
- ] }),
1786
- /* @__PURE__ */ jsxRuntime.jsx(
1787
- alertDialog.Map,
1788
- {
1789
- center: { lat: -23.5505, lng: -46.6333 },
1790
- zoom: 13,
1791
- height: "400px",
1792
- apiKey,
1793
- zoomControl: showZoomControl,
1794
- mapTypeControl: showMapTypeControl,
1795
- streetViewControl: showStreetViewControl,
1796
- fullscreenControl: showFullscreenControl
1797
- }
1798
- )
1799
- ] })
1800
- ] }),
1801
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1802
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1803
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Filtros Interativos" }),
1804
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Exemplo avançado de mapa com controles customizados para filtragem de marcadores." })
1805
- ] }),
1806
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(FilterableMapExample, { apiKey }) })
1807
- ] })
1808
- ] }) }),
1809
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "drawing", className: "space-y-8", children: !isTransitioning && activeTab === "drawing" && /* @__PURE__ */ jsxRuntime.jsx(DrawingMapExample, { apiKey }) })
1810
- ] }),
1811
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid md:grid-cols-3 gap-6 pt-8 border-t", children: [
1812
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1813
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-sm", children: "Documentação" }),
1814
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
1815
- "Verifique ",
1816
- /* @__PURE__ */ jsxRuntime.jsx("code", { children: "MAP_SETUP.md" }),
1817
- " para configuração inicial e requisitos de API."
1818
- ] })
1819
- ] }),
1820
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1821
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-sm", children: "Performance" }),
1822
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Utiliza carregamento assíncrono e AdvancedMarkerElement para melhor desempenho." })
1823
- ] }),
1824
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1825
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-sm", children: "Design System" }),
1826
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
1827
- "Componentes seguem estritamente as variáveis de tokens do ",
1828
- /* @__PURE__ */ jsxRuntime.jsx("code", { children: "globals.css" }),
1829
- "."
1830
- ] })
1831
- ] })
1832
- ] })
1833
- ] });
1834
- }
1835
- function TemplateContent({ user, onLogout, onSettings }) {
1836
- const layout = LayoutContext.useOptionalLayout();
1837
- const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
1838
- const [localSidebarWidth, setLocalSidebarWidth] = React.useState(280);
1839
- const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
1840
- const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? localSidebarWidth;
1841
- const setSidebarWidth = (layout == null ? void 0 : layout.setSidebarWidth) ?? setLocalSidebarWidth;
1842
- (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
1843
- reactRouterDom.useNavigate();
1844
- const [progress$1, setProgress] = React.useState(45);
1845
- const [sliderValue, setSliderValue] = React.useState([50]);
1846
- const [switchEnabled, setSwitchEnabled] = React.useState(false);
1847
- const [showSidebarUser, setShowSidebarUser] = React.useState(true);
1848
- const [showSidebarSettings, setShowSidebarSettings] = React.useState(true);
1849
- const [showSidebarLogout, setShowSidebarLogout] = React.useState(true);
1850
- const [showHeaderActions, setShowHeaderActions] = React.useState(true);
1851
- const [showHeaderBreadcrumbs, setShowHeaderBreadcrumbs] = React.useState(true);
1852
- const handleFormSubmit = (e) => {
1853
- e.preventDefault();
1854
- sonner.toast.success("Form submitted successfully!");
1855
- };
1856
- return /* @__PURE__ */ jsxRuntime.jsxs(
1857
- "div",
1858
- {
1859
- className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
1860
- style: {
1861
- paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : "80px"
1862
- },
1863
- children: [
1864
- /* @__PURE__ */ jsxRuntime.jsx(
1865
- sidebar.Header,
1866
- {
1867
- showThemeToggle: true,
1868
- showLanguageSelector: true,
1869
- breadcrumbs: [
1870
- { label: "Design System", href: "/home", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
1871
- { label: "Página de Template" }
1872
- ],
1873
- renderLink: (href, props) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, ...props })
1874
- }
1875
- ),
1876
- /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(input.ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
1877
- /* @__PURE__ */ jsxRuntime.jsx(
1878
- alertDialog.PageHeader,
1879
- {
1880
- title: "Página de Template",
1881
- subtitle: "Template completo com componentes do Design System"
1882
- }
1883
- ),
1884
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
1885
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Header with Breadcrumbs" }),
1886
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1887
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1888
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Main Header" }),
1889
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Example of Header with 4-level breadcrumbs" })
1890
- ] }),
1891
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "p-0 border-t bg-background overflow-hidden rounded-b-[var(--radius-lg)]", children: [
1892
- /* @__PURE__ */ jsxRuntime.jsx(
1893
- sidebar.Header,
1894
- {
1895
- className: "border-b",
1896
- breadcrumbs: [
1897
- { label: "Dashboard", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
1898
- { label: "Settings", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "w-4 h-4" }) },
1899
- { label: "Users", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "w-4 h-4" }) },
1900
- { label: "Access Profile" }
1901
- ],
1902
- showLanguageSelector: true,
1903
- showThemeToggle: true
1904
- }
1905
- ),
1906
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 min-h-[200px]", children: [
1907
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-lg font-semibold mb-2", children: "Example Content" }),
1908
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
1909
- "Neste exemplo, o componente ",
1910
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Header" }),
1911
- " principal da aplicação agora suporta receber um array de breadcrumbs para navegações complexas com mais de 3 níveis."
1912
- ] })
1913
- ] })
1914
- ] })
1915
- ] })
1916
- ] }),
1917
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
1918
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
1919
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Alertas" }),
1920
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
1921
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "info", children: [
1922
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Informação" }),
1923
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Este é um exemplo de alerta informativo usando os componentes do Design System." })
1924
- ] }),
1925
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "destructive", children: [
1926
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Erro" }),
1927
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Ocorreu um erro ao processar sua solicitação." })
1928
- ] }),
1929
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "success", children: [
1930
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Sucesso" }),
1931
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Operação realizada com sucesso!" })
1932
- ] }),
1933
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "warning", children: [
1934
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Aviso" }),
1935
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Atenção: Esta ação não pode ser desfeita." })
1936
- ] })
1937
- ] })
1938
- ] }),
1939
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
1940
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
1941
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Cards & Abas" }),
1942
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { defaultValue: "overview", className: "w-full", children: [
1943
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "grid w-full grid-cols-4", children: [
1944
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "overview", children: "Visão Geral" }),
1945
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "forms", children: "Formulários" }),
1946
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "data", children: "Dados" }),
1947
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "settings", children: "Configurações" })
1948
- ] }),
1949
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsContent, { value: "overview", className: "space-y-4", children: [
1950
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-3", children: [
1951
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1952
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1953
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Total de Usuários" }),
1954
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Últimos 30 dias" })
1955
- ] }),
1956
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
1957
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "1,234" }),
1958
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", className: "ml-2", children: "+12%" })
1959
- ] }) })
1960
- ] }),
1961
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1962
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1963
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Receita Total" }),
1964
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Mês atual" })
1965
- ] }),
1966
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
1967
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "$ 45.2k" }),
1968
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", className: "ml-2", children: "+8%" })
1969
- ] }) })
1970
- ] }),
1971
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1972
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1973
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Taxa de Conversão" }),
1974
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Semana atual" })
1975
- ] }),
1976
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
1977
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "3.2%" }),
1978
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "ml-2", children: "-2%" })
1979
- ] }) })
1980
- ] })
1981
- ] }),
1982
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
1983
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
1984
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Progresso & Sliders" }),
1985
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Exemplo de componentes de progresso" })
1986
- ] }),
1987
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-6", children: [
1988
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1989
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
1990
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Progresso do Projeto" }),
1991
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
1992
- progress$1,
1993
- "%"
1994
- ] })
1995
- ] }),
1996
- /* @__PURE__ */ jsxRuntime.jsx(progress.Progress, { value: progress$1, className: "w-full" }),
1997
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
1998
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", onClick: () => setProgress(Math.max(0, progress$1 - 10)), children: "-10%" }),
1999
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", onClick: () => setProgress(Math.min(100, progress$1 + 10)), children: "+10%" })
2000
- ] })
2001
- ] }),
2002
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2003
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2004
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2005
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Volume" }),
2006
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
2007
- sliderValue[0],
2008
- "%"
2009
- ] })
2010
- ] }),
2011
- /* @__PURE__ */ jsxRuntime.jsx(
2012
- slider.Slider,
2013
- {
2014
- value: sliderValue,
2015
- onValueChange: setSliderValue,
2016
- min: 0,
2017
- max: 100,
2018
- step: 1,
2019
- className: "w-full",
2020
- "aria-label": "Volume"
2021
- }
2022
- )
2023
- ] })
2024
- ] })
2025
- ] })
2026
- ] }),
2027
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "forms", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2028
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2029
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Formulário de Cadastro" }),
2030
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Preencha os campos abaixo para criar uma nova conta" })
2031
- ] }),
2032
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleFormSubmit, className: "space-y-4", children: [
2033
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2034
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2035
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "firstName", children: "Nome" }),
2036
- /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "firstName", placeholder: "João" })
2037
- ] }),
2038
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2039
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "lastName", children: "Sobrenome" }),
2040
- /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "lastName", placeholder: "Silva" })
2041
- ] })
2042
- ] }),
2043
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2044
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children: "E-mail" }),
2045
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2046
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2047
- /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "email", type: "email", placeholder: "john@example.com", className: "pl-10" })
2048
- ] })
2049
- ] }),
2050
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2051
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "phone", children: "Telefone" }),
2052
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2053
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2054
- /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "phone", type: "tel", placeholder: "(11) 99999-9999", className: "pl-10" })
2055
- ] })
2056
- ] }),
2057
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2058
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "role", children: "Função" }),
2059
- /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { children: [
2060
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { id: "role", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, { placeholder: "Selecione uma função" }) }),
2061
- /* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
2062
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "developer", children: "Desenvolvedor" }),
2063
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "designer", children: "Designer" }),
2064
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "manager", children: "Gerente" }),
2065
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "analyst", children: "Analista" })
2066
- ] })
2067
- ] })
2068
- ] }),
2069
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2070
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "bio", children: "Biografia" }),
2071
- /* @__PURE__ */ jsxRuntime.jsx(
2072
- richTextEditor.Textarea,
2073
- {
2074
- id: "bio",
2075
- placeholder: "Conte-nos um pouco sobre você...",
2076
- rows: 4
2077
- }
2078
- )
2079
- ] }),
2080
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2081
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
2082
- /* @__PURE__ */ jsxRuntime.jsx("h4", { children: "Preferências" }),
2083
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2084
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2085
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "newsletter" }),
2086
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "newsletter", className: "font-normal", children: "Receber newsletter por e-mail" })
2087
- ] }),
2088
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2089
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "notifications" }),
2090
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "notifications", className: "font-normal", children: "Ativar notificações push" })
2091
- ] }),
2092
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2093
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "updates" }),
2094
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "updates", className: "font-normal", children: "Receber atualizações sobre novos recursos" })
2095
- ] })
2096
- ] }),
2097
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2098
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2099
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Tipo de Conta" }),
2100
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.RadioGroup, { defaultValue: "personal", "aria-label": "Tipo de Conta", children: [
2101
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2102
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "personal", id: "personal" }),
2103
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "personal", className: "font-normal", children: "Pessoal" })
2104
- ] }),
2105
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2106
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "business", id: "business" }),
2107
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "business", className: "font-normal", children: "Empresarial" })
2108
- ] }),
2109
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2110
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "enterprise", id: "enterprise" }),
2111
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "enterprise", className: "font-normal", children: "Corporativo" })
2112
- ] })
2113
- ] })
2114
- ] })
2115
- ] })
2116
- ] }) }),
2117
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardFooter, { className: "flex justify-between", children: [
2118
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Cancelar" }),
2119
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: handleFormSubmit, children: "Criar Conta" })
2120
- ] })
2121
- ] }) }),
2122
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "data", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2123
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2124
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Lista de Usuários" }),
2125
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Gerenciar usuários do sistema" })
2126
- ] }),
2127
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { children: [
2128
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2129
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2130
- /* @__PURE__ */ jsxRuntime.jsx(
2131
- input.Input,
2132
- {
2133
- placeholder: "Buscar usuários...",
2134
- "aria-label": "Buscar usuários",
2135
- className: "pl-10"
2136
- }
2137
- )
2138
- ] }) }),
2139
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius-lg)] border border-border overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Table, { children: [
2140
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2141
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: "Name" }),
2142
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: "Email" }),
2143
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: "Role" }),
2144
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: "Status" }),
2145
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { className: "text-right", children: "Actions" })
2146
- ] }) }),
2147
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableBody, { children: [
2148
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2149
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Ana Silva" }),
2150
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "ana.silva@example.com" }),
2151
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Developer" }),
2152
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", children: "Active" }) }),
2153
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2154
- ] }),
2155
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2156
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Bruno Costa" }),
2157
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "bruno.costa@example.com" }),
2158
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Designer" }),
2159
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", children: "Active" }) }),
2160
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2161
- ] }),
2162
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2163
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Carla Oliveira" }),
2164
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "carla.oliveira@example.com" }),
2165
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Manager" }),
2166
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", children: "Away" }) }),
2167
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2168
- ] }),
2169
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
2170
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Diego Santos" }),
2171
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "diego.santos@example.com" }),
2172
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: "Analyst" }),
2173
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", children: "Inactive" }) }),
2174
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2175
- ] })
2176
- ] })
2177
- ] }) })
2178
- ] }),
2179
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardFooter, { className: "flex justify-between items-center", children: [
2180
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Showing 4 of 127 users" }),
2181
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
2182
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children: "Previous" }),
2183
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children: "Next" })
2184
- ] })
2185
- ] })
2186
- ] }) }),
2187
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "settings", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2188
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2189
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Configurações do Sistema" }),
2190
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Gerenciar configurações gerais" })
2191
- ] }),
2192
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-6", children: [
2193
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2194
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
2195
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "dark-mode", children: "Dark Mode" }),
2196
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Enable dark theme in the interface" })
2197
- ] }),
2198
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "dark-mode", checked: switchEnabled, onCheckedChange: setSwitchEnabled })
2199
- ] }),
2200
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2201
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2202
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
2203
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email-notifications", children: "Email Notifications" }),
2204
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Receive important updates by email" })
2205
- ] }),
2206
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "email-notifications", defaultChecked: true })
2207
- ] }),
2208
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2209
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
2210
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
2211
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "push-notifications", children: "Push Notifications" }),
2212
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Receive instant notifications in the browser" })
2213
- ] }),
2214
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "push-notifications" })
2215
- ] }),
2216
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2217
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2218
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Language" }),
2219
- /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { defaultValue: "pt-br", children: [
2220
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label": "Idioma do sistema", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, {}) }),
2221
- /* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
2222
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "pt-br", children: "Portuguese (Brazil)" }),
2223
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "en", children: "English" }),
2224
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "es", children: "Spanish" })
2225
- ] })
2226
- ] })
2227
- ] }),
2228
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2229
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2230
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Time Zone" }),
2231
- /* @__PURE__ */ jsxRuntime.jsxs(select.Select, { defaultValue: "america-sao-paulo", children: [
2232
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label": "Fuso horário", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, {}) }),
2233
- /* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
2234
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-sao-paulo", children: "America/Sao Paulo (GMT-3)" }),
2235
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-new-york", children: "America/New York (GMT-5)" }),
2236
- /* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "europe-london", children: "Europe/London (GMT+0)" })
2237
- ] })
2238
- ] })
2239
- ] })
2240
- ] }),
2241
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardFooter, { className: "flex justify-between", children: [
2242
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Restaurar Padrões" }),
2243
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { children: "Salvar Alterações" })
2244
- ] })
2245
- ] }) })
2246
- ] })
2247
- ] }),
2248
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2249
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2250
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Botões" }),
2251
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2252
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2253
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Variações de Botão" }),
2254
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Diferentes estilos e tamanhos de botões" })
2255
- ] }),
2256
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-6", children: [
2257
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2258
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Variants" }),
2259
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2260
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "default", children: "Default" }),
2261
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "secondary", children: "Secondary" }),
2262
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Outline" }),
2263
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", children: "Ghost" }),
2264
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "link", children: "Link" }),
2265
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "destructive", children: "Destructive" })
2266
- ] })
2267
- ] }),
2268
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2269
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2270
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Sizes" }),
2271
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
2272
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", children: "Small" }),
2273
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "default", children: "Default" }),
2274
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "lg", children: "Large" }),
2275
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "icon", "aria-label": "Configurações", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "h-4 w-4" }) })
2276
- ] })
2277
- ] }),
2278
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2279
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2280
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "With Icons" }),
2281
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2282
- /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { children: [
2283
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "mr-2 h-4 w-4" }),
2284
- "Profile"
2285
- ] }),
2286
- /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "secondary", children: [
2287
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "mr-2 h-4 w-4" }),
2288
- "Messages"
2289
- ] }),
2290
- /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "outline", children: [
2291
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "mr-2 h-4 w-4" }),
2292
- "Schedule"
2293
- ] })
2294
- ] })
2295
- ] }),
2296
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
2297
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2298
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "States" }),
2299
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2300
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { disabled: true, children: "Disabled" }),
2301
- /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", disabled: true, children: "Outline Disabled" })
2302
- ] })
2303
- ] })
2304
- ] })
2305
- ] })
2306
- ] }),
2307
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2308
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2309
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Badges" }),
2310
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2311
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2312
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Variações de Badge" }),
2313
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Estilos diferentes de badge para status e tags" })
2314
- ] }),
2315
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
2316
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", children: "Padrão" }),
2317
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", children: "Secundário" }),
2318
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", children: "Contorno" }),
2319
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "destructive", children: "Destrutivo" }),
2320
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-success text-success-foreground", children: "Sucesso" }),
2321
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-warning text-warning-foreground", children: "Aviso" }),
2322
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-info text-info-foreground", children: "Info" })
2323
- ] }) })
2324
- ] })
2325
- ] }),
2326
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2327
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2328
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Diálogos" }),
2329
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2330
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2331
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2332
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Diálogo" }),
2333
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Um modal interativo básico" })
2334
- ] }),
2335
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { children: [
2336
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Editar Perfil" }) }),
2337
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogContent, { className: "sm:max-w-[425px]", children: [
2338
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { children: [
2339
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: "Editar Perfil" }),
2340
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: "Faça alterações no seu perfil aqui. Clique em salvar quando terminar." })
2341
- ] }),
2342
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 py-4", children: [
2343
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2344
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "name", className: "text-right", children: "Nome" }),
2345
- /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "name", defaultValue: "John Doe", className: "col-span-3" })
2346
- ] }),
2347
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2348
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "username", className: "text-right", children: "Usuário" }),
2349
- /* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "username", defaultValue: "@johndoe", className: "col-span-3" })
2350
- ] })
2351
- ] }),
2352
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", children: "Atualizar" }) })
2353
- ] })
2354
- ] }) })
2355
- ] }),
2356
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2357
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2358
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Alerta de Diálogo" }),
2359
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Um alerta para decisões importantes" })
2360
- ] }),
2361
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialog, { children: [
2362
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "destructive", children: "Excluir Conta" }) }),
2363
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogContent, { className: "sm:max-w-[425px]", children: [
2364
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogHeader, { children: [
2365
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTitle, { children: "Você tem certeza absoluta?" }),
2366
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogDescription, { children: "Esta ação não pode ser desfeita. Isso excluirá permanentemente sua conta e removerá seus dados de nossos servidores." })
2367
- ] }),
2368
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogFooter, { children: [
2369
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogCancel, { children: "Cancelar" }),
2370
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: "Continuar" })
2371
- ] })
2372
- ] })
2373
- ] }) })
2374
- ] })
2375
- ] })
2376
- ] }),
2377
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2378
- /* @__PURE__ */ jsxRuntime.jsx("section", { children: /* @__PURE__ */ jsxRuntime.jsx(MapShowcase, {}) }),
2379
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2380
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2381
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Variações de Cabeçalho" }),
2382
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2383
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2384
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Configurações do Cabeçalho Principal" }),
2385
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "O Header é focado em navegação (breadcrumbs) e ações contextuais rápidas." })
2386
- ] }),
2387
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-6", children: [
2388
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2389
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children: "Elementos Visíveis" }),
2390
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6", children: [
2391
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2392
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "header-actions", checked: showHeaderActions, onCheckedChange: setShowHeaderActions }),
2393
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-actions", className: "cursor-pointer", children: "Botões de Ação" })
2394
- ] }),
2395
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2396
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "header-bread", checked: showHeaderBreadcrumbs, onCheckedChange: setShowHeaderBreadcrumbs }),
2397
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-bread", className: "cursor-pointer", children: "Breadcrumbs" })
2398
- ] })
2399
- ] })
2400
- ] }),
2401
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative border rounded-[var(--radius-lg)] bg-muted/10 overflow-hidden shadow-inner", children: [
2402
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children: "Visualização" }),
2403
- /* @__PURE__ */ jsxRuntime.jsx(
2404
- sidebar.Header,
2405
- {
2406
- title: !showHeaderBreadcrumbs ? "Página Atual" : void 0,
2407
- breadcrumbs: showHeaderBreadcrumbs ? [
2408
- { label: "Xertica UI", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
2409
- { label: "Configurações", href: "#" },
2410
- { label: "Perfil" }
2411
- ] : void 0,
2412
- actions: showHeaderActions ? [
2413
- { id: "notify", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bell, { className: "w-5 h-5" }), onClick: () => sonner.toast("Notificações abertas") },
2414
- { id: "mail", label: "Mensagens", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-5 h-5" }), onClick: () => sonner.toast("Mensagens abertas") }
2415
- ] : void 0
2416
- }
2417
- ),
2418
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children: "Área de Conteúdo da Página" })
2419
- ] })
2420
- ] })
2421
- ] })
2422
- ] }),
2423
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2424
- /* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
2425
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Variações da Sidebar" }),
2426
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { children: [
2427
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2428
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Sidebar Modo Assistente vs Padrão" }),
2429
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "A Sidebar suporta flexibilidade através da propriedade variant." })
2430
- ] }),
2431
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { defaultValue: "assistant", className: "w-full", children: [
2432
- /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "mb-4", children: [
2433
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "assistant", children: "Modo Assistente" }),
2434
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "default", children: "Modo Padrão" })
2435
- ] }),
2436
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2437
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children: "Configurações do Rodapé" }),
2438
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-6 mt-2", children: [
2439
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2440
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "show-user", checked: showSidebarUser, onCheckedChange: setShowSidebarUser }),
2441
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-user", className: "cursor-pointer", children: "Perfil do Usuário" })
2442
- ] }),
2443
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2444
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "show-settings", checked: showSidebarSettings, onCheckedChange: setShowSidebarSettings }),
2445
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-settings", className: "cursor-pointer", children: "Configurações" })
2446
- ] }),
2447
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
2448
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "show-logout", checked: showSidebarLogout, onCheckedChange: setShowSidebarLogout }),
2449
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-logout", className: "cursor-pointer", children: "Botão de Sair" })
2450
- ] })
2451
- ] }),
2452
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 pt-6 border-t", children: [
2453
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
2454
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold", children: "Largura da Sidebar (Desktop)" }),
2455
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-mono bg-muted px-2 py-1 rounded", children: [
2456
- sidebarWidth,
2457
- "px"
2458
- ] })
2459
- ] }),
2460
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [
2461
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground w-12 text-right", children: "240px" }),
2462
- /* @__PURE__ */ jsxRuntime.jsx(
2463
- slider.Slider,
2464
- {
2465
- value: [sidebarWidth],
2466
- onValueChange: (val) => setSidebarWidth(val[0]),
2467
- min: 240,
2468
- max: 450,
2469
- step: 10,
2470
- className: "flex-1",
2471
- "aria-label": "Largura da Sidebar"
2472
- }
2473
- ),
2474
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground w-12", children: "450px" })
2475
- ] })
2476
- ] })
2477
- ] }),
2478
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "assistant", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden", style: { transform: "translateZ(0)" }, children: [
2479
- /* @__PURE__ */ jsxRuntime.jsx(
2480
- sidebar.Sidebar,
2481
- {
2482
- expanded: true,
2483
- width: sidebarWidth,
2484
- onToggle: () => {
2485
- },
2486
- user: { email: "admin@xertica.com" },
2487
- onLogout: () => sonner.toast("Saiu"),
2488
- location: { pathname: "/assistant/current" },
2489
- navigate: () => {
2490
- },
2491
- variant: "assistant",
2492
- search: {
2493
- show: true,
2494
- placeholder: "Buscar tópicos...",
2495
- filter: {
2496
- show: true,
2497
- content: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2 space-y-2", children: [
2498
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children: "Filtrar por Status" }),
2499
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-2 p-1", children: [
2500
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children: "Ativo" }),
2501
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10", children: "Arquivado" }),
2502
- /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10", children: "Pendente" })
2503
- ] })
2504
- ] })
2505
- }
2506
- },
2507
- fixedArea: {
2508
- show: true,
2509
- content: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full bg-sidebar-primary hover:bg-sidebar-primary/90 text-sidebar-primary-foreground shadow-lg font-bold border-none transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98]", children: [
2510
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "w-4 h-4 mr-2" }),
2511
- "Nova Conversa"
2512
- ] })
2513
- },
2514
- navigationGroups: [
2515
- {
2516
- id: "recent",
2517
- label: "Recentes",
2518
- icon: lucideReact.Clock,
2519
- items: [
2520
- {
2521
- path: "/assistant/refatoracao",
2522
- label: "Refatoração da Sidebar",
2523
- description: "Ativo agora",
2524
- actions: [
2525
- { label: "Renomear", icon: lucideReact.FileEdit, onClick: () => sonner.toast("Abrir renomear...") },
2526
- {
2527
- label: "Mover",
2528
- icon: lucideReact.ArrowRightLeft,
2529
- children: [
2530
- { label: "Projetos Ativos", onClick: () => sonner.toast("Movido para Projetos Ativos") },
2531
- { label: "Monitoramento", onClick: () => sonner.toast("Movido para Monitoramento") },
2532
- { label: "Arquivar", onClick: () => sonner.toast("Movido para Arquivo") }
2533
- ]
2534
- },
2535
- { label: "Limpar", icon: lucideReact.Trash2, onClick: () => sonner.toast("Histórico Limpo!"), variant: "destructive" }
2536
- ]
2537
- }
2538
- ]
2539
- },
2540
- {
2541
- id: "projects",
2542
- label: "Monitoramento de Projetos",
2543
- icon: lucideReact.Map,
2544
- actions: [
2545
- { label: "Nova Categoria", icon: lucideReact.Plus, onClick: () => sonner.toast("Criar nova categoria...") },
2546
- { label: "Arquivar Grupo", icon: lucideReact.Archive, onClick: () => sonner.toast("Arquivando grupo...") }
2547
- ],
2548
- items: [
2549
- {
2550
- path: "/assistant/br163",
2551
- label: "Restauração BR-163",
2552
- icon: () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-500" }),
2553
- description: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5 min-w-[160px]", children: [
2554
- /* @__PURE__ */ jsxRuntime.jsx(progress.Progress, { value: 67, className: "h-1.5 bg-sidebar-foreground/10" }),
2555
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-[10px] text-sidebar-foreground/60", children: [
2556
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Cuiabá, MT" }),
2557
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "67%" })
2558
- ] })
2559
- ] })
2560
- }
2561
- ]
2562
- }
2563
- ],
2564
- footer: {
2565
- showUser: showSidebarUser,
2566
- showSettings: showSidebarSettings,
2567
- showLogout: showSidebarLogout
2568
- }
2569
- }
2570
- ),
2571
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300", style: { left: `${sidebarWidth}px` }, children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children: "Conteúdo do Modo Assistente" }) })
2572
- ] }) }),
2573
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "default", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden", style: { transform: "translateZ(0)" }, children: [
2574
- /* @__PURE__ */ jsxRuntime.jsx(
2575
- sidebar.Sidebar,
2576
- {
2577
- expanded: true,
2578
- width: sidebarWidth,
2579
- onToggle: () => {
2580
- },
2581
- user: {
2582
- name: "Ariel Santos",
2583
- email: "admin@xertica.com",
2584
- avatar: "https://github.com/shadcn.png"
2585
- },
2586
- onLogout: () => sonner.toast("Saiu"),
2587
- onSettingsClick: () => sonner.toast("Configurações clicadas"),
2588
- location: { pathname: "/home" },
2589
- navigate: () => {
2590
- },
2591
- variant: "default",
2592
- routes: [
2593
- { path: "/home", label: "Início", icon: lucideReact.Home },
2594
- { path: "/dashboard", label: "Dashboard", icon: lucideReact.Users },
2595
- { path: "/settings", label: "Configurações", icon: lucideReact.Settings }
2596
- ],
2597
- footer: {
2598
- showUser: showSidebarUser,
2599
- showSettings: showSidebarSettings,
2600
- showLogout: showSidebarLogout
2601
- }
2602
- }
2603
- ),
2604
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300", style: { left: `${sidebarWidth}px` }, children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children: "Navegação Tradicional do Sistema" }) })
2605
- ] }) })
2606
- ] }) })
2607
- ] })
2608
- ] }),
2609
- /* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
2610
- /* @__PURE__ */ jsxRuntime.jsxs(progress.Card, { className: "mt-8", children: [
2611
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardHeader, { children: [
2612
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardTitle, { children: "Template Pronto para CLI" }),
2613
- /* @__PURE__ */ jsxRuntime.jsx(progress.CardDescription, { children: "Como usar este template" })
2614
- ] }),
2615
- /* @__PURE__ */ jsxRuntime.jsxs(progress.CardContent, { className: "space-y-4", children: [
2616
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
2617
- "Este template está pronto para ser usado como base para novos projetos. Todos os componentes usam as variáveis CSS definidas em ",
2618
- /* @__PURE__ */ jsxRuntime.jsx("code", { className: "bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]", children: "/styles/xertica/tokens.css" }),
2619
- "and follow the Xertica UI CLI-first architecture."
2620
- ] }),
2621
- /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "info", children: [
2622
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Dica" }),
2623
- /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Copie este arquivo como ponto de partida para suas páginas. Todos os componentes são reutilizáveis e customizáveis através de variáveis CSS." })
2624
- ] })
2625
- ] })
2626
- ] })
2627
- ] }) }) }) })
2628
- ]
2629
- }
2630
- );
2631
- }
2632
- function TemplatePage({ user, onLogout }) {
2633
- const layout = LayoutContext.useOptionalLayout();
2634
- const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
2635
- const [localAssistantExpanded, setLocalAssistantExpanded] = React.useState(false);
2636
- const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
2637
- const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
2638
- const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
2639
- const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
2640
- const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
2641
- const location = reactRouterDom.useLocation();
2642
- const navigate = reactRouterDom.useNavigate();
2643
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
2644
- /* @__PURE__ */ jsxRuntime.jsx(
2645
- sidebar.Sidebar,
2646
- {
2647
- expanded: sidebarExpanded,
2648
- width: sidebarWidth,
2649
- onToggle: toggleSidebar,
2650
- user: {
2651
- ...user,
2652
- name: "Ariel Santos",
2653
- avatar: "https://github.com/shadcn.png"
2654
- },
2655
- onLogout,
2656
- onSettingsClick: () => navigate("/settings"),
2657
- location,
2658
- navigate,
2659
- routes
2660
- }
2661
- ),
2662
- /* @__PURE__ */ jsxRuntime.jsx(
2663
- TemplateContent,
2664
- {
2665
- user,
2666
- onLogout,
2667
- onSettings: () => navigate("/settings")
2668
- }
2669
- ),
2670
- /* @__PURE__ */ jsxRuntime.jsx(
2671
- xerticaAssistant.XerticaAssistant,
2672
- {
2673
- isExpanded: assistenteExpanded,
2674
- onToggle: toggleAssistente,
2675
- onEvaluation: () => {
2676
- }
2677
- }
2678
- )
2679
- ] });
2680
- }
2681
- function VerifyEmailPage() {
2682
- var _a;
2683
- const navigate = reactRouterDom.useNavigate();
2684
- const location = reactRouterDom.useLocation();
2685
- const email = ((_a = location.state) == null ? void 0 : _a.email) || "your@email.com";
2686
- const [isResending, setIsResending] = React.useState(false);
2687
- const [resendSuccess, setResendSuccess] = React.useState(false);
2688
- const handleResend = async () => {
2689
- setIsResending(true);
2690
- setResendSuccess(false);
2691
- await new Promise((resolve) => setTimeout(resolve, 1500));
2692
- setIsResending(false);
2693
- setResendSuccess(true);
2694
- setTimeout(() => setResendSuccess(false), 3e3);
2695
- };
2696
- const handleSocialLogin = (_provider) => {
2697
- };
2698
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen flex", children: [
2699
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
2700
- /* @__PURE__ */ jsxRuntime.jsx(
2701
- alertDialog.ImageWithFallback,
2702
- {
2703
- src: "https://images.unsplash.com/photo-1563986768609-322da13575f3?w=1200&h=800&fit=crop&auto=format",
2704
- alt: "E-mail e comunicação",
2705
- className: "absolute inset-0 w-full h-full object-cover"
2706
- }
2707
- ),
2708
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
2709
- ] }),
2710
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
2711
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsxRuntime.jsx(XerticaXLogo.LanguageSelector, { variant: "minimal", showIcon: false }) }),
2712
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
2713
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
2714
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
2715
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
2716
- XerticaXLogo.XerticaLogo,
2717
- {
2718
- className: "h-12 w-auto text-primary dark:text-foreground",
2719
- variant: "theme"
2720
- }
2721
- ) }),
2722
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-primary/10 rounded-[var(--radius)]", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-12 h-12 text-primary" }) }) }),
2723
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: "Verifique seu e-mail" }),
2724
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: "Enviamos as instruções para redefinir sua senha para:" }),
2725
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-primary", children: email })
2726
- ] }),
2727
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-3", children: [
2728
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Siga as instruções no e-mail para redefinir sua senha. O link expira em 24 horas." }),
2729
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2 text-muted-foreground", children: [
2730
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "w-4 h-4 mt-0.5 flex-shrink-0 text-[var(--chart-2)]" }),
2731
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: "Verifique sua pasta de spam se não encontrar o e-mail" })
2732
- ] })
2733
- ] }),
2734
- resendSuccess && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-[var(--chart-2)]/10 border border-[var(--chart-2)]/20 rounded-[var(--radius)] p-3 flex items-center gap-2", children: [
2735
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "w-5 h-5 text-[var(--chart-2)] flex-shrink-0" }),
2736
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-[var(--chart-2)]", children: "E-mail reenviado com sucesso!" })
2737
- ] }),
2738
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2739
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-muted-foreground", children: "Não recebeu o e-mail?" }),
2740
- /* @__PURE__ */ jsxRuntime.jsx(
2741
- button.Button,
2742
- {
2743
- variant: "outline",
2744
- className: "w-full",
2745
- onClick: handleResend,
2746
- disabled: isResending,
2747
- children: isResending ? "Reenviando..." : "Reenviar e-mail"
2748
- }
2749
- ),
2750
- /* @__PURE__ */ jsxRuntime.jsxs(
2751
- button.Button,
2752
- {
2753
- type: "button",
2754
- onClick: () => navigate("/login"),
2755
- variant: "outline",
2756
- className: "w-full text-muted-foreground hover:text-foreground",
2757
- children: [
2758
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4 mr-2" }),
2759
- "Voltar para o login"
2760
- ]
2761
- }
2762
- )
2763
- ] }),
2764
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2765
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
2766
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
2767
- ] }),
2768
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
2769
- /* @__PURE__ */ jsxRuntime.jsxs(
2770
- button.Button,
2771
- {
2772
- type: "button",
2773
- variant: "outline",
2774
- className: "w-full justify-center",
2775
- onClick: () => handleSocialLogin(),
2776
- children: [
2777
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
2778
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
2779
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
2780
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
2781
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
2782
- /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
2783
- ] }),
2784
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com Google" })
2785
- ]
2786
- }
2787
- ),
2788
- /* @__PURE__ */ jsxRuntime.jsxs(
2789
- button.Button,
2790
- {
2791
- type: "button",
2792
- variant: "outline",
2793
- className: "w-full justify-center",
2794
- onClick: () => handleSocialLogin(),
2795
- children: [
2796
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
2797
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Entrar com MT Login" })
2798
- ]
2799
- }
2800
- ),
2801
- /* @__PURE__ */ jsxRuntime.jsx(
2802
- button.Button,
2803
- {
2804
- type: "button",
2805
- variant: "outline",
2806
- className: "w-full justify-center font-normal",
2807
- onClick: () => handleSocialLogin(),
2808
- children: /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
2809
- "Entrar com ",
2810
- /* @__PURE__ */ jsxRuntime.jsx("strong", { className: "font-semibold", children: "gov.br" })
2811
- ] })
2812
- }
2813
- )
2814
- ] })
2815
- ] })
2816
- ] })
2817
- ] });
2818
- }
2819
- exports.ForgotPasswordPage = ForgotPasswordPage;
2820
- exports.HomeContent = HomeContent;
2821
- exports.HomePage = HomePage;
2822
- exports.LoginPage = LoginPage;
2823
- exports.ResetPasswordPage = ResetPasswordPage;
2824
- exports.TemplateContent = TemplateContent;
2825
- exports.TemplatePage = TemplatePage;
2826
- exports.VerifyEmailPage = VerifyEmailPage;