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,29 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const zustand = require('zustand');
|
|
26
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const button = require("./button-Bnv9SvYK.cjs");
|
|
5
|
+
const input = require("./input-CNFHVKvo.cjs");
|
|
6
|
+
const alertDialog = require("./alert-dialog-B4M3vQKS.cjs");
|
|
7
|
+
const XerticaXLogo = require("./XerticaXLogo-CU-U-GP4.cjs");
|
|
8
|
+
const lucideReact = require("lucide-react");
|
|
9
|
+
const reactRouterDom = require("react-router-dom");
|
|
10
|
+
const sidebar = require("./sidebar-zowjejT2.cjs");
|
|
11
|
+
const skeleton = require("./skeleton-4zoHiFJ_.cjs");
|
|
12
|
+
const progress = require("./progress-DDeuWPZw.cjs");
|
|
13
|
+
const LayoutContext = require("./LayoutContext-C4kKN9RV.cjs");
|
|
14
|
+
const ThemeContext = require("./ThemeContext-CpqYShLq.cjs");
|
|
15
|
+
const reactQuery = require("@tanstack/react-query");
|
|
16
|
+
const reactI18next = require("react-i18next");
|
|
17
|
+
const FeatureCardSkeleton = require("./FeatureCardSkeleton-mO3Bdm_V.cjs");
|
|
18
|
+
const xerticaAssistant = require("./xertica-assistant-d2qs2Vd9.cjs");
|
|
19
|
+
const i18n = require("i18next");
|
|
20
|
+
const richTextEditor = require("./rich-text-editor-CyggTOLQ.cjs");
|
|
21
|
+
const select = require("./select-Cmb8zF7w.cjs");
|
|
22
|
+
const slider = require("./slider-DcJharR9.cjs");
|
|
23
|
+
const sonner = require("sonner");
|
|
24
|
+
const zustand = require("zustand");
|
|
27
25
|
function ForgotPasswordPage() {
|
|
28
26
|
const navigate = reactRouterDom.useNavigate();
|
|
29
27
|
const [email, setEmail] = React.useState("");
|
|
@@ -177,9 +175,7 @@ function ForgotPasswordPage() {
|
|
|
177
175
|
] })
|
|
178
176
|
] });
|
|
179
177
|
}
|
|
180
|
-
|
|
181
178
|
const SIDEBAR_COLLAPSED_WIDTH = 80;
|
|
182
|
-
|
|
183
179
|
const t = (key, options) => i18n.t(key, options);
|
|
184
180
|
const MOCK_TEAM_MEMBERS = [
|
|
185
181
|
{ id: "1", name: "Ana Silva", email: "ana.silva@example.com", role: "Developer", status: "active" },
|
|
@@ -203,7 +199,6 @@ async function fetchFeatureCards() {
|
|
|
203
199
|
}
|
|
204
200
|
];
|
|
205
201
|
}
|
|
206
|
-
|
|
207
202
|
function useTeamMembers() {
|
|
208
203
|
const { language } = ThemeContext.useLanguage();
|
|
209
204
|
return reactQuery.useQuery({
|
|
@@ -214,7 +209,6 @@ function useTeamMembers() {
|
|
|
214
209
|
// 2 min
|
|
215
210
|
});
|
|
216
211
|
}
|
|
217
|
-
|
|
218
212
|
function useFeatureCards() {
|
|
219
213
|
const { language } = ThemeContext.useLanguage();
|
|
220
214
|
return reactQuery.useQuery({
|
|
@@ -225,7 +219,6 @@ function useFeatureCards() {
|
|
|
225
219
|
// 10 min — feature list is fairly static
|
|
226
220
|
});
|
|
227
221
|
}
|
|
228
|
-
|
|
229
222
|
const useDashboardStore = zustand.create((set) => ({
|
|
230
223
|
// Filters
|
|
231
224
|
activeTab: "overview",
|
|
@@ -241,7 +234,6 @@ const useDashboardStore = zustand.create((set) => ({
|
|
|
241
234
|
switchEnabled: false,
|
|
242
235
|
toggleSwitch: () => set((state) => ({ switchEnabled: !state.switchEnabled }))
|
|
243
236
|
}));
|
|
244
|
-
|
|
245
237
|
function isDev() {
|
|
246
238
|
return false;
|
|
247
239
|
}
|
|
@@ -288,7 +280,6 @@ function SectionErrorFallback({ error, reset }) {
|
|
|
288
280
|
}
|
|
289
281
|
);
|
|
290
282
|
}
|
|
291
|
-
|
|
292
283
|
class ErrorBoundary extends React.Component {
|
|
293
284
|
constructor(props) {
|
|
294
285
|
super(props);
|
|
@@ -299,12 +290,13 @@ class ErrorBoundary extends React.Component {
|
|
|
299
290
|
return { hasError: true, error };
|
|
300
291
|
}
|
|
301
292
|
componentDidCatch(error, info) {
|
|
302
|
-
|
|
293
|
+
var _a, _b;
|
|
294
|
+
(_b = (_a = this.props).onError) == null ? void 0 : _b.call(_a, error, info);
|
|
303
295
|
}
|
|
304
296
|
componentDidUpdate(prevProps) {
|
|
305
297
|
if (!this.state.hasError) return;
|
|
306
298
|
const { resetKeys } = this.props;
|
|
307
|
-
if (!resetKeys
|
|
299
|
+
if (!(resetKeys == null ? void 0 : resetKeys.length)) return;
|
|
308
300
|
const prevKeys = prevProps.resetKeys ?? [];
|
|
309
301
|
const changed = resetKeys.some((key, i) => key !== prevKeys[i]);
|
|
310
302
|
if (changed) this.reset();
|
|
@@ -324,12 +316,11 @@ class ErrorBoundary extends React.Component {
|
|
|
324
316
|
function SectionErrorBoundary({ children, onError, resetKeys }) {
|
|
325
317
|
return /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { fallback: SectionErrorFallback, onError, resetKeys, children });
|
|
326
318
|
}
|
|
327
|
-
|
|
328
319
|
function HomeContent() {
|
|
329
|
-
const { t } = reactI18next.useTranslation();
|
|
320
|
+
const { t: t2 } = reactI18next.useTranslation();
|
|
330
321
|
const layout = LayoutContext.useOptionalLayout();
|
|
331
|
-
const sidebarExpanded = layout
|
|
332
|
-
const sidebarWidth = layout
|
|
322
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? false;
|
|
323
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 256;
|
|
333
324
|
const navigate = reactRouterDom.useNavigate();
|
|
334
325
|
const { data: featureCards = [], isLoading } = useFeatureCards();
|
|
335
326
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -346,8 +337,8 @@ function HomeContent() {
|
|
|
346
337
|
showThemeToggle: true,
|
|
347
338
|
showLanguageSelector: true,
|
|
348
339
|
breadcrumbs: [
|
|
349
|
-
{ label:
|
|
350
|
-
{ label:
|
|
340
|
+
{ label: t2("nav.designSystem"), href: "/home" },
|
|
341
|
+
{ label: t2("nav.home") }
|
|
351
342
|
],
|
|
352
343
|
renderLink: (href, props) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, ...props })
|
|
353
344
|
}
|
|
@@ -356,8 +347,8 @@ function HomeContent() {
|
|
|
356
347
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
357
348
|
alertDialog.PageHeader,
|
|
358
349
|
{
|
|
359
|
-
title:
|
|
360
|
-
subtitle:
|
|
350
|
+
title: t2("home.welcome"),
|
|
351
|
+
subtitle: t2("home.subtitle")
|
|
361
352
|
}
|
|
362
353
|
),
|
|
363
354
|
/* @__PURE__ */ jsxRuntime.jsx(SectionErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -372,18 +363,18 @@ function HomeContent() {
|
|
|
372
363
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
373
364
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2 bg-[var(--chart-2)]/20 rounded-[var(--radius)]", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "w-6 h-6 text-[var(--chart-2)]" }) }),
|
|
374
365
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
375
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children:
|
|
376
|
-
card.badge && /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", className: "text-xs", children:
|
|
366
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { className: "text-sm", children: t2(`home.${card.id.replace(/-/g, "")}Title`, { defaultValue: card.title }) }),
|
|
367
|
+
card.badge && /* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", className: "text-xs", children: t2(`home.${card.id.replace(/-/g, "")}badge`, { defaultValue: card.badge }) })
|
|
377
368
|
] })
|
|
378
369
|
] }) }),
|
|
379
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children:
|
|
370
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t2(`home.${card.id.replace(/-/g, "")}Description`, { defaultValue: card.description }) }) }),
|
|
380
371
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
381
372
|
button.Button,
|
|
382
373
|
{
|
|
383
374
|
variant: "outline",
|
|
384
375
|
className: "w-full",
|
|
385
376
|
onClick: () => navigate(card.href),
|
|
386
|
-
children:
|
|
377
|
+
children: t2("common.view")
|
|
387
378
|
}
|
|
388
379
|
) })
|
|
389
380
|
]
|
|
@@ -395,39 +386,36 @@ function HomeContent() {
|
|
|
395
386
|
}
|
|
396
387
|
);
|
|
397
388
|
}
|
|
398
|
-
|
|
399
389
|
const routes = [
|
|
400
390
|
{ path: "/home", label: "Home", icon: lucideReact.Home },
|
|
401
391
|
{ path: "/template", label: "Template", icon: lucideReact.FileText }
|
|
402
392
|
];
|
|
403
|
-
|
|
404
393
|
const AuthContext = React.createContext(null);
|
|
405
394
|
function useAuth() {
|
|
406
395
|
const ctx = React.useContext(AuthContext);
|
|
407
396
|
if (!ctx) throw new Error("useAuth must be used within <AuthProvider>");
|
|
408
397
|
return ctx;
|
|
409
398
|
}
|
|
410
|
-
|
|
411
399
|
async function fetchAssistantConfig() {
|
|
412
400
|
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
413
|
-
const
|
|
401
|
+
const t2 = (key) => i18n.t(key);
|
|
414
402
|
return {
|
|
415
403
|
suggestions: [
|
|
416
|
-
{ id: "1", text:
|
|
417
|
-
{ id: "2", text:
|
|
418
|
-
{ id: "3", text:
|
|
419
|
-
{ id: "4", text:
|
|
404
|
+
{ id: "1", text: t2("assistant.suggestions.whatCanIAsk") },
|
|
405
|
+
{ id: "2", text: t2("assistant.suggestions.whatDoYouDo") },
|
|
406
|
+
{ id: "3", text: t2("assistant.suggestions.whichProjects") },
|
|
407
|
+
{ id: "4", text: t2("assistant.suggestions.nextProject") }
|
|
420
408
|
],
|
|
421
409
|
richSuggestions: [
|
|
422
|
-
{ id: "rich-1", text:
|
|
423
|
-
{ id: "rich-2", text:
|
|
424
|
-
{ id: "rich-3", text:
|
|
425
|
-
{ id: "rich-4", text:
|
|
410
|
+
{ id: "rich-1", text: t2("assistant.richSuggestions.viewPerformance") },
|
|
411
|
+
{ id: "rich-2", text: t2("assistant.richSuggestions.generateReport") },
|
|
412
|
+
{ id: "rich-3", text: t2("assistant.richSuggestions.createDocument") },
|
|
413
|
+
{ id: "rich-4", text: t2("assistant.richSuggestions.generatePodcast") }
|
|
426
414
|
],
|
|
427
415
|
feedbackOptions: [
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
416
|
+
t2("assistant.feedback.notWhatIWanted"),
|
|
417
|
+
t2("assistant.feedback.incorrectInfo"),
|
|
418
|
+
t2("assistant.feedback.incompleteAnswer")
|
|
431
419
|
]
|
|
432
420
|
};
|
|
433
421
|
}
|
|
@@ -446,7 +434,6 @@ function getMockFeedbackOptions() {
|
|
|
446
434
|
i18n.t("assistant.feedback.incompleteAnswer")
|
|
447
435
|
];
|
|
448
436
|
}
|
|
449
|
-
|
|
450
437
|
function useAssistantConfig() {
|
|
451
438
|
const { language } = ThemeContext.useLanguage();
|
|
452
439
|
return reactQuery.useQuery({
|
|
@@ -457,17 +444,16 @@ function useAssistantConfig() {
|
|
|
457
444
|
// 30 min — config rarely changes
|
|
458
445
|
});
|
|
459
446
|
}
|
|
460
|
-
|
|
461
447
|
function HomePage() {
|
|
462
448
|
const { user, logout } = useAuth();
|
|
463
449
|
const layout = LayoutContext.useOptionalLayout();
|
|
464
450
|
const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
|
|
465
451
|
const [localAssistantExpanded, setLocalAssistantExpanded] = React.useState(false);
|
|
466
|
-
const sidebarExpanded = layout
|
|
467
|
-
const sidebarWidth = layout
|
|
468
|
-
const assistenteExpanded = layout
|
|
469
|
-
const toggleSidebar = layout
|
|
470
|
-
const toggleAssistente = layout
|
|
452
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
|
|
453
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
|
|
454
|
+
const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
|
|
455
|
+
const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
|
|
456
|
+
const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
|
|
471
457
|
const location = reactRouterDom.useLocation();
|
|
472
458
|
const navigate = reactRouterDom.useNavigate();
|
|
473
459
|
const { data: assistantConfig } = useAssistantConfig();
|
|
@@ -499,19 +485,18 @@ function HomePage() {
|
|
|
499
485
|
defaultTab: "chat",
|
|
500
486
|
demoMode: true,
|
|
501
487
|
responseGenerator: xerticaAssistant.gerarResposta,
|
|
502
|
-
suggestions: assistantConfig
|
|
503
|
-
richSuggestions: assistantConfig
|
|
504
|
-
feedbackOptions: assistantConfig
|
|
488
|
+
suggestions: assistantConfig == null ? void 0 : assistantConfig.suggestions,
|
|
489
|
+
richSuggestions: (assistantConfig == null ? void 0 : assistantConfig.richSuggestions) ?? getMockRichSuggestions(),
|
|
490
|
+
feedbackOptions: (assistantConfig == null ? void 0 : assistantConfig.feedbackOptions) ?? getMockFeedbackOptions(),
|
|
505
491
|
onEvaluation: () => {
|
|
506
492
|
}
|
|
507
493
|
}
|
|
508
494
|
)
|
|
509
495
|
] });
|
|
510
496
|
}
|
|
511
|
-
|
|
512
497
|
function LoginPage({ onLogin }) {
|
|
513
498
|
const navigate = reactRouterDom.useNavigate();
|
|
514
|
-
const { t } = reactI18next.useTranslation();
|
|
499
|
+
const { t: t2 } = reactI18next.useTranslation();
|
|
515
500
|
const [email, setEmail] = React.useState("");
|
|
516
501
|
const [password, setPassword] = React.useState("");
|
|
517
502
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
@@ -523,7 +508,7 @@ function LoginPage({ onLogin }) {
|
|
|
523
508
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
524
509
|
const success = onLogin(email, password);
|
|
525
510
|
if (!success) {
|
|
526
|
-
setError(
|
|
511
|
+
setError(t2("login.errorFillFields"));
|
|
527
512
|
}
|
|
528
513
|
setIsLoading(false);
|
|
529
514
|
};
|
|
@@ -536,7 +521,7 @@ function LoginPage({ onLogin }) {
|
|
|
536
521
|
alertDialog.ImageWithFallback,
|
|
537
522
|
{
|
|
538
523
|
src: "https://images.unsplash.com/photo-1551434678-e076c223a692?w=1200&h=800&fit=crop&auto=format",
|
|
539
|
-
alt:
|
|
524
|
+
alt: t2("login.heroImageAlt"),
|
|
540
525
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
541
526
|
}
|
|
542
527
|
),
|
|
@@ -554,11 +539,11 @@ function LoginPage({ onLogin }) {
|
|
|
554
539
|
variant: "theme"
|
|
555
540
|
}
|
|
556
541
|
) }),
|
|
557
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children:
|
|
542
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: t2("login.heading") })
|
|
558
543
|
] }),
|
|
559
544
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
|
|
560
545
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
561
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children:
|
|
546
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children: t2("login.emailLabel") }),
|
|
562
547
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
563
548
|
input.Input,
|
|
564
549
|
{
|
|
@@ -567,14 +552,14 @@ function LoginPage({ onLogin }) {
|
|
|
567
552
|
type: "email",
|
|
568
553
|
required: true,
|
|
569
554
|
className: "w-full",
|
|
570
|
-
placeholder:
|
|
555
|
+
placeholder: t2("login.emailPlaceholder"),
|
|
571
556
|
value: email,
|
|
572
557
|
onChange: (e) => setEmail(e.target.value)
|
|
573
558
|
}
|
|
574
559
|
)
|
|
575
560
|
] }),
|
|
576
561
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
577
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children:
|
|
562
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children: t2("login.passwordLabel") }),
|
|
578
563
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
579
564
|
input.Input,
|
|
580
565
|
{
|
|
@@ -590,20 +575,20 @@ function LoginPage({ onLogin }) {
|
|
|
590
575
|
)
|
|
591
576
|
] }),
|
|
592
577
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive text-sm text-center", children: error }),
|
|
593
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ?
|
|
578
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? t2("login.submitting") : t2("login.submit") }),
|
|
594
579
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
595
580
|
"button",
|
|
596
581
|
{
|
|
597
582
|
type: "button",
|
|
598
583
|
onClick: () => navigate("/forgot-password"),
|
|
599
584
|
className: "text-sm text-primary hover:opacity-80 transition-colors",
|
|
600
|
-
children:
|
|
585
|
+
children: t2("login.forgotPassword")
|
|
601
586
|
}
|
|
602
587
|
) })
|
|
603
588
|
] }),
|
|
604
589
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
605
590
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
|
|
606
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children:
|
|
591
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: t2("login.orContinueWith") }) })
|
|
607
592
|
] }),
|
|
608
593
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
609
594
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -645,7 +630,7 @@ function LoginPage({ onLogin }) {
|
|
|
645
630
|
),
|
|
646
631
|
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
|
|
647
632
|
] }),
|
|
648
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
633
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t2("login.signInWithGoogle") })
|
|
649
634
|
]
|
|
650
635
|
}
|
|
651
636
|
),
|
|
@@ -658,7 +643,7 @@ function LoginPage({ onLogin }) {
|
|
|
658
643
|
onClick: () => handleSocialLogin(),
|
|
659
644
|
children: [
|
|
660
645
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
|
|
661
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
646
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t2("login.signInWithMTLogin") })
|
|
662
647
|
]
|
|
663
648
|
}
|
|
664
649
|
),
|
|
@@ -669,7 +654,7 @@ function LoginPage({ onLogin }) {
|
|
|
669
654
|
variant: "outline",
|
|
670
655
|
className: "w-full justify-center font-normal",
|
|
671
656
|
onClick: () => handleSocialLogin(),
|
|
672
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
657
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: t2("login.signInWithGovBr") })
|
|
673
658
|
}
|
|
674
659
|
)
|
|
675
660
|
] })
|
|
@@ -677,10 +662,9 @@ function LoginPage({ onLogin }) {
|
|
|
677
662
|
] })
|
|
678
663
|
] });
|
|
679
664
|
}
|
|
680
|
-
|
|
681
665
|
function ResetPasswordPage() {
|
|
682
666
|
const navigate = reactRouterDom.useNavigate();
|
|
683
|
-
const { t } = reactI18next.useTranslation();
|
|
667
|
+
const { t: t2 } = reactI18next.useTranslation();
|
|
684
668
|
const [password, setPassword] = React.useState("");
|
|
685
669
|
const [confirmPassword, setConfirmPassword] = React.useState("");
|
|
686
670
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
@@ -710,11 +694,11 @@ function ResetPasswordPage() {
|
|
|
710
694
|
e.preventDefault();
|
|
711
695
|
setError("");
|
|
712
696
|
if (password.length < 6) {
|
|
713
|
-
setError(
|
|
697
|
+
setError(t2("resetPassword.errorMinLength"));
|
|
714
698
|
return;
|
|
715
699
|
}
|
|
716
700
|
if (password !== confirmPassword) {
|
|
717
|
-
setError(
|
|
701
|
+
setError(t2("resetPassword.errorMismatch"));
|
|
718
702
|
return;
|
|
719
703
|
}
|
|
720
704
|
setIsLoading(true);
|
|
@@ -737,11 +721,11 @@ function ResetPasswordPage() {
|
|
|
737
721
|
const getStrengthText = () => {
|
|
738
722
|
switch (passwordStrength) {
|
|
739
723
|
case "weak":
|
|
740
|
-
return
|
|
724
|
+
return t2("resetPassword.strengthWeak");
|
|
741
725
|
case "medium":
|
|
742
|
-
return
|
|
726
|
+
return t2("resetPassword.strengthMedium");
|
|
743
727
|
case "strong":
|
|
744
|
-
return
|
|
728
|
+
return t2("resetPassword.strengthStrong");
|
|
745
729
|
default:
|
|
746
730
|
return "";
|
|
747
731
|
}
|
|
@@ -752,7 +736,7 @@ function ResetPasswordPage() {
|
|
|
752
736
|
alertDialog.ImageWithFallback,
|
|
753
737
|
{
|
|
754
738
|
src: "https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop&auto=format",
|
|
755
|
-
alt:
|
|
739
|
+
alt: t2("resetPassword.heroImageAlt"),
|
|
756
740
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
757
741
|
}
|
|
758
742
|
),
|
|
@@ -769,7 +753,7 @@ function ResetPasswordPage() {
|
|
|
769
753
|
className: "flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",
|
|
770
754
|
children: [
|
|
771
755
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4" }),
|
|
772
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small", children:
|
|
756
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small", children: t2("resetPassword.backToLogin") })
|
|
773
757
|
]
|
|
774
758
|
}
|
|
775
759
|
),
|
|
@@ -781,12 +765,12 @@ function ResetPasswordPage() {
|
|
|
781
765
|
variant: "theme"
|
|
782
766
|
}
|
|
783
767
|
) }),
|
|
784
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children:
|
|
785
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children:
|
|
768
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: t2("resetPassword.heading") }),
|
|
769
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: t2("resetPassword.subheading") })
|
|
786
770
|
] }),
|
|
787
771
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
|
|
788
772
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
789
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children:
|
|
773
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "password", children: t2("resetPassword.newPasswordLabel") }),
|
|
790
774
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
791
775
|
input.Input,
|
|
792
776
|
{
|
|
@@ -811,7 +795,7 @@ function ResetPasswordPage() {
|
|
|
811
795
|
] })
|
|
812
796
|
] }),
|
|
813
797
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
814
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "confirmPassword", children:
|
|
798
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "confirmPassword", children: t2("resetPassword.confirmPasswordLabel") }),
|
|
815
799
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
816
800
|
input.Input,
|
|
817
801
|
{
|
|
@@ -830,7 +814,7 @@ function ResetPasswordPage() {
|
|
|
830
814
|
)
|
|
831
815
|
] }),
|
|
832
816
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-2", children: [
|
|
833
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children:
|
|
817
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: t2("resetPassword.requirements") }),
|
|
834
818
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
835
819
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
836
820
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -839,7 +823,7 @@ function ResetPasswordPage() {
|
|
|
839
823
|
className: `w-4 h-4 ${password.length >= 6 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
|
|
840
824
|
}
|
|
841
825
|
),
|
|
842
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children:
|
|
826
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: t2("resetPassword.requirementMinChars") })
|
|
843
827
|
] }),
|
|
844
828
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
845
829
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -848,7 +832,7 @@ function ResetPasswordPage() {
|
|
|
848
832
|
className: `w-4 h-4 ${password === confirmPassword && password.length > 0 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
|
|
849
833
|
}
|
|
850
834
|
),
|
|
851
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children:
|
|
835
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: t2("resetPassword.requirementMatch") })
|
|
852
836
|
] })
|
|
853
837
|
] })
|
|
854
838
|
] }),
|
|
@@ -856,13 +840,12 @@ function ResetPasswordPage() {
|
|
|
856
840
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "w-4 h-4 flex-shrink-0" }),
|
|
857
841
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: error })
|
|
858
842
|
] }),
|
|
859
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ?
|
|
843
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? t2("resetPassword.submitting") : t2("resetPassword.submit") })
|
|
860
844
|
] })
|
|
861
845
|
] })
|
|
862
846
|
] })
|
|
863
847
|
] });
|
|
864
848
|
}
|
|
865
|
-
|
|
866
849
|
function createLucideIconSvg(iconName) {
|
|
867
850
|
const iconPaths = {
|
|
868
851
|
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>',
|
|
@@ -1191,7 +1174,6 @@ function FilterableMapExample({ apiKey }) {
|
|
|
1191
1174
|
] })
|
|
1192
1175
|
] });
|
|
1193
1176
|
}
|
|
1194
|
-
|
|
1195
1177
|
function DrawingMapExample({ apiKey }) {
|
|
1196
1178
|
const [mapInstance, setMapInstance] = React.useState(null);
|
|
1197
1179
|
const [selectedMode, setSelectedMode] = React.useState(null);
|
|
@@ -1308,6 +1290,7 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1308
1290
|
}, [mapInstance, colors, cancelPolygonDrawing]);
|
|
1309
1291
|
const addPolygonPoint = React.useCallback(
|
|
1310
1292
|
(point) => {
|
|
1293
|
+
var _a;
|
|
1311
1294
|
if (!mapInstance) return;
|
|
1312
1295
|
if (!isDrawingPolygon) {
|
|
1313
1296
|
setIsDrawingPolygon(true);
|
|
@@ -1327,7 +1310,7 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1327
1310
|
});
|
|
1328
1311
|
} else {
|
|
1329
1312
|
polygonPathRef.current.push(point);
|
|
1330
|
-
tempPolylineRef.current
|
|
1313
|
+
(_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
|
|
1331
1314
|
}
|
|
1332
1315
|
},
|
|
1333
1316
|
[mapInstance, isDrawingPolygon, colors]
|
|
@@ -1400,10 +1383,11 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1400
1383
|
sonner.toast.info("Mapa limpo");
|
|
1401
1384
|
};
|
|
1402
1385
|
const undoLast = () => {
|
|
1386
|
+
var _a;
|
|
1403
1387
|
if (isDrawingPolygon) {
|
|
1404
1388
|
if (polygonPathRef.current.length > 0) {
|
|
1405
1389
|
polygonPathRef.current.pop();
|
|
1406
|
-
tempPolylineRef.current
|
|
1390
|
+
(_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
|
|
1407
1391
|
if (polygonPathRef.current.length === 0) {
|
|
1408
1392
|
cancelPolygonDrawing();
|
|
1409
1393
|
}
|
|
@@ -1422,6 +1406,7 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1422
1406
|
return;
|
|
1423
1407
|
}
|
|
1424
1408
|
const exportData = shapes.map((s) => {
|
|
1409
|
+
var _a, _b;
|
|
1425
1410
|
let data = {};
|
|
1426
1411
|
if (s.type === "marker") {
|
|
1427
1412
|
const marker = s.overlay;
|
|
@@ -1434,17 +1419,17 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1434
1419
|
} else if (s.type === "circle") {
|
|
1435
1420
|
const circle = s.overlay;
|
|
1436
1421
|
data = {
|
|
1437
|
-
center: { lat: circle.getCenter()
|
|
1422
|
+
center: { lat: (_a = circle.getCenter()) == null ? void 0 : _a.lat(), lng: (_b = circle.getCenter()) == null ? void 0 : _b.lng() },
|
|
1438
1423
|
radius: circle.getRadius()
|
|
1439
1424
|
};
|
|
1440
1425
|
} else if (s.type === "rectangle") {
|
|
1441
1426
|
const rect = s.overlay;
|
|
1442
1427
|
const bounds = rect.getBounds();
|
|
1443
1428
|
data = {
|
|
1444
|
-
north: bounds
|
|
1445
|
-
south: bounds
|
|
1446
|
-
east: bounds
|
|
1447
|
-
west: bounds
|
|
1429
|
+
north: bounds == null ? void 0 : bounds.getNorthEast().lat(),
|
|
1430
|
+
south: bounds == null ? void 0 : bounds.getSouthWest().lat(),
|
|
1431
|
+
east: bounds == null ? void 0 : bounds.getNorthEast().lng(),
|
|
1432
|
+
west: bounds == null ? void 0 : bounds.getSouthWest().lng()
|
|
1448
1433
|
};
|
|
1449
1434
|
} else if (s.type === "polygon") {
|
|
1450
1435
|
const poly = s.overlay;
|
|
@@ -1663,7 +1648,6 @@ function DrawingMapExample({ apiKey }) {
|
|
|
1663
1648
|
] })
|
|
1664
1649
|
] });
|
|
1665
1650
|
}
|
|
1666
|
-
|
|
1667
1651
|
function MapShowcase() {
|
|
1668
1652
|
const [activeTab, setActiveTab] = React.useState("simple");
|
|
1669
1653
|
const [isTransitioning, setIsTransitioning] = React.useState(false);
|
|
@@ -2059,16 +2043,15 @@ function MapShowcase() {
|
|
|
2059
2043
|
] })
|
|
2060
2044
|
] });
|
|
2061
2045
|
}
|
|
2062
|
-
|
|
2063
2046
|
function TemplateContent() {
|
|
2064
|
-
const { t } = reactI18next.useTranslation();
|
|
2047
|
+
const { t: t2 } = reactI18next.useTranslation();
|
|
2065
2048
|
const layout = LayoutContext.useOptionalLayout();
|
|
2066
2049
|
const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
|
|
2067
2050
|
const [localSidebarWidth, setLocalSidebarWidth] = React.useState(280);
|
|
2068
|
-
const sidebarExpanded = layout
|
|
2069
|
-
const sidebarWidth = layout
|
|
2070
|
-
const setSidebarWidth = layout
|
|
2071
|
-
layout
|
|
2051
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
|
|
2052
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? localSidebarWidth;
|
|
2053
|
+
const setSidebarWidth = (layout == null ? void 0 : layout.setSidebarWidth) ?? setLocalSidebarWidth;
|
|
2054
|
+
(layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
|
|
2072
2055
|
reactRouterDom.useNavigate();
|
|
2073
2056
|
const { data: teamMembers = [], isLoading: teamLoading } = useTeamMembers();
|
|
2074
2057
|
const progress$1 = useDashboardStore((s) => s.progress);
|
|
@@ -2084,7 +2067,7 @@ function TemplateContent() {
|
|
|
2084
2067
|
const [showHeaderBreadcrumbs, setShowHeaderBreadcrumbs] = React.useState(true);
|
|
2085
2068
|
const handleFormSubmit = (e) => {
|
|
2086
2069
|
e.preventDefault();
|
|
2087
|
-
sonner.toast.success(
|
|
2070
|
+
sonner.toast.success("Form submitted successfully!");
|
|
2088
2071
|
};
|
|
2089
2072
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2090
2073
|
"div",
|
|
@@ -2100,8 +2083,8 @@ function TemplateContent() {
|
|
|
2100
2083
|
showThemeToggle: true,
|
|
2101
2084
|
showLanguageSelector: true,
|
|
2102
2085
|
breadcrumbs: [
|
|
2103
|
-
{ label:
|
|
2104
|
-
{ label:
|
|
2086
|
+
{ label: "Design System", href: "/home", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
|
|
2087
|
+
{ label: "Página de Template" }
|
|
2105
2088
|
],
|
|
2106
2089
|
renderLink: (href, props) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, ...props })
|
|
2107
2090
|
}
|
|
@@ -2110,16 +2093,16 @@ function TemplateContent() {
|
|
|
2110
2093
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2111
2094
|
alertDialog.PageHeader,
|
|
2112
2095
|
{
|
|
2113
|
-
title:
|
|
2114
|
-
subtitle:
|
|
2096
|
+
title: "Página de Template",
|
|
2097
|
+
subtitle: "Template completo com componentes do Design System"
|
|
2115
2098
|
}
|
|
2116
2099
|
),
|
|
2117
2100
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2118
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2101
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Header with Breadcrumbs" }),
|
|
2119
2102
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2120
2103
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2121
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2122
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2104
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Main Header" }),
|
|
2105
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Example of Header with 4-level breadcrumbs" })
|
|
2123
2106
|
] }),
|
|
2124
2107
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "p-0 border-t bg-background overflow-hidden rounded-b-[var(--radius-lg)]", children: [
|
|
2125
2108
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2127,21 +2110,21 @@ function TemplateContent() {
|
|
|
2127
2110
|
{
|
|
2128
2111
|
className: "border-b",
|
|
2129
2112
|
breadcrumbs: [
|
|
2130
|
-
{ label:
|
|
2131
|
-
{ label:
|
|
2132
|
-
{ label:
|
|
2133
|
-
{ label:
|
|
2113
|
+
{ label: "Dashboard", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" }) },
|
|
2114
|
+
{ label: "Settings", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "w-4 h-4" }) },
|
|
2115
|
+
{ label: "Users", href: "#", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "w-4 h-4" }) },
|
|
2116
|
+
{ label: "Access Profile" }
|
|
2134
2117
|
],
|
|
2135
2118
|
showLanguageSelector: true,
|
|
2136
2119
|
showThemeToggle: true
|
|
2137
2120
|
}
|
|
2138
2121
|
),
|
|
2139
2122
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 min-h-[200px]", children: [
|
|
2140
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-lg font-semibold mb-2", children:
|
|
2123
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-lg font-semibold mb-2", children: "Example Content" }),
|
|
2141
2124
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
|
|
2142
|
-
|
|
2125
|
+
"Neste exemplo, o componente ",
|
|
2143
2126
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Header" }),
|
|
2144
|
-
|
|
2127
|
+
" principal da aplicação agora suporta receber um array de breadcrumbs para navegações complexas com mais de 3 níveis."
|
|
2145
2128
|
] })
|
|
2146
2129
|
] })
|
|
2147
2130
|
] })
|
|
@@ -2149,42 +2132,42 @@ function TemplateContent() {
|
|
|
2149
2132
|
] }),
|
|
2150
2133
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2151
2134
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2152
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2135
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Alertas" }),
|
|
2153
2136
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2154
2137
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "info", children: [
|
|
2155
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children:
|
|
2156
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children:
|
|
2138
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Informação" }),
|
|
2139
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Este é um exemplo de alerta informativo usando os componentes do Design System." })
|
|
2157
2140
|
] }),
|
|
2158
2141
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "destructive", children: [
|
|
2159
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children:
|
|
2160
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children:
|
|
2142
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Erro" }),
|
|
2143
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Ocorreu um erro ao processar sua solicitação." })
|
|
2161
2144
|
] }),
|
|
2162
2145
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "success", children: [
|
|
2163
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children:
|
|
2164
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children:
|
|
2146
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Sucesso" }),
|
|
2147
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Operação realizada com sucesso!" })
|
|
2165
2148
|
] }),
|
|
2166
2149
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "warning", children: [
|
|
2167
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children:
|
|
2168
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children:
|
|
2150
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Aviso" }),
|
|
2151
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Atenção: Esta ação não pode ser desfeita." })
|
|
2169
2152
|
] })
|
|
2170
2153
|
] })
|
|
2171
2154
|
] }),
|
|
2172
2155
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2173
2156
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2174
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2157
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Cards & Abas" }),
|
|
2175
2158
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { defaultValue: "overview", className: "w-full", children: [
|
|
2176
2159
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "grid w-full grid-cols-4", children: [
|
|
2177
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "overview", children:
|
|
2178
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "forms", children:
|
|
2179
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "data", children:
|
|
2180
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "settings", children:
|
|
2160
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "overview", children: "Visão Geral" }),
|
|
2161
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "forms", children: "Formulários" }),
|
|
2162
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "data", children: "Dados" }),
|
|
2163
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "settings", children: "Configurações" })
|
|
2181
2164
|
] }),
|
|
2182
2165
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsContent, { value: "overview", className: "space-y-4", children: [
|
|
2183
2166
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-3", children: [
|
|
2184
2167
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2185
2168
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2186
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2187
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2169
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Total de Usuários" }),
|
|
2170
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Últimos 30 dias" })
|
|
2188
2171
|
] }),
|
|
2189
2172
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
|
|
2190
2173
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "1,234" }),
|
|
@@ -2193,8 +2176,8 @@ function TemplateContent() {
|
|
|
2193
2176
|
] }),
|
|
2194
2177
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2195
2178
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2196
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2197
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2179
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Receita Total" }),
|
|
2180
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Mês atual" })
|
|
2198
2181
|
] }),
|
|
2199
2182
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
|
|
2200
2183
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "$ 45.2k" }),
|
|
@@ -2203,8 +2186,8 @@ function TemplateContent() {
|
|
|
2203
2186
|
] }),
|
|
2204
2187
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2205
2188
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2206
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2207
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2189
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Taxa de Conversão" }),
|
|
2190
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Semana atual" })
|
|
2208
2191
|
] }),
|
|
2209
2192
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-foreground", children: [
|
|
2210
2193
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "3.2%" }),
|
|
@@ -2214,13 +2197,13 @@ function TemplateContent() {
|
|
|
2214
2197
|
] }),
|
|
2215
2198
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2216
2199
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2217
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2218
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2200
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Progresso & Sliders" }),
|
|
2201
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Exemplo de componentes de progresso" })
|
|
2219
2202
|
] }),
|
|
2220
2203
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
|
|
2221
2204
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2222
2205
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2223
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2206
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Progresso do Projeto" }),
|
|
2224
2207
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
|
|
2225
2208
|
progress$1,
|
|
2226
2209
|
"%"
|
|
@@ -2249,7 +2232,7 @@ function TemplateContent() {
|
|
|
2249
2232
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2250
2233
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2251
2234
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2252
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2235
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Volume" }),
|
|
2253
2236
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
|
|
2254
2237
|
sliderValue[0],
|
|
2255
2238
|
"%"
|
|
@@ -2264,7 +2247,7 @@ function TemplateContent() {
|
|
|
2264
2247
|
max: 100,
|
|
2265
2248
|
step: 1,
|
|
2266
2249
|
className: "w-full",
|
|
2267
|
-
"aria-label":
|
|
2250
|
+
"aria-label": "Volume"
|
|
2268
2251
|
}
|
|
2269
2252
|
)
|
|
2270
2253
|
] })
|
|
@@ -2273,22 +2256,22 @@ function TemplateContent() {
|
|
|
2273
2256
|
] }),
|
|
2274
2257
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "forms", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2275
2258
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2276
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2277
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2259
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Formulário de Cadastro" }),
|
|
2260
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Preencha os campos abaixo para criar uma nova conta" })
|
|
2278
2261
|
] }),
|
|
2279
2262
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleFormSubmit, className: "space-y-4", children: [
|
|
2280
2263
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2281
2264
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2282
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "firstName", children:
|
|
2283
|
-
/* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "firstName", placeholder:
|
|
2265
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "firstName", children: "Nome" }),
|
|
2266
|
+
/* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "firstName", placeholder: "João" })
|
|
2284
2267
|
] }),
|
|
2285
2268
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2286
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "lastName", children:
|
|
2287
|
-
/* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "lastName", placeholder:
|
|
2269
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "lastName", children: "Sobrenome" }),
|
|
2270
|
+
/* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "lastName", placeholder: "Silva" })
|
|
2288
2271
|
] })
|
|
2289
2272
|
] }),
|
|
2290
2273
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2291
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children:
|
|
2274
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email", children: "E-mail" }),
|
|
2292
2275
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
2293
2276
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
2294
2277
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2296,14 +2279,14 @@ function TemplateContent() {
|
|
|
2296
2279
|
{
|
|
2297
2280
|
id: "email",
|
|
2298
2281
|
type: "email",
|
|
2299
|
-
placeholder:
|
|
2282
|
+
placeholder: "john@example.com",
|
|
2300
2283
|
className: "pl-10"
|
|
2301
2284
|
}
|
|
2302
2285
|
)
|
|
2303
2286
|
] })
|
|
2304
2287
|
] }),
|
|
2305
2288
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2306
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "phone", children:
|
|
2289
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "phone", children: "Telefone" }),
|
|
2307
2290
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
2308
2291
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
|
|
2309
2292
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2311,81 +2294,81 @@ function TemplateContent() {
|
|
|
2311
2294
|
{
|
|
2312
2295
|
id: "phone",
|
|
2313
2296
|
type: "tel",
|
|
2314
|
-
placeholder:
|
|
2297
|
+
placeholder: "(11) 99999-9999",
|
|
2315
2298
|
className: "pl-10"
|
|
2316
2299
|
}
|
|
2317
2300
|
)
|
|
2318
2301
|
] })
|
|
2319
2302
|
] }),
|
|
2320
2303
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2321
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "role", children:
|
|
2304
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "role", children: "Função" }),
|
|
2322
2305
|
/* @__PURE__ */ jsxRuntime.jsxs(select.Select, { children: [
|
|
2323
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { id: "role", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, { placeholder:
|
|
2306
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { id: "role", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, { placeholder: "Selecione uma função" }) }),
|
|
2324
2307
|
/* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
|
|
2325
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "developer", children:
|
|
2326
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "designer", children:
|
|
2327
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "manager", children:
|
|
2328
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "analyst", children:
|
|
2308
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "developer", children: "Desenvolvedor" }),
|
|
2309
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "designer", children: "Designer" }),
|
|
2310
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "manager", children: "Gerente" }),
|
|
2311
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "analyst", children: "Analista" })
|
|
2329
2312
|
] })
|
|
2330
2313
|
] })
|
|
2331
2314
|
] }),
|
|
2332
2315
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2333
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "bio", children:
|
|
2316
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "bio", children: "Biografia" }),
|
|
2334
2317
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2335
2318
|
richTextEditor.Textarea,
|
|
2336
2319
|
{
|
|
2337
2320
|
id: "bio",
|
|
2338
|
-
placeholder:
|
|
2321
|
+
placeholder: "Conte-nos um pouco sobre você...",
|
|
2339
2322
|
rows: 4
|
|
2340
2323
|
}
|
|
2341
2324
|
)
|
|
2342
2325
|
] }),
|
|
2343
2326
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2344
2327
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
2345
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { children:
|
|
2328
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { children: "Preferências" }),
|
|
2346
2329
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2347
2330
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2348
2331
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "newsletter" }),
|
|
2349
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "newsletter", className: "font-normal", children:
|
|
2332
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "newsletter", className: "font-normal", children: "Receber newsletter por e-mail" })
|
|
2350
2333
|
] }),
|
|
2351
2334
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2352
2335
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "notifications" }),
|
|
2353
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "notifications", className: "font-normal", children:
|
|
2336
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "notifications", className: "font-normal", children: "Ativar notificações push" })
|
|
2354
2337
|
] }),
|
|
2355
2338
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2356
2339
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Checkbox, { id: "updates" }),
|
|
2357
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "updates", className: "font-normal", children:
|
|
2340
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "updates", className: "font-normal", children: "Receber atualizações sobre novos recursos" })
|
|
2358
2341
|
] })
|
|
2359
2342
|
] }),
|
|
2360
2343
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2361
2344
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2362
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2363
|
-
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.RadioGroup, { defaultValue: "personal", "aria-label":
|
|
2345
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Tipo de Conta" }),
|
|
2346
|
+
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.RadioGroup, { defaultValue: "personal", "aria-label": "Tipo de Conta", children: [
|
|
2364
2347
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2365
2348
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "personal", id: "personal" }),
|
|
2366
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "personal", className: "font-normal", children:
|
|
2349
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "personal", className: "font-normal", children: "Pessoal" })
|
|
2367
2350
|
] }),
|
|
2368
2351
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2369
2352
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "business", id: "business" }),
|
|
2370
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "business", className: "font-normal", children:
|
|
2353
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "business", className: "font-normal", children: "Empresarial" })
|
|
2371
2354
|
] }),
|
|
2372
2355
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2373
2356
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.RadioGroupItem, { value: "enterprise", id: "enterprise" }),
|
|
2374
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "enterprise", className: "font-normal", children:
|
|
2357
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "enterprise", className: "font-normal", children: "Corporativo" })
|
|
2375
2358
|
] })
|
|
2376
2359
|
] })
|
|
2377
2360
|
] })
|
|
2378
2361
|
] })
|
|
2379
2362
|
] }) }),
|
|
2380
2363
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex justify-between", children: [
|
|
2381
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children:
|
|
2382
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: handleFormSubmit, children:
|
|
2364
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Cancelar" }),
|
|
2365
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: handleFormSubmit, children: "Criar Conta" })
|
|
2383
2366
|
] })
|
|
2384
2367
|
] }) }),
|
|
2385
2368
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "data", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsx(SectionErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2386
2369
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2387
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2388
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2370
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Lista de Usuários" }),
|
|
2371
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Gerenciar usuários do sistema" })
|
|
2389
2372
|
] }),
|
|
2390
2373
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { children: [
|
|
2391
2374
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
@@ -2393,19 +2376,19 @@ function TemplateContent() {
|
|
|
2393
2376
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2394
2377
|
input.Input,
|
|
2395
2378
|
{
|
|
2396
|
-
placeholder:
|
|
2397
|
-
"aria-label":
|
|
2379
|
+
placeholder: "Buscar usuários...",
|
|
2380
|
+
"aria-label": "Buscar usuários",
|
|
2398
2381
|
className: "pl-10"
|
|
2399
2382
|
}
|
|
2400
2383
|
)
|
|
2401
2384
|
] }) }),
|
|
2402
2385
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius-lg)] border border-border overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Table, { children: [
|
|
2403
2386
|
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
|
|
2404
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children:
|
|
2405
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children:
|
|
2406
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children:
|
|
2407
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children:
|
|
2408
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { className: "text-right", children:
|
|
2387
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t2("team.name") }),
|
|
2388
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t2("team.email") }),
|
|
2389
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t2("team.role") }),
|
|
2390
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { children: t2("team.status") }),
|
|
2391
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableHead, { className: "text-right", children: t2("team.actions") })
|
|
2409
2392
|
] }) }),
|
|
2410
2393
|
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableBody, { children: teamLoading ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
|
|
2411
2394
|
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -2419,36 +2402,36 @@ function TemplateContent() {
|
|
|
2419
2402
|
] }, i)) }) : teamMembers.map((member) => /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.TableRow, { children: [
|
|
2420
2403
|
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: member.name }),
|
|
2421
2404
|
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: member.email }),
|
|
2422
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children:
|
|
2405
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: t2(`team.roles.${member.role}`) }),
|
|
2423
2406
|
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2424
2407
|
progress.Badge,
|
|
2425
2408
|
{
|
|
2426
2409
|
variant: member.status === "active" ? "default" : member.status === "away" ? "secondary" : "outline",
|
|
2427
|
-
children:
|
|
2410
|
+
children: t2(`common.${member.status}`)
|
|
2428
2411
|
}
|
|
2429
2412
|
) }),
|
|
2430
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children:
|
|
2413
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "ghost", size: "sm", children: t2("common.edit") }) })
|
|
2431
2414
|
] }, member.id)) })
|
|
2432
2415
|
] }) })
|
|
2433
2416
|
] }),
|
|
2434
2417
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex justify-between items-center", children: [
|
|
2435
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children:
|
|
2418
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t2("team.showing", { count: teamMembers.length, total: teamMembers.length }) }),
|
|
2436
2419
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
2437
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children:
|
|
2438
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children:
|
|
2420
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children: "Previous" }),
|
|
2421
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", size: "sm", children: "Next" })
|
|
2439
2422
|
] })
|
|
2440
2423
|
] })
|
|
2441
2424
|
] }) }) }),
|
|
2442
2425
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsContent, { value: "settings", className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2443
2426
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2444
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2445
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2427
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Configurações do Sistema" }),
|
|
2428
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Gerenciar configurações gerais" })
|
|
2446
2429
|
] }),
|
|
2447
2430
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
|
|
2448
2431
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2449
2432
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
2450
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "dark-mode", children:
|
|
2451
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children:
|
|
2433
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "dark-mode", children: "Dark Mode" }),
|
|
2434
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Enable dark theme in the interface" })
|
|
2452
2435
|
] }),
|
|
2453
2436
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2454
2437
|
alertDialog.Switch,
|
|
@@ -2462,62 +2445,62 @@ function TemplateContent() {
|
|
|
2462
2445
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2463
2446
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2464
2447
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
2465
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email-notifications", children:
|
|
2466
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children:
|
|
2448
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "email-notifications", children: "Email Notifications" }),
|
|
2449
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Receive important updates by email" })
|
|
2467
2450
|
] }),
|
|
2468
2451
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "email-notifications", defaultChecked: true })
|
|
2469
2452
|
] }),
|
|
2470
2453
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2471
2454
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2472
2455
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
2473
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "push-notifications", children:
|
|
2474
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children:
|
|
2456
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "push-notifications", children: "Push Notifications" }),
|
|
2457
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: "Receive instant notifications in the browser" })
|
|
2475
2458
|
] }),
|
|
2476
2459
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Switch, { id: "push-notifications" })
|
|
2477
2460
|
] }),
|
|
2478
2461
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2479
2462
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2480
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2463
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Language" }),
|
|
2481
2464
|
/* @__PURE__ */ jsxRuntime.jsxs(select.Select, { defaultValue: "pt-br", children: [
|
|
2482
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label":
|
|
2465
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label": "Idioma do sistema", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, {}) }),
|
|
2483
2466
|
/* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
|
|
2484
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "pt-br", children:
|
|
2485
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "en", children:
|
|
2486
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "es", children:
|
|
2467
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "pt-br", children: "Portuguese (Brazil)" }),
|
|
2468
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "en", children: "English" }),
|
|
2469
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "es", children: "Spanish" })
|
|
2487
2470
|
] })
|
|
2488
2471
|
] })
|
|
2489
2472
|
] }),
|
|
2490
2473
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2491
2474
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2492
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2475
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Time Zone" }),
|
|
2493
2476
|
/* @__PURE__ */ jsxRuntime.jsxs(select.Select, { defaultValue: "america-sao-paulo", children: [
|
|
2494
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label":
|
|
2477
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectTrigger, { "aria-label": "Fuso horário", children: /* @__PURE__ */ jsxRuntime.jsx(select.SelectValue, {}) }),
|
|
2495
2478
|
/* @__PURE__ */ jsxRuntime.jsxs(select.SelectContent, { children: [
|
|
2496
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-sao-paulo", children:
|
|
2497
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-new-york", children:
|
|
2498
|
-
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "europe-london", children:
|
|
2479
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-sao-paulo", children: "America/Sao Paulo (GMT-3)" }),
|
|
2480
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "america-new-york", children: "America/New York (GMT-5)" }),
|
|
2481
|
+
/* @__PURE__ */ jsxRuntime.jsx(select.SelectItem, { value: "europe-london", children: "Europe/London (GMT+0)" })
|
|
2499
2482
|
] })
|
|
2500
2483
|
] })
|
|
2501
2484
|
] })
|
|
2502
2485
|
] }),
|
|
2503
2486
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardFooter, { className: "flex justify-between", children: [
|
|
2504
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children:
|
|
2505
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { children:
|
|
2487
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Restaurar Padrões" }),
|
|
2488
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { children: "Salvar Alterações" })
|
|
2506
2489
|
] })
|
|
2507
2490
|
] }) })
|
|
2508
2491
|
] })
|
|
2509
2492
|
] }),
|
|
2510
2493
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2511
2494
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2512
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2495
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Botões" }),
|
|
2513
2496
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2514
2497
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2515
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2516
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2498
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Variações de Botão" }),
|
|
2499
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Diferentes estilos e tamanhos de botões" })
|
|
2517
2500
|
] }),
|
|
2518
2501
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
|
|
2519
2502
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2520
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2503
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Variants" }),
|
|
2521
2504
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2522
2505
|
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "default", children: "Default" }),
|
|
2523
2506
|
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "secondary", children: "Secondary" }),
|
|
@@ -2529,38 +2512,38 @@ function TemplateContent() {
|
|
|
2529
2512
|
] }),
|
|
2530
2513
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2531
2514
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2532
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2515
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "Sizes" }),
|
|
2533
2516
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
2534
2517
|
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "sm", children: "Small" }),
|
|
2535
2518
|
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "default", children: "Default" }),
|
|
2536
2519
|
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "lg", children: "Large" }),
|
|
2537
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "icon", "aria-label":
|
|
2520
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { size: "icon", "aria-label": "Configurações", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "h-4 w-4" }) })
|
|
2538
2521
|
] })
|
|
2539
2522
|
] }),
|
|
2540
2523
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2541
2524
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2542
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2525
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "With Icons" }),
|
|
2543
2526
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2544
2527
|
/* @__PURE__ */ jsxRuntime.jsxs(button.Button, { children: [
|
|
2545
2528
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "mr-2 h-4 w-4" }),
|
|
2546
|
-
|
|
2529
|
+
"Profile"
|
|
2547
2530
|
] }),
|
|
2548
2531
|
/* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "secondary", children: [
|
|
2549
2532
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "mr-2 h-4 w-4" }),
|
|
2550
|
-
|
|
2533
|
+
"Messages"
|
|
2551
2534
|
] }),
|
|
2552
2535
|
/* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "outline", children: [
|
|
2553
2536
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Calendar, { className: "mr-2 h-4 w-4" }),
|
|
2554
|
-
|
|
2537
|
+
"Schedule"
|
|
2555
2538
|
] })
|
|
2556
2539
|
] })
|
|
2557
2540
|
] }),
|
|
2558
2541
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, {}),
|
|
2559
2542
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
2560
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children:
|
|
2543
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { children: "States" }),
|
|
2561
2544
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2562
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { disabled: true, children:
|
|
2563
|
-
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", disabled: true, children:
|
|
2545
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { disabled: true, children: "Disabled" }),
|
|
2546
|
+
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", disabled: true, children: "Outline Disabled" })
|
|
2564
2547
|
] })
|
|
2565
2548
|
] })
|
|
2566
2549
|
] })
|
|
@@ -2568,68 +2551,68 @@ function TemplateContent() {
|
|
|
2568
2551
|
] }),
|
|
2569
2552
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2570
2553
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2571
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2554
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Badges" }),
|
|
2572
2555
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2573
2556
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2574
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2575
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2557
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Variações de Badge" }),
|
|
2558
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Estilos diferentes de badge para status e tags" })
|
|
2576
2559
|
] }),
|
|
2577
2560
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
2578
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", children: "
|
|
2579
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", children: "
|
|
2580
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", children: "
|
|
2581
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "destructive", children: "
|
|
2582
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-success text-success-foreground", children: "
|
|
2583
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-warning text-warning-foreground", children: "
|
|
2561
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "default", children: "Padrão" }),
|
|
2562
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "secondary", children: "Secundário" }),
|
|
2563
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "outline", children: "Contorno" }),
|
|
2564
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { variant: "destructive", children: "Destrutivo" }),
|
|
2565
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-success text-success-foreground", children: "Sucesso" }),
|
|
2566
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-warning text-warning-foreground", children: "Aviso" }),
|
|
2584
2567
|
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-info text-info-foreground", children: "Info" })
|
|
2585
2568
|
] }) })
|
|
2586
2569
|
] })
|
|
2587
2570
|
] }),
|
|
2588
2571
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2589
2572
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2590
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2573
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Diálogos" }),
|
|
2591
2574
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2592
2575
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2593
2576
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2594
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2595
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2577
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Diálogo" }),
|
|
2578
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Um modal interativo básico" })
|
|
2596
2579
|
] }),
|
|
2597
2580
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { children: [
|
|
2598
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children:
|
|
2581
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", children: "Editar Perfil" }) }),
|
|
2599
2582
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogContent, { className: "sm:max-w-[425px]", children: [
|
|
2600
2583
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { children: [
|
|
2601
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children:
|
|
2602
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children:
|
|
2584
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: "Editar Perfil" }),
|
|
2585
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: "Faça alterações no seu perfil aqui. Clique em salvar quando terminar." })
|
|
2603
2586
|
] }),
|
|
2604
2587
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 py-4", children: [
|
|
2605
2588
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
2606
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "name", className: "text-right", children:
|
|
2589
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "name", className: "text-right", children: "Nome" }),
|
|
2607
2590
|
/* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "name", defaultValue: "John Doe", className: "col-span-3" })
|
|
2608
2591
|
] }),
|
|
2609
2592
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
2610
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "username", className: "text-right", children:
|
|
2593
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "username", className: "text-right", children: "Usuário" }),
|
|
2611
2594
|
/* @__PURE__ */ jsxRuntime.jsx(input.Input, { id: "username", defaultValue: "@johndoe", className: "col-span-3" })
|
|
2612
2595
|
] })
|
|
2613
2596
|
] }),
|
|
2614
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", children:
|
|
2597
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", children: "Atualizar" }) })
|
|
2615
2598
|
] })
|
|
2616
2599
|
] }) })
|
|
2617
2600
|
] }),
|
|
2618
2601
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2619
2602
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2620
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2621
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2603
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Alerta de Diálogo" }),
|
|
2604
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Um alerta para decisões importantes" })
|
|
2622
2605
|
] }),
|
|
2623
2606
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialog, { children: [
|
|
2624
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "destructive", children:
|
|
2607
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "destructive", children: "Excluir Conta" }) }),
|
|
2625
2608
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogContent, { className: "sm:max-w-[425px]", children: [
|
|
2626
2609
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogHeader, { children: [
|
|
2627
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTitle, { children:
|
|
2628
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogDescription, { children:
|
|
2610
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogTitle, { children: "Você tem certeza absoluta?" }),
|
|
2611
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogDescription, { children: "Esta ação não pode ser desfeita. Isso excluirá permanentemente sua conta e removerá seus dados de nossos servidores." })
|
|
2629
2612
|
] }),
|
|
2630
2613
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialogFooter, { children: [
|
|
2631
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogCancel, { children:
|
|
2632
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children:
|
|
2614
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogCancel, { children: "Cancelar" }),
|
|
2615
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: "Continuar" })
|
|
2633
2616
|
] })
|
|
2634
2617
|
] })
|
|
2635
2618
|
] }) })
|
|
@@ -2640,15 +2623,15 @@ function TemplateContent() {
|
|
|
2640
2623
|
/* @__PURE__ */ jsxRuntime.jsx("section", { children: /* @__PURE__ */ jsxRuntime.jsx(MapShowcase, {}) }),
|
|
2641
2624
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2642
2625
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2643
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2626
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Variações de Cabeçalho" }),
|
|
2644
2627
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2645
2628
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2646
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2647
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2629
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Configurações do Cabeçalho Principal" }),
|
|
2630
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "O Header é focado em navegação (breadcrumbs) e ações contextuais rápidas." })
|
|
2648
2631
|
] }),
|
|
2649
2632
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-6", children: [
|
|
2650
2633
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
|
|
2651
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children:
|
|
2634
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children: "Elementos Visíveis" }),
|
|
2652
2635
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6", children: [
|
|
2653
2636
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2654
2637
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2659,7 +2642,7 @@ function TemplateContent() {
|
|
|
2659
2642
|
onCheckedChange: setShowHeaderActions
|
|
2660
2643
|
}
|
|
2661
2644
|
),
|
|
2662
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-actions", className: "cursor-pointer", children:
|
|
2645
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-actions", className: "cursor-pointer", children: "Botões de Ação" })
|
|
2663
2646
|
] }),
|
|
2664
2647
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2665
2648
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2670,60 +2653,60 @@ function TemplateContent() {
|
|
|
2670
2653
|
onCheckedChange: setShowHeaderBreadcrumbs
|
|
2671
2654
|
}
|
|
2672
2655
|
),
|
|
2673
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-bread", className: "cursor-pointer", children:
|
|
2656
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "header-bread", className: "cursor-pointer", children: "Breadcrumbs" })
|
|
2674
2657
|
] })
|
|
2675
2658
|
] })
|
|
2676
2659
|
] }),
|
|
2677
2660
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative border rounded-[var(--radius-lg)] bg-muted/10 overflow-hidden shadow-inner", children: [
|
|
2678
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children:
|
|
2661
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children: "Visualização" }),
|
|
2679
2662
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2680
2663
|
sidebar.Header,
|
|
2681
2664
|
{
|
|
2682
|
-
title: !showHeaderBreadcrumbs ?
|
|
2665
|
+
title: !showHeaderBreadcrumbs ? "Página Atual" : void 0,
|
|
2683
2666
|
breadcrumbs: showHeaderBreadcrumbs ? [
|
|
2684
2667
|
{
|
|
2685
|
-
label:
|
|
2668
|
+
label: "Xertica UI",
|
|
2686
2669
|
href: "#",
|
|
2687
2670
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "w-4 h-4" })
|
|
2688
2671
|
},
|
|
2689
|
-
{ label:
|
|
2690
|
-
{ label:
|
|
2672
|
+
{ label: "Configurações", href: "#" },
|
|
2673
|
+
{ label: "Perfil" }
|
|
2691
2674
|
] : void 0,
|
|
2692
2675
|
actions: showHeaderActions ? [
|
|
2693
2676
|
{
|
|
2694
2677
|
id: "notify",
|
|
2695
2678
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bell, { className: "w-5 h-5" }),
|
|
2696
|
-
onClick: () => sonner.toast(
|
|
2679
|
+
onClick: () => sonner.toast("Notificações abertas")
|
|
2697
2680
|
},
|
|
2698
2681
|
{
|
|
2699
2682
|
id: "mail",
|
|
2700
|
-
label:
|
|
2683
|
+
label: "Mensagens",
|
|
2701
2684
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-5 h-5" }),
|
|
2702
|
-
onClick: () => sonner.toast(
|
|
2685
|
+
onClick: () => sonner.toast("Mensagens abertas")
|
|
2703
2686
|
}
|
|
2704
2687
|
] : void 0
|
|
2705
2688
|
}
|
|
2706
2689
|
),
|
|
2707
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children:
|
|
2690
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children: "Área de Conteúdo da Página" })
|
|
2708
2691
|
] })
|
|
2709
2692
|
] })
|
|
2710
2693
|
] })
|
|
2711
2694
|
] }),
|
|
2712
2695
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2713
2696
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { children: [
|
|
2714
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children:
|
|
2697
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4", children: "Variações da Sidebar" }),
|
|
2715
2698
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { children: [
|
|
2716
2699
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2717
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2718
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2700
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Sidebar Modo Assistente vs Padrão" }),
|
|
2701
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "A Sidebar suporta flexibilidade através da propriedade variant." })
|
|
2719
2702
|
] }),
|
|
2720
2703
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.Tabs, { defaultValue: "assistant", className: "w-full", children: [
|
|
2721
2704
|
/* @__PURE__ */ jsxRuntime.jsxs(alertDialog.TabsList, { className: "mb-4", children: [
|
|
2722
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "assistant", children:
|
|
2723
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "default", children:
|
|
2705
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "assistant", children: "Modo Assistente" }),
|
|
2706
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.TabsTrigger, { value: "default", children: "Modo Padrão" })
|
|
2724
2707
|
] }),
|
|
2725
2708
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
|
|
2726
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children:
|
|
2709
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold mb-4", children: "Configurações do Rodapé" }),
|
|
2727
2710
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-6 mt-2", children: [
|
|
2728
2711
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2729
2712
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2734,7 +2717,7 @@ function TemplateContent() {
|
|
|
2734
2717
|
onCheckedChange: setShowSidebarUser
|
|
2735
2718
|
}
|
|
2736
2719
|
),
|
|
2737
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-user", className: "cursor-pointer", children:
|
|
2720
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-user", className: "cursor-pointer", children: "Perfil do Usuário" })
|
|
2738
2721
|
] }),
|
|
2739
2722
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2740
2723
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2745,7 +2728,7 @@ function TemplateContent() {
|
|
|
2745
2728
|
onCheckedChange: setShowSidebarSettings
|
|
2746
2729
|
}
|
|
2747
2730
|
),
|
|
2748
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-settings", className: "cursor-pointer", children:
|
|
2731
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-settings", className: "cursor-pointer", children: "Configurações" })
|
|
2749
2732
|
] }),
|
|
2750
2733
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
2751
2734
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2756,12 +2739,12 @@ function TemplateContent() {
|
|
|
2756
2739
|
onCheckedChange: setShowSidebarLogout
|
|
2757
2740
|
}
|
|
2758
2741
|
),
|
|
2759
|
-
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-logout", className: "cursor-pointer", children:
|
|
2742
|
+
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Label, { htmlFor: "show-logout", className: "cursor-pointer", children: "Botão de Sair" })
|
|
2760
2743
|
] })
|
|
2761
2744
|
] }),
|
|
2762
2745
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 pt-6 border-t", children: [
|
|
2763
2746
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
2764
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold", children:
|
|
2747
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold", children: "Largura da Sidebar (Desktop)" }),
|
|
2765
2748
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-mono bg-muted px-2 py-1 rounded", children: [
|
|
2766
2749
|
sidebarWidth,
|
|
2767
2750
|
"px"
|
|
@@ -2778,7 +2761,7 @@ function TemplateContent() {
|
|
|
2778
2761
|
max: 450,
|
|
2779
2762
|
step: 10,
|
|
2780
2763
|
className: "flex-1",
|
|
2781
|
-
"aria-label":
|
|
2764
|
+
"aria-label": "Largura da Sidebar"
|
|
2782
2765
|
}
|
|
2783
2766
|
),
|
|
2784
2767
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground w-12", children: "450px" })
|
|
@@ -2799,26 +2782,26 @@ function TemplateContent() {
|
|
|
2799
2782
|
onToggle: () => {
|
|
2800
2783
|
},
|
|
2801
2784
|
user: { email: "admin@xertica.com" },
|
|
2802
|
-
onLogout: () => sonner.toast(
|
|
2785
|
+
onLogout: () => sonner.toast("Saiu"),
|
|
2803
2786
|
location: { pathname: "/assistant/current" },
|
|
2804
2787
|
navigate: () => {
|
|
2805
2788
|
},
|
|
2806
2789
|
variant: "assistant",
|
|
2807
2790
|
search: {
|
|
2808
2791
|
show: true,
|
|
2809
|
-
placeholder:
|
|
2792
|
+
placeholder: "Buscar tópicos...",
|
|
2810
2793
|
filter: {
|
|
2811
2794
|
show: true,
|
|
2812
2795
|
content: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2 space-y-2", children: [
|
|
2813
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children:
|
|
2796
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children: "Filtrar por Status" }),
|
|
2814
2797
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-2 p-1", children: [
|
|
2815
|
-
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children:
|
|
2798
|
+
/* @__PURE__ */ jsxRuntime.jsx(progress.Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children: "Ativo" }),
|
|
2816
2799
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2817
2800
|
progress.Badge,
|
|
2818
2801
|
{
|
|
2819
2802
|
variant: "outline",
|
|
2820
2803
|
className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10",
|
|
2821
|
-
children:
|
|
2804
|
+
children: "Arquivado"
|
|
2822
2805
|
}
|
|
2823
2806
|
),
|
|
2824
2807
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2826,7 +2809,7 @@ function TemplateContent() {
|
|
|
2826
2809
|
{
|
|
2827
2810
|
variant: "outline",
|
|
2828
2811
|
className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10",
|
|
2829
|
-
children:
|
|
2812
|
+
children: "Pendente"
|
|
2830
2813
|
}
|
|
2831
2814
|
)
|
|
2832
2815
|
] })
|
|
@@ -2837,47 +2820,47 @@ function TemplateContent() {
|
|
|
2837
2820
|
show: true,
|
|
2838
2821
|
content: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full bg-sidebar-primary hover:bg-sidebar-primary/90 text-sidebar-primary-foreground shadow-lg font-bold border-none transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98]", children: [
|
|
2839
2822
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "w-4 h-4 mr-2" }),
|
|
2840
|
-
|
|
2823
|
+
"Nova Conversa"
|
|
2841
2824
|
] })
|
|
2842
2825
|
},
|
|
2843
2826
|
navigationGroups: [
|
|
2844
2827
|
{
|
|
2845
2828
|
id: "recent",
|
|
2846
|
-
label:
|
|
2829
|
+
label: "Recentes",
|
|
2847
2830
|
icon: lucideReact.Clock,
|
|
2848
2831
|
items: [
|
|
2849
2832
|
{
|
|
2850
2833
|
path: "/assistant/refatoracao",
|
|
2851
|
-
label:
|
|
2852
|
-
description:
|
|
2834
|
+
label: "Refatoração da Sidebar",
|
|
2835
|
+
description: "Ativo agora",
|
|
2853
2836
|
actions: [
|
|
2854
2837
|
{
|
|
2855
|
-
label:
|
|
2838
|
+
label: "Renomear",
|
|
2856
2839
|
icon: lucideReact.FileEdit,
|
|
2857
|
-
onClick: () => sonner.toast(
|
|
2840
|
+
onClick: () => sonner.toast("Abrir renomear...")
|
|
2858
2841
|
},
|
|
2859
2842
|
{
|
|
2860
|
-
label:
|
|
2843
|
+
label: "Mover",
|
|
2861
2844
|
icon: lucideReact.ArrowRightLeft,
|
|
2862
2845
|
children: [
|
|
2863
2846
|
{
|
|
2864
|
-
label:
|
|
2865
|
-
onClick: () => sonner.toast(
|
|
2847
|
+
label: "Projetos Ativos",
|
|
2848
|
+
onClick: () => sonner.toast("Movido para Projetos Ativos")
|
|
2866
2849
|
},
|
|
2867
2850
|
{
|
|
2868
|
-
label:
|
|
2869
|
-
onClick: () => sonner.toast(
|
|
2851
|
+
label: "Monitoramento",
|
|
2852
|
+
onClick: () => sonner.toast("Movido para Monitoramento")
|
|
2870
2853
|
},
|
|
2871
2854
|
{
|
|
2872
|
-
label:
|
|
2873
|
-
onClick: () => sonner.toast(
|
|
2855
|
+
label: "Arquivar",
|
|
2856
|
+
onClick: () => sonner.toast("Movido para Arquivo")
|
|
2874
2857
|
}
|
|
2875
2858
|
]
|
|
2876
2859
|
},
|
|
2877
2860
|
{
|
|
2878
|
-
label:
|
|
2861
|
+
label: "Limpar",
|
|
2879
2862
|
icon: lucideReact.Trash2,
|
|
2880
|
-
onClick: () => sonner.toast(
|
|
2863
|
+
onClick: () => sonner.toast("Histórico Limpo!"),
|
|
2881
2864
|
variant: "destructive"
|
|
2882
2865
|
}
|
|
2883
2866
|
]
|
|
@@ -2886,24 +2869,24 @@ function TemplateContent() {
|
|
|
2886
2869
|
},
|
|
2887
2870
|
{
|
|
2888
2871
|
id: "projects",
|
|
2889
|
-
label:
|
|
2872
|
+
label: "Monitoramento de Projetos",
|
|
2890
2873
|
icon: lucideReact.Map,
|
|
2891
2874
|
actions: [
|
|
2892
2875
|
{
|
|
2893
|
-
label:
|
|
2876
|
+
label: "Nova Categoria",
|
|
2894
2877
|
icon: lucideReact.Plus,
|
|
2895
|
-
onClick: () => sonner.toast(
|
|
2878
|
+
onClick: () => sonner.toast("Criar nova categoria...")
|
|
2896
2879
|
},
|
|
2897
2880
|
{
|
|
2898
|
-
label:
|
|
2881
|
+
label: "Arquivar Grupo",
|
|
2899
2882
|
icon: lucideReact.Archive,
|
|
2900
|
-
onClick: () => sonner.toast(
|
|
2883
|
+
onClick: () => sonner.toast("Arquivando grupo...")
|
|
2901
2884
|
}
|
|
2902
2885
|
],
|
|
2903
2886
|
items: [
|
|
2904
2887
|
{
|
|
2905
2888
|
path: "/assistant/br163",
|
|
2906
|
-
label:
|
|
2889
|
+
label: "Restauração BR-163",
|
|
2907
2890
|
icon: () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-500" }),
|
|
2908
2891
|
description: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5 min-w-[160px]", children: [
|
|
2909
2892
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2914,7 +2897,7 @@ function TemplateContent() {
|
|
|
2914
2897
|
}
|
|
2915
2898
|
),
|
|
2916
2899
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-[10px] text-sidebar-foreground/60", children: [
|
|
2917
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
2900
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Cuiabá, MT" }),
|
|
2918
2901
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "67%" })
|
|
2919
2902
|
] })
|
|
2920
2903
|
] })
|
|
@@ -2934,7 +2917,7 @@ function TemplateContent() {
|
|
|
2934
2917
|
{
|
|
2935
2918
|
className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300",
|
|
2936
2919
|
style: { left: `${sidebarWidth}px` },
|
|
2937
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children:
|
|
2920
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children: "Conteúdo do Modo Assistente" })
|
|
2938
2921
|
}
|
|
2939
2922
|
)
|
|
2940
2923
|
]
|
|
@@ -2958,16 +2941,16 @@ function TemplateContent() {
|
|
|
2958
2941
|
email: "admin@xertica.com",
|
|
2959
2942
|
avatar: "https://github.com/shadcn.png"
|
|
2960
2943
|
},
|
|
2961
|
-
onLogout: () => sonner.toast(
|
|
2962
|
-
onSettingsClick: () => sonner.toast(
|
|
2944
|
+
onLogout: () => sonner.toast("Saiu"),
|
|
2945
|
+
onSettingsClick: () => sonner.toast("Configurações clicadas"),
|
|
2963
2946
|
location: { pathname: "/home" },
|
|
2964
2947
|
navigate: () => {
|
|
2965
2948
|
},
|
|
2966
2949
|
variant: "default",
|
|
2967
2950
|
routes: [
|
|
2968
|
-
{ path: "/home", label:
|
|
2969
|
-
{ path: "/dashboard", label:
|
|
2970
|
-
{ path: "/settings", label:
|
|
2951
|
+
{ path: "/home", label: "Início", icon: lucideReact.Home },
|
|
2952
|
+
{ path: "/dashboard", label: "Dashboard", icon: lucideReact.Users },
|
|
2953
|
+
{ path: "/settings", label: "Configurações", icon: lucideReact.Settings }
|
|
2971
2954
|
],
|
|
2972
2955
|
footer: {
|
|
2973
2956
|
showUser: showSidebarUser,
|
|
@@ -2981,7 +2964,7 @@ function TemplateContent() {
|
|
|
2981
2964
|
{
|
|
2982
2965
|
className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300",
|
|
2983
2966
|
style: { left: `${sidebarWidth}px` },
|
|
2984
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children:
|
|
2967
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-center", children: "Navegação Tradicional do Sistema" })
|
|
2985
2968
|
}
|
|
2986
2969
|
)
|
|
2987
2970
|
]
|
|
@@ -2993,22 +2976,19 @@ function TemplateContent() {
|
|
|
2993
2976
|
/* @__PURE__ */ jsxRuntime.jsx(alertDialog.Separator, { className: "my-8" }),
|
|
2994
2977
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.Card, { className: "mt-8", children: [
|
|
2995
2978
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardHeader, { children: [
|
|
2996
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children:
|
|
2997
|
-
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children:
|
|
2979
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardTitle, { children: "Template Pronto para CLI" }),
|
|
2980
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton.CardDescription, { children: "Como usar este template" })
|
|
2998
2981
|
] }),
|
|
2999
2982
|
/* @__PURE__ */ jsxRuntime.jsxs(skeleton.CardContent, { className: "space-y-4", children: [
|
|
3000
2983
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
2984
|
+
"Este template está pronto para ser usado como base para novos projetos. Todos os componentes usam as variáveis CSS definidas em",
|
|
2985
|
+
" ",
|
|
2986
|
+
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]", children: "/styles/xertica/tokens.css" }),
|
|
2987
|
+
"and follow the Xertica UI CLI-first architecture."
|
|
3004
2988
|
] }),
|
|
3005
2989
|
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Alert, { variant: "info", children: [
|
|
3006
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children:
|
|
3007
|
-
/* @__PURE__ */ jsxRuntime.
|
|
3008
|
-
t("templates.footer.tipDescriptionPart1"),
|
|
3009
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "bg-muted px-1 rounded", children: "styles/xertica/tokens.css" }),
|
|
3010
|
-
t("templates.footer.tipDescriptionPart2")
|
|
3011
|
-
] })
|
|
2990
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertTitle, { children: "Dica" }),
|
|
2991
|
+
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.AlertDescription, { children: "Copie este arquivo como ponto de partida para suas páginas. Todos os componentes são reutilizáveis e customizáveis através de variáveis CSS." })
|
|
3012
2992
|
] })
|
|
3013
2993
|
] })
|
|
3014
2994
|
] })
|
|
@@ -3017,17 +2997,16 @@ function TemplateContent() {
|
|
|
3017
2997
|
}
|
|
3018
2998
|
);
|
|
3019
2999
|
}
|
|
3020
|
-
|
|
3021
3000
|
function TemplatePage() {
|
|
3022
3001
|
const { user, logout } = useAuth();
|
|
3023
3002
|
const layout = LayoutContext.useOptionalLayout();
|
|
3024
3003
|
const [localSidebarExpanded, setLocalSidebarExpanded] = React.useState(false);
|
|
3025
3004
|
const [localAssistantExpanded, setLocalAssistantExpanded] = React.useState(false);
|
|
3026
|
-
const sidebarExpanded = layout
|
|
3027
|
-
const sidebarWidth = layout
|
|
3028
|
-
const assistenteExpanded = layout
|
|
3029
|
-
const toggleSidebar = layout
|
|
3030
|
-
const toggleAssistente = layout
|
|
3005
|
+
const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
|
|
3006
|
+
const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
|
|
3007
|
+
const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
|
|
3008
|
+
const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
|
|
3009
|
+
const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
|
|
3031
3010
|
const location = reactRouterDom.useLocation();
|
|
3032
3011
|
const navigate = reactRouterDom.useNavigate();
|
|
3033
3012
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
|
|
@@ -3061,12 +3040,12 @@ function TemplatePage() {
|
|
|
3061
3040
|
)
|
|
3062
3041
|
] });
|
|
3063
3042
|
}
|
|
3064
|
-
|
|
3065
3043
|
function VerifyEmailPage() {
|
|
3044
|
+
var _a;
|
|
3066
3045
|
const navigate = reactRouterDom.useNavigate();
|
|
3067
3046
|
const location = reactRouterDom.useLocation();
|
|
3068
|
-
const { t } = reactI18next.useTranslation();
|
|
3069
|
-
const email = location.state
|
|
3047
|
+
const { t: t2 } = reactI18next.useTranslation();
|
|
3048
|
+
const email = ((_a = location.state) == null ? void 0 : _a.email) || "your@email.com";
|
|
3070
3049
|
const [isResending, setIsResending] = React.useState(false);
|
|
3071
3050
|
const [resendSuccess, setResendSuccess] = React.useState(false);
|
|
3072
3051
|
const handleResend = async () => {
|
|
@@ -3085,7 +3064,7 @@ function VerifyEmailPage() {
|
|
|
3085
3064
|
alertDialog.ImageWithFallback,
|
|
3086
3065
|
{
|
|
3087
3066
|
src: "https://images.unsplash.com/photo-1563986768609-322da13575f3?w=1200&h=800&fit=crop&auto=format",
|
|
3088
|
-
alt:
|
|
3067
|
+
alt: t2("verifyEmail.heroImageAlt"),
|
|
3089
3068
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
3090
3069
|
}
|
|
3091
3070
|
),
|
|
@@ -3104,23 +3083,23 @@ function VerifyEmailPage() {
|
|
|
3104
3083
|
}
|
|
3105
3084
|
) }),
|
|
3106
3085
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-primary/10 rounded-[var(--radius)]", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-12 h-12 text-primary" }) }) }),
|
|
3107
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children:
|
|
3108
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children:
|
|
3086
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-muted-foreground", children: t2("verifyEmail.heading") }),
|
|
3087
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: t2("verifyEmail.instructionsSent") }),
|
|
3109
3088
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-primary", children: email })
|
|
3110
3089
|
] }),
|
|
3111
3090
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-3", children: [
|
|
3112
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children:
|
|
3091
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: t2("verifyEmail.instructions") }),
|
|
3113
3092
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2 text-muted-foreground", children: [
|
|
3114
3093
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "w-4 h-4 mt-0.5 flex-shrink-0 text-[var(--chart-2)]" }),
|
|
3115
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children:
|
|
3094
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: t2("verifyEmail.checkSpam") })
|
|
3116
3095
|
] })
|
|
3117
3096
|
] }),
|
|
3118
3097
|
resendSuccess && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-[var(--chart-2)]/10 border border-[var(--chart-2)]/20 rounded-[var(--radius)] p-3 flex items-center gap-2", children: [
|
|
3119
3098
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "w-5 h-5 text-[var(--chart-2)] flex-shrink-0" }),
|
|
3120
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-[var(--chart-2)]", children:
|
|
3099
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-[var(--chart-2)]", children: t2("verifyEmail.resentSuccess") })
|
|
3121
3100
|
] }),
|
|
3122
3101
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
3123
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-muted-foreground", children:
|
|
3102
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-muted-foreground", children: t2("verifyEmail.notReceived") }),
|
|
3124
3103
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3125
3104
|
button.Button,
|
|
3126
3105
|
{
|
|
@@ -3128,7 +3107,7 @@ function VerifyEmailPage() {
|
|
|
3128
3107
|
className: "w-full",
|
|
3129
3108
|
onClick: handleResend,
|
|
3130
3109
|
disabled: isResending,
|
|
3131
|
-
children: isResending ?
|
|
3110
|
+
children: isResending ? t2("verifyEmail.resending") : t2("verifyEmail.resend")
|
|
3132
3111
|
}
|
|
3133
3112
|
),
|
|
3134
3113
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3140,14 +3119,14 @@ function VerifyEmailPage() {
|
|
|
3140
3119
|
className: "w-full text-muted-foreground hover:text-foreground",
|
|
3141
3120
|
children: [
|
|
3142
3121
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "w-4 h-4 mr-2" }),
|
|
3143
|
-
|
|
3122
|
+
t2("verifyEmail.backToLogin")
|
|
3144
3123
|
]
|
|
3145
3124
|
}
|
|
3146
3125
|
)
|
|
3147
3126
|
] }),
|
|
3148
3127
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
3149
3128
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border-t border-border" }) }),
|
|
3150
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children:
|
|
3129
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: t2("login.orContinueWith") }) })
|
|
3151
3130
|
] }),
|
|
3152
3131
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
3153
3132
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3189,7 +3168,7 @@ function VerifyEmailPage() {
|
|
|
3189
3168
|
),
|
|
3190
3169
|
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
|
|
3191
3170
|
] }),
|
|
3192
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
3171
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t2("login.signInWithGoogle") })
|
|
3193
3172
|
]
|
|
3194
3173
|
}
|
|
3195
3174
|
),
|
|
@@ -3202,7 +3181,7 @@ function VerifyEmailPage() {
|
|
|
3202
3181
|
onClick: () => handleSocialLogin(),
|
|
3203
3182
|
children: [
|
|
3204
3183
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
|
|
3205
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
3184
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t2("login.signInWithMTLogin") })
|
|
3206
3185
|
]
|
|
3207
3186
|
}
|
|
3208
3187
|
),
|
|
@@ -3213,7 +3192,7 @@ function VerifyEmailPage() {
|
|
|
3213
3192
|
variant: "outline",
|
|
3214
3193
|
className: "w-full justify-center font-normal",
|
|
3215
3194
|
onClick: () => handleSocialLogin(),
|
|
3216
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
3195
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: t2("login.signInWithGovBr") })
|
|
3217
3196
|
}
|
|
3218
3197
|
)
|
|
3219
3198
|
] })
|
|
@@ -3221,7 +3200,6 @@ function VerifyEmailPage() {
|
|
|
3221
3200
|
] })
|
|
3222
3201
|
] });
|
|
3223
3202
|
}
|
|
3224
|
-
|
|
3225
3203
|
exports.ForgotPasswordPage = ForgotPasswordPage;
|
|
3226
3204
|
exports.HomeContent = HomeContent;
|
|
3227
3205
|
exports.HomePage = HomePage;
|