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,847 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
-
import { c as cn, B as Button, b as buttonVariants } from "./button-C6uvh0rV.js";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import React__default, { useState, useRef, useEffect } from "react";
|
|
6
|
-
import { ChevronLeft, Check } from "lucide-react";
|
|
7
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
8
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
9
|
-
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
10
|
-
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
11
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
12
|
-
import { createRoot } from "react-dom/client";
|
|
13
|
-
import { u as useGoogleMapsLoader } from "./google-maps-loader-CumCNXeG.js";
|
|
14
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
15
|
-
function Label({
|
|
16
|
-
className,
|
|
17
|
-
size = "md",
|
|
18
|
-
...props
|
|
19
|
-
}) {
|
|
20
|
-
const sizeClasses = {
|
|
21
|
-
sm: "text-xs",
|
|
22
|
-
md: "text-sm",
|
|
23
|
-
lg: "text-base"
|
|
24
|
-
};
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
LabelPrimitive.Root,
|
|
27
|
-
{
|
|
28
|
-
"data-slot": "label",
|
|
29
|
-
className: cn(
|
|
30
|
-
"flex items-center gap-2 leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
31
|
-
sizeClasses[size],
|
|
32
|
-
className
|
|
33
|
-
),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
const ERROR_IMG_SRC = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
|
|
39
|
-
function ImageWithFallback(props) {
|
|
40
|
-
const [didError, setDidError] = useState(false);
|
|
41
|
-
const handleError = () => {
|
|
42
|
-
setDidError(true);
|
|
43
|
-
};
|
|
44
|
-
const { src, alt, style, className, ...rest } = props;
|
|
45
|
-
return didError ? /* @__PURE__ */ jsx(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
className: `inline-block bg-gray-100 text-center align-middle ${className ?? ""}`,
|
|
49
|
-
style,
|
|
50
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ jsx("img", { src: ERROR_IMG_SRC, alt: "Error loading image", ...rest, "data-original-url": src }) })
|
|
51
|
-
}
|
|
52
|
-
) : /* @__PURE__ */ jsx("img", { src, alt, className, style, ...rest, onError: handleError });
|
|
53
|
-
}
|
|
54
|
-
function PageHeader({
|
|
55
|
-
title,
|
|
56
|
-
subtitle,
|
|
57
|
-
backHref,
|
|
58
|
-
onBack,
|
|
59
|
-
renderBackLink,
|
|
60
|
-
actions,
|
|
61
|
-
className,
|
|
62
|
-
backLabel = "Back"
|
|
63
|
-
}) {
|
|
64
|
-
const showBack = !!(backHref || onBack || renderBackLink);
|
|
65
|
-
const icon = /* @__PURE__ */ jsx(ChevronLeft, { className: "h-5 w-5" });
|
|
66
|
-
return /* @__PURE__ */ jsxs(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: cn(
|
|
70
|
-
"flex flex-col gap-4 md:flex-row md:items-center md:justify-between mb-8",
|
|
71
|
-
className
|
|
72
|
-
),
|
|
73
|
-
children: [
|
|
74
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4", children: [
|
|
75
|
-
showBack && /* @__PURE__ */ jsx(
|
|
76
|
-
Button,
|
|
77
|
-
{
|
|
78
|
-
variant: "outline",
|
|
79
|
-
size: "icon",
|
|
80
|
-
className: "h-10 w-10 shrink-0",
|
|
81
|
-
onClick: onBack,
|
|
82
|
-
asChild: !!renderBackLink || !!backHref,
|
|
83
|
-
"aria-label": backLabel,
|
|
84
|
-
children: renderBackLink ? renderBackLink(icon) : backHref ? /* @__PURE__ */ jsx("a", { href: backHref, children: icon }) : icon
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1", children: [
|
|
88
|
-
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: title }),
|
|
89
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: subtitle })
|
|
90
|
-
] })
|
|
91
|
-
] }),
|
|
92
|
-
actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: actions })
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
function PageHeaderHeading({
|
|
98
|
-
className,
|
|
99
|
-
...props
|
|
100
|
-
}) {
|
|
101
|
-
return /* @__PURE__ */ jsx(
|
|
102
|
-
"h1",
|
|
103
|
-
{
|
|
104
|
-
className: cn(
|
|
105
|
-
"text-3xl font-bold leading-tight tracking-tighter md:text-4xl lg:leading-[1.1]",
|
|
106
|
-
className
|
|
107
|
-
),
|
|
108
|
-
...props
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
function PageHeaderDescription({
|
|
113
|
-
className,
|
|
114
|
-
...props
|
|
115
|
-
}) {
|
|
116
|
-
return /* @__PURE__ */ jsx("p", { className: cn("text-lg text-muted-foreground sm:text-xl", className), ...props });
|
|
117
|
-
}
|
|
118
|
-
function Tabs({ className, ...props }) {
|
|
119
|
-
return /* @__PURE__ */ jsx(
|
|
120
|
-
TabsPrimitive.Root,
|
|
121
|
-
{
|
|
122
|
-
"data-slot": "tabs",
|
|
123
|
-
className: cn("flex flex-col gap-2", className),
|
|
124
|
-
...props
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
function TabsList({ className, ...props }) {
|
|
129
|
-
return /* @__PURE__ */ jsx(
|
|
130
|
-
TabsPrimitive.List,
|
|
131
|
-
{
|
|
132
|
-
"data-slot": "tabs-list",
|
|
133
|
-
className: cn(
|
|
134
|
-
"relative inline-flex h-12 w-fit items-end justify-start border-b border-border bg-transparent",
|
|
135
|
-
className
|
|
136
|
-
),
|
|
137
|
-
...props
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
function TabsTrigger({ className, ...props }) {
|
|
142
|
-
return /* @__PURE__ */ jsx(
|
|
143
|
-
TabsPrimitive.Trigger,
|
|
144
|
-
{
|
|
145
|
-
"data-slot": "tabs-trigger",
|
|
146
|
-
className: cn(
|
|
147
|
-
"relative inline-flex h-12 items-center justify-center gap-1.5 bg-transparent px-4 py-3 text-sm font-medium whitespace-nowrap transition-all duration-200 ease-in-out border-b-2 border-transparent text-muted-foreground hover:text-foreground hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-primary data-[state=active]:border-primary data-[state=active]:bg-transparent [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
148
|
-
className
|
|
149
|
-
),
|
|
150
|
-
...props
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
function TabsContent({ className, ...props }) {
|
|
155
|
-
return /* @__PURE__ */ jsx(
|
|
156
|
-
TabsPrimitive.Content,
|
|
157
|
-
{
|
|
158
|
-
"data-slot": "tabs-content",
|
|
159
|
-
className: cn("flex-1 outline-none", className),
|
|
160
|
-
...props
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
const Checkbox = React.forwardRef(({ className, size = "md", ...props }, ref) => {
|
|
165
|
-
const sizeClasses = {
|
|
166
|
-
sm: "size-3.5",
|
|
167
|
-
md: "size-4",
|
|
168
|
-
lg: "size-5"
|
|
169
|
-
};
|
|
170
|
-
const iconSizeClasses = {
|
|
171
|
-
sm: "size-3",
|
|
172
|
-
md: "size-3.5",
|
|
173
|
-
lg: "size-4"
|
|
174
|
-
};
|
|
175
|
-
return /* @__PURE__ */ jsx(
|
|
176
|
-
CheckboxPrimitive.Root,
|
|
177
|
-
{
|
|
178
|
-
ref,
|
|
179
|
-
"data-slot": "checkbox",
|
|
180
|
-
className: cn(
|
|
181
|
-
"peer border bg-white dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
182
|
-
sizeClasses[size],
|
|
183
|
-
className
|
|
184
|
-
),
|
|
185
|
-
...props,
|
|
186
|
-
children: /* @__PURE__ */ jsx(
|
|
187
|
-
CheckboxPrimitive.Indicator,
|
|
188
|
-
{
|
|
189
|
-
"data-slot": "checkbox-indicator",
|
|
190
|
-
className: "flex items-center justify-center text-current transition-none",
|
|
191
|
-
children: /* @__PURE__ */ jsx(Check, { className: iconSizeClasses[size] })
|
|
192
|
-
}
|
|
193
|
-
)
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
});
|
|
197
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
198
|
-
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { className: cn("grid gap-4", className), ...props, ref }));
|
|
199
|
-
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
200
|
-
const RadioGroupItem = React.forwardRef(({ className, size = "md", ...props }, ref) => {
|
|
201
|
-
const sizeClasses = {
|
|
202
|
-
sm: "size-4",
|
|
203
|
-
md: "size-5",
|
|
204
|
-
lg: "size-6"
|
|
205
|
-
};
|
|
206
|
-
const dotSizeClasses = {
|
|
207
|
-
sm: "size-2",
|
|
208
|
-
md: "size-2.5",
|
|
209
|
-
lg: "size-3"
|
|
210
|
-
};
|
|
211
|
-
return /* @__PURE__ */ jsx(
|
|
212
|
-
RadioGroupPrimitive.Item,
|
|
213
|
-
{
|
|
214
|
-
ref,
|
|
215
|
-
"data-slot": "radio-group-item",
|
|
216
|
-
className: cn(
|
|
217
|
-
// Base styles - Material UI inspired
|
|
218
|
-
"relative aspect-square shrink-0 rounded-full border-2 transition-all duration-200 outline-none cursor-pointer",
|
|
219
|
-
// Default state - sempre com contorno usando variáveis CSS
|
|
220
|
-
"border-muted-foreground bg-background",
|
|
221
|
-
// Hover state - usa variável primary
|
|
222
|
-
"hover:border-primary hover:shadow-md",
|
|
223
|
-
// Focus state - usa variável primary
|
|
224
|
-
"focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
225
|
-
// Checked state - mantém contorno com primary
|
|
226
|
-
"data-[state=checked]:border-primary data-[state=checked]:bg-background",
|
|
227
|
-
// Disabled state
|
|
228
|
-
"disabled:cursor-not-allowed disabled:opacity-50 disabled:border-muted",
|
|
229
|
-
// Invalid state - usa variável destructive
|
|
230
|
-
"aria-invalid:border-destructive aria-invalid:ring-destructive/20",
|
|
231
|
-
sizeClasses[size],
|
|
232
|
-
className
|
|
233
|
-
),
|
|
234
|
-
...props,
|
|
235
|
-
children: /* @__PURE__ */ jsx(
|
|
236
|
-
RadioGroupPrimitive.Indicator,
|
|
237
|
-
{
|
|
238
|
-
"data-slot": "radio-group-indicator",
|
|
239
|
-
className: "flex items-center justify-center",
|
|
240
|
-
children: /* @__PURE__ */ jsx(
|
|
241
|
-
"div",
|
|
242
|
-
{
|
|
243
|
-
className: cn(
|
|
244
|
-
"rounded-full bg-primary transition-all duration-200",
|
|
245
|
-
dotSizeClasses[size]
|
|
246
|
-
)
|
|
247
|
-
}
|
|
248
|
-
)
|
|
249
|
-
}
|
|
250
|
-
)
|
|
251
|
-
}
|
|
252
|
-
);
|
|
253
|
-
});
|
|
254
|
-
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
255
|
-
const Switch = React.forwardRef(({ className, size = "md", ...props }, ref) => {
|
|
256
|
-
const trackClasses = {
|
|
257
|
-
sm: "h-3.5 w-7",
|
|
258
|
-
md: "h-[1.15rem] w-8",
|
|
259
|
-
lg: "h-[1.375rem] w-10"
|
|
260
|
-
};
|
|
261
|
-
const thumbClasses = {
|
|
262
|
-
sm: "size-3",
|
|
263
|
-
md: "size-4",
|
|
264
|
-
lg: "size-5"
|
|
265
|
-
};
|
|
266
|
-
return /* @__PURE__ */ jsx(
|
|
267
|
-
SwitchPrimitive.Root,
|
|
268
|
-
{
|
|
269
|
-
className: cn(
|
|
270
|
-
"peer inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
271
|
-
"data-[state=checked]:bg-primary",
|
|
272
|
-
"data-[state=unchecked]:bg-muted",
|
|
273
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
274
|
-
trackClasses[size],
|
|
275
|
-
className
|
|
276
|
-
),
|
|
277
|
-
...props,
|
|
278
|
-
ref,
|
|
279
|
-
children: /* @__PURE__ */ jsx(
|
|
280
|
-
SwitchPrimitive.Thumb,
|
|
281
|
-
{
|
|
282
|
-
className: cn(
|
|
283
|
-
"pointer-events-none block rounded-full ring-0 transition-transform shadow-sm",
|
|
284
|
-
"bg-background",
|
|
285
|
-
"data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
|
|
286
|
-
thumbClasses[size]
|
|
287
|
-
)
|
|
288
|
-
}
|
|
289
|
-
)
|
|
290
|
-
}
|
|
291
|
-
);
|
|
292
|
-
});
|
|
293
|
-
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
294
|
-
function Separator({
|
|
295
|
-
className,
|
|
296
|
-
orientation = "horizontal",
|
|
297
|
-
decorative = true,
|
|
298
|
-
...props
|
|
299
|
-
}) {
|
|
300
|
-
return /* @__PURE__ */ jsx(
|
|
301
|
-
SeparatorPrimitive.Root,
|
|
302
|
-
{
|
|
303
|
-
"data-slot": "separator-root",
|
|
304
|
-
decorative,
|
|
305
|
-
orientation,
|
|
306
|
-
className: cn(
|
|
307
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
308
|
-
className
|
|
309
|
-
),
|
|
310
|
-
...props
|
|
311
|
-
}
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
function useMapLayers(map, layers) {
|
|
315
|
-
const trafficLayerRef = useRef(null);
|
|
316
|
-
const transitLayerRef = useRef(null);
|
|
317
|
-
const bicyclingLayerRef = useRef(null);
|
|
318
|
-
useEffect(() => {
|
|
319
|
-
if (!map) return;
|
|
320
|
-
if (layers.traffic) {
|
|
321
|
-
if (!trafficLayerRef.current) {
|
|
322
|
-
trafficLayerRef.current = new google.maps.TrafficLayer();
|
|
323
|
-
}
|
|
324
|
-
trafficLayerRef.current.setMap(map);
|
|
325
|
-
} else {
|
|
326
|
-
if (trafficLayerRef.current) {
|
|
327
|
-
trafficLayerRef.current.setMap(null);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
return () => {
|
|
331
|
-
if (trafficLayerRef.current) {
|
|
332
|
-
trafficLayerRef.current.setMap(null);
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
}, [map, layers.traffic]);
|
|
336
|
-
useEffect(() => {
|
|
337
|
-
if (!map) return;
|
|
338
|
-
if (layers.transit) {
|
|
339
|
-
if (!transitLayerRef.current) {
|
|
340
|
-
transitLayerRef.current = new google.maps.TransitLayer();
|
|
341
|
-
}
|
|
342
|
-
transitLayerRef.current.setMap(map);
|
|
343
|
-
} else {
|
|
344
|
-
if (transitLayerRef.current) {
|
|
345
|
-
transitLayerRef.current.setMap(null);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return () => {
|
|
349
|
-
if (transitLayerRef.current) {
|
|
350
|
-
transitLayerRef.current.setMap(null);
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
}, [map, layers.transit]);
|
|
354
|
-
useEffect(() => {
|
|
355
|
-
if (!map) return;
|
|
356
|
-
if (layers.bicycling) {
|
|
357
|
-
if (!bicyclingLayerRef.current) {
|
|
358
|
-
bicyclingLayerRef.current = new google.maps.BicyclingLayer();
|
|
359
|
-
}
|
|
360
|
-
bicyclingLayerRef.current.setMap(map);
|
|
361
|
-
} else {
|
|
362
|
-
if (bicyclingLayerRef.current) {
|
|
363
|
-
bicyclingLayerRef.current.setMap(null);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
return () => {
|
|
367
|
-
if (bicyclingLayerRef.current) {
|
|
368
|
-
bicyclingLayerRef.current.setMap(null);
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
}, [map, layers.bicycling]);
|
|
372
|
-
}
|
|
373
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
|
|
374
|
-
const DEFAULT_CENTER = { lat: -23.5505, lng: -46.6333 };
|
|
375
|
-
const DEFAULT_ZOOM = 12;
|
|
376
|
-
const MapContent = React__default.forwardRef(
|
|
377
|
-
({ apiKey, ...props }, ref) => {
|
|
378
|
-
const { isLoaded, loadError, load } = useGoogleMapsLoader();
|
|
379
|
-
const {
|
|
380
|
-
center = DEFAULT_CENTER,
|
|
381
|
-
zoom = DEFAULT_ZOOM,
|
|
382
|
-
markers = [],
|
|
383
|
-
circle,
|
|
384
|
-
polygon,
|
|
385
|
-
layers,
|
|
386
|
-
height = "400px",
|
|
387
|
-
mapContainerClassName,
|
|
388
|
-
disableDefaultUI = false,
|
|
389
|
-
zoomControl = true,
|
|
390
|
-
streetViewControl = false,
|
|
391
|
-
mapTypeControl = false,
|
|
392
|
-
fullscreenControl = true,
|
|
393
|
-
gestureHandling = "cooperative",
|
|
394
|
-
onMapLoad,
|
|
395
|
-
className,
|
|
396
|
-
...divProps
|
|
397
|
-
} = props;
|
|
398
|
-
const [selectedMarker, setSelectedMarker] = useState(null);
|
|
399
|
-
const mapRef = useRef(null);
|
|
400
|
-
const gmpMapRef = useRef(null);
|
|
401
|
-
const infoWindowRef = useRef(null);
|
|
402
|
-
const circleRef = useRef(null);
|
|
403
|
-
const polygonRef = useRef(null);
|
|
404
|
-
const [themeColors, setThemeColors] = useState({
|
|
405
|
-
primary: "#4F46E5",
|
|
406
|
-
chart2: "#10B981"
|
|
407
|
-
});
|
|
408
|
-
useEffect(() => {
|
|
409
|
-
if (typeof window !== "undefined") {
|
|
410
|
-
const styles = getComputedStyle(document.documentElement);
|
|
411
|
-
setThemeColors({
|
|
412
|
-
primary: styles.getPropertyValue("--primary").trim() || "#4F46E5",
|
|
413
|
-
chart2: styles.getPropertyValue("--chart-2").trim() || "#10B981"
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
}, []);
|
|
417
|
-
useEffect(() => {
|
|
418
|
-
if (!isLoaded && apiKey && !loadError && load) {
|
|
419
|
-
load(apiKey).catch(console.error);
|
|
420
|
-
}
|
|
421
|
-
}, [isLoaded, apiKey, loadError, load]);
|
|
422
|
-
useEffect(() => {
|
|
423
|
-
if (!isLoaded || !gmpMapRef.current) return;
|
|
424
|
-
const gmpMap = gmpMapRef.current;
|
|
425
|
-
if (gmpMap.innerMap) {
|
|
426
|
-
mapRef.current = gmpMap.innerMap;
|
|
427
|
-
if (onMapLoad) {
|
|
428
|
-
onMapLoad(gmpMap.innerMap);
|
|
429
|
-
}
|
|
430
|
-
} else {
|
|
431
|
-
const interval = setInterval(() => {
|
|
432
|
-
if (gmpMap.innerMap) {
|
|
433
|
-
mapRef.current = gmpMap.innerMap;
|
|
434
|
-
if (onMapLoad) {
|
|
435
|
-
onMapLoad(gmpMap.innerMap);
|
|
436
|
-
}
|
|
437
|
-
clearInterval(interval);
|
|
438
|
-
}
|
|
439
|
-
}, 100);
|
|
440
|
-
return () => clearInterval(interval);
|
|
441
|
-
}
|
|
442
|
-
return () => {
|
|
443
|
-
mapRef.current = null;
|
|
444
|
-
};
|
|
445
|
-
}, [isLoaded]);
|
|
446
|
-
useEffect(() => {
|
|
447
|
-
if (gmpMapRef.current) {
|
|
448
|
-
if (center) gmpMapRef.current.center = center;
|
|
449
|
-
}
|
|
450
|
-
}, [center]);
|
|
451
|
-
useEffect(() => {
|
|
452
|
-
if (gmpMapRef.current) {
|
|
453
|
-
if (zoom !== void 0) gmpMapRef.current.zoom = zoom;
|
|
454
|
-
}
|
|
455
|
-
}, [zoom]);
|
|
456
|
-
useEffect(() => {
|
|
457
|
-
if (gmpMapRef.current) {
|
|
458
|
-
if (props.mapTypeId) gmpMapRef.current.mapTypeId = props.mapTypeId;
|
|
459
|
-
}
|
|
460
|
-
}, [props.mapTypeId]);
|
|
461
|
-
useEffect(() => {
|
|
462
|
-
const map = mapRef.current;
|
|
463
|
-
if (!map || !isLoaded) return;
|
|
464
|
-
circleRef.current?.setMap(null);
|
|
465
|
-
circleRef.current = null;
|
|
466
|
-
if (circle && circle.center && circle.radius) {
|
|
467
|
-
circleRef.current = new google.maps.Circle({
|
|
468
|
-
map,
|
|
469
|
-
center: circle.center,
|
|
470
|
-
radius: circle.radius,
|
|
471
|
-
fillColor: circle.fillColor || themeColors.primary,
|
|
472
|
-
fillOpacity: 0.2,
|
|
473
|
-
strokeColor: circle.strokeColor || themeColors.primary,
|
|
474
|
-
strokeOpacity: 0.8,
|
|
475
|
-
strokeWeight: 2
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
return () => {
|
|
479
|
-
circleRef.current?.setMap(null);
|
|
480
|
-
};
|
|
481
|
-
}, [circle, isLoaded, themeColors, mapRef.current]);
|
|
482
|
-
useEffect(() => {
|
|
483
|
-
const map = mapRef.current;
|
|
484
|
-
if (!map || !isLoaded) return;
|
|
485
|
-
polygonRef.current?.setMap(null);
|
|
486
|
-
polygonRef.current = null;
|
|
487
|
-
if (polygon && polygon.paths) {
|
|
488
|
-
polygonRef.current = new google.maps.Polygon({
|
|
489
|
-
map,
|
|
490
|
-
paths: polygon.paths,
|
|
491
|
-
fillColor: polygon.fillColor || themeColors.chart2,
|
|
492
|
-
fillOpacity: 0.2,
|
|
493
|
-
strokeColor: polygon.strokeColor || themeColors.chart2,
|
|
494
|
-
strokeOpacity: 0.8,
|
|
495
|
-
strokeWeight: 2
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
return () => {
|
|
499
|
-
polygonRef.current?.setMap(null);
|
|
500
|
-
};
|
|
501
|
-
}, [polygon, isLoaded, themeColors, mapRef.current]);
|
|
502
|
-
useMapLayers(mapRef.current, layers || {});
|
|
503
|
-
useEffect(() => {
|
|
504
|
-
const map = mapRef.current;
|
|
505
|
-
if (!map || selectedMarker === null) {
|
|
506
|
-
infoWindowRef.current?.close();
|
|
507
|
-
return;
|
|
508
|
-
}
|
|
509
|
-
const markerData = markers[selectedMarker];
|
|
510
|
-
if (!markerData) return;
|
|
511
|
-
}, [selectedMarker, markers]);
|
|
512
|
-
const handleMarkerClick = (index, markerElement) => {
|
|
513
|
-
setSelectedMarker(index);
|
|
514
|
-
const map = mapRef.current;
|
|
515
|
-
if (!map) return;
|
|
516
|
-
const markerData = markers[index];
|
|
517
|
-
if (!markerData) return;
|
|
518
|
-
let contentToRender = markerData.richContent;
|
|
519
|
-
if (!contentToRender && (markerData.title || markerData.info)) {
|
|
520
|
-
contentToRender = /* @__PURE__ */ jsxs("div", { className: "p-4 pr-8 min-w-[200px] max-w-[300px]", children: [
|
|
521
|
-
markerData.title && /* @__PURE__ */ jsx("h4", { className: "font-semibold text-base mb-1", children: markerData.title }),
|
|
522
|
-
markerData.info && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: markerData.info })
|
|
523
|
-
] });
|
|
524
|
-
}
|
|
525
|
-
if (contentToRender && markerElement.innerMarker) {
|
|
526
|
-
if (!infoWindowRef.current) {
|
|
527
|
-
infoWindowRef.current = new google.maps.InfoWindow();
|
|
528
|
-
}
|
|
529
|
-
const container = document.createElement("div");
|
|
530
|
-
const root = createRoot(container);
|
|
531
|
-
root.render(contentToRender);
|
|
532
|
-
infoWindowRef.current.setContent(container);
|
|
533
|
-
infoWindowRef.current.open({
|
|
534
|
-
map,
|
|
535
|
-
anchor: markerElement.innerMarker
|
|
536
|
-
});
|
|
537
|
-
infoWindowRef.current.addListener("closeclick", () => {
|
|
538
|
-
setSelectedMarker(null);
|
|
539
|
-
setTimeout(() => root.unmount(), 0);
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
if (loadError) {
|
|
544
|
-
return /* @__PURE__ */ jsx(
|
|
545
|
-
"div",
|
|
546
|
-
{
|
|
547
|
-
ref,
|
|
548
|
-
className: cn(
|
|
549
|
-
"relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
|
|
550
|
-
className
|
|
551
|
-
),
|
|
552
|
-
style: { height },
|
|
553
|
-
...divProps,
|
|
554
|
-
children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-2 p-6", children: [
|
|
555
|
-
/* @__PURE__ */ jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsx(
|
|
556
|
-
"svg",
|
|
557
|
-
{
|
|
558
|
-
className: "w-12 h-12 mx-auto",
|
|
559
|
-
fill: "none",
|
|
560
|
-
stroke: "currentColor",
|
|
561
|
-
viewBox: "0 0 24 24",
|
|
562
|
-
children: /* @__PURE__ */ jsx(
|
|
563
|
-
"path",
|
|
564
|
-
{
|
|
565
|
-
strokeLinecap: "round",
|
|
566
|
-
strokeLinejoin: "round",
|
|
567
|
-
strokeWidth: 2,
|
|
568
|
-
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
569
|
-
}
|
|
570
|
-
)
|
|
571
|
-
}
|
|
572
|
-
) }),
|
|
573
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: "Failed to load Google Maps" }),
|
|
574
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
|
|
575
|
-
] }) })
|
|
576
|
-
}
|
|
577
|
-
);
|
|
578
|
-
}
|
|
579
|
-
if (!isLoaded) {
|
|
580
|
-
return /* @__PURE__ */ jsx(
|
|
581
|
-
"div",
|
|
582
|
-
{
|
|
583
|
-
ref,
|
|
584
|
-
className: cn(
|
|
585
|
-
"relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
|
|
586
|
-
className
|
|
587
|
-
),
|
|
588
|
-
style: { height },
|
|
589
|
-
...divProps
|
|
590
|
-
}
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
return /* @__PURE__ */ jsx(
|
|
594
|
-
"div",
|
|
595
|
-
{
|
|
596
|
-
ref,
|
|
597
|
-
className: cn(
|
|
598
|
-
"relative rounded-[var(--radius-card)] border border-border overflow-hidden",
|
|
599
|
-
className
|
|
600
|
-
),
|
|
601
|
-
style: { height },
|
|
602
|
-
...divProps,
|
|
603
|
-
children: /* @__PURE__ */ jsx(
|
|
604
|
-
"gmp-map",
|
|
605
|
-
{
|
|
606
|
-
ref: gmpMapRef,
|
|
607
|
-
style: { height: "100%", width: "100%", display: "block" },
|
|
608
|
-
"map-id": props.mapId || "DEMO_MAP_ID",
|
|
609
|
-
children: markers.map((markerData, idx) => {
|
|
610
|
-
const markerColor = markerData.customColor || "var(--primary)";
|
|
611
|
-
const iconColor = markerData.iconColor || "white";
|
|
612
|
-
return (
|
|
613
|
-
// @ts-ignore
|
|
614
|
-
/* @__PURE__ */ jsx(
|
|
615
|
-
"gmp-advanced-marker",
|
|
616
|
-
{
|
|
617
|
-
title: markerData.title,
|
|
618
|
-
ref: (el) => {
|
|
619
|
-
if (el) {
|
|
620
|
-
el.position = markerData.position;
|
|
621
|
-
el.addEventListener("gmp-click", () => handleMarkerClick(idx, el));
|
|
622
|
-
}
|
|
623
|
-
},
|
|
624
|
-
children: /* @__PURE__ */ jsx(
|
|
625
|
-
"div",
|
|
626
|
-
{
|
|
627
|
-
className: "flex items-center justify-center w-8 h-8 border-[3px] border-background shadow-lg cursor-pointer origin-center transition-transform duration-200",
|
|
628
|
-
style: {
|
|
629
|
-
borderRadius: "50% 50% 50% 0",
|
|
630
|
-
transform: "rotate(-45deg)",
|
|
631
|
-
backgroundColor: markerColor
|
|
632
|
-
},
|
|
633
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center rotate-45", children: markerData.iconSvg ? /* @__PURE__ */ jsx(
|
|
634
|
-
"div",
|
|
635
|
-
{
|
|
636
|
-
dangerouslySetInnerHTML: { __html: markerData.iconSvg },
|
|
637
|
-
style: { color: iconColor, width: 16, height: 16, fill: "currentColor" }
|
|
638
|
-
}
|
|
639
|
-
) : /* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", style: { color: iconColor }, children: markerData.icon || markerData.label || "" }) })
|
|
640
|
-
}
|
|
641
|
-
)
|
|
642
|
-
},
|
|
643
|
-
idx
|
|
644
|
-
)
|
|
645
|
-
);
|
|
646
|
-
})
|
|
647
|
-
}
|
|
648
|
-
)
|
|
649
|
-
}
|
|
650
|
-
);
|
|
651
|
-
}
|
|
652
|
-
);
|
|
653
|
-
MapContent.displayName = "MapContent";
|
|
654
|
-
const Map = React__default.forwardRef((props, ref) => {
|
|
655
|
-
const { isLoaded, loadError } = useGoogleMapsLoader();
|
|
656
|
-
const effectiveApiKey = props.apiKey || typeof import.meta !== "undefined" && __vite_import_meta_env__ && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
|
|
657
|
-
const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
|
|
658
|
-
if (isLoaded || isValidKey || loadError) {
|
|
659
|
-
return /* @__PURE__ */ jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
|
|
660
|
-
}
|
|
661
|
-
const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
|
|
662
|
-
if (isScriptInjected) {
|
|
663
|
-
return /* @__PURE__ */ jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
|
|
664
|
-
}
|
|
665
|
-
return /* @__PURE__ */ jsx(
|
|
666
|
-
"div",
|
|
667
|
-
{
|
|
668
|
-
ref,
|
|
669
|
-
className: cn(
|
|
670
|
-
"relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
|
|
671
|
-
props.className
|
|
672
|
-
),
|
|
673
|
-
style: { height: props.height || "400px" },
|
|
674
|
-
children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-muted", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-3 p-6", children: [
|
|
675
|
-
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxs(
|
|
676
|
-
"svg",
|
|
677
|
-
{
|
|
678
|
-
className: "w-8 h-8 text-primary",
|
|
679
|
-
fill: "none",
|
|
680
|
-
stroke: "currentColor",
|
|
681
|
-
viewBox: "0 0 24 24",
|
|
682
|
-
children: [
|
|
683
|
-
/* @__PURE__ */ jsx(
|
|
684
|
-
"path",
|
|
685
|
-
{
|
|
686
|
-
strokeLinecap: "round",
|
|
687
|
-
strokeLinejoin: "round",
|
|
688
|
-
strokeWidth: 2,
|
|
689
|
-
d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
|
|
690
|
-
}
|
|
691
|
-
),
|
|
692
|
-
/* @__PURE__ */ jsx(
|
|
693
|
-
"path",
|
|
694
|
-
{
|
|
695
|
-
strokeLinecap: "round",
|
|
696
|
-
strokeLinejoin: "round",
|
|
697
|
-
strokeWidth: 2,
|
|
698
|
-
d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
|
|
699
|
-
}
|
|
700
|
-
)
|
|
701
|
-
]
|
|
702
|
-
}
|
|
703
|
-
) }),
|
|
704
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
|
|
705
|
-
] }) })
|
|
706
|
-
}
|
|
707
|
-
);
|
|
708
|
-
});
|
|
709
|
-
Map.displayName = "Map";
|
|
710
|
-
function AlertDialog({ ...props }) {
|
|
711
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
712
|
-
}
|
|
713
|
-
function AlertDialogTrigger({
|
|
714
|
-
...props
|
|
715
|
-
}) {
|
|
716
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
717
|
-
}
|
|
718
|
-
function AlertDialogPortal({ ...props }) {
|
|
719
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
720
|
-
}
|
|
721
|
-
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => {
|
|
722
|
-
return /* @__PURE__ */ jsx(
|
|
723
|
-
AlertDialogPrimitive.Overlay,
|
|
724
|
-
{
|
|
725
|
-
ref,
|
|
726
|
-
"data-slot": "alert-dialog-overlay",
|
|
727
|
-
className: cn(
|
|
728
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
729
|
-
className
|
|
730
|
-
),
|
|
731
|
-
...props
|
|
732
|
-
}
|
|
733
|
-
);
|
|
734
|
-
});
|
|
735
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
736
|
-
function AlertDialogContent({
|
|
737
|
-
className,
|
|
738
|
-
...props
|
|
739
|
-
}) {
|
|
740
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
741
|
-
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
742
|
-
/* @__PURE__ */ jsx(
|
|
743
|
-
AlertDialogPrimitive.Content,
|
|
744
|
-
{
|
|
745
|
-
"data-slot": "alert-dialog-content",
|
|
746
|
-
className: cn(
|
|
747
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
748
|
-
className
|
|
749
|
-
),
|
|
750
|
-
...props
|
|
751
|
-
}
|
|
752
|
-
)
|
|
753
|
-
] });
|
|
754
|
-
}
|
|
755
|
-
function AlertDialogHeader({ className, ...props }) {
|
|
756
|
-
return /* @__PURE__ */ jsx(
|
|
757
|
-
"div",
|
|
758
|
-
{
|
|
759
|
-
"data-slot": "alert-dialog-header",
|
|
760
|
-
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
761
|
-
...props
|
|
762
|
-
}
|
|
763
|
-
);
|
|
764
|
-
}
|
|
765
|
-
function AlertDialogFooter({ className, ...props }) {
|
|
766
|
-
return /* @__PURE__ */ jsx(
|
|
767
|
-
"div",
|
|
768
|
-
{
|
|
769
|
-
"data-slot": "alert-dialog-footer",
|
|
770
|
-
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
771
|
-
...props
|
|
772
|
-
}
|
|
773
|
-
);
|
|
774
|
-
}
|
|
775
|
-
function AlertDialogTitle({
|
|
776
|
-
className,
|
|
777
|
-
...props
|
|
778
|
-
}) {
|
|
779
|
-
return /* @__PURE__ */ jsx(
|
|
780
|
-
AlertDialogPrimitive.Title,
|
|
781
|
-
{
|
|
782
|
-
"data-slot": "alert-dialog-title",
|
|
783
|
-
className: cn("text-lg font-semibold", className),
|
|
784
|
-
...props
|
|
785
|
-
}
|
|
786
|
-
);
|
|
787
|
-
}
|
|
788
|
-
function AlertDialogDescription({
|
|
789
|
-
className,
|
|
790
|
-
...props
|
|
791
|
-
}) {
|
|
792
|
-
return /* @__PURE__ */ jsx(
|
|
793
|
-
AlertDialogPrimitive.Description,
|
|
794
|
-
{
|
|
795
|
-
"data-slot": "alert-dialog-description",
|
|
796
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
797
|
-
...props
|
|
798
|
-
}
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
function AlertDialogAction({
|
|
802
|
-
className,
|
|
803
|
-
...props
|
|
804
|
-
}) {
|
|
805
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { className: cn(buttonVariants(), className), ...props });
|
|
806
|
-
}
|
|
807
|
-
function AlertDialogCancel({
|
|
808
|
-
className,
|
|
809
|
-
...props
|
|
810
|
-
}) {
|
|
811
|
-
return /* @__PURE__ */ jsx(
|
|
812
|
-
AlertDialogPrimitive.Cancel,
|
|
813
|
-
{
|
|
814
|
-
className: cn(buttonVariants({ variant: "outline" }), className),
|
|
815
|
-
...props
|
|
816
|
-
}
|
|
817
|
-
);
|
|
818
|
-
}
|
|
819
|
-
export {
|
|
820
|
-
AlertDialog as A,
|
|
821
|
-
Checkbox as C,
|
|
822
|
-
ImageWithFallback as I,
|
|
823
|
-
Label as L,
|
|
824
|
-
Map as M,
|
|
825
|
-
PageHeader as P,
|
|
826
|
-
RadioGroup as R,
|
|
827
|
-
Separator as S,
|
|
828
|
-
Tabs as T,
|
|
829
|
-
AlertDialogAction as a,
|
|
830
|
-
AlertDialogCancel as b,
|
|
831
|
-
AlertDialogContent as c,
|
|
832
|
-
AlertDialogDescription as d,
|
|
833
|
-
AlertDialogFooter as e,
|
|
834
|
-
AlertDialogHeader as f,
|
|
835
|
-
AlertDialogOverlay as g,
|
|
836
|
-
AlertDialogPortal as h,
|
|
837
|
-
AlertDialogTitle as i,
|
|
838
|
-
AlertDialogTrigger as j,
|
|
839
|
-
PageHeaderDescription as k,
|
|
840
|
-
PageHeaderHeading as l,
|
|
841
|
-
RadioGroupItem as m,
|
|
842
|
-
Switch as n,
|
|
843
|
-
TabsContent as o,
|
|
844
|
-
TabsList as p,
|
|
845
|
-
TabsTrigger as q,
|
|
846
|
-
useMapLayers as u
|
|
847
|
-
};
|