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.
- package/CHANGELOG.md +35 -0
- package/README.md +56 -17
- package/assets/xertica-logo.svg +37 -37
- package/assets/xertica-x-logo.svg +20 -20
- package/bin/cli.ts +14 -2
- package/bin/generate-tokens.ts +262 -262
- package/bin/language-config.ts +359 -358
- package/components/assistant/code-block/CodeBlock.tsx +268 -268
- package/components/assistant/formatted-document/FormattedDocument.tsx +147 -147
- package/components/assistant/modern-chat-input/ModernChatInput.tsx +564 -564
- package/components/assistant/xertica-assistant/parts/AssistantCollapsedView.tsx +99 -99
- package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +104 -104
- package/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.tsx +81 -81
- package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +88 -88
- package/components/assistant/xertica-assistant/parts/AssistantHeader.tsx +75 -75
- package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +564 -564
- package/components/assistant/xertica-assistant/parts/AssistantTabBar.tsx +67 -67
- package/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.tsx +103 -103
- package/components/assistant/xertica-assistant/use-assistant.ts +615 -615
- package/components/assistant/xertica-assistant/xertica-assistant.tsx +611 -611
- package/components/blocks/card-patterns/ActivityCard.tsx +100 -100
- package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
- package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +58 -58
- package/components/blocks/card-patterns/NotificationCard.tsx +140 -140
- package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
- package/components/blocks/card-patterns/ProfileCard.tsx +112 -112
- package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
- package/components/blocks/card-patterns/ProjectCard.tsx +123 -123
- package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +67 -67
- package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
- package/components/blocks/card-patterns/card-patterns.stories.tsx +594 -594
- package/components/blocks/card-patterns/index.ts +29 -29
- package/components/brand/language-selector/LanguageSelector.tsx +102 -102
- package/components/brand/language-selector/language-selector.stories.tsx +111 -111
- package/components/brand/language-selector/language-selector.test.tsx +101 -101
- package/components/brand/theme-toggle/ThemeToggle.tsx +74 -74
- package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
- package/components/index.ts +86 -86
- package/components/layout/sidebar/sidebar.mdx +1 -1
- package/components/layout/sidebar/sidebar.stories.tsx +1033 -787
- package/components/layout/sidebar/sidebar.tsx +338 -1
- package/components/media/FloatingMediaWrapper.tsx +371 -371
- package/components/media/audio-player/AudioPlayer.tsx +768 -768
- package/components/media/video-player/VideoPlayer.tsx +310 -310
- package/components/pages/home-content/HomeContent.tsx +120 -120
- package/components/pages/home-content/home-content.mdx +62 -62
- package/components/pages/home-page/HomePage.tsx +78 -78
- package/components/pages/home-page/home-page.mdx +53 -53
- package/components/pages/template-content/TemplateContent.tsx +1354 -1354
- package/components/pages/template-content/template-content.mdx +61 -61
- package/components/pages/template-page/TemplatePage.stories.tsx +32 -32
- package/components/pages/template-page/template-page.mdx +53 -53
- package/components/shared/error-boundary.stories.tsx +114 -114
- package/components/shared/error-boundary.tsx +150 -150
- package/components/shared/error-fallbacks.tsx +222 -222
- package/components/ui/accordion/accordion.mdx +8 -8
- package/components/ui/alert/alert.mdx +8 -8
- package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
- package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
- package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
- package/components/ui/avatar/avatar.mdx +8 -8
- package/components/ui/badge/badge.mdx +8 -8
- package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
- package/components/ui/button/button.mdx +8 -8
- package/components/ui/calendar/calendar.mdx +8 -8
- package/components/ui/card/card.mdx +8 -8
- package/components/ui/carousel/carousel.mdx +8 -8
- package/components/ui/chart/chart.mdx +8 -8
- package/components/ui/chart/chart.test.tsx +178 -178
- package/components/ui/chart/chart.tsx +2245 -2239
- package/components/ui/checkbox/checkbox.mdx +8 -8
- package/components/ui/collapsible/collapsible.mdx +8 -8
- package/components/ui/command/command.mdx +8 -8
- package/components/ui/context-menu/context-menu.mdx +8 -8
- package/components/ui/dialog/dialog.mdx +8 -8
- package/components/ui/drawer/drawer.mdx +8 -8
- package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
- package/components/ui/empty/empty.mdx +8 -8
- package/components/ui/file-upload/file-upload.mdx +8 -8
- package/components/ui/hover-card/hover-card.mdx +8 -8
- package/components/ui/input/input.mdx +8 -8
- package/components/ui/input-otp/input-otp.mdx +8 -8
- package/components/ui/label/label.mdx +8 -8
- package/components/ui/map/map.mdx +8 -8
- package/components/ui/menubar/menubar.mdx +8 -8
- package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
- package/components/ui/notification-badge/notification-badge.mdx +8 -8
- package/components/ui/pagination/pagination.mdx +8 -8
- package/components/ui/popover/popover.mdx +8 -8
- package/components/ui/progress/progress.mdx +8 -8
- package/components/ui/radio-group/radio-group.mdx +8 -8
- package/components/ui/rating/rating.mdx +8 -8
- package/components/ui/resizable/resizable.mdx +8 -8
- package/components/ui/route-map/route-map.mdx +8 -8
- package/components/ui/scroll-area/scroll-area.mdx +8 -8
- package/components/ui/search/search.mdx +8 -8
- package/components/ui/select/select.mdx +8 -8
- package/components/ui/separator/separator.mdx +8 -8
- package/components/ui/sheet/sheet.mdx +8 -8
- package/components/ui/simple-map/simple-map.mdx +8 -8
- package/components/ui/skeleton/skeleton.mdx +8 -8
- package/components/ui/slider/slider.mdx +8 -8
- package/components/ui/sonner/sonner.mdx +8 -8
- package/components/ui/stats-card/index.ts +2 -2
- package/components/ui/stats-card/stats-card-skeleton.tsx +60 -60
- package/components/ui/stats-card/stats-card.mdx +8 -8
- package/components/ui/stats-card/stats-card.tsx +109 -109
- package/components/ui/stepper/stepper.mdx +8 -8
- package/components/ui/switch/switch.mdx +8 -8
- package/components/ui/table/table.mdx +8 -8
- package/components/ui/tabs/tabs.mdx +8 -8
- package/components/ui/textarea/textarea.mdx +8 -8
- package/components/ui/timeline/timeline.mdx +8 -8
- package/components/ui/toggle/toggle.mdx +8 -8
- package/components/ui/toggle-group/toggle-group.mdx +8 -8
- package/components/ui/tooltip/tooltip.mdx +8 -8
- package/components/ui/tree-view/tree-view.mdx +8 -8
- package/components.json +511 -511
- package/contexts/AuthContext.tsx +121 -121
- package/contexts/BrandColorsContext.tsx +282 -282
- package/contexts/LanguageContext.test.tsx +121 -121
- package/contexts/LanguageContext.tsx +250 -250
- package/contexts/theme-data.ts +391 -391
- package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
- package/dist/{AssistantChart-CldVCVDe.cjs → AssistantChart-BAudAfne.cjs} +5 -5
- package/dist/{AssistantChart-Bdd44uBn.cjs → AssistantChart-BAx9VQvb.cjs} +127 -388
- package/dist/{AssistantChart-Cu3m7RBo.js → AssistantChart-BP8upjMk.js} +5 -5
- package/dist/{AssistantChart-CFhDdGyU.js → AssistantChart-CVko2A1W.js} +130 -391
- package/dist/{AssistantChart-C_hwFRRr.js → AssistantChart-CVzmmhx4.js} +4 -4
- package/dist/{AudioPlayer-IAU5q5T1.cjs → AudioPlayer-1ypwE2Wh.cjs} +1 -1
- package/dist/{AudioPlayer-CGRUtUdN.js → AudioPlayer-DuKXrCfy.js} +1 -1
- package/dist/{LanguageContext-CS14yCpi.js → LanguageContext-BwhwC3G2.js} +2 -2
- package/dist/{LanguageContext-B_KFTCzT.cjs → LanguageContext-DvUt5jBg.cjs} +2 -2
- package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
- package/dist/{ThemeContext-Bmod0Cg2.cjs → ThemeContext-BblcjQup.cjs} +13 -8
- package/dist/{ThemeContext-BWq9ACPo.js → ThemeContext-Bo-W2WZH.js} +13 -8
- package/dist/{ThemeContext-j5aGtPky.cjs → ThemeContext-CP3a0jxy.cjs} +193 -262
- package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
- package/dist/ThemeContext-CpqYShLq.cjs +324 -0
- package/dist/{ThemeContext-CQSo4Iwc.js → ThemeContext-D3LzacmG.js} +8 -1
- package/dist/ThemeContext-Du2nE1PL.js +325 -0
- package/dist/ThemeContext-GeEBTJ3q.cjs +1621 -0
- package/dist/ThemeContext-JyLK9B1o.js +1622 -0
- package/dist/{ThemeContext-CGk3KK0k.cjs → ThemeContext-U4dEYc6C.cjs} +8 -1
- package/dist/{ThemeContext-BXjrgUjW.js → ThemeContext-ept8jhXI.js} +200 -261
- package/dist/{VerifyEmailPage-CGIwmWrm.js → VerifyEmailPage-B31mCrMc.js} +1 -1
- package/dist/{VerifyEmailPage-C0c2e5n0.js → VerifyEmailPage-BE-L9mB7.js} +7 -7
- package/dist/{VerifyEmailPage-DSBMRHtl.js → VerifyEmailPage-BIBOKV7Z.js} +41 -36
- package/dist/{VerifyEmailPage-DgIid028.js → VerifyEmailPage-BJjAMUTW.js} +4 -4
- package/dist/{VerifyEmailPage--1Vurewl.cjs → VerifyEmailPage-BRSP-Pwt.cjs} +3 -3
- package/dist/{VerifyEmailPage-Cwi3kbol.cjs → VerifyEmailPage-Bae2cBXT.cjs} +7 -7
- package/dist/{VerifyEmailPage-De6bQjrz.cjs → VerifyEmailPage-BiRm7Nh4.cjs} +41 -36
- package/dist/{VerifyEmailPage-ByerOcm4.cjs → VerifyEmailPage-Bv8Ah_TK.cjs} +23 -20
- package/dist/VerifyEmailPage-Bvfv8HVQ.js +3214 -0
- package/dist/{VerifyEmailPage-BComraR7.cjs → VerifyEmailPage-CR7kb5df.cjs} +22 -12
- package/dist/{VerifyEmailPage-CpqqpLpo.cjs → VerifyEmailPage-C_Zk6Gen.cjs} +1 -1
- package/dist/{VerifyEmailPage-MTD7AG1Z.js → VerifyEmailPage-C_ihbcth.js} +4 -4
- package/dist/{VerifyEmailPage-1WwWczAn.js → VerifyEmailPage-CbgjOF0v.js} +22 -12
- package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
- package/dist/{VerifyEmailPage-By3Jf__L.cjs → VerifyEmailPage-CkBYfsNy.cjs} +4 -4
- package/dist/{VerifyEmailPage-CJLz3jrn.js → VerifyEmailPage-Cyl55sJb.js} +23 -20
- package/dist/VerifyEmailPage-D-FRj5TU.cjs +3213 -0
- package/dist/{VerifyEmailPage-B4peJjAT.cjs → VerifyEmailPage-DF2ilhum.cjs} +334 -356
- package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
- package/dist/{VerifyEmailPage-CgMxRb4z.js → VerifyEmailPage-DTtFfC-J.js} +3 -3
- package/dist/{VerifyEmailPage-CFLMls1p.cjs → VerifyEmailPage-Dt7zgA4w.cjs} +4 -4
- package/dist/{VerifyEmailPage-C5TNQTBa.js → VerifyEmailPage-EhudUdqF.js} +343 -355
- package/dist/{VerifyEmailPage-DGhuIqkb.js → VerifyEmailPage-X14vhdyl.js} +4 -4
- package/dist/VerifyEmailPage-hdB8JQGv.cjs +3213 -0
- package/dist/{VerifyEmailPage-Bp1XXl3H.cjs → VerifyEmailPage-u_Dn7t1U.cjs} +4 -4
- package/dist/VerifyEmailPage-vYHbYK3q.js +3214 -0
- package/dist/{XerticaProvider-CBGc4EMA.cjs → XerticaProvider-AChwphCO.cjs} +4 -4
- package/dist/{XerticaProvider-BIrqfZ-i.cjs → XerticaProvider-AbWlr7Af.cjs} +8 -11
- package/dist/{XerticaProvider-D-yNhF94.cjs → XerticaProvider-B8CaV7xu.cjs} +1 -1
- package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
- package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
- package/dist/{XerticaProvider-C1DKnvLh.js → XerticaProvider-CUYJZc32.js} +4 -4
- package/dist/{XerticaProvider-ET0ihewn.cjs → XerticaProvider-CW9hpCdF.cjs} +2 -2
- package/dist/{XerticaProvider-Dt5HEzbQ.js → XerticaProvider-CWgby5mY.js} +10 -10
- package/dist/XerticaProvider-CWs6EwNa.js +49 -0
- package/dist/XerticaProvider-CjQAQPcn.cjs +48 -0
- package/dist/XerticaProvider-D5lLumH-.js +49 -0
- package/dist/{XerticaProvider-DYq4JWtg.js → XerticaProvider-DQtvJU7m.js} +1 -1
- package/dist/XerticaProvider-qQUDop71.cjs +48 -0
- package/dist/{XerticaProvider-B7EVH-NF.js → XerticaProvider-siSt9uG2.js} +2 -2
- package/dist/{XerticaXLogo-Zw2B276b.cjs → XerticaXLogo-8TTzBjHw.cjs} +1 -1
- package/dist/{XerticaXLogo-B7xQ5dhi.js → XerticaXLogo-BWaag64t.js} +1 -1
- package/dist/{XerticaXLogo-DZbo4vOE.js → XerticaXLogo-CFuIlYFH.js} +12 -12
- package/dist/{XerticaXLogo-bvZSgwGF.cjs → XerticaXLogo-CU-U-GP4.cjs} +7 -13
- package/dist/XerticaXLogo-ChryA6xj.js +252 -0
- package/dist/{XerticaXLogo-CQUUjXoH.cjs → XerticaXLogo-CziKMQil.cjs} +8 -8
- package/dist/XerticaXLogo-DHz5SugF.js +252 -0
- package/dist/XerticaXLogo-DTee_y8X.cjs +251 -0
- package/dist/{XerticaXLogo-Cmsp-Eey.js → XerticaXLogo-DfUvz-lD.js} +9 -9
- package/dist/XerticaXLogo-kslQ8Tk_.cjs +251 -0
- package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
- package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
- package/dist/cli.js +16 -6
- package/dist/components/ui/chart/chart.d.ts +7 -5
- package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
- package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
- package/dist/index-CkTUgOwX.js +8 -0
- package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +454 -1027
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +1 -1
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +1 -1
- package/dist/{sidebar-DAaY8bRU.cjs → sidebar-B3EYhli0.cjs} +33 -24
- package/dist/{sidebar-nzPoVHBQ.cjs → sidebar-B9NR0lCe.cjs} +46 -41
- package/dist/{sidebar-CeTMuzOx.cjs → sidebar-BvF5I2Ue.cjs} +47 -128
- package/dist/{sidebar-q7P2Godd.cjs → sidebar-C5B_LHek.cjs} +1 -1
- package/dist/{sidebar-CrQDDdcz.js → sidebar-CA6_ek3f.js} +33 -24
- package/dist/sidebar-CLmIjgNd.cjs +1136 -0
- package/dist/{sidebar-BxGXsDAd.cjs → sidebar-CVUGHOS_.cjs} +8 -16
- package/dist/{sidebar-BViy8Eeu.js → sidebar-CmvwjnVb.js} +9 -17
- package/dist/{sidebar-B6SlKZYN.js → sidebar-CplprZpM.js} +49 -40
- package/dist/sidebar-Duermn32.js +1133 -0
- package/dist/{sidebar-BbVIQvlP.js → sidebar-Dz7bd3zP.js} +1 -1
- package/dist/{sidebar-0ocFLSks.js → sidebar-KIS0C2JH.js} +50 -127
- package/dist/sidebar-OTO_up7Z.js +801 -0
- package/dist/sidebar-zowjejT2.cjs +800 -0
- package/dist/{use-audio-player-nv8ZSGa1.js → use-audio-player-Bkh23vQ3.js} +3 -7
- package/dist/{use-audio-player-NKsWyjWu.cjs → use-audio-player-Dn1NR9xN.cjs} +3 -7
- package/dist/{xertica-assistant-dyP7KHM5.cjs → xertica-assistant-B1IaHXnB.cjs} +388 -529
- package/dist/{xertica-assistant-ciJaWqm1.js → xertica-assistant-BMqdyRVi.js} +10 -28
- package/dist/{xertica-assistant-V_IdW4WF.cjs → xertica-assistant-Bj3vBCq_.cjs} +9 -27
- package/dist/{xertica-assistant-yX1CFBBo.js → xertica-assistant-DPsESB6t.js} +390 -531
- package/dist/{CodeBlock-7TTgmdGG.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
- package/dist/{CodeBlock-BeSt1h5P.js → xertica-assistant-gnCJdcZY.js} +7 -219
- package/dist/xertica-ui.css +2 -2
- package/docs/architecture-improvements.md +456 -456
- package/docs/architecture.md +312 -312
- package/docs/components/assistant.md +428 -428
- package/docs/components/branding.md +252 -252
- package/docs/components/card-patterns.md +447 -447
- package/docs/components/error-boundary.md +201 -201
- package/docs/components/hooks.md +432 -432
- package/docs/components/language-selector.md +176 -176
- package/docs/components/pages.md +323 -323
- package/docs/components/sidebar.md +331 -331
- package/docs/components/stats-card.md +138 -138
- package/docs/doc-audit.md +244 -244
- package/docs/getting-started.md +616 -616
- package/docs/guidelines.md +330 -330
- package/docs/i18n.md +480 -480
- package/docs/installation.md +268 -268
- package/docs/llms.md +295 -295
- package/docs/state-management.md +289 -289
- package/guidelines/Guidelines.md +409 -409
- package/llms-compact.txt +1 -1
- package/llms-full.txt +10688 -10688
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/styles/xertica/base.css +90 -90
- package/styles/xertica/tokens.css +240 -240
- package/templates/.prettierignore +4 -4
- package/templates/.prettierrc +10 -10
- package/templates/CLAUDE.md +180 -180
- package/templates/package.json +2 -2
- package/templates/src/app/App.tsx +46 -46
- package/templates/src/app/components/AuthGuard.tsx +131 -131
- package/templates/src/features/assistant/data/mock.ts +75 -75
- package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
- package/templates/src/features/assistant/index.ts +5 -5
- package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
- package/templates/src/features/auth/ui/LoginContent.tsx +92 -92
- package/templates/src/features/auth/ui/ResetPasswordContent.tsx +183 -183
- package/templates/src/features/auth/ui/SocialLoginButtons.tsx +78 -78
- package/templates/src/features/auth/ui/VerifyEmailContent.tsx +80 -80
- package/templates/src/features/home/data/mock.ts +41 -41
- package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
- package/templates/src/features/home/index.ts +11 -11
- package/templates/src/features/home/ui/HomeContent.tsx +117 -117
- package/templates/src/features/template/ui/CrudTemplate.tsx +112 -112
- package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
- package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
- package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
- package/templates/src/features/template/ui/TemplateContent.tsx +1322 -1322
- package/templates/src/i18n.ts +124 -124
- package/templates/src/locales/en/common.json +21 -21
- package/templates/src/locales/en/components/activityCard.json +10 -10
- package/templates/src/locales/en/components/assistant.json +119 -119
- package/templates/src/locales/en/components/media.json +29 -29
- package/templates/src/locales/en/components/notificationCard.json +5 -5
- package/templates/src/locales/en/components/profileCard.json +8 -8
- package/templates/src/locales/en/components/projectCard.json +10 -10
- package/templates/src/locales/en/components/sidebar.json +14 -14
- package/templates/src/locales/en/components/stats.json +8 -8
- package/templates/src/locales/en/components/team.json +14 -14
- package/templates/src/locales/en/errors.json +9 -9
- package/templates/src/locales/en/languageSelector.json +7 -7
- package/templates/src/locales/en/nav.json +6 -6
- package/templates/src/locales/en/pages/crudTemplate.json +25 -25
- package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
- package/templates/src/locales/en/pages/forgotPassword.json +10 -10
- package/templates/src/locales/en/pages/formTemplate.json +16 -16
- package/templates/src/locales/en/pages/home.json +7 -7
- package/templates/src/locales/en/pages/login.json +15 -15
- package/templates/src/locales/en/pages/loginTemplate.json +9 -9
- package/templates/src/locales/en/pages/resetPassword.json +18 -18
- package/templates/src/locales/en/pages/templates.json +317 -317
- package/templates/src/locales/en/pages/verifyEmail.json +12 -12
- package/templates/src/locales/en/themeToggle.json +6 -6
- package/templates/src/locales/es/common.json +21 -21
- package/templates/src/locales/es/components/activityCard.json +10 -10
- package/templates/src/locales/es/components/assistant.json +119 -119
- package/templates/src/locales/es/components/media.json +29 -29
- package/templates/src/locales/es/components/notificationCard.json +5 -5
- package/templates/src/locales/es/components/profileCard.json +8 -8
- package/templates/src/locales/es/components/projectCard.json +10 -10
- package/templates/src/locales/es/components/sidebar.json +14 -14
- package/templates/src/locales/es/components/stats.json +8 -8
- package/templates/src/locales/es/components/team.json +14 -14
- package/templates/src/locales/es/errors.json +9 -9
- package/templates/src/locales/es/languageSelector.json +7 -7
- package/templates/src/locales/es/nav.json +6 -6
- package/templates/src/locales/es/pages/crudTemplate.json +25 -25
- package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
- package/templates/src/locales/es/pages/forgotPassword.json +10 -10
- package/templates/src/locales/es/pages/formTemplate.json +16 -16
- package/templates/src/locales/es/pages/home.json +7 -7
- package/templates/src/locales/es/pages/login.json +15 -15
- package/templates/src/locales/es/pages/loginTemplate.json +9 -9
- package/templates/src/locales/es/pages/resetPassword.json +18 -18
- package/templates/src/locales/es/pages/templates.json +317 -317
- package/templates/src/locales/es/pages/verifyEmail.json +12 -12
- package/templates/src/locales/es/themeToggle.json +6 -6
- package/templates/src/locales/pt-BR/common.json +21 -21
- package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
- package/templates/src/locales/pt-BR/components/assistant.json +119 -119
- package/templates/src/locales/pt-BR/components/media.json +29 -29
- package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
- package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
- package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
- package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
- package/templates/src/locales/pt-BR/components/stats.json +8 -8
- package/templates/src/locales/pt-BR/components/team.json +14 -14
- package/templates/src/locales/pt-BR/errors.json +9 -9
- package/templates/src/locales/pt-BR/languageSelector.json +7 -7
- package/templates/src/locales/pt-BR/nav.json +6 -6
- package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
- package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
- package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
- package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
- package/templates/src/locales/pt-BR/pages/home.json +7 -7
- package/templates/src/locales/pt-BR/pages/login.json +15 -15
- package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
- package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
- package/templates/src/locales/pt-BR/pages/templates.json +317 -317
- package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
- package/templates/src/locales/pt-BR/themeToggle.json +6 -6
- package/templates/src/pages/AssistantPage.tsx +470 -470
- package/templates/src/pages/HomePage.tsx +53 -53
- package/templates/src/shared/error-boundary.tsx +150 -150
- package/templates/src/shared/error-fallbacks.tsx +222 -222
- package/templates/src/styles/xertica/tokens.css +240 -240
- package/templates/vite.config.js +20 -20
- package/templates/vite.config.ts +55 -55
- package/dist/AssistantChart-BKVtGUKF.js +0 -3383
- package/dist/AssistantChart-CxGjH7Qk.js +0 -3477
- package/dist/AssistantChart-DIpshm3i.js +0 -4784
- package/dist/AssistantChart-D_PTeu8P.cjs +0 -3503
- package/dist/AssistantChart-WeycT5Pd.cjs +0 -3551
- package/dist/AssistantChart-zjsy2GaZ.cjs +0 -4810
- package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
- package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
- package/dist/AudioPlayer-BpRPS4-1.cjs +0 -1277
- package/dist/AudioPlayer-C12BjQBV.cjs +0 -997
- package/dist/AudioPlayer-CFeV8t-5.cjs +0 -936
- package/dist/AudioPlayer-Coly3q5R.js +0 -1278
- package/dist/AudioPlayer-CySJIyvL.js +0 -937
- package/dist/AudioPlayer-DMcG_c7L.js +0 -990
- package/dist/AudioPlayer-DcFKRJE_.js +0 -998
- package/dist/AudioPlayer-e8LfNoqO.js +0 -983
- package/dist/BrandColorsContext-565dDHd5.js +0 -660
- package/dist/BrandColorsContext-BcJbtkqn.cjs +0 -659
- package/dist/CodeBlock-BgfYL_rD.cjs +0 -2094
- package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
- package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
- package/dist/CodeBlock-BtfPlbAI.js +0 -2078
- package/dist/CodeBlock-CIySIuYr.js +0 -2078
- package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
- package/dist/CodeBlock-D6ffWXgc.js +0 -2078
- package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
- package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
- package/dist/CodeBlock-DlBehYN8.js +0 -2078
- package/dist/CodeBlock-DnYNI8rQ.js +0 -2078
- package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
- package/dist/CodeBlock-DwMCfkFY.js +0 -2078
- package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
- package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
- package/dist/CodeBlock-f_GpNhEB.js +0 -2078
- package/dist/CodeBlock-oB6u8nI1.js +0 -2078
- package/dist/CodeBlock-tZC31B73.cjs +0 -2094
- package/dist/FeatureCard-CxC-7C-C.cjs +0 -300
- package/dist/FeatureCard-DbHWCb4E.js +0 -301
- package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
- package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
- package/dist/LanguageSelector-B5YfbHra.js +0 -231
- package/dist/LanguageSelector-D6uacAIM.cjs +0 -230
- package/dist/LayoutContext-B45-e9DI.cjs +0 -93
- package/dist/LayoutContext-BAql6ZRY.js +0 -97
- package/dist/LayoutContext-Bav3UMEA.js +0 -94
- package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
- package/dist/ThemeContext-BoH4NLfN.js +0 -734
- package/dist/ThemeContext-r69W20Xg.cjs +0 -733
- package/dist/VerifyEmailPage-COiyNl1y.js +0 -2825
- package/dist/VerifyEmailPage-CqKsR2v8.js +0 -2827
- package/dist/VerifyEmailPage-DjQKRlUS.cjs +0 -2824
- package/dist/VerifyEmailPage-s-1X3LDJ.cjs +0 -2826
- package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
- package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
- package/dist/XerticaProvider-6btlAlzc.js +0 -17
- package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
- package/dist/XerticaProvider-BlY2limY.cjs +0 -38
- package/dist/XerticaProvider-DDuiIcKo.js +0 -39
- package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
- package/dist/XerticaProvider-hSwhNQex.js +0 -39
- package/dist/alert-dialog-BOje--vD.js +0 -847
- package/dist/alert-dialog-BtEuQqrg.cjs +0 -870
- package/dist/breadcrumb-CqJ7bHY5.js +0 -161
- package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
- package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +0 -6
- package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +0 -21
- package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +0 -49
- package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +0 -16
- package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
- package/dist/components/blocks/audio-player/index.d.ts +0 -1
- package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
- package/dist/components/blocks/document-editor/index.d.ts +0 -1
- package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
- package/dist/components/blocks/podcast-player/index.d.ts +0 -1
- package/dist/components/ui/chart/parts/chart-dashboard.d.ts +0 -113
- package/dist/components/ui/chart/parts/chart-metric.d.ts +0 -118
- package/dist/components/ui/chart/parts/chart-primitives.d.ts +0 -101
- package/dist/components/ui/chart/parts/chart-shared.d.ts +0 -20
- package/dist/components/ui/chart/parts/chart-utils.d.ts +0 -12
- package/dist/components/ui/chart/parts/index.d.ts +0 -5
- package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
- package/dist/dropdown-menu-DQidbKBD.js +0 -231
- package/dist/google-maps-loader-BFWp6VPd.js +0 -287
- package/dist/google-maps-loader-BKcdgFbu.cjs +0 -312
- package/dist/google-maps-loader-CumCNXeG.js +0 -312
- package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
- package/dist/header-Cgy6vYPk.cjs +0 -731
- package/dist/header-DRlT4jgI.js +0 -715
- package/dist/header-Dux00SI4.cjs +0 -731
- package/dist/header-EkGKXPsD.js +0 -715
- package/dist/header-WfEywpyc.cjs +0 -731
- package/dist/header-tifNQn2U.js +0 -715
- package/dist/index-BhapVLVj.js +0 -8
- package/dist/index-D6fxYEY8.cjs +0 -7
- package/dist/index-DAIp0_HK.js +0 -8
- package/dist/index-DW5tYe26.js +0 -8
- package/dist/index-GA__GvnG.cjs +0 -7
- package/dist/input-2R4loU86.js +0 -127
- package/dist/input-DWANSKGb.cjs +0 -145
- package/dist/progress-DPtzoVV8.js +0 -175
- package/dist/progress-EeaoqqUs.cjs +0 -191
- package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
- package/dist/rich-text-editor-B-IkcPD0.js +0 -2874
- package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
- package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
- package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
- package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
- package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
- package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
- package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
- package/dist/rich-text-editor-Bp3zQqMC.js +0 -2954
- package/dist/rich-text-editor-CMgSN_w2.js +0 -1189
- package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
- package/dist/rich-text-editor-CeucBdIv.cjs +0 -2971
- package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
- package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
- package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
- package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
- package/dist/rich-text-editor-D76gD-QI.js +0 -2328
- package/dist/rich-text-editor-DKkokOnA.js +0 -1781
- package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
- package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
- package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
- package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
- package/dist/rich-text-editor-bRkNoeZY.cjs +0 -2891
- package/dist/rich-text-editor-lyYE2ZG5.cjs +0 -1207
- package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
- package/dist/select-Bkbr0f-Z.cjs +0 -162
- package/dist/select-CvIVdX2n.js +0 -145
- package/dist/sidebar-CK_0ZQHj.cjs +0 -803
- package/dist/sidebar-CUuOvYhK.js +0 -787
- package/dist/sidebar-DQj1z3jG.cjs +0 -758
- package/dist/sidebar-Djn5syhi.cjs +0 -786
- package/dist/sidebar-LluMXfam.js +0 -759
- package/dist/sidebar-_rT7rBMk.js +0 -787
- package/dist/slider-Bc5Hd0y1.js +0 -56
- package/dist/slider-N7hFFj6X.cjs +0 -73
- package/dist/tooltip-Ded96neP.cjs +0 -137
- package/dist/tooltip-HDOoD2-0.js +0 -120
- package/dist/use-audio-player-B31J-aqh.cjs +0 -187
- package/dist/use-audio-player-BkmEmj8Q.js +0 -185
- package/dist/use-audio-player-CLFTWFW1.cjs +0 -184
- package/dist/use-audio-player-CLLn00I6.js +0 -188
- package/dist/use-file-upload-BcjEo2S5.js +0 -404
- package/dist/use-file-upload-CRJR68Tj.cjs +0 -403
- package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
- package/dist/use-mobile-BXuYROXM.js +0 -4202
- package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
- package/dist/use-mobile-Bk6CX-TC.js +0 -4359
- package/dist/use-mobile-BvYdisLP.js +0 -4202
- package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
- package/dist/use-mobile-CG2-SdXV.cjs +0 -4235
- package/dist/use-mobile-CKb5pqTs.js +0 -4269
- package/dist/use-mobile-CYuAuGDl.js +0 -4202
- package/dist/use-mobile-CaENcqm-.js +0 -4508
- package/dist/use-mobile-CbrYgJGJ.js +0 -4203
- package/dist/use-mobile-Cd4xPrKq.cjs +0 -46
- package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
- package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
- package/dist/use-mobile-DZvv7QMR.js +0 -4359
- package/dist/use-mobile-DdI_TXam.cjs +0 -4235
- package/dist/use-mobile-DlceKf8a.js +0 -4359
- package/dist/use-mobile-DsOnow1o.cjs +0 -4236
- package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
- package/dist/use-mobile-bnKcua_i.js +0 -4202
- package/dist/use-mobile-j4w2Jrf1.js +0 -30
- package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
- package/dist/use-rich-text-editor-DjiddBGv.js +0 -282
- package/dist/use-rich-text-editor-lpeswbCs.cjs +0 -281
- package/dist/xertica-assistant-BdiZag0h.js +0 -2187
- package/dist/xertica-assistant-CrgTb6Hs.cjs +0 -2155
- package/dist/xertica-assistant-DCsnQyi5.js +0 -2156
- package/dist/xertica-assistant-DUBpmEgo.cjs +0 -2186
- package/dist/{rich-text-editor-DgF8s7xW.js → rich-text-editor-BmsjY03B.js} +26 -26
- package/dist/{rich-text-editor-mWoaSCE4.cjs → rich-text-editor-GS2kpTAK.cjs} +26 -26
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from
|
|
2
|
-
import React__default, { useState, createContext, useContext, useMemo, useRef, useCallback, useEffect } from
|
|
3
|
-
import { B as Button, c as cn } from
|
|
4
|
-
import { I as Input, S as ScrollArea } from
|
|
5
|
-
import { I as ImageWithFallback, L as Label, P as PageHeader, M as Map, C as Checkbox, S as Separator, T as Tabs, p as TabsList, q as TabsTrigger, o as TabsContent, n as Switch, R as RadioGroup, m as RadioGroupItem, A as AlertDialog, j as AlertDialogTrigger, c as AlertDialogContent, f as AlertDialogHeader, i as AlertDialogTitle, d as AlertDialogDescription, e as AlertDialogFooter, b as AlertDialogCancel, a as AlertDialogAction } from
|
|
6
|
-
import { L as LanguageSelector, X as XerticaLogo } from
|
|
7
|
-
import { ArrowLeft, Lock, FileText, Home, CheckCircle2, AlertCircle, Coffee, ShoppingBag, Landmark, Hotel, Utensils, MapPin, Filter, X, MousePointer2, Circle, Square, Hexagon, Undo, Trash2, Save, Check, Pencil, Layers, Settings, Users, Mail, Phone, Search, User, Calendar, Bell, FileEdit, ArrowRightLeft, Clock, Plus, Archive, Map as Map$1 } from
|
|
8
|
-
import { useNavigate, Link, useLocation } from
|
|
9
|
-
import { H as Header, S as Sidebar } from
|
|
10
|
-
import { C as Card, e as CardHeader, f as CardTitle, b as CardContent, d as CardFooter, c as CardDescription, S as Skeleton } from
|
|
11
|
-
import { B as Badge, P as Progress } from
|
|
12
|
-
import { a as useOptionalLayout } from
|
|
13
|
-
import { u as useLanguage } from
|
|
14
|
-
import { useQuery } from
|
|
15
|
-
import { useTranslation } from
|
|
16
|
-
import { F as FeatureCardSkeleton } from
|
|
17
|
-
import { X as XerticaAssistant, g as gerarResposta } from
|
|
18
|
-
import i18n from
|
|
19
|
-
import { k as Dialog, n as DialogContent, q as DialogHeader, t as DialogTitle, o as DialogDescription, A as Alert, b as AlertTitle, a as AlertDescription, V as Textarea, T as Table, Q as TableHeader, U as TableRow, O as TableHead, K as TableBody, M as TableCell, u as DialogTrigger, p as DialogFooter } from
|
|
20
|
-
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from
|
|
21
|
-
import { S as Slider } from
|
|
22
|
-
import { toast } from
|
|
23
|
-
import { create } from
|
|
24
|
-
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { useState, createContext, useContext, useMemo, useRef, useCallback, useEffect } from "react";
|
|
3
|
+
import { B as Button, c as cn } from "./button-C6uvh0rV.js";
|
|
4
|
+
import { I as Input, S as ScrollArea } from "./input-wPYg0d0P.js";
|
|
5
|
+
import { I as ImageWithFallback, L as Label, P as PageHeader, M as Map, C as Checkbox, S as Separator, T as Tabs, p as TabsList, q as TabsTrigger, o as TabsContent, n as Switch, R as RadioGroup, m as RadioGroupItem, A as AlertDialog, j as AlertDialogTrigger, c as AlertDialogContent, f as AlertDialogHeader, i as AlertDialogTitle, d as AlertDialogDescription, e as AlertDialogFooter, b as AlertDialogCancel, a as AlertDialogAction } from "./alert-dialog-KpoabzJb.js";
|
|
6
|
+
import { L as LanguageSelector, X as XerticaLogo } from "./XerticaXLogo-DHz5SugF.js";
|
|
7
|
+
import { ArrowLeft, Lock, FileText, Home, CheckCircle2, AlertCircle, Coffee, ShoppingBag, Landmark, Hotel, Utensils, MapPin, Filter, X, MousePointer2, Circle, Square, Hexagon, Undo, Trash2, Save, Check, Pencil, Layers, Settings, Users, Mail, Phone, Search, User, Calendar, Bell, FileEdit, ArrowRightLeft, Clock, Plus, Archive, Map as Map$1 } from "lucide-react";
|
|
8
|
+
import { useNavigate, Link, useLocation } from "react-router-dom";
|
|
9
|
+
import { H as Header, S as Sidebar } from "./sidebar-CA6_ek3f.js";
|
|
10
|
+
import { C as Card, e as CardHeader, f as CardTitle, b as CardContent, d as CardFooter, c as CardDescription, S as Skeleton } from "./skeleton-C4bHqUBf.js";
|
|
11
|
+
import { B as Badge, P as Progress } from "./progress-Cs9i4DPx.js";
|
|
12
|
+
import { a as useOptionalLayout } from "./LayoutContext-CGEe1oPq.js";
|
|
13
|
+
import { u as useLanguage } from "./ThemeContext-Du2nE1PL.js";
|
|
14
|
+
import { useQuery } from "@tanstack/react-query";
|
|
15
|
+
import { useTranslation } from "react-i18next";
|
|
16
|
+
import { F as FeatureCardSkeleton } from "./FeatureCardSkeleton-CAgu8stE.js";
|
|
17
|
+
import { X as XerticaAssistant, g as gerarResposta } from "./xertica-assistant-BbgzsgsG.js";
|
|
18
|
+
import i18n from "i18next";
|
|
19
|
+
import { k as Dialog, n as DialogContent, q as DialogHeader, t as DialogTitle, o as DialogDescription, A as Alert, b as AlertTitle, a as AlertDescription, V as Textarea, T as Table, Q as TableHeader, U as TableRow, O as TableHead, K as TableBody, M as TableCell, u as DialogTrigger, p as DialogFooter } from "./rich-text-editor-1UW3Y2JK.js";
|
|
20
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from "./select-CprSNX0z.js";
|
|
21
|
+
import { S as Slider } from "./slider-Pay3fka2.js";
|
|
22
|
+
import { toast } from "sonner";
|
|
23
|
+
import { create } from "zustand";
|
|
25
24
|
function ForgotPasswordPage() {
|
|
26
25
|
const navigate = useNavigate();
|
|
27
26
|
const [email, setEmail] = useState("");
|
|
@@ -175,9 +174,7 @@ function ForgotPasswordPage() {
|
|
|
175
174
|
] })
|
|
176
175
|
] });
|
|
177
176
|
}
|
|
178
|
-
|
|
179
177
|
const SIDEBAR_COLLAPSED_WIDTH = 80;
|
|
180
|
-
|
|
181
178
|
const t = (key, options) => i18n.t(key, options);
|
|
182
179
|
const MOCK_TEAM_MEMBERS = [
|
|
183
180
|
{ id: "1", name: "Ana Silva", email: "ana.silva@example.com", role: "Developer", status: "active" },
|
|
@@ -201,7 +198,6 @@ async function fetchFeatureCards() {
|
|
|
201
198
|
}
|
|
202
199
|
];
|
|
203
200
|
}
|
|
204
|
-
|
|
205
201
|
function useTeamMembers() {
|
|
206
202
|
const { language } = useLanguage();
|
|
207
203
|
return useQuery({
|
|
@@ -212,7 +208,6 @@ function useTeamMembers() {
|
|
|
212
208
|
// 2 min
|
|
213
209
|
});
|
|
214
210
|
}
|
|
215
|
-
|
|
216
211
|
function useFeatureCards() {
|
|
217
212
|
const { language } = useLanguage();
|
|
218
213
|
return useQuery({
|
|
@@ -223,7 +218,6 @@ function useFeatureCards() {
|
|
|
223
218
|
// 10 min — feature list is fairly static
|
|
224
219
|
});
|
|
225
220
|
}
|
|
226
|
-
|
|
227
221
|
const useDashboardStore = create((set) => ({
|
|
228
222
|
// Filters
|
|
229
223
|
activeTab: "overview",
|
|
@@ -239,7 +233,6 @@ const useDashboardStore = create((set) => ({
|
|
|
239
233
|
switchEnabled: false,
|
|
240
234
|
toggleSwitch: () => set((state) => ({ switchEnabled: !state.switchEnabled }))
|
|
241
235
|
}));
|
|
242
|
-
|
|
243
236
|
function isDev() {
|
|
244
237
|
return false;
|
|
245
238
|
}
|
|
@@ -286,7 +279,6 @@ function SectionErrorFallback({ error, reset }) {
|
|
|
286
279
|
}
|
|
287
280
|
);
|
|
288
281
|
}
|
|
289
|
-
|
|
290
282
|
class ErrorBoundary extends React__default.Component {
|
|
291
283
|
constructor(props) {
|
|
292
284
|
super(props);
|
|
@@ -297,12 +289,13 @@ class ErrorBoundary extends React__default.Component {
|
|
|
297
289
|
return { hasError: true, error };
|
|
298
290
|
}
|
|
299
291
|
componentDidCatch(error, info) {
|
|
300
|
-
|
|
292
|
+
var _a, _b;
|
|
293
|
+
(_b = (_a = this.props).onError) == null ? void 0 : _b.call(_a, error, info);
|
|
301
294
|
}
|
|
302
295
|
componentDidUpdate(prevProps) {
|
|
303
296
|
if (!this.state.hasError) return;
|
|
304
297
|
const { resetKeys } = this.props;
|
|
305
|
-
if (!resetKeys
|
|
298
|
+
if (!(resetKeys == null ? void 0 : resetKeys.length)) return;
|
|
306
299
|
const prevKeys = prevProps.resetKeys ?? [];
|
|
307
300
|
const changed = resetKeys.some((key, i) => key !== prevKeys[i]);
|
|
308
301
|
if (changed) this.reset();
|
|
@@ -322,12 +315,11 @@ class ErrorBoundary extends React__default.Component {
|
|
|
322
315
|
function SectionErrorBoundary({ children, onError, resetKeys }) {
|
|
323
316
|
return /* @__PURE__ */ jsx(ErrorBoundary, { fallback: SectionErrorFallback, onError, resetKeys, children });
|
|
324
317
|
}
|
|
325
|
-
|
|
326
318
|
function HomeContent() {
|
|
327
|
-
const { t } = useTranslation();
|
|
319
|
+
const { t: t2 } = useTranslation();
|
|
328
320
|
const layout = useOptionalLayout();
|
|
329
|
-
const sidebarExpanded = layout
|
|
330
|
-
const sidebarWidth = layout
|
|
321
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? false;
|
|
322
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 256;
|
|
331
323
|
const navigate = useNavigate();
|
|
332
324
|
const { data: featureCards = [], isLoading } = useFeatureCards();
|
|
333
325
|
return /* @__PURE__ */ jsxs(
|
|
@@ -344,8 +336,8 @@ function HomeContent() {
|
|
|
344
336
|
showThemeToggle: true,
|
|
345
337
|
showLanguageSelector: true,
|
|
346
338
|
breadcrumbs: [
|
|
347
|
-
{ label:
|
|
348
|
-
{ label:
|
|
339
|
+
{ label: t2("nav.designSystem"), href: "/home" },
|
|
340
|
+
{ label: t2("nav.home") }
|
|
349
341
|
],
|
|
350
342
|
renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props })
|
|
351
343
|
}
|
|
@@ -354,8 +346,8 @@ function HomeContent() {
|
|
|
354
346
|
/* @__PURE__ */ jsx(
|
|
355
347
|
PageHeader,
|
|
356
348
|
{
|
|
357
|
-
title:
|
|
358
|
-
subtitle:
|
|
349
|
+
title: t2("home.welcome"),
|
|
350
|
+
subtitle: t2("home.subtitle")
|
|
359
351
|
}
|
|
360
352
|
),
|
|
361
353
|
/* @__PURE__ */ jsx(SectionErrorBoundary, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -370,18 +362,18 @@ function HomeContent() {
|
|
|
370
362
|
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
371
363
|
/* @__PURE__ */ jsx("div", { className: "p-2 bg-[var(--chart-2)]/20 rounded-[var(--radius)]", children: /* @__PURE__ */ jsx(FileText, { className: "w-6 h-6 text-[var(--chart-2)]" }) }),
|
|
372
364
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
373
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children:
|
|
374
|
-
card.badge && /* @__PURE__ */ jsx(Badge, { variant: "default", className: "text-xs", children:
|
|
365
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: t2(`home.${card.id.replace(/-/g, "")}Title`, { defaultValue: card.title }) }),
|
|
366
|
+
card.badge && /* @__PURE__ */ jsx(Badge, { variant: "default", className: "text-xs", children: t2(`home.${card.id.replace(/-/g, "")}badge`, { defaultValue: card.badge }) })
|
|
375
367
|
] })
|
|
376
368
|
] }) }),
|
|
377
|
-
/* @__PURE__ */ jsx(CardContent, { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children:
|
|
369
|
+
/* @__PURE__ */ jsx(CardContent, { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: t2(`home.${card.id.replace(/-/g, "")}Description`, { defaultValue: card.description }) }) }),
|
|
378
370
|
/* @__PURE__ */ jsx(CardFooter, { children: /* @__PURE__ */ jsx(
|
|
379
371
|
Button,
|
|
380
372
|
{
|
|
381
373
|
variant: "outline",
|
|
382
374
|
className: "w-full",
|
|
383
375
|
onClick: () => navigate(card.href),
|
|
384
|
-
children:
|
|
376
|
+
children: t2("common.view")
|
|
385
377
|
}
|
|
386
378
|
) })
|
|
387
379
|
]
|
|
@@ -393,39 +385,36 @@ function HomeContent() {
|
|
|
393
385
|
}
|
|
394
386
|
);
|
|
395
387
|
}
|
|
396
|
-
|
|
397
388
|
const routes = [
|
|
398
389
|
{ path: "/home", label: "Home", icon: Home },
|
|
399
390
|
{ path: "/template", label: "Template", icon: FileText }
|
|
400
391
|
];
|
|
401
|
-
|
|
402
392
|
const AuthContext = createContext(null);
|
|
403
393
|
function useAuth() {
|
|
404
394
|
const ctx = useContext(AuthContext);
|
|
405
395
|
if (!ctx) throw new Error("useAuth must be used within <AuthProvider>");
|
|
406
396
|
return ctx;
|
|
407
397
|
}
|
|
408
|
-
|
|
409
398
|
async function fetchAssistantConfig() {
|
|
410
399
|
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
411
|
-
const
|
|
400
|
+
const t2 = (key) => i18n.t(key);
|
|
412
401
|
return {
|
|
413
402
|
suggestions: [
|
|
414
|
-
{ id: "1", text:
|
|
415
|
-
{ id: "2", text:
|
|
416
|
-
{ id: "3", text:
|
|
417
|
-
{ id: "4", text:
|
|
403
|
+
{ id: "1", text: t2("assistant.suggestions.whatCanIAsk") },
|
|
404
|
+
{ id: "2", text: t2("assistant.suggestions.whatDoYouDo") },
|
|
405
|
+
{ id: "3", text: t2("assistant.suggestions.whichProjects") },
|
|
406
|
+
{ id: "4", text: t2("assistant.suggestions.nextProject") }
|
|
418
407
|
],
|
|
419
408
|
richSuggestions: [
|
|
420
|
-
{ id: "rich-1", text:
|
|
421
|
-
{ id: "rich-2", text:
|
|
422
|
-
{ id: "rich-3", text:
|
|
423
|
-
{ id: "rich-4", text:
|
|
409
|
+
{ id: "rich-1", text: t2("assistant.richSuggestions.viewPerformance") },
|
|
410
|
+
{ id: "rich-2", text: t2("assistant.richSuggestions.generateReport") },
|
|
411
|
+
{ id: "rich-3", text: t2("assistant.richSuggestions.createDocument") },
|
|
412
|
+
{ id: "rich-4", text: t2("assistant.richSuggestions.generatePodcast") }
|
|
424
413
|
],
|
|
425
414
|
feedbackOptions: [
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
415
|
+
t2("assistant.feedback.notWhatIWanted"),
|
|
416
|
+
t2("assistant.feedback.incorrectInfo"),
|
|
417
|
+
t2("assistant.feedback.incompleteAnswer")
|
|
429
418
|
]
|
|
430
419
|
};
|
|
431
420
|
}
|
|
@@ -444,7 +433,6 @@ function getMockFeedbackOptions() {
|
|
|
444
433
|
i18n.t("assistant.feedback.incompleteAnswer")
|
|
445
434
|
];
|
|
446
435
|
}
|
|
447
|
-
|
|
448
436
|
function useAssistantConfig() {
|
|
449
437
|
const { language } = useLanguage();
|
|
450
438
|
return useQuery({
|
|
@@ -455,17 +443,16 @@ function useAssistantConfig() {
|
|
|
455
443
|
// 30 min — config rarely changes
|
|
456
444
|
});
|
|
457
445
|
}
|
|
458
|
-
|
|
459
446
|
function HomePage() {
|
|
460
447
|
const { user, logout } = useAuth();
|
|
461
448
|
const layout = useOptionalLayout();
|
|
462
449
|
const [localSidebarExpanded, setLocalSidebarExpanded] = React__default.useState(false);
|
|
463
450
|
const [localAssistantExpanded, setLocalAssistantExpanded] = React__default.useState(false);
|
|
464
|
-
const sidebarExpanded = layout
|
|
465
|
-
const sidebarWidth = layout
|
|
466
|
-
const assistenteExpanded = layout
|
|
467
|
-
const toggleSidebar = layout
|
|
468
|
-
const toggleAssistente = layout
|
|
451
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
|
|
452
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
|
|
453
|
+
const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
|
|
454
|
+
const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
|
|
455
|
+
const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
|
|
469
456
|
const location = useLocation();
|
|
470
457
|
const navigate = useNavigate();
|
|
471
458
|
const { data: assistantConfig } = useAssistantConfig();
|
|
@@ -497,19 +484,18 @@ function HomePage() {
|
|
|
497
484
|
defaultTab: "chat",
|
|
498
485
|
demoMode: true,
|
|
499
486
|
responseGenerator: gerarResposta,
|
|
500
|
-
suggestions: assistantConfig
|
|
501
|
-
richSuggestions: assistantConfig
|
|
502
|
-
feedbackOptions: assistantConfig
|
|
487
|
+
suggestions: assistantConfig == null ? void 0 : assistantConfig.suggestions,
|
|
488
|
+
richSuggestions: (assistantConfig == null ? void 0 : assistantConfig.richSuggestions) ?? getMockRichSuggestions(),
|
|
489
|
+
feedbackOptions: (assistantConfig == null ? void 0 : assistantConfig.feedbackOptions) ?? getMockFeedbackOptions(),
|
|
503
490
|
onEvaluation: () => {
|
|
504
491
|
}
|
|
505
492
|
}
|
|
506
493
|
)
|
|
507
494
|
] });
|
|
508
495
|
}
|
|
509
|
-
|
|
510
496
|
function LoginPage({ onLogin }) {
|
|
511
497
|
const navigate = useNavigate();
|
|
512
|
-
const { t } = useTranslation();
|
|
498
|
+
const { t: t2 } = useTranslation();
|
|
513
499
|
const [email, setEmail] = useState("");
|
|
514
500
|
const [password, setPassword] = useState("");
|
|
515
501
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -521,7 +507,7 @@ function LoginPage({ onLogin }) {
|
|
|
521
507
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
522
508
|
const success = onLogin(email, password);
|
|
523
509
|
if (!success) {
|
|
524
|
-
setError(
|
|
510
|
+
setError(t2("login.errorFillFields"));
|
|
525
511
|
}
|
|
526
512
|
setIsLoading(false);
|
|
527
513
|
};
|
|
@@ -534,7 +520,7 @@ function LoginPage({ onLogin }) {
|
|
|
534
520
|
ImageWithFallback,
|
|
535
521
|
{
|
|
536
522
|
src: "https://images.unsplash.com/photo-1551434678-e076c223a692?w=1200&h=800&fit=crop&auto=format",
|
|
537
|
-
alt:
|
|
523
|
+
alt: t2("login.heroImageAlt"),
|
|
538
524
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
539
525
|
}
|
|
540
526
|
),
|
|
@@ -552,11 +538,11 @@ function LoginPage({ onLogin }) {
|
|
|
552
538
|
variant: "theme"
|
|
553
539
|
}
|
|
554
540
|
) }),
|
|
555
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children:
|
|
541
|
+
/* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: t2("login.heading") })
|
|
556
542
|
] }),
|
|
557
543
|
/* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
|
|
558
544
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
559
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "email", children:
|
|
545
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "email", children: t2("login.emailLabel") }),
|
|
560
546
|
/* @__PURE__ */ jsx(
|
|
561
547
|
Input,
|
|
562
548
|
{
|
|
@@ -565,14 +551,14 @@ function LoginPage({ onLogin }) {
|
|
|
565
551
|
type: "email",
|
|
566
552
|
required: true,
|
|
567
553
|
className: "w-full",
|
|
568
|
-
placeholder:
|
|
554
|
+
placeholder: t2("login.emailPlaceholder"),
|
|
569
555
|
value: email,
|
|
570
556
|
onChange: (e) => setEmail(e.target.value)
|
|
571
557
|
}
|
|
572
558
|
)
|
|
573
559
|
] }),
|
|
574
560
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
575
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "password", children:
|
|
561
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "password", children: t2("login.passwordLabel") }),
|
|
576
562
|
/* @__PURE__ */ jsx(
|
|
577
563
|
Input,
|
|
578
564
|
{
|
|
@@ -588,20 +574,20 @@ function LoginPage({ onLogin }) {
|
|
|
588
574
|
)
|
|
589
575
|
] }),
|
|
590
576
|
error && /* @__PURE__ */ jsx("div", { className: "text-destructive text-sm text-center", children: error }),
|
|
591
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ?
|
|
577
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? t2("login.submitting") : t2("login.submit") }),
|
|
592
578
|
/* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(
|
|
593
579
|
"button",
|
|
594
580
|
{
|
|
595
581
|
type: "button",
|
|
596
582
|
onClick: () => navigate("/forgot-password"),
|
|
597
583
|
className: "text-sm text-primary hover:opacity-80 transition-colors",
|
|
598
|
-
children:
|
|
584
|
+
children: t2("login.forgotPassword")
|
|
599
585
|
}
|
|
600
586
|
) })
|
|
601
587
|
] }),
|
|
602
588
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
603
589
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
|
|
604
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children:
|
|
590
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: t2("login.orContinueWith") }) })
|
|
605
591
|
] }),
|
|
606
592
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
607
593
|
/* @__PURE__ */ jsxs(
|
|
@@ -643,7 +629,7 @@ function LoginPage({ onLogin }) {
|
|
|
643
629
|
),
|
|
644
630
|
/* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
|
|
645
631
|
] }),
|
|
646
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
632
|
+
/* @__PURE__ */ jsx("span", { children: t2("login.signInWithGoogle") })
|
|
647
633
|
]
|
|
648
634
|
}
|
|
649
635
|
),
|
|
@@ -656,7 +642,7 @@ function LoginPage({ onLogin }) {
|
|
|
656
642
|
onClick: () => handleSocialLogin(),
|
|
657
643
|
children: [
|
|
658
644
|
/* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
|
|
659
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
645
|
+
/* @__PURE__ */ jsx("span", { children: t2("login.signInWithMTLogin") })
|
|
660
646
|
]
|
|
661
647
|
}
|
|
662
648
|
),
|
|
@@ -667,7 +653,7 @@ function LoginPage({ onLogin }) {
|
|
|
667
653
|
variant: "outline",
|
|
668
654
|
className: "w-full justify-center font-normal",
|
|
669
655
|
onClick: () => handleSocialLogin(),
|
|
670
|
-
children: /* @__PURE__ */ jsx("span", { children:
|
|
656
|
+
children: /* @__PURE__ */ jsx("span", { children: t2("login.signInWithGovBr") })
|
|
671
657
|
}
|
|
672
658
|
)
|
|
673
659
|
] })
|
|
@@ -675,10 +661,9 @@ function LoginPage({ onLogin }) {
|
|
|
675
661
|
] })
|
|
676
662
|
] });
|
|
677
663
|
}
|
|
678
|
-
|
|
679
664
|
function ResetPasswordPage() {
|
|
680
665
|
const navigate = useNavigate();
|
|
681
|
-
const { t } = useTranslation();
|
|
666
|
+
const { t: t2 } = useTranslation();
|
|
682
667
|
const [password, setPassword] = useState("");
|
|
683
668
|
const [confirmPassword, setConfirmPassword] = useState("");
|
|
684
669
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -708,11 +693,11 @@ function ResetPasswordPage() {
|
|
|
708
693
|
e.preventDefault();
|
|
709
694
|
setError("");
|
|
710
695
|
if (password.length < 6) {
|
|
711
|
-
setError(
|
|
696
|
+
setError(t2("resetPassword.errorMinLength"));
|
|
712
697
|
return;
|
|
713
698
|
}
|
|
714
699
|
if (password !== confirmPassword) {
|
|
715
|
-
setError(
|
|
700
|
+
setError(t2("resetPassword.errorMismatch"));
|
|
716
701
|
return;
|
|
717
702
|
}
|
|
718
703
|
setIsLoading(true);
|
|
@@ -735,11 +720,11 @@ function ResetPasswordPage() {
|
|
|
735
720
|
const getStrengthText = () => {
|
|
736
721
|
switch (passwordStrength) {
|
|
737
722
|
case "weak":
|
|
738
|
-
return
|
|
723
|
+
return t2("resetPassword.strengthWeak");
|
|
739
724
|
case "medium":
|
|
740
|
-
return
|
|
725
|
+
return t2("resetPassword.strengthMedium");
|
|
741
726
|
case "strong":
|
|
742
|
-
return
|
|
727
|
+
return t2("resetPassword.strengthStrong");
|
|
743
728
|
default:
|
|
744
729
|
return "";
|
|
745
730
|
}
|
|
@@ -750,7 +735,7 @@ function ResetPasswordPage() {
|
|
|
750
735
|
ImageWithFallback,
|
|
751
736
|
{
|
|
752
737
|
src: "https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop&auto=format",
|
|
753
|
-
alt:
|
|
738
|
+
alt: t2("resetPassword.heroImageAlt"),
|
|
754
739
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
755
740
|
}
|
|
756
741
|
),
|
|
@@ -767,7 +752,7 @@ function ResetPasswordPage() {
|
|
|
767
752
|
className: "flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",
|
|
768
753
|
children: [
|
|
769
754
|
/* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4" }),
|
|
770
|
-
/* @__PURE__ */ jsx("span", { className: "text-small", children:
|
|
755
|
+
/* @__PURE__ */ jsx("span", { className: "text-small", children: t2("resetPassword.backToLogin") })
|
|
771
756
|
]
|
|
772
757
|
}
|
|
773
758
|
),
|
|
@@ -779,12 +764,12 @@ function ResetPasswordPage() {
|
|
|
779
764
|
variant: "theme"
|
|
780
765
|
}
|
|
781
766
|
) }),
|
|
782
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children:
|
|
783
|
-
/* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children:
|
|
767
|
+
/* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: t2("resetPassword.heading") }),
|
|
768
|
+
/* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: t2("resetPassword.subheading") })
|
|
784
769
|
] }),
|
|
785
770
|
/* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
|
|
786
771
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
787
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "password", children:
|
|
772
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "password", children: t2("resetPassword.newPasswordLabel") }),
|
|
788
773
|
/* @__PURE__ */ jsx(
|
|
789
774
|
Input,
|
|
790
775
|
{
|
|
@@ -809,7 +794,7 @@ function ResetPasswordPage() {
|
|
|
809
794
|
] })
|
|
810
795
|
] }),
|
|
811
796
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
812
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "confirmPassword", children:
|
|
797
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "confirmPassword", children: t2("resetPassword.confirmPasswordLabel") }),
|
|
813
798
|
/* @__PURE__ */ jsx(
|
|
814
799
|
Input,
|
|
815
800
|
{
|
|
@@ -828,7 +813,7 @@ function ResetPasswordPage() {
|
|
|
828
813
|
)
|
|
829
814
|
] }),
|
|
830
815
|
/* @__PURE__ */ jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-2", children: [
|
|
831
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm", children:
|
|
816
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm", children: t2("resetPassword.requirements") }),
|
|
832
817
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
833
818
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
834
819
|
/* @__PURE__ */ jsx(
|
|
@@ -837,7 +822,7 @@ function ResetPasswordPage() {
|
|
|
837
822
|
className: `w-4 h-4 ${password.length >= 6 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
|
|
838
823
|
}
|
|
839
824
|
),
|
|
840
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children:
|
|
825
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: t2("resetPassword.requirementMinChars") })
|
|
841
826
|
] }),
|
|
842
827
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
843
828
|
/* @__PURE__ */ jsx(
|
|
@@ -846,7 +831,7 @@ function ResetPasswordPage() {
|
|
|
846
831
|
className: `w-4 h-4 ${password === confirmPassword && password.length > 0 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
|
|
847
832
|
}
|
|
848
833
|
),
|
|
849
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children:
|
|
834
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: t2("resetPassword.requirementMatch") })
|
|
850
835
|
] })
|
|
851
836
|
] })
|
|
852
837
|
] }),
|
|
@@ -854,13 +839,12 @@ function ResetPasswordPage() {
|
|
|
854
839
|
/* @__PURE__ */ jsx(AlertCircle, { className: "w-4 h-4 flex-shrink-0" }),
|
|
855
840
|
/* @__PURE__ */ jsx("span", { className: "text-sm", children: error })
|
|
856
841
|
] }),
|
|
857
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ?
|
|
842
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? t2("resetPassword.submitting") : t2("resetPassword.submit") })
|
|
858
843
|
] })
|
|
859
844
|
] })
|
|
860
845
|
] })
|
|
861
846
|
] });
|
|
862
847
|
}
|
|
863
|
-
|
|
864
848
|
function createLucideIconSvg(iconName) {
|
|
865
849
|
const iconPaths = {
|
|
866
850
|
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>',
|
|
@@ -1189,7 +1173,6 @@ function FilterableMapExample({ apiKey }) {
|
|
|
1189
1173
|
] })
|
|
1190
1174
|
] });
|
|
1191
1175
|
}
|
|
1192
|
-
|
|
1193
1176
|
function DrawingMapExample({ apiKey }) {
|
|
1194
1177
|
const [mapInstance, setMapInstance] = useState(null);
|
|
1195
1178
|
const [selectedMode, setSelectedMode] = useState(null);
|
|
@@ -1306,6 +1289,7 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1306
1289
|
}, [mapInstance, colors, cancelPolygonDrawing]);
|
|
1307
1290
|
const addPolygonPoint = useCallback(
|
|
1308
1291
|
(point) => {
|
|
1292
|
+
var _a;
|
|
1309
1293
|
if (!mapInstance) return;
|
|
1310
1294
|
if (!isDrawingPolygon) {
|
|
1311
1295
|
setIsDrawingPolygon(true);
|
|
@@ -1325,7 +1309,7 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1325
1309
|
});
|
|
1326
1310
|
} else {
|
|
1327
1311
|
polygonPathRef.current.push(point);
|
|
1328
|
-
tempPolylineRef.current
|
|
1312
|
+
(_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
|
|
1329
1313
|
}
|
|
1330
1314
|
},
|
|
1331
1315
|
[mapInstance, isDrawingPolygon, colors]
|
|
@@ -1398,10 +1382,11 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1398
1382
|
toast.info("Mapa limpo");
|
|
1399
1383
|
};
|
|
1400
1384
|
const undoLast = () => {
|
|
1385
|
+
var _a;
|
|
1401
1386
|
if (isDrawingPolygon) {
|
|
1402
1387
|
if (polygonPathRef.current.length > 0) {
|
|
1403
1388
|
polygonPathRef.current.pop();
|
|
1404
|
-
tempPolylineRef.current
|
|
1389
|
+
(_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
|
|
1405
1390
|
if (polygonPathRef.current.length === 0) {
|
|
1406
1391
|
cancelPolygonDrawing();
|
|
1407
1392
|
}
|
|
@@ -1420,6 +1405,7 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1420
1405
|
return;
|
|
1421
1406
|
}
|
|
1422
1407
|
const exportData = shapes.map((s) => {
|
|
1408
|
+
var _a, _b;
|
|
1423
1409
|
let data = {};
|
|
1424
1410
|
if (s.type === "marker") {
|
|
1425
1411
|
const marker = s.overlay;
|
|
@@ -1432,17 +1418,17 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1432
1418
|
} else if (s.type === "circle") {
|
|
1433
1419
|
const circle = s.overlay;
|
|
1434
1420
|
data = {
|
|
1435
|
-
center: { lat: circle.getCenter()
|
|
1421
|
+
center: { lat: (_a = circle.getCenter()) == null ? void 0 : _a.lat(), lng: (_b = circle.getCenter()) == null ? void 0 : _b.lng() },
|
|
1436
1422
|
radius: circle.getRadius()
|
|
1437
1423
|
};
|
|
1438
1424
|
} else if (s.type === "rectangle") {
|
|
1439
1425
|
const rect = s.overlay;
|
|
1440
1426
|
const bounds = rect.getBounds();
|
|
1441
1427
|
data = {
|
|
1442
|
-
north: bounds
|
|
1443
|
-
south: bounds
|
|
1444
|
-
east: bounds
|
|
1445
|
-
west: bounds
|
|
1428
|
+
north: bounds == null ? void 0 : bounds.getNorthEast().lat(),
|
|
1429
|
+
south: bounds == null ? void 0 : bounds.getSouthWest().lat(),
|
|
1430
|
+
east: bounds == null ? void 0 : bounds.getNorthEast().lng(),
|
|
1431
|
+
west: bounds == null ? void 0 : bounds.getSouthWest().lng()
|
|
1446
1432
|
};
|
|
1447
1433
|
} else if (s.type === "polygon") {
|
|
1448
1434
|
const poly = s.overlay;
|
|
@@ -1661,7 +1647,6 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1661
1647
|
] })
|
|
1662
1648
|
] });
|
|
1663
1649
|
}
|
|
1664
|
-
|
|
1665
1650
|
function MapShowcase() {
|
|
1666
1651
|
const [activeTab, setActiveTab] = useState("simple");
|
|
1667
1652
|
const [isTransitioning, setIsTransitioning] = useState(false);
|
|
@@ -2057,16 +2042,15 @@ function MapShowcase() {
|
|
|
2057
2042
|
] })
|
|
2058
2043
|
] });
|
|
2059
2044
|
}
|
|
2060
|
-
|
|
2061
2045
|
function TemplateContent() {
|
|
2062
|
-
const { t } = useTranslation();
|
|
2046
|
+
const { t: t2 } = useTranslation();
|
|
2063
2047
|
const layout = useOptionalLayout();
|
|
2064
2048
|
const [localSidebarExpanded, setLocalSidebarExpanded] = useState(false);
|
|
2065
2049
|
const [localSidebarWidth, setLocalSidebarWidth] = useState(280);
|
|
2066
|
-
const sidebarExpanded = layout
|
|
2067
|
-
const sidebarWidth = layout
|
|
2068
|
-
const setSidebarWidth = layout
|
|
2069
|
-
layout
|
|
2050
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
|
|
2051
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? localSidebarWidth;
|
|
2052
|
+
const setSidebarWidth = (layout == null ? void 0 : layout.setSidebarWidth) ?? setLocalSidebarWidth;
|
|
2053
|
+
(layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
|
|
2070
2054
|
useNavigate();
|
|
2071
2055
|
const { data: teamMembers = [], isLoading: teamLoading } = useTeamMembers();
|
|
2072
2056
|
const progress = useDashboardStore((s) => s.progress);
|
|
@@ -2082,7 +2066,7 @@ function TemplateContent() {
|
|
|
2082
2066
|
const [showHeaderBreadcrumbs, setShowHeaderBreadcrumbs] = useState(true);
|
|
2083
2067
|
const handleFormSubmit = (e) => {
|
|
2084
2068
|
e.preventDefault();
|
|
2085
|
-
toast.success(
|
|
2069
|
+
toast.success("Form submitted successfully!");
|
|
2086
2070
|
};
|
|
2087
2071
|
return /* @__PURE__ */ jsxs(
|
|
2088
2072
|
"div",
|
|
@@ -2098,8 +2082,8 @@ function TemplateContent() {
|
|
|
2098
2082
|
showThemeToggle: true,
|
|
2099
2083
|
showLanguageSelector: true,
|
|
2100
2084
|
breadcrumbs: [
|
|
2101
|
-
{ label:
|
|
2102
|
-
{ label:
|
|
2085
|
+
{ label: "Design System", href: "/home", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
|
|
2086
|
+
{ label: "Página de Template" }
|
|
2103
2087
|
],
|
|
2104
2088
|
renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props })
|
|
2105
2089
|
}
|
|
@@ -2108,16 +2092,16 @@ function TemplateContent() {
|
|
|
2108
2092
|
/* @__PURE__ */ jsx(
|
|
2109
2093
|
PageHeader,
|
|
2110
2094
|
{
|
|
2111
|
-
title:
|
|
2112
|
-
subtitle:
|
|
2095
|
+
title: "Página de Template",
|
|
2096
|
+
subtitle: "Template completo com componentes do Design System"
|
|
2113
2097
|
}
|
|
2114
2098
|
),
|
|
2115
2099
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2116
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2100
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Header with Breadcrumbs" }),
|
|
2117
2101
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2118
2102
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2119
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2120
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2103
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Main Header" }),
|
|
2104
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Example of Header with 4-level breadcrumbs" })
|
|
2121
2105
|
] }),
|
|
2122
2106
|
/* @__PURE__ */ jsxs(CardContent, { className: "p-0 border-t bg-background overflow-hidden rounded-b-[var(--radius-lg)]", children: [
|
|
2123
2107
|
/* @__PURE__ */ jsx(
|
|
@@ -2125,21 +2109,21 @@ function TemplateContent() {
|
|
|
2125
2109
|
{
|
|
2126
2110
|
className: "border-b",
|
|
2127
2111
|
breadcrumbs: [
|
|
2128
|
-
{ label:
|
|
2129
|
-
{ label:
|
|
2130
|
-
{ label:
|
|
2131
|
-
{ label:
|
|
2112
|
+
{ label: "Dashboard", href: "#", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
|
|
2113
|
+
{ label: "Settings", href: "#", icon: /* @__PURE__ */ jsx(Settings, { className: "w-4 h-4" }) },
|
|
2114
|
+
{ label: "Users", href: "#", icon: /* @__PURE__ */ jsx(Users, { className: "w-4 h-4" }) },
|
|
2115
|
+
{ label: "Access Profile" }
|
|
2132
2116
|
],
|
|
2133
2117
|
showLanguageSelector: true,
|
|
2134
2118
|
showThemeToggle: true
|
|
2135
2119
|
}
|
|
2136
2120
|
),
|
|
2137
2121
|
/* @__PURE__ */ jsxs("div", { className: "p-6 min-h-[200px]", children: [
|
|
2138
|
-
/* @__PURE__ */ jsx("h4", { className: "text-lg font-semibold mb-2", children:
|
|
2122
|
+
/* @__PURE__ */ jsx("h4", { className: "text-lg font-semibold mb-2", children: "Example Content" }),
|
|
2139
2123
|
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
|
|
2140
|
-
|
|
2124
|
+
"Neste exemplo, o componente ",
|
|
2141
2125
|
/* @__PURE__ */ jsx("strong", { children: "Header" }),
|
|
2142
|
-
|
|
2126
|
+
" principal da aplicação agora suporta receber um array de breadcrumbs para navegações complexas com mais de 3 níveis."
|
|
2143
2127
|
] })
|
|
2144
2128
|
] })
|
|
2145
2129
|
] })
|
|
@@ -2147,42 +2131,42 @@ function TemplateContent() {
|
|
|
2147
2131
|
] }),
|
|
2148
2132
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2149
2133
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2150
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2134
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Alertas" }),
|
|
2151
2135
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2152
2136
|
/* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
|
|
2153
|
-
/* @__PURE__ */ jsx(AlertTitle, { children:
|
|
2154
|
-
/* @__PURE__ */ jsx(AlertDescription, { children:
|
|
2137
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Informação" }),
|
|
2138
|
+
/* @__PURE__ */ jsx(AlertDescription, { children: "Este é um exemplo de alerta informativo usando os componentes do Design System." })
|
|
2155
2139
|
] }),
|
|
2156
2140
|
/* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
|
|
2157
|
-
/* @__PURE__ */ jsx(AlertTitle, { children:
|
|
2158
|
-
/* @__PURE__ */ jsx(AlertDescription, { children:
|
|
2141
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Erro" }),
|
|
2142
|
+
/* @__PURE__ */ jsx(AlertDescription, { children: "Ocorreu um erro ao processar sua solicitação." })
|
|
2159
2143
|
] }),
|
|
2160
2144
|
/* @__PURE__ */ jsxs(Alert, { variant: "success", children: [
|
|
2161
|
-
/* @__PURE__ */ jsx(AlertTitle, { children:
|
|
2162
|
-
/* @__PURE__ */ jsx(AlertDescription, { children:
|
|
2145
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Sucesso" }),
|
|
2146
|
+
/* @__PURE__ */ jsx(AlertDescription, { children: "Operação realizada com sucesso!" })
|
|
2163
2147
|
] }),
|
|
2164
2148
|
/* @__PURE__ */ jsxs(Alert, { variant: "warning", children: [
|
|
2165
|
-
/* @__PURE__ */ jsx(AlertTitle, { children:
|
|
2166
|
-
/* @__PURE__ */ jsx(AlertDescription, { children:
|
|
2149
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Aviso" }),
|
|
2150
|
+
/* @__PURE__ */ jsx(AlertDescription, { children: "Atenção: Esta ação não pode ser desfeita." })
|
|
2167
2151
|
] })
|
|
2168
2152
|
] })
|
|
2169
2153
|
] }),
|
|
2170
2154
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2171
2155
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2172
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2156
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Cards & Abas" }),
|
|
2173
2157
|
/* @__PURE__ */ jsxs(Tabs, { defaultValue: "overview", className: "w-full", children: [
|
|
2174
2158
|
/* @__PURE__ */ jsxs(TabsList, { className: "grid w-full grid-cols-4", children: [
|
|
2175
|
-
/* @__PURE__ */ jsx(TabsTrigger, { value: "overview", children:
|
|
2176
|
-
/* @__PURE__ */ jsx(TabsTrigger, { value: "forms", children:
|
|
2177
|
-
/* @__PURE__ */ jsx(TabsTrigger, { value: "data", children:
|
|
2178
|
-
/* @__PURE__ */ jsx(TabsTrigger, { value: "settings", children:
|
|
2159
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "overview", children: "Visão Geral" }),
|
|
2160
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "forms", children: "Formulários" }),
|
|
2161
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "data", children: "Dados" }),
|
|
2162
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "settings", children: "Configurações" })
|
|
2179
2163
|
] }),
|
|
2180
2164
|
/* @__PURE__ */ jsxs(TabsContent, { value: "overview", className: "space-y-4", children: [
|
|
2181
2165
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-3", children: [
|
|
2182
2166
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2183
2167
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2184
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2185
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2168
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Total de Usuários" }),
|
|
2169
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Últimos 30 dias" })
|
|
2186
2170
|
] }),
|
|
2187
2171
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
|
|
2188
2172
|
/* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "1,234" }),
|
|
@@ -2191,8 +2175,8 @@ function TemplateContent() {
|
|
|
2191
2175
|
] }),
|
|
2192
2176
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2193
2177
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2194
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2195
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2178
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Receita Total" }),
|
|
2179
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Mês atual" })
|
|
2196
2180
|
] }),
|
|
2197
2181
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
|
|
2198
2182
|
/* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "$ 45.2k" }),
|
|
@@ -2201,8 +2185,8 @@ function TemplateContent() {
|
|
|
2201
2185
|
] }),
|
|
2202
2186
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2203
2187
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2204
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2205
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2188
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Taxa de Conversão" }),
|
|
2189
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Semana atual" })
|
|
2206
2190
|
] }),
|
|
2207
2191
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
|
|
2208
2192
|
/* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "3.2%" }),
|
|
@@ -2212,13 +2196,13 @@ function TemplateContent() {
|
|
|
2212
2196
|
] }),
|
|
2213
2197
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2214
2198
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2215
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2216
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2199
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Progresso & Sliders" }),
|
|
2200
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Exemplo de componentes de progresso" })
|
|
2217
2201
|
] }),
|
|
2218
2202
|
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
2219
2203
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2220
2204
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2221
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2205
|
+
/* @__PURE__ */ jsx(Label, { children: "Progresso do Projeto" }),
|
|
2222
2206
|
/* @__PURE__ */ jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
|
|
2223
2207
|
progress,
|
|
2224
2208
|
"%"
|
|
@@ -2247,7 +2231,7 @@ function TemplateContent() {
|
|
|
2247
2231
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2248
2232
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2249
2233
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2250
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2234
|
+
/* @__PURE__ */ jsx(Label, { children: "Volume" }),
|
|
2251
2235
|
/* @__PURE__ */ jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
|
|
2252
2236
|
sliderValue[0],
|
|
2253
2237
|
"%"
|
|
@@ -2262,7 +2246,7 @@ function TemplateContent() {
|
|
|
2262
2246
|
max: 100,
|
|
2263
2247
|
step: 1,
|
|
2264
2248
|
className: "w-full",
|
|
2265
|
-
"aria-label":
|
|
2249
|
+
"aria-label": "Volume"
|
|
2266
2250
|
}
|
|
2267
2251
|
)
|
|
2268
2252
|
] })
|
|
@@ -2271,22 +2255,22 @@ function TemplateContent() {
|
|
|
2271
2255
|
] }),
|
|
2272
2256
|
/* @__PURE__ */ jsx(TabsContent, { value: "forms", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
2273
2257
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2274
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2275
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2258
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Formulário de Cadastro" }),
|
|
2259
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Preencha os campos abaixo para criar uma nova conta" })
|
|
2276
2260
|
] }),
|
|
2277
2261
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleFormSubmit, className: "space-y-4", children: [
|
|
2278
2262
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2279
2263
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2280
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "firstName", children:
|
|
2281
|
-
/* @__PURE__ */ jsx(Input, { id: "firstName", placeholder:
|
|
2264
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "firstName", children: "Nome" }),
|
|
2265
|
+
/* @__PURE__ */ jsx(Input, { id: "firstName", placeholder: "João" })
|
|
2282
2266
|
] }),
|
|
2283
2267
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2284
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "lastName", children:
|
|
2285
|
-
/* @__PURE__ */ jsx(Input, { id: "lastName", placeholder:
|
|
2268
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "lastName", children: "Sobrenome" }),
|
|
2269
|
+
/* @__PURE__ */ jsx(Input, { id: "lastName", placeholder: "Silva" })
|
|
2286
2270
|
] })
|
|
2287
2271
|
] }),
|
|
2288
2272
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2289
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "email", children:
|
|
2273
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "email", children: "E-mail" }),
|
|
2290
2274
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
2291
2275
|
/* @__PURE__ */ jsx(Mail, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
2292
2276
|
/* @__PURE__ */ jsx(
|
|
@@ -2294,14 +2278,14 @@ function TemplateContent() {
|
|
|
2294
2278
|
{
|
|
2295
2279
|
id: "email",
|
|
2296
2280
|
type: "email",
|
|
2297
|
-
placeholder:
|
|
2281
|
+
placeholder: "john@example.com",
|
|
2298
2282
|
className: "pl-10"
|
|
2299
2283
|
}
|
|
2300
2284
|
)
|
|
2301
2285
|
] })
|
|
2302
2286
|
] }),
|
|
2303
2287
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2304
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "phone", children:
|
|
2288
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "phone", children: "Telefone" }),
|
|
2305
2289
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
2306
2290
|
/* @__PURE__ */ jsx(Phone, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
2307
2291
|
/* @__PURE__ */ jsx(
|
|
@@ -2309,81 +2293,81 @@ function TemplateContent() {
|
|
|
2309
2293
|
{
|
|
2310
2294
|
id: "phone",
|
|
2311
2295
|
type: "tel",
|
|
2312
|
-
placeholder:
|
|
2296
|
+
placeholder: "(11) 99999-9999",
|
|
2313
2297
|
className: "pl-10"
|
|
2314
2298
|
}
|
|
2315
2299
|
)
|
|
2316
2300
|
] })
|
|
2317
2301
|
] }),
|
|
2318
2302
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2319
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "role", children:
|
|
2303
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "role", children: "Função" }),
|
|
2320
2304
|
/* @__PURE__ */ jsxs(Select, { children: [
|
|
2321
|
-
/* @__PURE__ */ jsx(SelectTrigger, { id: "role", children: /* @__PURE__ */ jsx(SelectValue, { placeholder:
|
|
2305
|
+
/* @__PURE__ */ jsx(SelectTrigger, { id: "role", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Selecione uma função" }) }),
|
|
2322
2306
|
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
2323
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "developer", children:
|
|
2324
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "designer", children:
|
|
2325
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "manager", children:
|
|
2326
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "analyst", children:
|
|
2307
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "developer", children: "Desenvolvedor" }),
|
|
2308
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "designer", children: "Designer" }),
|
|
2309
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "manager", children: "Gerente" }),
|
|
2310
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "analyst", children: "Analista" })
|
|
2327
2311
|
] })
|
|
2328
2312
|
] })
|
|
2329
2313
|
] }),
|
|
2330
2314
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
2331
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "bio", children:
|
|
2315
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "bio", children: "Biografia" }),
|
|
2332
2316
|
/* @__PURE__ */ jsx(
|
|
2333
2317
|
Textarea,
|
|
2334
2318
|
{
|
|
2335
2319
|
id: "bio",
|
|
2336
|
-
placeholder:
|
|
2320
|
+
placeholder: "Conte-nos um pouco sobre você...",
|
|
2337
2321
|
rows: 4
|
|
2338
2322
|
}
|
|
2339
2323
|
)
|
|
2340
2324
|
] }),
|
|
2341
2325
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2342
2326
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
2343
|
-
/* @__PURE__ */ jsx("h4", { children:
|
|
2327
|
+
/* @__PURE__ */ jsx("h4", { children: "Preferências" }),
|
|
2344
2328
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2345
2329
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2346
2330
|
/* @__PURE__ */ jsx(Checkbox, { id: "newsletter" }),
|
|
2347
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "newsletter", className: "font-normal", children:
|
|
2331
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "newsletter", className: "font-normal", children: "Receber newsletter por e-mail" })
|
|
2348
2332
|
] }),
|
|
2349
2333
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2350
2334
|
/* @__PURE__ */ jsx(Checkbox, { id: "notifications" }),
|
|
2351
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "notifications", className: "font-normal", children:
|
|
2335
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "notifications", className: "font-normal", children: "Ativar notificações push" })
|
|
2352
2336
|
] }),
|
|
2353
2337
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2354
2338
|
/* @__PURE__ */ jsx(Checkbox, { id: "updates" }),
|
|
2355
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "updates", className: "font-normal", children:
|
|
2339
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "updates", className: "font-normal", children: "Receber atualizações sobre novos recursos" })
|
|
2356
2340
|
] })
|
|
2357
2341
|
] }),
|
|
2358
2342
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2359
2343
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2360
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2361
|
-
/* @__PURE__ */ jsxs(RadioGroup, { defaultValue: "personal", "aria-label":
|
|
2344
|
+
/* @__PURE__ */ jsx(Label, { children: "Tipo de Conta" }),
|
|
2345
|
+
/* @__PURE__ */ jsxs(RadioGroup, { defaultValue: "personal", "aria-label": "Tipo de Conta", children: [
|
|
2362
2346
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2363
2347
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: "personal", id: "personal" }),
|
|
2364
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "personal", className: "font-normal", children:
|
|
2348
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "personal", className: "font-normal", children: "Pessoal" })
|
|
2365
2349
|
] }),
|
|
2366
2350
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2367
2351
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: "business", id: "business" }),
|
|
2368
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "business", className: "font-normal", children:
|
|
2352
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "business", className: "font-normal", children: "Empresarial" })
|
|
2369
2353
|
] }),
|
|
2370
2354
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2371
2355
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: "enterprise", id: "enterprise" }),
|
|
2372
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "enterprise", className: "font-normal", children:
|
|
2356
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "enterprise", className: "font-normal", children: "Corporativo" })
|
|
2373
2357
|
] })
|
|
2374
2358
|
] })
|
|
2375
2359
|
] })
|
|
2376
2360
|
] })
|
|
2377
2361
|
] }) }),
|
|
2378
2362
|
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
|
|
2379
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", children:
|
|
2380
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleFormSubmit, children:
|
|
2363
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", children: "Cancelar" }),
|
|
2364
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleFormSubmit, children: "Criar Conta" })
|
|
2381
2365
|
] })
|
|
2382
2366
|
] }) }),
|
|
2383
2367
|
/* @__PURE__ */ jsx(TabsContent, { value: "data", className: "space-y-4", children: /* @__PURE__ */ jsx(SectionErrorBoundary, { children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
2384
2368
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2385
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2386
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2369
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Lista de Usuários" }),
|
|
2370
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Gerenciar usuários do sistema" })
|
|
2387
2371
|
] }),
|
|
2388
2372
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
2389
2373
|
/* @__PURE__ */ jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
@@ -2391,19 +2375,19 @@ function TemplateContent() {
|
|
|
2391
2375
|
/* @__PURE__ */ jsx(
|
|
2392
2376
|
Input,
|
|
2393
2377
|
{
|
|
2394
|
-
placeholder:
|
|
2395
|
-
"aria-label":
|
|
2378
|
+
placeholder: "Buscar usuários...",
|
|
2379
|
+
"aria-label": "Buscar usuários",
|
|
2396
2380
|
className: "pl-10"
|
|
2397
2381
|
}
|
|
2398
2382
|
)
|
|
2399
2383
|
] }) }),
|
|
2400
2384
|
/* @__PURE__ */ jsx("div", { className: "rounded-[var(--radius-lg)] border border-border overflow-hidden", children: /* @__PURE__ */ jsxs(Table, { children: [
|
|
2401
2385
|
/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
2402
|
-
/* @__PURE__ */ jsx(TableHead, { children:
|
|
2403
|
-
/* @__PURE__ */ jsx(TableHead, { children:
|
|
2404
|
-
/* @__PURE__ */ jsx(TableHead, { children:
|
|
2405
|
-
/* @__PURE__ */ jsx(TableHead, { children:
|
|
2406
|
-
/* @__PURE__ */ jsx(TableHead, { className: "text-right", children:
|
|
2386
|
+
/* @__PURE__ */ jsx(TableHead, { children: t2("team.name") }),
|
|
2387
|
+
/* @__PURE__ */ jsx(TableHead, { children: t2("team.email") }),
|
|
2388
|
+
/* @__PURE__ */ jsx(TableHead, { children: t2("team.role") }),
|
|
2389
|
+
/* @__PURE__ */ jsx(TableHead, { children: t2("team.status") }),
|
|
2390
|
+
/* @__PURE__ */ jsx(TableHead, { className: "text-right", children: t2("team.actions") })
|
|
2407
2391
|
] }) }),
|
|
2408
2392
|
/* @__PURE__ */ jsx(TableBody, { children: teamLoading ? /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
2409
2393
|
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -2417,36 +2401,36 @@ function TemplateContent() {
|
|
|
2417
2401
|
] }, i)) }) : teamMembers.map((member) => /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
2418
2402
|
/* @__PURE__ */ jsx(TableCell, { children: member.name }),
|
|
2419
2403
|
/* @__PURE__ */ jsx(TableCell, { children: member.email }),
|
|
2420
|
-
/* @__PURE__ */ jsx(TableCell, { children:
|
|
2404
|
+
/* @__PURE__ */ jsx(TableCell, { children: t2(`team.roles.${member.role}`) }),
|
|
2421
2405
|
/* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(
|
|
2422
2406
|
Badge,
|
|
2423
2407
|
{
|
|
2424
2408
|
variant: member.status === "active" ? "default" : member.status === "away" ? "secondary" : "outline",
|
|
2425
|
-
children:
|
|
2409
|
+
children: t2(`common.${member.status}`)
|
|
2426
2410
|
}
|
|
2427
2411
|
) }),
|
|
2428
|
-
/* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children:
|
|
2412
|
+
/* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: t2("common.edit") }) })
|
|
2429
2413
|
] }, member.id)) })
|
|
2430
2414
|
] }) })
|
|
2431
2415
|
] }),
|
|
2432
2416
|
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between items-center", children: [
|
|
2433
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children:
|
|
2417
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: t2("team.showing", { count: teamMembers.length, total: teamMembers.length }) }),
|
|
2434
2418
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
2435
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children:
|
|
2436
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children:
|
|
2419
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Previous" }),
|
|
2420
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Next" })
|
|
2437
2421
|
] })
|
|
2438
2422
|
] })
|
|
2439
2423
|
] }) }) }),
|
|
2440
2424
|
/* @__PURE__ */ jsx(TabsContent, { value: "settings", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
2441
2425
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2442
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2443
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2426
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Configurações do Sistema" }),
|
|
2427
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Gerenciar configurações gerais" })
|
|
2444
2428
|
] }),
|
|
2445
2429
|
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
2446
2430
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2447
2431
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
2448
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "dark-mode", children:
|
|
2449
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children:
|
|
2432
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "dark-mode", children: "Dark Mode" }),
|
|
2433
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Enable dark theme in the interface" })
|
|
2450
2434
|
] }),
|
|
2451
2435
|
/* @__PURE__ */ jsx(
|
|
2452
2436
|
Switch,
|
|
@@ -2460,62 +2444,62 @@ function TemplateContent() {
|
|
|
2460
2444
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2461
2445
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2462
2446
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
2463
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "email-notifications", children:
|
|
2464
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children:
|
|
2447
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "email-notifications", children: "Email Notifications" }),
|
|
2448
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Receive important updates by email" })
|
|
2465
2449
|
] }),
|
|
2466
2450
|
/* @__PURE__ */ jsx(Switch, { id: "email-notifications", defaultChecked: true })
|
|
2467
2451
|
] }),
|
|
2468
2452
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2469
2453
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2470
2454
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
2471
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "push-notifications", children:
|
|
2472
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children:
|
|
2455
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "push-notifications", children: "Push Notifications" }),
|
|
2456
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Receive instant notifications in the browser" })
|
|
2473
2457
|
] }),
|
|
2474
2458
|
/* @__PURE__ */ jsx(Switch, { id: "push-notifications" })
|
|
2475
2459
|
] }),
|
|
2476
2460
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2477
2461
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2478
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2462
|
+
/* @__PURE__ */ jsx(Label, { children: "Language" }),
|
|
2479
2463
|
/* @__PURE__ */ jsxs(Select, { defaultValue: "pt-br", children: [
|
|
2480
|
-
/* @__PURE__ */ jsx(SelectTrigger, { "aria-label":
|
|
2464
|
+
/* @__PURE__ */ jsx(SelectTrigger, { "aria-label": "Idioma do sistema", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
2481
2465
|
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
2482
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "pt-br", children:
|
|
2483
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "en", children:
|
|
2484
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "es", children:
|
|
2466
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "pt-br", children: "Portuguese (Brazil)" }),
|
|
2467
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "en", children: "English" }),
|
|
2468
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "es", children: "Spanish" })
|
|
2485
2469
|
] })
|
|
2486
2470
|
] })
|
|
2487
2471
|
] }),
|
|
2488
2472
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2489
2473
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2490
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2474
|
+
/* @__PURE__ */ jsx(Label, { children: "Time Zone" }),
|
|
2491
2475
|
/* @__PURE__ */ jsxs(Select, { defaultValue: "america-sao-paulo", children: [
|
|
2492
|
-
/* @__PURE__ */ jsx(SelectTrigger, { "aria-label":
|
|
2476
|
+
/* @__PURE__ */ jsx(SelectTrigger, { "aria-label": "Fuso horário", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
2493
2477
|
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
2494
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "america-sao-paulo", children:
|
|
2495
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "america-new-york", children:
|
|
2496
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "europe-london", children:
|
|
2478
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "america-sao-paulo", children: "America/Sao Paulo (GMT-3)" }),
|
|
2479
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "america-new-york", children: "America/New York (GMT-5)" }),
|
|
2480
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "europe-london", children: "Europe/London (GMT+0)" })
|
|
2497
2481
|
] })
|
|
2498
2482
|
] })
|
|
2499
2483
|
] })
|
|
2500
2484
|
] }),
|
|
2501
2485
|
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
|
|
2502
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", children:
|
|
2503
|
-
/* @__PURE__ */ jsx(Button, { children:
|
|
2486
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", children: "Restaurar Padrões" }),
|
|
2487
|
+
/* @__PURE__ */ jsx(Button, { children: "Salvar Alterações" })
|
|
2504
2488
|
] })
|
|
2505
2489
|
] }) })
|
|
2506
2490
|
] })
|
|
2507
2491
|
] }),
|
|
2508
2492
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2509
2493
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2510
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2494
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Botões" }),
|
|
2511
2495
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2512
2496
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2513
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2514
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2497
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Variações de Botão" }),
|
|
2498
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Diferentes estilos e tamanhos de botões" })
|
|
2515
2499
|
] }),
|
|
2516
2500
|
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
2517
2501
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2518
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2502
|
+
/* @__PURE__ */ jsx(Label, { children: "Variants" }),
|
|
2519
2503
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2520
2504
|
/* @__PURE__ */ jsx(Button, { variant: "default", children: "Default" }),
|
|
2521
2505
|
/* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Secondary" }),
|
|
@@ -2527,38 +2511,38 @@ function TemplateContent() {
|
|
|
2527
2511
|
] }),
|
|
2528
2512
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2529
2513
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2530
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2514
|
+
/* @__PURE__ */ jsx(Label, { children: "Sizes" }),
|
|
2531
2515
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
2532
2516
|
/* @__PURE__ */ jsx(Button, { size: "sm", children: "Small" }),
|
|
2533
2517
|
/* @__PURE__ */ jsx(Button, { size: "default", children: "Default" }),
|
|
2534
2518
|
/* @__PURE__ */ jsx(Button, { size: "lg", children: "Large" }),
|
|
2535
|
-
/* @__PURE__ */ jsx(Button, { size: "icon", "aria-label":
|
|
2519
|
+
/* @__PURE__ */ jsx(Button, { size: "icon", "aria-label": "Configurações", children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }) })
|
|
2536
2520
|
] })
|
|
2537
2521
|
] }),
|
|
2538
2522
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2539
2523
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2540
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2524
|
+
/* @__PURE__ */ jsx(Label, { children: "With Icons" }),
|
|
2541
2525
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2542
2526
|
/* @__PURE__ */ jsxs(Button, { children: [
|
|
2543
2527
|
/* @__PURE__ */ jsx(User, { className: "mr-2 h-4 w-4" }),
|
|
2544
|
-
|
|
2528
|
+
"Profile"
|
|
2545
2529
|
] }),
|
|
2546
2530
|
/* @__PURE__ */ jsxs(Button, { variant: "secondary", children: [
|
|
2547
2531
|
/* @__PURE__ */ jsx(Mail, { className: "mr-2 h-4 w-4" }),
|
|
2548
|
-
|
|
2532
|
+
"Messages"
|
|
2549
2533
|
] }),
|
|
2550
2534
|
/* @__PURE__ */ jsxs(Button, { variant: "outline", children: [
|
|
2551
2535
|
/* @__PURE__ */ jsx(Calendar, { className: "mr-2 h-4 w-4" }),
|
|
2552
|
-
|
|
2536
|
+
"Schedule"
|
|
2553
2537
|
] })
|
|
2554
2538
|
] })
|
|
2555
2539
|
] }),
|
|
2556
2540
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
2557
2541
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
2558
|
-
/* @__PURE__ */ jsx(Label, { children:
|
|
2542
|
+
/* @__PURE__ */ jsx(Label, { children: "States" }),
|
|
2559
2543
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2560
|
-
/* @__PURE__ */ jsx(Button, { disabled: true, children:
|
|
2561
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", disabled: true, children:
|
|
2544
|
+
/* @__PURE__ */ jsx(Button, { disabled: true, children: "Disabled" }),
|
|
2545
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", disabled: true, children: "Outline Disabled" })
|
|
2562
2546
|
] })
|
|
2563
2547
|
] })
|
|
2564
2548
|
] })
|
|
@@ -2566,68 +2550,68 @@ function TemplateContent() {
|
|
|
2566
2550
|
] }),
|
|
2567
2551
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2568
2552
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2569
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2553
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Badges" }),
|
|
2570
2554
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2571
2555
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2572
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2573
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2556
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Variações de Badge" }),
|
|
2557
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Estilos diferentes de badge para status e tags" })
|
|
2574
2558
|
] }),
|
|
2575
2559
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2576
|
-
/* @__PURE__ */ jsx(Badge, { variant: "default", children: "
|
|
2577
|
-
/* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "
|
|
2578
|
-
/* @__PURE__ */ jsx(Badge, { variant: "outline", children: "
|
|
2579
|
-
/* @__PURE__ */ jsx(Badge, { variant: "destructive", children: "
|
|
2580
|
-
/* @__PURE__ */ jsx(Badge, { className: "bg-success text-success-foreground", children: "
|
|
2581
|
-
/* @__PURE__ */ jsx(Badge, { className: "bg-warning text-warning-foreground", children: "
|
|
2560
|
+
/* @__PURE__ */ jsx(Badge, { variant: "default", children: "Padrão" }),
|
|
2561
|
+
/* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "Secundário" }),
|
|
2562
|
+
/* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Contorno" }),
|
|
2563
|
+
/* @__PURE__ */ jsx(Badge, { variant: "destructive", children: "Destrutivo" }),
|
|
2564
|
+
/* @__PURE__ */ jsx(Badge, { className: "bg-success text-success-foreground", children: "Sucesso" }),
|
|
2565
|
+
/* @__PURE__ */ jsx(Badge, { className: "bg-warning text-warning-foreground", children: "Aviso" }),
|
|
2582
2566
|
/* @__PURE__ */ jsx(Badge, { className: "bg-info text-info-foreground", children: "Info" })
|
|
2583
2567
|
] }) })
|
|
2584
2568
|
] })
|
|
2585
2569
|
] }),
|
|
2586
2570
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2587
2571
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2588
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2572
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Diálogos" }),
|
|
2589
2573
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2590
2574
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2591
2575
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2592
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2593
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2576
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Diálogo" }),
|
|
2577
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Um modal interativo básico" })
|
|
2594
2578
|
] }),
|
|
2595
2579
|
/* @__PURE__ */ jsx(CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
2596
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", children:
|
|
2580
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Editar Perfil" }) }),
|
|
2597
2581
|
/* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [
|
|
2598
2582
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
2599
|
-
/* @__PURE__ */ jsx(DialogTitle, { children:
|
|
2600
|
-
/* @__PURE__ */ jsx(DialogDescription, { children:
|
|
2583
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Editar Perfil" }),
|
|
2584
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Faça alterações no seu perfil aqui. Clique em salvar quando terminar." })
|
|
2601
2585
|
] }),
|
|
2602
2586
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
|
|
2603
2587
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
2604
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "name", className: "text-right", children:
|
|
2588
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "name", className: "text-right", children: "Nome" }),
|
|
2605
2589
|
/* @__PURE__ */ jsx(Input, { id: "name", defaultValue: "John Doe", className: "col-span-3" })
|
|
2606
2590
|
] }),
|
|
2607
2591
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
2608
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "username", className: "text-right", children:
|
|
2592
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "username", className: "text-right", children: "Usuário" }),
|
|
2609
2593
|
/* @__PURE__ */ jsx(Input, { id: "username", defaultValue: "@johndoe", className: "col-span-3" })
|
|
2610
2594
|
] })
|
|
2611
2595
|
] }),
|
|
2612
|
-
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(Button, { type: "submit", children:
|
|
2596
|
+
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(Button, { type: "submit", children: "Atualizar" }) })
|
|
2613
2597
|
] })
|
|
2614
2598
|
] }) })
|
|
2615
2599
|
] }),
|
|
2616
2600
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2617
2601
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2618
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2619
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2602
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Alerta de Diálogo" }),
|
|
2603
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Um alerta para decisões importantes" })
|
|
2620
2604
|
] }),
|
|
2621
2605
|
/* @__PURE__ */ jsx(CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxs(AlertDialog, { children: [
|
|
2622
|
-
/* @__PURE__ */ jsx(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "destructive", children:
|
|
2606
|
+
/* @__PURE__ */ jsx(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "destructive", children: "Excluir Conta" }) }),
|
|
2623
2607
|
/* @__PURE__ */ jsxs(AlertDialogContent, { className: "sm:max-w-[425px]", children: [
|
|
2624
2608
|
/* @__PURE__ */ jsxs(AlertDialogHeader, { children: [
|
|
2625
|
-
/* @__PURE__ */ jsx(AlertDialogTitle, { children:
|
|
2626
|
-
/* @__PURE__ */ jsx(AlertDialogDescription, { children:
|
|
2609
|
+
/* @__PURE__ */ jsx(AlertDialogTitle, { children: "Você tem certeza absoluta?" }),
|
|
2610
|
+
/* @__PURE__ */ jsx(AlertDialogDescription, { children: "Esta ação não pode ser desfeita. Isso excluirá permanentemente sua conta e removerá seus dados de nossos servidores." })
|
|
2627
2611
|
] }),
|
|
2628
2612
|
/* @__PURE__ */ jsxs(AlertDialogFooter, { children: [
|
|
2629
|
-
/* @__PURE__ */ jsx(AlertDialogCancel, { children:
|
|
2630
|
-
/* @__PURE__ */ jsx(AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children:
|
|
2613
|
+
/* @__PURE__ */ jsx(AlertDialogCancel, { children: "Cancelar" }),
|
|
2614
|
+
/* @__PURE__ */ jsx(AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: "Continuar" })
|
|
2631
2615
|
] })
|
|
2632
2616
|
] })
|
|
2633
2617
|
] }) })
|
|
@@ -2638,15 +2622,15 @@ function TemplateContent() {
|
|
|
2638
2622
|
/* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsx(MapShowcase, {}) }),
|
|
2639
2623
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2640
2624
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2641
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2625
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Variações de Cabeçalho" }),
|
|
2642
2626
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2643
2627
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2644
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2645
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2628
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Configurações do Cabeçalho Principal" }),
|
|
2629
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "O Header é focado em navegação (breadcrumbs) e ações contextuais rápidas." })
|
|
2646
2630
|
] }),
|
|
2647
2631
|
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
2648
2632
|
/* @__PURE__ */ jsxs("div", { className: "p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
|
|
2649
|
-
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children:
|
|
2633
|
+
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children: "Elementos Visíveis" }),
|
|
2650
2634
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6", children: [
|
|
2651
2635
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2652
2636
|
/* @__PURE__ */ jsx(
|
|
@@ -2657,7 +2641,7 @@ function TemplateContent() {
|
|
|
2657
2641
|
onCheckedChange: setShowHeaderActions
|
|
2658
2642
|
}
|
|
2659
2643
|
),
|
|
2660
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "header-actions", className: "cursor-pointer", children:
|
|
2644
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "header-actions", className: "cursor-pointer", children: "Botões de Ação" })
|
|
2661
2645
|
] }),
|
|
2662
2646
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2663
2647
|
/* @__PURE__ */ jsx(
|
|
@@ -2668,60 +2652,60 @@ function TemplateContent() {
|
|
|
2668
2652
|
onCheckedChange: setShowHeaderBreadcrumbs
|
|
2669
2653
|
}
|
|
2670
2654
|
),
|
|
2671
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "header-bread", className: "cursor-pointer", children:
|
|
2655
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "header-bread", className: "cursor-pointer", children: "Breadcrumbs" })
|
|
2672
2656
|
] })
|
|
2673
2657
|
] })
|
|
2674
2658
|
] }),
|
|
2675
2659
|
/* @__PURE__ */ jsxs("div", { className: "relative border rounded-[var(--radius-lg)] bg-muted/10 overflow-hidden shadow-inner", children: [
|
|
2676
|
-
/* @__PURE__ */ jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children:
|
|
2660
|
+
/* @__PURE__ */ jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children: "Visualização" }),
|
|
2677
2661
|
/* @__PURE__ */ jsx(
|
|
2678
2662
|
Header,
|
|
2679
2663
|
{
|
|
2680
|
-
title: !showHeaderBreadcrumbs ?
|
|
2664
|
+
title: !showHeaderBreadcrumbs ? "Página Atual" : void 0,
|
|
2681
2665
|
breadcrumbs: showHeaderBreadcrumbs ? [
|
|
2682
2666
|
{
|
|
2683
|
-
label:
|
|
2667
|
+
label: "Xertica UI",
|
|
2684
2668
|
href: "#",
|
|
2685
2669
|
icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" })
|
|
2686
2670
|
},
|
|
2687
|
-
{ label:
|
|
2688
|
-
{ label:
|
|
2671
|
+
{ label: "Configurações", href: "#" },
|
|
2672
|
+
{ label: "Perfil" }
|
|
2689
2673
|
] : void 0,
|
|
2690
2674
|
actions: showHeaderActions ? [
|
|
2691
2675
|
{
|
|
2692
2676
|
id: "notify",
|
|
2693
2677
|
icon: /* @__PURE__ */ jsx(Bell, { className: "w-5 h-5" }),
|
|
2694
|
-
onClick: () => toast(
|
|
2678
|
+
onClick: () => toast("Notificações abertas")
|
|
2695
2679
|
},
|
|
2696
2680
|
{
|
|
2697
2681
|
id: "mail",
|
|
2698
|
-
label:
|
|
2682
|
+
label: "Mensagens",
|
|
2699
2683
|
icon: /* @__PURE__ */ jsx(Mail, { className: "w-5 h-5" }),
|
|
2700
|
-
onClick: () => toast(
|
|
2684
|
+
onClick: () => toast("Mensagens abertas")
|
|
2701
2685
|
}
|
|
2702
2686
|
] : void 0
|
|
2703
2687
|
}
|
|
2704
2688
|
),
|
|
2705
|
-
/* @__PURE__ */ jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children:
|
|
2689
|
+
/* @__PURE__ */ jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children: "Área de Conteúdo da Página" })
|
|
2706
2690
|
] })
|
|
2707
2691
|
] })
|
|
2708
2692
|
] })
|
|
2709
2693
|
] }),
|
|
2710
2694
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2711
2695
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
2712
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-4", children:
|
|
2696
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Variações da Sidebar" }),
|
|
2713
2697
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
2714
2698
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2715
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2716
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2699
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Sidebar Modo Assistente vs Padrão" }),
|
|
2700
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "A Sidebar suporta flexibilidade através da propriedade variant." })
|
|
2717
2701
|
] }),
|
|
2718
2702
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(Tabs, { defaultValue: "assistant", className: "w-full", children: [
|
|
2719
2703
|
/* @__PURE__ */ jsxs(TabsList, { className: "mb-4", children: [
|
|
2720
|
-
/* @__PURE__ */ jsx(TabsTrigger, { value: "assistant", children:
|
|
2721
|
-
/* @__PURE__ */ jsx(TabsTrigger, { value: "default", children:
|
|
2704
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "assistant", children: "Modo Assistente" }),
|
|
2705
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "default", children: "Modo Padrão" })
|
|
2722
2706
|
] }),
|
|
2723
2707
|
/* @__PURE__ */ jsxs("div", { className: "mb-6 p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
|
|
2724
|
-
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children:
|
|
2708
|
+
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children: "Configurações do Rodapé" }),
|
|
2725
2709
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-6 mt-2", children: [
|
|
2726
2710
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2727
2711
|
/* @__PURE__ */ jsx(
|
|
@@ -2732,7 +2716,7 @@ function TemplateContent() {
|
|
|
2732
2716
|
onCheckedChange: setShowSidebarUser
|
|
2733
2717
|
}
|
|
2734
2718
|
),
|
|
2735
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "show-user", className: "cursor-pointer", children:
|
|
2719
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "show-user", className: "cursor-pointer", children: "Perfil do Usuário" })
|
|
2736
2720
|
] }),
|
|
2737
2721
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2738
2722
|
/* @__PURE__ */ jsx(
|
|
@@ -2743,7 +2727,7 @@ function TemplateContent() {
|
|
|
2743
2727
|
onCheckedChange: setShowSidebarSettings
|
|
2744
2728
|
}
|
|
2745
2729
|
),
|
|
2746
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "show-settings", className: "cursor-pointer", children:
|
|
2730
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "show-settings", className: "cursor-pointer", children: "Configurações" })
|
|
2747
2731
|
] }),
|
|
2748
2732
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2749
2733
|
/* @__PURE__ */ jsx(
|
|
@@ -2754,12 +2738,12 @@ function TemplateContent() {
|
|
|
2754
2738
|
onCheckedChange: setShowSidebarLogout
|
|
2755
2739
|
}
|
|
2756
2740
|
),
|
|
2757
|
-
/* @__PURE__ */ jsx(Label, { htmlFor: "show-logout", className: "cursor-pointer", children:
|
|
2741
|
+
/* @__PURE__ */ jsx(Label, { htmlFor: "show-logout", className: "cursor-pointer", children: "Botão de Sair" })
|
|
2758
2742
|
] })
|
|
2759
2743
|
] }),
|
|
2760
2744
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 pt-6 border-t", children: [
|
|
2761
2745
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
2762
|
-
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold", children:
|
|
2746
|
+
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold", children: "Largura da Sidebar (Desktop)" }),
|
|
2763
2747
|
/* @__PURE__ */ jsxs("span", { className: "text-xs font-mono bg-muted px-2 py-1 rounded", children: [
|
|
2764
2748
|
sidebarWidth,
|
|
2765
2749
|
"px"
|
|
@@ -2776,7 +2760,7 @@ function TemplateContent() {
|
|
|
2776
2760
|
max: 450,
|
|
2777
2761
|
step: 10,
|
|
2778
2762
|
className: "flex-1",
|
|
2779
|
-
"aria-label":
|
|
2763
|
+
"aria-label": "Largura da Sidebar"
|
|
2780
2764
|
}
|
|
2781
2765
|
),
|
|
2782
2766
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground w-12", children: "450px" })
|
|
@@ -2797,26 +2781,26 @@ function TemplateContent() {
|
|
|
2797
2781
|
onToggle: () => {
|
|
2798
2782
|
},
|
|
2799
2783
|
user: { email: "admin@xertica.com" },
|
|
2800
|
-
onLogout: () => toast(
|
|
2784
|
+
onLogout: () => toast("Saiu"),
|
|
2801
2785
|
location: { pathname: "/assistant/current" },
|
|
2802
2786
|
navigate: () => {
|
|
2803
2787
|
},
|
|
2804
2788
|
variant: "assistant",
|
|
2805
2789
|
search: {
|
|
2806
2790
|
show: true,
|
|
2807
|
-
placeholder:
|
|
2791
|
+
placeholder: "Buscar tópicos...",
|
|
2808
2792
|
filter: {
|
|
2809
2793
|
show: true,
|
|
2810
2794
|
content: /* @__PURE__ */ jsxs("div", { className: "p-2 space-y-2", children: [
|
|
2811
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children:
|
|
2795
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children: "Filtrar por Status" }),
|
|
2812
2796
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 p-1", children: [
|
|
2813
|
-
/* @__PURE__ */ jsx(Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children:
|
|
2797
|
+
/* @__PURE__ */ jsx(Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children: "Ativo" }),
|
|
2814
2798
|
/* @__PURE__ */ jsx(
|
|
2815
2799
|
Badge,
|
|
2816
2800
|
{
|
|
2817
2801
|
variant: "outline",
|
|
2818
2802
|
className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10",
|
|
2819
|
-
children:
|
|
2803
|
+
children: "Arquivado"
|
|
2820
2804
|
}
|
|
2821
2805
|
),
|
|
2822
2806
|
/* @__PURE__ */ jsx(
|
|
@@ -2824,7 +2808,7 @@ function TemplateContent() {
|
|
|
2824
2808
|
{
|
|
2825
2809
|
variant: "outline",
|
|
2826
2810
|
className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10",
|
|
2827
|
-
children:
|
|
2811
|
+
children: "Pendente"
|
|
2828
2812
|
}
|
|
2829
2813
|
)
|
|
2830
2814
|
] })
|
|
@@ -2835,47 +2819,47 @@ function TemplateContent() {
|
|
|
2835
2819
|
show: true,
|
|
2836
2820
|
content: /* @__PURE__ */ jsxs(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: [
|
|
2837
2821
|
/* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 mr-2" }),
|
|
2838
|
-
|
|
2822
|
+
"Nova Conversa"
|
|
2839
2823
|
] })
|
|
2840
2824
|
},
|
|
2841
2825
|
navigationGroups: [
|
|
2842
2826
|
{
|
|
2843
2827
|
id: "recent",
|
|
2844
|
-
label:
|
|
2828
|
+
label: "Recentes",
|
|
2845
2829
|
icon: Clock,
|
|
2846
2830
|
items: [
|
|
2847
2831
|
{
|
|
2848
2832
|
path: "/assistant/refatoracao",
|
|
2849
|
-
label:
|
|
2850
|
-
description:
|
|
2833
|
+
label: "Refatoração da Sidebar",
|
|
2834
|
+
description: "Ativo agora",
|
|
2851
2835
|
actions: [
|
|
2852
2836
|
{
|
|
2853
|
-
label:
|
|
2837
|
+
label: "Renomear",
|
|
2854
2838
|
icon: FileEdit,
|
|
2855
|
-
onClick: () => toast(
|
|
2839
|
+
onClick: () => toast("Abrir renomear...")
|
|
2856
2840
|
},
|
|
2857
2841
|
{
|
|
2858
|
-
label:
|
|
2842
|
+
label: "Mover",
|
|
2859
2843
|
icon: ArrowRightLeft,
|
|
2860
2844
|
children: [
|
|
2861
2845
|
{
|
|
2862
|
-
label:
|
|
2863
|
-
onClick: () => toast(
|
|
2846
|
+
label: "Projetos Ativos",
|
|
2847
|
+
onClick: () => toast("Movido para Projetos Ativos")
|
|
2864
2848
|
},
|
|
2865
2849
|
{
|
|
2866
|
-
label:
|
|
2867
|
-
onClick: () => toast(
|
|
2850
|
+
label: "Monitoramento",
|
|
2851
|
+
onClick: () => toast("Movido para Monitoramento")
|
|
2868
2852
|
},
|
|
2869
2853
|
{
|
|
2870
|
-
label:
|
|
2871
|
-
onClick: () => toast(
|
|
2854
|
+
label: "Arquivar",
|
|
2855
|
+
onClick: () => toast("Movido para Arquivo")
|
|
2872
2856
|
}
|
|
2873
2857
|
]
|
|
2874
2858
|
},
|
|
2875
2859
|
{
|
|
2876
|
-
label:
|
|
2860
|
+
label: "Limpar",
|
|
2877
2861
|
icon: Trash2,
|
|
2878
|
-
onClick: () => toast(
|
|
2862
|
+
onClick: () => toast("Histórico Limpo!"),
|
|
2879
2863
|
variant: "destructive"
|
|
2880
2864
|
}
|
|
2881
2865
|
]
|
|
@@ -2884,24 +2868,24 @@ function TemplateContent() {
|
|
|
2884
2868
|
},
|
|
2885
2869
|
{
|
|
2886
2870
|
id: "projects",
|
|
2887
|
-
label:
|
|
2871
|
+
label: "Monitoramento de Projetos",
|
|
2888
2872
|
icon: Map$1,
|
|
2889
2873
|
actions: [
|
|
2890
2874
|
{
|
|
2891
|
-
label:
|
|
2875
|
+
label: "Nova Categoria",
|
|
2892
2876
|
icon: Plus,
|
|
2893
|
-
onClick: () => toast(
|
|
2877
|
+
onClick: () => toast("Criar nova categoria...")
|
|
2894
2878
|
},
|
|
2895
2879
|
{
|
|
2896
|
-
label:
|
|
2880
|
+
label: "Arquivar Grupo",
|
|
2897
2881
|
icon: Archive,
|
|
2898
|
-
onClick: () => toast(
|
|
2882
|
+
onClick: () => toast("Arquivando grupo...")
|
|
2899
2883
|
}
|
|
2900
2884
|
],
|
|
2901
2885
|
items: [
|
|
2902
2886
|
{
|
|
2903
2887
|
path: "/assistant/br163",
|
|
2904
|
-
label:
|
|
2888
|
+
label: "Restauração BR-163",
|
|
2905
2889
|
icon: () => /* @__PURE__ */ jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-500" }),
|
|
2906
2890
|
description: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5 min-w-[160px]", children: [
|
|
2907
2891
|
/* @__PURE__ */ jsx(
|
|
@@ -2912,7 +2896,7 @@ function TemplateContent() {
|
|
|
2912
2896
|
}
|
|
2913
2897
|
),
|
|
2914
2898
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-[10px] text-sidebar-foreground/60", children: [
|
|
2915
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
2899
|
+
/* @__PURE__ */ jsx("span", { children: "Cuiabá, MT" }),
|
|
2916
2900
|
/* @__PURE__ */ jsx("span", { children: "67%" })
|
|
2917
2901
|
] })
|
|
2918
2902
|
] })
|
|
@@ -2932,7 +2916,7 @@ function TemplateContent() {
|
|
|
2932
2916
|
{
|
|
2933
2917
|
className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300",
|
|
2934
2918
|
style: { left: `${sidebarWidth}px` },
|
|
2935
|
-
children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children:
|
|
2919
|
+
children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children: "Conteúdo do Modo Assistente" })
|
|
2936
2920
|
}
|
|
2937
2921
|
)
|
|
2938
2922
|
]
|
|
@@ -2956,16 +2940,16 @@ function TemplateContent() {
|
|
|
2956
2940
|
email: "admin@xertica.com",
|
|
2957
2941
|
avatar: "https://github.com/shadcn.png"
|
|
2958
2942
|
},
|
|
2959
|
-
onLogout: () => toast(
|
|
2960
|
-
onSettingsClick: () => toast(
|
|
2943
|
+
onLogout: () => toast("Saiu"),
|
|
2944
|
+
onSettingsClick: () => toast("Configurações clicadas"),
|
|
2961
2945
|
location: { pathname: "/home" },
|
|
2962
2946
|
navigate: () => {
|
|
2963
2947
|
},
|
|
2964
2948
|
variant: "default",
|
|
2965
2949
|
routes: [
|
|
2966
|
-
{ path: "/home", label:
|
|
2967
|
-
{ path: "/dashboard", label:
|
|
2968
|
-
{ path: "/settings", label:
|
|
2950
|
+
{ path: "/home", label: "Início", icon: Home },
|
|
2951
|
+
{ path: "/dashboard", label: "Dashboard", icon: Users },
|
|
2952
|
+
{ path: "/settings", label: "Configurações", icon: Settings }
|
|
2969
2953
|
],
|
|
2970
2954
|
footer: {
|
|
2971
2955
|
showUser: showSidebarUser,
|
|
@@ -2979,7 +2963,7 @@ function TemplateContent() {
|
|
|
2979
2963
|
{
|
|
2980
2964
|
className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300",
|
|
2981
2965
|
style: { left: `${sidebarWidth}px` },
|
|
2982
|
-
children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children:
|
|
2966
|
+
children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children: "Navegação Tradicional do Sistema" })
|
|
2983
2967
|
}
|
|
2984
2968
|
)
|
|
2985
2969
|
]
|
|
@@ -2991,22 +2975,19 @@ function TemplateContent() {
|
|
|
2991
2975
|
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
2992
2976
|
/* @__PURE__ */ jsxs(Card, { className: "mt-8", children: [
|
|
2993
2977
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
2994
|
-
/* @__PURE__ */ jsx(CardTitle, { children:
|
|
2995
|
-
/* @__PURE__ */ jsx(CardDescription, { children:
|
|
2978
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Template Pronto para CLI" }),
|
|
2979
|
+
/* @__PURE__ */ jsx(CardDescription, { children: "Como usar este template" })
|
|
2996
2980
|
] }),
|
|
2997
2981
|
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
2998
2982
|
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
2983
|
+
"Este template está pronto para ser usado como base para novos projetos. Todos os componentes usam as variáveis CSS definidas em",
|
|
2984
|
+
" ",
|
|
2985
|
+
/* @__PURE__ */ jsx("code", { className: "bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]", children: "/styles/xertica/tokens.css" }),
|
|
2986
|
+
"and follow the Xertica UI CLI-first architecture."
|
|
3002
2987
|
] }),
|
|
3003
2988
|
/* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
|
|
3004
|
-
/* @__PURE__ */ jsx(AlertTitle, { children:
|
|
3005
|
-
/* @__PURE__ */
|
|
3006
|
-
t("templates.footer.tipDescriptionPart1"),
|
|
3007
|
-
/* @__PURE__ */ jsx("code", { className: "bg-muted px-1 rounded", children: "styles/xertica/tokens.css" }),
|
|
3008
|
-
t("templates.footer.tipDescriptionPart2")
|
|
3009
|
-
] })
|
|
2989
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Dica" }),
|
|
2990
|
+
/* @__PURE__ */ jsx(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." })
|
|
3010
2991
|
] })
|
|
3011
2992
|
] })
|
|
3012
2993
|
] })
|
|
@@ -3015,17 +2996,16 @@ function TemplateContent() {
|
|
|
3015
2996
|
}
|
|
3016
2997
|
);
|
|
3017
2998
|
}
|
|
3018
|
-
|
|
3019
2999
|
function TemplatePage() {
|
|
3020
3000
|
const { user, logout } = useAuth();
|
|
3021
3001
|
const layout = useOptionalLayout();
|
|
3022
3002
|
const [localSidebarExpanded, setLocalSidebarExpanded] = React__default.useState(false);
|
|
3023
3003
|
const [localAssistantExpanded, setLocalAssistantExpanded] = React__default.useState(false);
|
|
3024
|
-
const sidebarExpanded = layout
|
|
3025
|
-
const sidebarWidth = layout
|
|
3026
|
-
const assistenteExpanded = layout
|
|
3027
|
-
const toggleSidebar = layout
|
|
3028
|
-
const toggleAssistente = layout
|
|
3004
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
|
|
3005
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
|
|
3006
|
+
const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
|
|
3007
|
+
const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
|
|
3008
|
+
const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
|
|
3029
3009
|
const location = useLocation();
|
|
3030
3010
|
const navigate = useNavigate();
|
|
3031
3011
|
return /* @__PURE__ */ jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
|
|
@@ -3059,12 +3039,12 @@ function TemplatePage() {
|
|
|
3059
3039
|
)
|
|
3060
3040
|
] });
|
|
3061
3041
|
}
|
|
3062
|
-
|
|
3063
3042
|
function VerifyEmailPage() {
|
|
3043
|
+
var _a;
|
|
3064
3044
|
const navigate = useNavigate();
|
|
3065
3045
|
const location = useLocation();
|
|
3066
|
-
const { t } = useTranslation();
|
|
3067
|
-
const email = location.state
|
|
3046
|
+
const { t: t2 } = useTranslation();
|
|
3047
|
+
const email = ((_a = location.state) == null ? void 0 : _a.email) || "your@email.com";
|
|
3068
3048
|
const [isResending, setIsResending] = useState(false);
|
|
3069
3049
|
const [resendSuccess, setResendSuccess] = useState(false);
|
|
3070
3050
|
const handleResend = async () => {
|
|
@@ -3083,7 +3063,7 @@ function VerifyEmailPage() {
|
|
|
3083
3063
|
ImageWithFallback,
|
|
3084
3064
|
{
|
|
3085
3065
|
src: "https://images.unsplash.com/photo-1563986768609-322da13575f3?w=1200&h=800&fit=crop&auto=format",
|
|
3086
|
-
alt:
|
|
3066
|
+
alt: t2("verifyEmail.heroImageAlt"),
|
|
3087
3067
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
3088
3068
|
}
|
|
3089
3069
|
),
|
|
@@ -3102,23 +3082,23 @@ function VerifyEmailPage() {
|
|
|
3102
3082
|
}
|
|
3103
3083
|
) }),
|
|
3104
3084
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx("div", { className: "p-4 bg-primary/10 rounded-[var(--radius)]", children: /* @__PURE__ */ jsx(Mail, { className: "w-12 h-12 text-primary" }) }) }),
|
|
3105
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children:
|
|
3106
|
-
/* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children:
|
|
3085
|
+
/* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: t2("verifyEmail.heading") }),
|
|
3086
|
+
/* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: t2("verifyEmail.instructionsSent") }),
|
|
3107
3087
|
/* @__PURE__ */ jsx("p", { className: "mt-1 text-primary", children: email })
|
|
3108
3088
|
] }),
|
|
3109
3089
|
/* @__PURE__ */ jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-3", children: [
|
|
3110
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children:
|
|
3090
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: t2("verifyEmail.instructions") }),
|
|
3111
3091
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2 text-muted-foreground", children: [
|
|
3112
3092
|
/* @__PURE__ */ jsx(CheckCircle2, { className: "w-4 h-4 mt-0.5 flex-shrink-0 text-[var(--chart-2)]" }),
|
|
3113
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm", children:
|
|
3093
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm", children: t2("verifyEmail.checkSpam") })
|
|
3114
3094
|
] })
|
|
3115
3095
|
] }),
|
|
3116
3096
|
resendSuccess && /* @__PURE__ */ 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: [
|
|
3117
3097
|
/* @__PURE__ */ jsx(CheckCircle2, { className: "w-5 h-5 text-[var(--chart-2)] flex-shrink-0" }),
|
|
3118
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-[var(--chart-2)]", children:
|
|
3098
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-[var(--chart-2)]", children: t2("verifyEmail.resentSuccess") })
|
|
3119
3099
|
] }),
|
|
3120
3100
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
3121
|
-
/* @__PURE__ */ jsx("p", { className: "text-center text-muted-foreground", children:
|
|
3101
|
+
/* @__PURE__ */ jsx("p", { className: "text-center text-muted-foreground", children: t2("verifyEmail.notReceived") }),
|
|
3122
3102
|
/* @__PURE__ */ jsx(
|
|
3123
3103
|
Button,
|
|
3124
3104
|
{
|
|
@@ -3126,7 +3106,7 @@ function VerifyEmailPage() {
|
|
|
3126
3106
|
className: "w-full",
|
|
3127
3107
|
onClick: handleResend,
|
|
3128
3108
|
disabled: isResending,
|
|
3129
|
-
children: isResending ?
|
|
3109
|
+
children: isResending ? t2("verifyEmail.resending") : t2("verifyEmail.resend")
|
|
3130
3110
|
}
|
|
3131
3111
|
),
|
|
3132
3112
|
/* @__PURE__ */ jsxs(
|
|
@@ -3138,14 +3118,14 @@ function VerifyEmailPage() {
|
|
|
3138
3118
|
className: "w-full text-muted-foreground hover:text-foreground",
|
|
3139
3119
|
children: [
|
|
3140
3120
|
/* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4 mr-2" }),
|
|
3141
|
-
|
|
3121
|
+
t2("verifyEmail.backToLogin")
|
|
3142
3122
|
]
|
|
3143
3123
|
}
|
|
3144
3124
|
)
|
|
3145
3125
|
] }),
|
|
3146
3126
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
3147
3127
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
|
|
3148
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children:
|
|
3128
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: t2("login.orContinueWith") }) })
|
|
3149
3129
|
] }),
|
|
3150
3130
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
3151
3131
|
/* @__PURE__ */ jsxs(
|
|
@@ -3187,7 +3167,7 @@ function VerifyEmailPage() {
|
|
|
3187
3167
|
),
|
|
3188
3168
|
/* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
|
|
3189
3169
|
] }),
|
|
3190
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
3170
|
+
/* @__PURE__ */ jsx("span", { children: t2("login.signInWithGoogle") })
|
|
3191
3171
|
]
|
|
3192
3172
|
}
|
|
3193
3173
|
),
|
|
@@ -3200,7 +3180,7 @@ function VerifyEmailPage() {
|
|
|
3200
3180
|
onClick: () => handleSocialLogin(),
|
|
3201
3181
|
children: [
|
|
3202
3182
|
/* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
|
|
3203
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
3183
|
+
/* @__PURE__ */ jsx("span", { children: t2("login.signInWithMTLogin") })
|
|
3204
3184
|
]
|
|
3205
3185
|
}
|
|
3206
3186
|
),
|
|
@@ -3211,7 +3191,7 @@ function VerifyEmailPage() {
|
|
|
3211
3191
|
variant: "outline",
|
|
3212
3192
|
className: "w-full justify-center font-normal",
|
|
3213
3193
|
onClick: () => handleSocialLogin(),
|
|
3214
|
-
children: /* @__PURE__ */ jsx("span", { children:
|
|
3194
|
+
children: /* @__PURE__ */ jsx("span", { children: t2("login.signInWithGovBr") })
|
|
3215
3195
|
}
|
|
3216
3196
|
)
|
|
3217
3197
|
] })
|
|
@@ -3219,5 +3199,13 @@ function VerifyEmailPage() {
|
|
|
3219
3199
|
] })
|
|
3220
3200
|
] });
|
|
3221
3201
|
}
|
|
3222
|
-
|
|
3223
|
-
|
|
3202
|
+
export {
|
|
3203
|
+
ForgotPasswordPage as F,
|
|
3204
|
+
HomeContent as H,
|
|
3205
|
+
LoginPage as L,
|
|
3206
|
+
ResetPasswordPage as R,
|
|
3207
|
+
TemplateContent as T,
|
|
3208
|
+
VerifyEmailPage as V,
|
|
3209
|
+
HomePage as a,
|
|
3210
|
+
TemplatePage as b
|
|
3211
|
+
};
|