xertica-ui 2.5.2 → 2.6.0
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 +687 -656
- package/README.md +482 -482
- package/assets/xertica-logo.svg +37 -37
- package/assets/xertica-x-logo.svg +20 -20
- package/bin/cli.ts +1293 -1256
- package/bin/generate-tokens.ts +256 -262
- package/bin/language-config.test.ts +32 -0
- package/bin/language-config.ts +36 -11
- package/components/Introduction.mdx +121 -121
- package/components/assistant/code-block/CodeBlock.tsx +7 -6
- package/components/assistant/code-block/code-block.mdx +38 -38
- package/components/assistant/code-block/code-block.test.tsx +2 -1
- package/components/assistant/formatted-document/FormattedDocument.tsx +3 -0
- package/components/assistant/formatted-document/formatted-document.mdx +31 -31
- package/components/assistant/formatted-document/formatted-document.test.tsx +5 -4
- package/components/assistant/markdown-message/MarkdownMessage.tsx +1 -1
- package/components/assistant/markdown-message/markdown-message.mdx +44 -44
- package/components/assistant/modern-chat-input/modern-chat-input.mdx +71 -71
- package/components/assistant/modern-chat-input/modern-chat-input.test.tsx +3 -2
- package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +1 -1
- package/components/assistant/xertica-assistant/types.ts +3 -2
- package/components/assistant/xertica-assistant/use-assistant.ts +5 -4
- package/components/assistant/xertica-assistant/xertica-assistant.mdx +66 -66
- package/components/assistant/xertica-assistant/xertica-assistant.test.tsx +2 -1
- package/components/blocks/card-patterns/card-patterns.mdx +123 -123
- package/components/brand/branding/branding.mdx +27 -27
- package/components/brand/language-selector/language-selector.mdx +126 -126
- package/components/brand/theme-toggle/theme-toggle.mdx +47 -47
- package/components/brand/theme-toggle/theme-toggle.test.tsx +6 -2
- package/components/brand/xertica-logo/xertica-logo.mdx +56 -56
- package/components/brand/xertica-orbe/xertica-orbe.mdx +38 -38
- package/components/brand/xertica-provider/XerticaProvider.tsx +112 -112
- package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
- package/components/brand/xertica-provider/xertica-provider.test.tsx +25 -13
- package/components/brand/xertica-xlogo/xertica-xlogo.mdx +55 -55
- package/components/examples/DrawingMapExample.tsx +1 -4
- package/components/layout/header/header.mdx +117 -117
- package/components/layout/header/header.test.tsx +2 -1
- package/components/layout/sidebar/sidebar.mdx +99 -99
- package/components/layout/sidebar/sidebar.stories.tsx +1033 -1033
- package/components/layout/sidebar/sidebar.test.tsx +2 -1
- package/components/layout/sidebar/sidebar.tsx +1509 -1501
- package/components/media/audio-player/AudioPlayer.mdx +67 -67
- package/components/media/audio-player/AudioPlayer.test.tsx +2 -1
- package/components/media/floating-media-wrapper.mdx +74 -74
- package/components/media/video-player/VideoPlayer.mdx +102 -102
- package/components/media/video-player/VideoPlayer.test.tsx +3 -2
- package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +188 -188
- package/components/pages/forgot-password-page/forgot-password-page.mdx +60 -60
- package/components/pages/forgot-password-page/forgot-password-page.test.tsx +2 -1
- package/components/pages/home-content/HomeContent.tsx +2 -3
- package/components/pages/home-content/home-content.mdx +62 -62
- package/components/pages/home-page/HomePage.stories.tsx +8 -15
- package/components/pages/home-page/home-page.mdx +53 -53
- package/components/pages/home-page/home-page.test.tsx +2 -1
- package/components/pages/login-page/LoginPage.mdx +31 -31
- package/components/pages/login-page/LoginPage.tsx +218 -218
- package/components/pages/login-page/login-page.test.tsx +2 -1
- package/components/pages/reset-password-page/ResetPasswordPage.tsx +243 -243
- package/components/pages/reset-password-page/reset-password-page.mdx +63 -63
- package/components/pages/template-content/TemplateContent.tsx +2 -3
- 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/pages/template-page/template-page.test.tsx +2 -1
- package/components/pages/verify-email-page/VerifyEmailPage.tsx +206 -206
- package/components/pages/verify-email-page/verify-email-page.mdx +55 -55
- package/components/public-api-smoke.test.tsx +10 -6
- package/components/shared/assistant-utils.ts +3 -2
- package/components/shared/navigation.ts +2 -2
- package/components/ui/accordion/accordion.mdx +29 -29
- package/components/ui/alert/alert.mdx +29 -29
- package/components/ui/alert-dialog/alert-dialog.mdx +26 -26
- package/components/ui/aspect-ratio/aspect-ratio.mdx +25 -25
- package/components/ui/assistant-chart/AssistantChart.tsx +8 -2
- package/components/ui/assistant-chart/assistant-chart.mdx +25 -25
- package/components/ui/avatar/avatar.mdx +26 -26
- package/components/ui/badge/badge.mdx +28 -28
- package/components/ui/breadcrumb/breadcrumb.mdx +26 -26
- package/components/ui/button/button.mdx +29 -29
- package/components/ui/calendar/calendar.mdx +26 -26
- package/components/ui/card/card.mdx +26 -26
- package/components/ui/carousel/carousel.mdx +26 -26
- package/components/ui/chart/chart.mdx +26 -26
- package/components/ui/chart/chart.test.tsx +178 -178
- package/components/ui/chart/chart.tsx +2252 -2245
- package/components/ui/checkbox/checkbox.mdx +26 -26
- package/components/ui/collapsible/collapsible.mdx +25 -25
- package/components/ui/command/command.mdx +26 -26
- package/components/ui/context-menu/context-menu.mdx +26 -26
- package/components/ui/dialog/dialog.mdx +26 -26
- package/components/ui/drawer/drawer.mdx +26 -26
- package/components/ui/dropdown-menu/dropdown-menu.mdx +26 -26
- package/components/ui/empty/empty.mdx +26 -26
- package/components/ui/file-upload/file-upload.mdx +26 -26
- package/components/ui/form/form.mdx +20 -20
- package/components/ui/google-maps-loader/google-maps-loader.mdx +68 -68
- package/components/ui/hover-card/hover-card.mdx +26 -26
- package/components/ui/input/input.mdx +29 -29
- package/components/ui/input-otp/input-otp.mdx +26 -26
- package/components/ui/label/label.mdx +25 -25
- package/components/ui/map/map.mdx +26 -26
- package/components/ui/map/map.tsx +6 -1
- package/components/ui/menubar/menubar.mdx +26 -26
- package/components/ui/navigation-menu/navigation-menu.mdx +26 -26
- package/components/ui/notification-badge/notification-badge.mdx +26 -26
- package/components/ui/page-header/page-header.mdx +44 -44
- package/components/ui/pagination/pagination.mdx +26 -26
- package/components/ui/popover/popover.mdx +26 -26
- package/components/ui/progress/progress.mdx +25 -25
- package/components/ui/radio-group/radio-group.mdx +26 -26
- package/components/ui/rating/rating.mdx +26 -26
- package/components/ui/resizable/resizable.mdx +26 -26
- package/components/ui/resizable/resizable.tsx +13 -8
- package/components/ui/rich-text-editor/rich-text-editor.mdx +47 -47
- package/components/ui/route-map/route-map.mdx +26 -26
- package/components/ui/scroll-area/scroll-area.mdx +25 -25
- package/components/ui/search/search.mdx +27 -27
- package/components/ui/select/select.mdx +26 -26
- package/components/ui/separator/separator.mdx +25 -25
- package/components/ui/sheet/sheet.mdx +26 -26
- package/components/ui/simple-map/simple-map.mdx +25 -25
- package/components/ui/skeleton/skeleton.mdx +25 -25
- package/components/ui/slider/slider.mdx +26 -26
- package/components/ui/sonner/sonner.mdx +26 -26
- package/components/ui/stats-card/stats-card.mdx +26 -26
- package/components/ui/stats-card/stats-card.stories.tsx +117 -117
- package/components/ui/stats-card/stats-card.tsx +109 -109
- package/components/ui/stepper/stepper.mdx +26 -26
- package/components/ui/switch/switch.mdx +25 -25
- package/components/ui/table/table.mdx +27 -27
- package/components/ui/tabs/tabs.mdx +26 -26
- package/components/ui/textarea/textarea.mdx +25 -25
- package/components/ui/timeline/timeline.mdx +26 -26
- package/components/ui/toggle/toggle.mdx +26 -26
- package/components/ui/toggle-group/toggle-group.mdx +26 -26
- package/components/ui/tooltip/tooltip.mdx +26 -26
- package/components/ui/tree-view/tree-view.mdx +26 -26
- package/components.json +511 -511
- package/contexts/BrandColorsContext.tsx +282 -282
- package/contexts/i18n-singleton.test.tsx +57 -0
- package/contexts/theme-data.ts +391 -391
- package/dist/{AssistantChart-DMJJ_Amf.js → AssistantChart-BMNSA_Pk.js} +5 -5
- package/dist/{AssistantChart-D0A1FPYt.cjs → AssistantChart-BzM7plyc.cjs} +150 -114
- package/dist/{AssistantChart-BXU1ACnh.js → AssistantChart-C842evTi.js} +134 -240
- package/dist/{AssistantChart-BZTPJ5dP.cjs → AssistantChart-CVF2uh37.cjs} +5 -5
- package/dist/{AssistantChart-COGiOV-g.cjs → AssistantChart-JooMdVQU.cjs} +17 -7
- package/dist/{AssistantChart-CWX1OWNM.js → AssistantChart-KHS-tp-L.js} +17 -7
- package/dist/{BrandColorsContext-BwY-b6M4.cjs → BrandColorsContext-B4_81eas.cjs} +2 -2
- package/dist/{BrandColorsContext-BMRJ04Wf.js → BrandColorsContext-DbK5LnQ_.js} +2 -2
- package/dist/{CodeBlock-CjeFavqV.js → CodeBlock-DiKO8ocT.js} +11 -11
- package/dist/{CodeBlock-CV6dtsTM.cjs → CodeBlock-ZYThr7Kn.cjs} +12 -9
- package/dist/{XerticaXLogo-mqjoBiLI.js → LanguageSelector-CmTj3lWq.js} +85 -82
- package/dist/{XerticaXLogo-BX3ueACh.js → LanguageSelector-DxW6o7bt.js} +81 -81
- package/dist/{XerticaXLogo-uQgwns_E.cjs → LanguageSelector-Sw73qvWV.cjs} +84 -81
- package/dist/{ThemeContext-BgclCB35.js → ThemeContext-BGeh_Kdr.js} +290 -212
- package/dist/{ThemeContext-BblcjQup.cjs → ThemeContext-D50irx5T.cjs} +291 -205
- package/dist/{VerifyEmailPage-C_Zk6Gen.cjs → VerifyEmailPage-B6bOrybJ.cjs} +17 -17
- package/dist/{VerifyEmailPage-B31mCrMc.js → VerifyEmailPage-BRE5Fz59.js} +8 -8
- package/dist/{VerifyEmailPage-BJjAMUTW.js → VerifyEmailPage-BcCluouh.js} +151 -78
- package/dist/VerifyEmailPage-Bx1sr0uQ.cjs +3298 -0
- package/dist/{VerifyEmailPage-X14vhdyl.js → VerifyEmailPage-DUYyXCX9.js} +12 -12
- package/dist/VerifyEmailPage-DXXMHbzq.js +3289 -0
- package/dist/{VerifyEmailPage-u_Dn7t1U.cjs → VerifyEmailPage-DpYtFk35.cjs} +21 -21
- package/dist/{VerifyEmailPage-Cyl55sJb.js → VerifyEmailPage-NXKWW3Dk.js} +134 -64
- package/dist/{VerifyEmailPage-Bv8Ah_TK.cjs → VerifyEmailPage-QrCz4Wqr.cjs} +143 -73
- package/dist/{VerifyEmailPage-CkBYfsNy.cjs → VerifyEmailPage-ZmQra0Wi.cjs} +160 -87
- package/dist/{XerticaProvider-BErr83Bg.js → XerticaProvider-BF3q_myt.js} +5 -4
- package/dist/{XerticaProvider-CeS5G_n5.cjs → XerticaProvider-C_JSOz1U.cjs} +2 -2
- package/dist/{XerticaProvider-CwOkHxiT.cjs → XerticaProvider-D5zjrqZq.cjs} +5 -4
- package/dist/{XerticaProvider-ra2NciRq.js → XerticaProvider-KTGl4Cn1.js} +2 -2
- package/dist/{alert-dialog-DqlRW_An.js → alert-dialog-BrpwXKwS.js} +3 -3
- package/dist/{alert-dialog-DhwPioBa.cjs → alert-dialog-CZU1Zase.cjs} +3 -3
- package/dist/{alert-dialog-KpoabzJb.js → alert-dialog-ClRoLH7l.js} +40 -56
- package/dist/{alert-dialog-B4M3vQKS.cjs → alert-dialog-DBBqvU-V.cjs} +53 -38
- package/dist/assistant.cjs.js +2 -2
- package/dist/assistant.es.js +2 -2
- package/dist/brand.cjs.js +6 -6
- package/dist/brand.es.js +2 -2
- package/dist/cli.js +63 -21
- package/dist/components/assistant/code-block/CodeBlock.d.ts +2 -1
- package/dist/components/assistant/formatted-document/FormattedDocument.d.ts +2 -1
- package/dist/components/assistant/markdown-message/MarkdownMessage.d.ts +2 -1
- package/dist/components/assistant/modern-chat-input/ModernChatInput.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantCollapsedView.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantConversationList.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantDocumentEditor.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantHeader.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantMessageBubble.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantTabBar.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantTypingIndicator.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/parts/AssistantWelcomeScreen.d.ts +2 -1
- package/dist/components/assistant/xertica-assistant/types.d.ts +3 -2
- package/dist/components/assistant/xertica-assistant/use-assistant.d.ts +1 -1
- package/dist/components/assistant/xertica-assistant/xertica-assistant.d.ts +2 -1
- package/dist/components/blocks/card-patterns/ActivityCard.d.ts +1 -1
- package/dist/components/blocks/card-patterns/ActivityCardSkeleton.d.ts +1 -1
- package/dist/components/blocks/card-patterns/FeatureCard.d.ts +1 -1
- package/dist/components/blocks/card-patterns/FeatureCardSkeleton.d.ts +1 -1
- package/dist/components/blocks/card-patterns/NotificationCard.d.ts +1 -1
- package/dist/components/blocks/card-patterns/NotificationCardSkeleton.d.ts +1 -1
- package/dist/components/blocks/card-patterns/ProfileCard.d.ts +1 -1
- package/dist/components/blocks/card-patterns/ProfileCardSkeleton.d.ts +1 -1
- package/dist/components/blocks/card-patterns/ProjectCard.d.ts +1 -1
- package/dist/components/blocks/card-patterns/ProjectCardSkeleton.d.ts +1 -1
- package/dist/components/blocks/card-patterns/QuickActionCard.d.ts +1 -1
- package/dist/components/blocks/card-patterns/QuickActionCardSkeleton.d.ts +1 -1
- package/dist/components/brand/language-selector/LanguageSelector.d.ts +2 -1
- package/dist/components/brand/theme-toggle/ThemeToggle.d.ts +2 -1
- package/dist/components/brand/xertica-logo/XerticaLogo.d.ts +2 -1
- package/dist/components/brand/xertica-orbe/XerticaOrbe.d.ts +2 -1
- package/dist/components/brand/xertica-provider/XerticaProvider.d.ts +1 -1
- package/dist/components/brand/xertica-xlogo/XerticaXLogo.d.ts +2 -1
- package/dist/components/examples/DrawingMapExample.d.ts +2 -1
- package/dist/components/examples/FilterableMapExample.d.ts +1 -1
- package/dist/components/examples/MapShowcase.d.ts +2 -1
- package/dist/components/examples/SimpleFilterableMap.d.ts +2 -1
- package/dist/components/figma/ImageWithFallback.d.ts +1 -1
- package/dist/components/layout/header/header.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +25 -13
- package/dist/components/media/FloatingMediaWrapper.d.ts +1 -1
- package/dist/components/media/audio-player/AudioPlayer.d.ts +2 -1
- package/dist/components/media/video-player/VideoPlayer.d.ts +2 -1
- package/dist/components/pages/forgot-password-page/ForgotPasswordPage.d.ts +2 -1
- package/dist/components/pages/home-content/HomeContent.d.ts +2 -1
- package/dist/components/pages/home-page/HomePage.d.ts +2 -1
- package/dist/components/pages/login-page/LoginPage.d.ts +2 -1
- package/dist/components/pages/reset-password-page/ResetPasswordPage.d.ts +2 -1
- package/dist/components/pages/template-content/TemplateContent.d.ts +2 -1
- package/dist/components/pages/template-page/TemplatePage.d.ts +2 -1
- package/dist/components/pages/verify-email-page/VerifyEmailPage.d.ts +2 -1
- package/dist/components/shared/CustomTooltipContent.d.ts +1 -1
- package/dist/components/shared/assistant-utils.d.ts +3 -2
- package/dist/components/shared/error-boundary.d.ts +4 -4
- package/dist/components/shared/error-fallbacks.d.ts +4 -3
- package/dist/components/shared/navigation.d.ts +6 -2
- package/dist/components/ui/accordion/accordion.d.ts +4 -4
- package/dist/components/ui/alert/alert.d.ts +3 -3
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +10 -10
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/assistant-chart/AssistantChart.d.ts +4 -3
- package/dist/components/ui/avatar/avatar.d.ts +3 -3
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +7 -7
- package/dist/components/ui/calendar/calendar.d.ts +2 -2
- package/dist/components/ui/card/card.d.ts +7 -7
- package/dist/components/ui/carousel/carousel.d.ts +5 -5
- package/dist/components/ui/chart/chart.d.ts +16 -16
- package/dist/components/ui/collapsible/collapsible.d.ts +3 -3
- package/dist/components/ui/command/command.d.ts +9 -9
- package/dist/components/ui/context-menu/context-menu.d.ts +15 -15
- package/dist/components/ui/dialog/dialog.d.ts +9 -9
- package/dist/components/ui/drawer/drawer.d.ts +10 -10
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +15 -15
- package/dist/components/ui/form/form.d.ts +7 -7
- package/dist/components/ui/google-maps-loader/google-maps-loader.d.ts +3 -3
- package/dist/components/ui/hover-card/hover-card.d.ts +3 -3
- package/dist/components/ui/input-otp/input-otp.d.ts +4 -4
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +16 -16
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +8 -8
- package/dist/components/ui/page-header/page-header.d.ts +3 -3
- package/dist/components/ui/pagination/pagination.d.ts +7 -7
- package/dist/components/ui/popover/popover.d.ts +4 -4
- package/dist/components/ui/progress/progress.d.ts +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +11 -7
- package/dist/components/ui/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/ui/separator/separator.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +10 -10
- package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
- package/dist/components/ui/sonner/sonner.d.ts +2 -1
- package/dist/components/ui/stats-card/stats-card-skeleton.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts +8 -8
- package/dist/components/ui/tabs/tabs.d.ts +4 -4
- package/dist/components/ui/tooltip/tooltip.d.ts +4 -4
- package/dist/contexts/ApiKeyContext.d.ts +2 -2
- package/dist/contexts/AssistenteContext.d.ts +1 -1
- package/dist/contexts/AuthContext.d.ts +1 -1
- package/dist/contexts/LanguageContext.d.ts +2 -2
- package/dist/contexts/LayoutContext.d.ts +2 -2
- package/dist/contexts/ThemeContext.d.ts +1 -1
- package/dist/features/assistant/hooks/useAssistantConfig.d.ts +1 -1
- package/dist/features/home/hooks/useDashboardStats.d.ts +1 -1
- package/dist/features/home/hooks/useFeatureCards.d.ts +1 -1
- package/dist/features/home/hooks/useTeamMembers.d.ts +1 -1
- package/dist/{google-maps-loader-BCe58h9D.js → google-maps-loader-BOug999f.js} +0 -4
- package/dist/{google-maps-loader-casMyxlo.cjs → google-maps-loader-DfeBRI8Q.cjs} +0 -5
- package/dist/hooks.cjs.js +2 -2
- package/dist/hooks.es.js +2 -2
- package/dist/{index-9GWd0qxq.cjs → index-BQjx1Mdf.cjs} +1 -1
- package/dist/index-Bei5DzAL.js +6 -0
- package/dist/index.cjs.js +18 -18
- package/dist/index.es.js +12 -12
- package/dist/{input-cc-PTD4R.js → input-B0_vbA3g.js} +3 -61
- package/dist/{input-C_UiS2Py.cjs → input-ByYuOv8A.cjs} +1 -62
- 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/{rich-text-editor-DxO1Hz3a.cjs → rich-text-editor-BuqSu718.cjs} +70 -5
- package/dist/{rich-text-editor-DqLICivI.js → rich-text-editor-CV8FtA_l.js} +68 -6
- package/dist/{rich-text-editor-DloeW0wc.js → rich-text-editor-DV1SixzE.js} +61 -3
- package/dist/{rich-text-editor-B2CKz7nx.cjs → rich-text-editor-DnSDglzW.cjs} +63 -2
- package/dist/{sidebar-BS1p2V7t.cjs → sidebar-BGJ0j567.cjs} +367 -9
- package/dist/{sidebar-3XyzjVBw.js → sidebar-BI6mZlC8.js} +364 -6
- package/dist/{sidebar-DyYvgyBj.cjs → sidebar-BtmotOg-.cjs} +367 -9
- package/dist/{sidebar-Duermn32.js → sidebar-D3EgGVxF.js} +77 -63
- package/dist/{sidebar-CLmIjgNd.cjs → sidebar-DDTqMGnR.cjs} +80 -66
- package/dist/{sidebar-B4ZWaMrE.js → sidebar-I7EXyf5D.js} +364 -6
- package/dist/ui.cjs.js +7 -7
- package/dist/ui.es.js +5 -5
- package/dist/{xertica-assistant-QFUnv5I2.cjs → xertica-assistant-BrF9jScR.cjs} +4 -4
- package/dist/{xertica-assistant-BbgzsgsG.js → xertica-assistant-CJVnvMqU.js} +55 -45
- package/dist/{xertica-assistant-d2qs2Vd9.cjs → xertica-assistant-CKPtc1z5.cjs} +58 -40
- package/dist/{xertica-assistant-CyikE3N_.js → xertica-assistant-CsBsxTsI.js} +2 -2
- package/dist/{xertica-assistant-CIaUlbIt.cjs → xertica-assistant-DER0brPQ.cjs} +6 -5
- package/dist/{xertica-assistant-B1NaSFFj.js → xertica-assistant-DQCjpk5M.js} +4 -3
- package/dist/{xertica-assistant-B687qEPU.js → xertica-assistant-Dk-9AJzw.js} +16 -7
- package/dist/{xertica-assistant-sOHwTgIP.cjs → xertica-assistant-DxhIKvuY.cjs} +18 -9
- package/dist/xertica-ui.css +2 -2
- package/docs/components/audio-player.md +1 -1
- package/docs/components/sidebar.md +331 -331
- package/docs/components/stats-card.md +138 -138
- package/docs/components/toggle.md +12 -0
- package/docs/doc-audit.md +35 -229
- package/docs/i18n.md +31 -10
- package/docs/llms.md +6 -4
- package/llms-compact.txt +444 -444
- package/llms-full.txt +12144 -12144
- package/llms.txt +187 -187
- package/package.json +223 -219
- package/scripts/a11y-audit.mjs +162 -162
- package/scripts/fix-stories.cjs +19 -19
- package/styles/globals.css +0 -1
- package/styles/xertica/base.css +8 -0
- package/styles/xertica/tokens.css +240 -240
- package/templates/.env.example +2 -2
- package/templates/.prettierignore +4 -4
- package/templates/.prettierrc +10 -10
- package/templates/guidelines/Guidelines.md +865 -865
- package/templates/index.html +13 -13
- package/templates/package.json +69 -69
- package/templates/src/app/components/AuthGuard.tsx +11 -0
- package/templates/src/features/auth/ui/AuthPageShell.tsx +32 -32
- package/templates/src/features/home/ui/HomeContent.tsx +2 -3
- package/templates/src/features/settings/index.ts +2 -0
- package/templates/src/features/settings/ui/SettingsContent.tsx +134 -0
- package/templates/src/features/template/ui/TemplateContent.tsx +2 -3
- package/templates/src/i18n.ts +36 -13
- package/templates/src/locales/en/pages/settings.json +15 -0
- package/templates/src/locales/es/pages/settings.json +15 -0
- package/templates/src/locales/pt-BR/pages/settings.json +15 -0
- package/templates/src/pages/SettingsPage.tsx +28 -0
- package/templates/src/shared/config/navigation.ts +2 -2
- package/templates/src/styles/xertica/tokens.css +240 -240
- package/templates/vite.config.d.ts +2 -2
- package/templates/vite.config.js +20 -20
- package/utils/gemini.ts +2 -2
- package/dist/AssistantChart-9w31gdAb.cjs +0 -3363
- package/dist/AssistantChart-BAudAfne.cjs +0 -3591
- package/dist/AssistantChart-BAx9VQvb.cjs +0 -3374
- package/dist/AssistantChart-BP8upjMk.js +0 -3565
- package/dist/AssistantChart-CVko2A1W.js +0 -3348
- package/dist/AssistantChart-CVzmmhx4.js +0 -3337
- package/dist/AssistantChart-CeU2dIb6.js +0 -3469
- package/dist/AssistantChart-DO5UuX4J.cjs +0 -3495
- package/dist/AudioPlayer-1ypwE2Wh.cjs +0 -936
- package/dist/AudioPlayer-BJ2IuRQW.cjs +0 -1275
- package/dist/AudioPlayer-BWDW6TN9.cjs +0 -1279
- package/dist/AudioPlayer-CM962GEh.js +0 -1280
- package/dist/AudioPlayer-CbZId7cj.cjs +0 -998
- package/dist/AudioPlayer-DU8zt8-z.js +0 -999
- package/dist/AudioPlayer-DuKXrCfy.js +0 -937
- package/dist/AudioPlayer-Xxma6_-H.js +0 -1276
- package/dist/BrandColorsContext-DLVJgtmH.js +0 -666
- package/dist/BrandColorsContext-DZT7JjeD.js +0 -659
- package/dist/BrandColorsContext-GUyFmkX0.cjs +0 -665
- package/dist/BrandColorsContext-awnBCmC4.cjs +0 -666
- package/dist/CodeBlock-C2ZUXt8V.js +0 -219
- package/dist/CodeBlock-C5oYnLQp.cjs +0 -218
- package/dist/CodeBlock-DuxdtN-l.js +0 -219
- package/dist/CodeBlock-POVYONvC.cjs +0 -218
- package/dist/CustomTooltipContent-BT6brkVJ.cjs +0 -49
- package/dist/CustomTooltipContent-CfOfikhq.js +0 -33
- package/dist/CustomTooltipContent-DHjkY0ww.js +0 -40
- package/dist/CustomTooltipContent-c_K-DWRr.cjs +0 -56
- package/dist/FeatureCard-9GhnlgL3.js +0 -336
- package/dist/FeatureCard-Bcb3Zi54.js +0 -302
- package/dist/FeatureCard-Cfs6Ishq.js +0 -485
- package/dist/FeatureCard-CkPd2psQ.cjs +0 -301
- package/dist/FeatureCard-Dkp-xmzM.cjs +0 -335
- package/dist/FeatureCard-ie3L8Fpr.cjs +0 -484
- package/dist/FeatureCardSkeleton-CAgu8stE.js +0 -27
- package/dist/FeatureCardSkeleton-mO3Bdm_V.cjs +0 -26
- package/dist/LanguageContext-BwhwC3G2.js +0 -657
- package/dist/LanguageContext-DvUt5jBg.cjs +0 -656
- package/dist/LayoutContext-BDmcZfMH.cjs +0 -84
- package/dist/LayoutContext-C4kKN9RV.cjs +0 -93
- package/dist/LayoutContext-CGEe1oPq.js +0 -94
- package/dist/LayoutContext-CwT5KLiW.cjs +0 -104
- package/dist/LayoutContext-DVLCsoQn.js +0 -105
- package/dist/LayoutContext-dbQvdC4O.js +0 -85
- package/dist/ThemeContext-BbBNoFTG.js +0 -735
- package/dist/ThemeContext-Bo-W2WZH.js +0 -1856
- package/dist/ThemeContext-CP3a0jxy.cjs +0 -1855
- package/dist/ThemeContext-Cmr8Ex8H.cjs +0 -734
- package/dist/ThemeContext-CpqYShLq.cjs +0 -324
- package/dist/ThemeContext-D3LzacmG.js +0 -188
- package/dist/ThemeContext-DQUOeziy.cjs +0 -1855
- package/dist/ThemeContext-Du2nE1PL.js +0 -325
- package/dist/ThemeContext-GeEBTJ3q.cjs +0 -1621
- package/dist/ThemeContext-JyLK9B1o.js +0 -1622
- package/dist/ThemeContext-RTy1m2Uq.js +0 -82
- package/dist/ThemeContext-U4dEYc6C.cjs +0 -187
- package/dist/ThemeContext-bSzuOit2.cjs +0 -81
- package/dist/ThemeContext-ept8jhXI.js +0 -1856
- package/dist/VerifyEmailPage-BE-L9mB7.js +0 -2828
- package/dist/VerifyEmailPage-BIBOKV7Z.js +0 -3214
- package/dist/VerifyEmailPage-BRSP-Pwt.cjs +0 -3196
- package/dist/VerifyEmailPage-Bae2cBXT.cjs +0 -2827
- package/dist/VerifyEmailPage-BiRm7Nh4.cjs +0 -3213
- package/dist/VerifyEmailPage-Bvfv8HVQ.js +0 -3214
- package/dist/VerifyEmailPage-CR7kb5df.cjs +0 -2827
- package/dist/VerifyEmailPage-C_ihbcth.js +0 -2828
- package/dist/VerifyEmailPage-CbgjOF0v.js +0 -2828
- package/dist/VerifyEmailPage-CdYPSJoO.js +0 -2828
- package/dist/VerifyEmailPage-D-FRj5TU.cjs +0 -3213
- package/dist/VerifyEmailPage-DF2ilhum.cjs +0 -3210
- package/dist/VerifyEmailPage-DMBh4NM9.cjs +0 -2827
- package/dist/VerifyEmailPage-DTtFfC-J.js +0 -3197
- package/dist/VerifyEmailPage-Dt7zgA4w.cjs +0 -2827
- package/dist/VerifyEmailPage-EhudUdqF.js +0 -3211
- package/dist/VerifyEmailPage-RrUApqBN.js +0 -3214
- package/dist/VerifyEmailPage-VoMI7MYH.cjs +0 -3213
- package/dist/VerifyEmailPage-hdB8JQGv.cjs +0 -3213
- package/dist/VerifyEmailPage-vYHbYK3q.js +0 -3214
- package/dist/XerticaOrbe-BCUVSPPB.cjs +0 -1924
- package/dist/XerticaOrbe-BGIB1CTK.js +0 -1355
- package/dist/XerticaOrbe-By8eEvR-.js +0 -1925
- package/dist/XerticaOrbe-FWGjBj0U.cjs +0 -1354
- package/dist/XerticaProvider-AChwphCO.cjs +0 -48
- package/dist/XerticaProvider-AbWlr7Af.cjs +0 -48
- package/dist/XerticaProvider-B8CaV7xu.cjs +0 -39
- package/dist/XerticaProvider-BITjgC5p.js +0 -39
- package/dist/XerticaProvider-BSyFrmC0.js +0 -49
- package/dist/XerticaProvider-By8q3Roe.cjs +0 -38
- package/dist/XerticaProvider-CUYJZc32.js +0 -49
- package/dist/XerticaProvider-CW9hpCdF.cjs +0 -39
- package/dist/XerticaProvider-CWgby5mY.js +0 -49
- package/dist/XerticaProvider-CWs6EwNa.js +0 -49
- package/dist/XerticaProvider-CiNKjMx1.cjs +0 -48
- package/dist/XerticaProvider-CjQAQPcn.cjs +0 -48
- package/dist/XerticaProvider-D5lLumH-.js +0 -49
- package/dist/XerticaProvider-DQtvJU7m.js +0 -40
- package/dist/XerticaProvider-DUOJg9iX.js +0 -49
- package/dist/XerticaProvider-Dl_b72_l.cjs +0 -51
- package/dist/XerticaProvider-qQUDop71.cjs +0 -48
- package/dist/XerticaProvider-siSt9uG2.js +0 -40
- package/dist/XerticaXLogo-8TTzBjHw.cjs +0 -251
- package/dist/XerticaXLogo-B2svDGZh.cjs +0 -251
- package/dist/XerticaXLogo-BWaag64t.js +0 -252
- package/dist/XerticaXLogo-CFuIlYFH.js +0 -252
- package/dist/XerticaXLogo-CU-U-GP4.cjs +0 -251
- package/dist/XerticaXLogo-ChryA6xj.js +0 -252
- package/dist/XerticaXLogo-CowGv7BC.js +0 -252
- package/dist/XerticaXLogo-CziKMQil.cjs +0 -242
- package/dist/XerticaXLogo-D8jf0SNv.cjs +0 -214
- package/dist/XerticaXLogo-DHz5SugF.js +0 -252
- package/dist/XerticaXLogo-DTee_y8X.cjs +0 -251
- package/dist/XerticaXLogo-DfUvz-lD.js +0 -243
- package/dist/XerticaXLogo-DzXKZBtG.js +0 -231
- package/dist/XerticaXLogo-fAJMy3H4.js +0 -215
- package/dist/XerticaXLogo-kslQ8Tk_.cjs +0 -251
- package/dist/XerticaXLogo-xWbElCZj.cjs +0 -230
- package/dist/alert-dialog-iDe5VE5o.js +0 -842
- package/dist/alert-dialog-yckpaOpy.cjs +0 -865
- package/dist/avatar-Cq5_E8r9.cjs +0 -78
- package/dist/avatar-CuYu2MKt.cjs +0 -72
- package/dist/avatar-Cxyofu1H.js +0 -56
- package/dist/avatar-DSBfJMRJ.js +0 -62
- package/dist/breadcrumb-CVzzzqfo.js +0 -103
- package/dist/breadcrumb-DIJ0X3Ot.js +0 -96
- package/dist/breadcrumb-DjSxkjlQ.cjs +0 -95
- package/dist/breadcrumb-DnDlQFg2.cjs +0 -102
- package/dist/button-0CXwCRTm.cjs +0 -85
- package/dist/button-Bnv9SvYK.cjs +0 -79
- package/dist/button-C6uvh0rV.js +0 -63
- package/dist/button-qkz7Icqf.js +0 -69
- package/dist/card-B8-Gl5DL.js +0 -73
- package/dist/card-Bv_c57KU.cjs +0 -72
- package/dist/card-DJTsYhLL.cjs +0 -89
- package/dist/card-fi8zAN-I.js +0 -90
- package/dist/dropdown-menu-B_uEXNc4.cjs +0 -220
- package/dist/dropdown-menu-CFuCssWA.js +0 -204
- package/dist/dropdown-menu-Ze1YZFyc.cjs +0 -247
- package/dist/dropdown-menu-nc_Lvg-u.js +0 -231
- package/dist/google-maps-loader-BVoVhUwA.js +0 -316
- package/dist/google-maps-loader-BqsYL48U.cjs +0 -285
- package/dist/google-maps-loader-DjJaYhV6.cjs +0 -316
- package/dist/google-maps-loader-t2IlYBzw.js +0 -286
- package/dist/index-B7A523O_.js +0 -8
- package/dist/index-BabBx2pa.js +0 -6
- package/dist/index-CkTUgOwX.js +0 -8
- package/dist/index-D3RLKRAs.cjs +0 -7
- package/dist/index-DmHhnb7a.cjs +0 -7
- package/dist/index.umd.js +0 -13712
- package/dist/input-CNFHVKvo.cjs +0 -145
- package/dist/input-CPl84zAx.cjs +0 -151
- package/dist/input-D-6IsAca.js +0 -133
- package/dist/input-wPYg0d0P.js +0 -127
- package/dist/progress-BLwqortq.cjs +0 -105
- package/dist/progress-Cs9i4DPx.js +0 -81
- package/dist/progress-D9mtsf6j.js +0 -89
- package/dist/progress-DDeuWPZw.cjs +0 -97
- package/dist/rich-text-editor-1UW3Y2JK.js +0 -2891
- package/dist/rich-text-editor-BM-LPpTh.js +0 -2902
- package/dist/rich-text-editor-BmsjY03B.js +0 -2949
- package/dist/rich-text-editor-BrdC5evx.js +0 -2244
- package/dist/rich-text-editor-CyggTOLQ.cjs +0 -2908
- package/dist/rich-text-editor-DbV-S7Fi.cjs +0 -2261
- package/dist/rich-text-editor-DoCkKhzk.cjs +0 -2919
- package/dist/rich-text-editor-GS2kpTAK.cjs +0 -2966
- package/dist/routes.d.ts +0 -10
- package/dist/select-Cmb8zF7w.cjs +0 -156
- package/dist/select-CprSNX0z.js +0 -139
- package/dist/select-DT7Zjn42.cjs +0 -162
- package/dist/select-En8DkoaQ.js +0 -145
- package/dist/sidebar-B3EYhli0.cjs +0 -800
- package/dist/sidebar-B9NR0lCe.cjs +0 -800
- package/dist/sidebar-BcJ6LxvX.cjs +0 -733
- package/dist/sidebar-BvF5I2Ue.cjs +0 -800
- package/dist/sidebar-C5B_LHek.cjs +0 -795
- package/dist/sidebar-CA6_ek3f.js +0 -801
- package/dist/sidebar-CRMiBtAi.js +0 -801
- package/dist/sidebar-CVUGHOS_.cjs +0 -756
- package/dist/sidebar-CZ2mWaMM.cjs +0 -800
- package/dist/sidebar-CmvwjnVb.js +0 -757
- package/dist/sidebar-CplprZpM.js +0 -801
- package/dist/sidebar-Dz7bd3zP.js +0 -796
- package/dist/sidebar-KIS0C2JH.js +0 -801
- package/dist/sidebar-OTO_up7Z.js +0 -801
- package/dist/sidebar-WoKvFWCN.js +0 -717
- package/dist/sidebar-zowjejT2.cjs +0 -800
- package/dist/skeleton-4zoHiFJ_.cjs +0 -83
- package/dist/skeleton-C4bHqUBf.js +0 -84
- package/dist/slider-C0JKA9k3.js +0 -56
- package/dist/slider-CPmwzm_3.cjs +0 -73
- package/dist/slider-DcJharR9.cjs +0 -73
- package/dist/slider-Pay3fka2.js +0 -56
- package/dist/sonner-DeUIj0Zg.cjs +0 -63
- package/dist/sonner-g9RIfi35.js +0 -47
- package/dist/tooltip-CNtsL5cB.cjs +0 -71
- package/dist/tooltip-CTyZCD8h.js +0 -55
- package/dist/tooltip-CwgSdy3h.cjs +0 -67
- package/dist/tooltip-D-OrYnKO.js +0 -51
- package/dist/use-audio-player-BJFV24XW.js +0 -188
- package/dist/use-audio-player-Bkh23vQ3.js +0 -177
- package/dist/use-audio-player-Dn1NR9xN.cjs +0 -176
- package/dist/use-audio-player-DyVYlOnR.cjs +0 -187
- package/dist/use-mobile-BB4M_4Ru.cjs +0 -47
- package/dist/use-mobile-CLu9nqGL.js +0 -31
- package/dist/use-mobile-CNwiBNxu.js +0 -33
- package/dist/use-mobile-Dlf74ufz.cjs +0 -49
- package/dist/xertica-assistant-B1IaHXnB.cjs +0 -1894
- package/dist/xertica-assistant-BMqdyRVi.js +0 -2082
- package/dist/xertica-assistant-Bj3vBCq_.cjs +0 -2081
- package/dist/xertica-assistant-CfBCo21g.js +0 -2148
- package/dist/xertica-assistant-DIM_Do1k.js +0 -1866
- package/dist/xertica-assistant-DPsESB6t.js +0 -1878
- package/dist/xertica-assistant-DrsRwla1.cjs +0 -2147
- package/dist/xertica-assistant-Qp3ydksa.cjs +0 -1882
- package/dist/xertica-assistant-gnCJdcZY.js +0 -1866
- package/dist/xertica-assistant-yyrR0JKl.cjs +0 -1882
- package/styles/xertica/app-overrides/scrollbar.css +0 -33
- package/dist/{XerticaXLogo-qBPhwK3g.cjs → LanguageSelector-1cINLJ23.cjs} +80 -80
|
@@ -1,3363 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const AspectRatioPrimitive = require("@radix-ui/react-aspect-ratio");
|
|
4
|
-
const lucideReact = require("lucide-react");
|
|
5
|
-
const React = require("react");
|
|
6
|
-
const button = require("./button-0CXwCRTm.cjs");
|
|
7
|
-
const NavigationMenuPrimitive = require("@radix-ui/react-navigation-menu");
|
|
8
|
-
const classVarianceAuthority = require("class-variance-authority");
|
|
9
|
-
const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
|
|
10
|
-
const TogglePrimitive = require("@radix-ui/react-toggle");
|
|
11
|
-
const inputOtp = require("input-otp");
|
|
12
|
-
const reactSlot = require("@radix-ui/react-slot");
|
|
13
|
-
const reactHookForm = require("react-hook-form");
|
|
14
|
-
const alertDialog = require("./alert-dialog-yckpaOpy.cjs");
|
|
15
|
-
const reactDayPicker = require("react-day-picker");
|
|
16
|
-
const DialogPrimitive = require("@radix-ui/react-dialog");
|
|
17
|
-
const vaul = require("vaul");
|
|
18
|
-
const HoverCardPrimitive = require("@radix-ui/react-hover-card");
|
|
19
|
-
const ContextMenuPrimitive = require("@radix-ui/react-context-menu");
|
|
20
|
-
const MenubarPrimitive = require("@radix-ui/react-menubar");
|
|
21
|
-
const cmdk = require("cmdk");
|
|
22
|
-
const richTextEditor = require("./rich-text-editor-DbV-S7Fi.cjs");
|
|
23
|
-
const card = require("./card-DJTsYhLL.cjs");
|
|
24
|
-
const CollapsiblePrimitive = require("@radix-ui/react-collapsible");
|
|
25
|
-
const AccordionPrimitive = require("@radix-ui/react-accordion");
|
|
26
|
-
const useEmblaCarousel = require("embla-carousel-react");
|
|
27
|
-
const googleMapsLoader = require("./google-maps-loader-BqsYL48U.cjs");
|
|
28
|
-
const RechartsPrimitive = require("recharts");
|
|
29
|
-
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
30
|
-
function _interopNamespaceDefault(e) {
|
|
31
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
32
|
-
if (e) {
|
|
33
|
-
for (const k in e) {
|
|
34
|
-
if (k !== "default") {
|
|
35
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
36
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: () => e[k]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
n.default = e;
|
|
44
|
-
return Object.freeze(n);
|
|
45
|
-
}
|
|
46
|
-
const AspectRatioPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AspectRatioPrimitive);
|
|
47
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
48
|
-
const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
|
|
49
|
-
const ToggleGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToggleGroupPrimitive);
|
|
50
|
-
const TogglePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TogglePrimitive);
|
|
51
|
-
const DialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DialogPrimitive);
|
|
52
|
-
const HoverCardPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(HoverCardPrimitive);
|
|
53
|
-
const ContextMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ContextMenuPrimitive);
|
|
54
|
-
const MenubarPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(MenubarPrimitive);
|
|
55
|
-
const CollapsiblePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CollapsiblePrimitive);
|
|
56
|
-
const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
|
|
57
|
-
function AspectRatio({
|
|
58
|
-
...props
|
|
59
|
-
}) {
|
|
60
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AspectRatioPrimitive__namespace.Root, { "data-slot": "aspect-ratio", ...props });
|
|
61
|
-
}
|
|
62
|
-
const ResizableContext = React__namespace.createContext(null);
|
|
63
|
-
const ResizablePanelGroup = ({
|
|
64
|
-
children,
|
|
65
|
-
className,
|
|
66
|
-
direction = "horizontal",
|
|
67
|
-
id,
|
|
68
|
-
autoSaveId,
|
|
69
|
-
storage,
|
|
70
|
-
onLayout,
|
|
71
|
-
...props
|
|
72
|
-
}) => {
|
|
73
|
-
const [panels, setPanels] = React__namespace.useState(/* @__PURE__ */ new Map());
|
|
74
|
-
const [handles, setHandles] = React__namespace.useState(/* @__PURE__ */ new Map());
|
|
75
|
-
const [sizes, setSizes] = React__namespace.useState(/* @__PURE__ */ new Map());
|
|
76
|
-
const [isDragging, setIsDragging] = React__namespace.useState(false);
|
|
77
|
-
const containerRef = React__namespace.useRef(null);
|
|
78
|
-
const getSortedItems = React__namespace.useCallback((items) => {
|
|
79
|
-
if (!containerRef.current) return [];
|
|
80
|
-
return Array.from(items.values()).sort((a, b) => {
|
|
81
|
-
if (!a.ref.current || !b.ref.current) return 0;
|
|
82
|
-
const position = a.ref.current.compareDocumentPosition(b.ref.current);
|
|
83
|
-
if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
|
|
84
|
-
if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
|
|
85
|
-
return 0;
|
|
86
|
-
});
|
|
87
|
-
}, []);
|
|
88
|
-
React__namespace.useEffect(() => {
|
|
89
|
-
const sortedPanels = getSortedItems(panels);
|
|
90
|
-
if (sortedPanels.length === 0) return;
|
|
91
|
-
const uninitialized = sortedPanels.some((p) => !sizes.has(p.id));
|
|
92
|
-
if (uninitialized) {
|
|
93
|
-
const newSizes = new Map(sizes);
|
|
94
|
-
const remainingSpace = 100;
|
|
95
|
-
const defaultSizeCount = sortedPanels.filter((p) => p.defaultSize).length;
|
|
96
|
-
let usedSpace = 0;
|
|
97
|
-
sortedPanels.forEach((p) => {
|
|
98
|
-
if (p.defaultSize) usedSpace += p.defaultSize;
|
|
99
|
-
});
|
|
100
|
-
const spaceForOthers = Math.max(0, remainingSpace - usedSpace);
|
|
101
|
-
const countOthers = sortedPanels.length - defaultSizeCount;
|
|
102
|
-
const sizeForOthers = countOthers > 0 ? spaceForOthers / countOthers : 0;
|
|
103
|
-
sortedPanels.forEach((p) => {
|
|
104
|
-
if (!newSizes.has(p.id)) {
|
|
105
|
-
newSizes.set(p.id, p.defaultSize ?? sizeForOthers);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
setSizes(newSizes);
|
|
109
|
-
}
|
|
110
|
-
}, [panels, sizes, getSortedItems]);
|
|
111
|
-
const registerPanel = React__namespace.useCallback((data) => {
|
|
112
|
-
setPanels((prev) => {
|
|
113
|
-
const next = new Map(prev);
|
|
114
|
-
next.set(data.id, data);
|
|
115
|
-
return next;
|
|
116
|
-
});
|
|
117
|
-
}, []);
|
|
118
|
-
const unregisterPanel = React__namespace.useCallback((id2) => {
|
|
119
|
-
setPanels((prev) => {
|
|
120
|
-
const next = new Map(prev);
|
|
121
|
-
next.delete(id2);
|
|
122
|
-
return next;
|
|
123
|
-
});
|
|
124
|
-
setSizes((prev) => {
|
|
125
|
-
const next = new Map(prev);
|
|
126
|
-
next.delete(id2);
|
|
127
|
-
return next;
|
|
128
|
-
});
|
|
129
|
-
}, []);
|
|
130
|
-
const registerHandle = React__namespace.useCallback((data) => {
|
|
131
|
-
setHandles((prev) => {
|
|
132
|
-
const next = new Map(prev);
|
|
133
|
-
next.set(data.id, data);
|
|
134
|
-
return next;
|
|
135
|
-
});
|
|
136
|
-
}, []);
|
|
137
|
-
const unregisterHandle = React__namespace.useCallback((id2) => {
|
|
138
|
-
setHandles((prev) => {
|
|
139
|
-
const next = new Map(prev);
|
|
140
|
-
next.delete(id2);
|
|
141
|
-
return next;
|
|
142
|
-
});
|
|
143
|
-
}, []);
|
|
144
|
-
const startDragging = React__namespace.useCallback((handleId, event) => {
|
|
145
|
-
var _a, _b;
|
|
146
|
-
event.preventDefault();
|
|
147
|
-
setIsDragging(true);
|
|
148
|
-
const sortedPanels = getSortedItems(panels);
|
|
149
|
-
const sortedHandles = getSortedItems(handles);
|
|
150
|
-
const handleIndex = sortedHandles.findIndex((h) => h.id === handleId);
|
|
151
|
-
if (handleIndex === -1) return;
|
|
152
|
-
const leftPanel = sortedPanels[handleIndex];
|
|
153
|
-
const rightPanel = sortedPanels[handleIndex + 1];
|
|
154
|
-
if (!leftPanel || !rightPanel) return;
|
|
155
|
-
const startX = "touches" in event ? event.touches[0].clientX : event.clientX;
|
|
156
|
-
const startY = "touches" in event ? event.touches[0].clientY : event.clientY;
|
|
157
|
-
const startSizeLeft = sizes.get(leftPanel.id) || 0;
|
|
158
|
-
const startSizeRight = sizes.get(rightPanel.id) || 0;
|
|
159
|
-
const containerSize = direction === "horizontal" ? ((_a = containerRef.current) == null ? void 0 : _a.offsetWidth) || 1 : ((_b = containerRef.current) == null ? void 0 : _b.offsetHeight) || 1;
|
|
160
|
-
const onMove = (e) => {
|
|
161
|
-
var _a2, _b2;
|
|
162
|
-
const currentX = "touches" in e ? e.touches[0].clientX : e.clientX;
|
|
163
|
-
const currentY = "touches" in e ? e.touches[0].clientY : e.clientY;
|
|
164
|
-
const deltaPixels = direction === "horizontal" ? currentX - startX : currentY - startY;
|
|
165
|
-
const deltaPercent = deltaPixels / containerSize * 100;
|
|
166
|
-
let finalLeft = startSizeLeft + deltaPercent;
|
|
167
|
-
let finalRight = startSizeRight - deltaPercent;
|
|
168
|
-
if (leftPanel.minSize !== void 0 && finalLeft < leftPanel.minSize) {
|
|
169
|
-
const diff = leftPanel.minSize - finalLeft;
|
|
170
|
-
finalLeft = leftPanel.minSize;
|
|
171
|
-
finalRight -= diff;
|
|
172
|
-
}
|
|
173
|
-
if (rightPanel.minSize !== void 0 && finalRight < rightPanel.minSize) {
|
|
174
|
-
const diff = rightPanel.minSize - finalRight;
|
|
175
|
-
finalRight = rightPanel.minSize;
|
|
176
|
-
finalLeft -= diff;
|
|
177
|
-
}
|
|
178
|
-
if (leftPanel.maxSize !== void 0 && finalLeft > leftPanel.maxSize) {
|
|
179
|
-
const diff = finalLeft - leftPanel.maxSize;
|
|
180
|
-
finalLeft = leftPanel.maxSize;
|
|
181
|
-
finalRight += diff;
|
|
182
|
-
}
|
|
183
|
-
if (rightPanel.maxSize !== void 0 && finalRight > rightPanel.maxSize) {
|
|
184
|
-
const diff = finalRight - rightPanel.maxSize;
|
|
185
|
-
finalRight = rightPanel.maxSize;
|
|
186
|
-
finalLeft -= diff;
|
|
187
|
-
}
|
|
188
|
-
finalLeft = Math.max(0, Math.min(100, finalLeft));
|
|
189
|
-
finalRight = Math.max(0, Math.min(100, finalRight));
|
|
190
|
-
setSizes((prev) => {
|
|
191
|
-
const next = new Map(prev);
|
|
192
|
-
next.set(leftPanel.id, finalLeft);
|
|
193
|
-
next.set(rightPanel.id, finalRight);
|
|
194
|
-
return next;
|
|
195
|
-
});
|
|
196
|
-
(_a2 = leftPanel.onResize) == null ? void 0 : _a2.call(leftPanel, finalLeft);
|
|
197
|
-
(_b2 = rightPanel.onResize) == null ? void 0 : _b2.call(rightPanel, finalRight);
|
|
198
|
-
};
|
|
199
|
-
const onUp = () => {
|
|
200
|
-
setIsDragging(false);
|
|
201
|
-
window.removeEventListener("mousemove", onMove);
|
|
202
|
-
window.removeEventListener("mouseup", onUp);
|
|
203
|
-
window.removeEventListener("touchmove", onMove);
|
|
204
|
-
window.removeEventListener("touchend", onUp);
|
|
205
|
-
if (onLayout) {
|
|
206
|
-
onLayout(sortedPanels.map((p) => sizes.get(p.id) || 0));
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
window.addEventListener("mousemove", onMove);
|
|
210
|
-
window.addEventListener("mouseup", onUp);
|
|
211
|
-
window.addEventListener("touchmove", onMove);
|
|
212
|
-
window.addEventListener("touchend", onUp);
|
|
213
|
-
}, [panels, handles, sizes, direction, getSortedItems, onLayout]);
|
|
214
|
-
const getPanelStyle = React__namespace.useCallback((id2) => {
|
|
215
|
-
const size = sizes.get(id2);
|
|
216
|
-
if (size === void 0) return { flex: "1 1 0%", overflow: "hidden" };
|
|
217
|
-
return { flex: `${size} 1 0%`, overflow: "hidden" };
|
|
218
|
-
}, [sizes]);
|
|
219
|
-
const contextValue = React__namespace.useMemo(() => ({
|
|
220
|
-
direction,
|
|
221
|
-
registerPanel,
|
|
222
|
-
unregisterPanel,
|
|
223
|
-
registerHandle,
|
|
224
|
-
unregisterHandle,
|
|
225
|
-
isDragging,
|
|
226
|
-
startDragging,
|
|
227
|
-
getPanelStyle
|
|
228
|
-
}), [direction, registerPanel, unregisterPanel, registerHandle, unregisterHandle, isDragging, startDragging, getPanelStyle]);
|
|
229
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ResizableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
"div",
|
|
231
|
-
{
|
|
232
|
-
ref: containerRef,
|
|
233
|
-
"data-slot": "resizable-panel-group",
|
|
234
|
-
"data-panel-group-direction": direction,
|
|
235
|
-
className: button.cn(
|
|
236
|
-
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
237
|
-
className
|
|
238
|
-
),
|
|
239
|
-
...props,
|
|
240
|
-
children
|
|
241
|
-
}
|
|
242
|
-
) });
|
|
243
|
-
};
|
|
244
|
-
const ResizablePanel = ({
|
|
245
|
-
className,
|
|
246
|
-
defaultSize,
|
|
247
|
-
minSize = 0,
|
|
248
|
-
maxSize = 100,
|
|
249
|
-
collapsible,
|
|
250
|
-
collapsedSize,
|
|
251
|
-
onCollapse,
|
|
252
|
-
onExpand,
|
|
253
|
-
onResize,
|
|
254
|
-
order,
|
|
255
|
-
tagName,
|
|
256
|
-
id: propId,
|
|
257
|
-
children,
|
|
258
|
-
...props
|
|
259
|
-
}) => {
|
|
260
|
-
const context = React__namespace.useContext(ResizableContext);
|
|
261
|
-
const ref = React__namespace.useRef(null);
|
|
262
|
-
const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
|
|
263
|
-
const id = propId || generatedId;
|
|
264
|
-
const registerPanel = context == null ? void 0 : context.registerPanel;
|
|
265
|
-
const unregisterPanel = context == null ? void 0 : context.unregisterPanel;
|
|
266
|
-
React__namespace.useLayoutEffect(() => {
|
|
267
|
-
if (!registerPanel || !unregisterPanel) return;
|
|
268
|
-
registerPanel({
|
|
269
|
-
id,
|
|
270
|
-
ref,
|
|
271
|
-
defaultSize,
|
|
272
|
-
minSize,
|
|
273
|
-
maxSize,
|
|
274
|
-
collapsible,
|
|
275
|
-
onCollapse,
|
|
276
|
-
onExpand,
|
|
277
|
-
onResize
|
|
278
|
-
});
|
|
279
|
-
return () => unregisterPanel(id);
|
|
280
|
-
}, [registerPanel, unregisterPanel, id, defaultSize, minSize, maxSize, collapsible, onCollapse, onExpand, onResize]);
|
|
281
|
-
if (!context) {
|
|
282
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("flex-1", className), ...props, children });
|
|
283
|
-
}
|
|
284
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
285
|
-
"div",
|
|
286
|
-
{
|
|
287
|
-
ref,
|
|
288
|
-
"data-slot": "resizable-panel",
|
|
289
|
-
className: button.cn("relative transition-[flex-grow] duration-0", className),
|
|
290
|
-
style: context.getPanelStyle(id),
|
|
291
|
-
...props,
|
|
292
|
-
children
|
|
293
|
-
}
|
|
294
|
-
);
|
|
295
|
-
};
|
|
296
|
-
const ResizableHandle = ({
|
|
297
|
-
withHandle,
|
|
298
|
-
className,
|
|
299
|
-
id: propId,
|
|
300
|
-
tagName,
|
|
301
|
-
...props
|
|
302
|
-
}) => {
|
|
303
|
-
const context = React__namespace.useContext(ResizableContext);
|
|
304
|
-
const ref = React__namespace.useRef(null);
|
|
305
|
-
const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
|
|
306
|
-
const id = propId || generatedId;
|
|
307
|
-
const registerHandle = context == null ? void 0 : context.registerHandle;
|
|
308
|
-
const unregisterHandle = context == null ? void 0 : context.unregisterHandle;
|
|
309
|
-
React__namespace.useLayoutEffect(() => {
|
|
310
|
-
if (!registerHandle || !unregisterHandle) return;
|
|
311
|
-
registerHandle({ id, ref });
|
|
312
|
-
return () => unregisterHandle(id);
|
|
313
|
-
}, [registerHandle, unregisterHandle, id]);
|
|
314
|
-
const handleMouseDown = (e) => {
|
|
315
|
-
if (context) {
|
|
316
|
-
context.startDragging(id, e);
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
if (!context) return null;
|
|
320
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
321
|
-
"div",
|
|
322
|
-
{
|
|
323
|
-
ref,
|
|
324
|
-
"data-slot": "resizable-handle",
|
|
325
|
-
className: button.cn(
|
|
326
|
-
"bg-border relative flex items-center justify-center focus-visible:outline-hidden",
|
|
327
|
-
"touch-none select-none",
|
|
328
|
-
context.direction === "vertical" ? "h-px w-full cursor-row-resize after:left-0 after:h-1 after:w-full after:-translate-y-1/2 hover:after:h-4" : "w-px h-full cursor-col-resize after:top-0 after:w-1 after:h-full after:-translate-x-1/2 hover:after:w-4",
|
|
329
|
-
"after:absolute after:z-10",
|
|
330
|
-
className
|
|
331
|
-
),
|
|
332
|
-
onMouseDown: handleMouseDown,
|
|
333
|
-
onTouchStart: handleMouseDown,
|
|
334
|
-
...props,
|
|
335
|
-
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVerticalIcon, { className: "size-2.5" }) })
|
|
336
|
-
}
|
|
337
|
-
);
|
|
338
|
-
};
|
|
339
|
-
function NavigationMenu({
|
|
340
|
-
className,
|
|
341
|
-
children,
|
|
342
|
-
viewport = true,
|
|
343
|
-
...props
|
|
344
|
-
}) {
|
|
345
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
346
|
-
NavigationMenuPrimitive__namespace.Root,
|
|
347
|
-
{
|
|
348
|
-
"data-slot": "navigation-menu",
|
|
349
|
-
className: button.cn(
|
|
350
|
-
"relative z-10 flex w-full flex-1 items-center justify-center",
|
|
351
|
-
className
|
|
352
|
-
),
|
|
353
|
-
...props,
|
|
354
|
-
children: [
|
|
355
|
-
children,
|
|
356
|
-
viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
|
|
357
|
-
]
|
|
358
|
-
}
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
function NavigationMenuList({
|
|
362
|
-
className,
|
|
363
|
-
...props
|
|
364
|
-
}) {
|
|
365
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
366
|
-
NavigationMenuPrimitive__namespace.List,
|
|
367
|
-
{
|
|
368
|
-
"data-slot": "navigation-menu-list",
|
|
369
|
-
className: button.cn(
|
|
370
|
-
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
371
|
-
className
|
|
372
|
-
),
|
|
373
|
-
...props
|
|
374
|
-
}
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
function NavigationMenuItem({
|
|
378
|
-
className,
|
|
379
|
-
...props
|
|
380
|
-
}) {
|
|
381
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
382
|
-
NavigationMenuPrimitive__namespace.Item,
|
|
383
|
-
{
|
|
384
|
-
"data-slot": "navigation-menu-item",
|
|
385
|
-
className: button.cn("relative", className),
|
|
386
|
-
...props
|
|
387
|
-
}
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
const navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
391
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-[var(--radius)] bg-background px-4 py-2 text-[var(--text-p)] font-[var(--font-weight-medium)] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
392
|
-
);
|
|
393
|
-
function NavigationMenuTrigger({
|
|
394
|
-
className,
|
|
395
|
-
children,
|
|
396
|
-
...props
|
|
397
|
-
}) {
|
|
398
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
399
|
-
NavigationMenuPrimitive__namespace.Trigger,
|
|
400
|
-
{
|
|
401
|
-
"data-slot": "navigation-menu-trigger",
|
|
402
|
-
className: button.cn(navigationMenuTriggerStyle(), "group", className),
|
|
403
|
-
...props,
|
|
404
|
-
children: [
|
|
405
|
-
children,
|
|
406
|
-
" ",
|
|
407
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
408
|
-
lucideReact.ChevronDownIcon,
|
|
409
|
-
{
|
|
410
|
-
className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
|
|
411
|
-
"aria-hidden": "true"
|
|
412
|
-
}
|
|
413
|
-
)
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
);
|
|
417
|
-
}
|
|
418
|
-
function NavigationMenuContent({
|
|
419
|
-
className,
|
|
420
|
-
...props
|
|
421
|
-
}) {
|
|
422
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
-
NavigationMenuPrimitive__namespace.Content,
|
|
424
|
-
{
|
|
425
|
-
"data-slot": "navigation-menu-content",
|
|
426
|
-
className: button.cn(
|
|
427
|
-
"left-0 top-0 w-full md:w-auto",
|
|
428
|
-
className
|
|
429
|
-
),
|
|
430
|
-
...props
|
|
431
|
-
}
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
function NavigationMenuViewport({
|
|
435
|
-
className,
|
|
436
|
-
...props
|
|
437
|
-
}) {
|
|
438
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("absolute left-0 top-full flex justify-center w-full"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
439
|
-
NavigationMenuPrimitive__namespace.Viewport,
|
|
440
|
-
{
|
|
441
|
-
"data-slot": "navigation-menu-viewport",
|
|
442
|
-
className: button.cn(
|
|
443
|
-
"origin-top-center relative mt-1.5 overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-lg",
|
|
444
|
-
className
|
|
445
|
-
),
|
|
446
|
-
...props
|
|
447
|
-
}
|
|
448
|
-
) });
|
|
449
|
-
}
|
|
450
|
-
function NavigationMenuLink({
|
|
451
|
-
className,
|
|
452
|
-
...props
|
|
453
|
-
}) {
|
|
454
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
455
|
-
NavigationMenuPrimitive__namespace.Link,
|
|
456
|
-
{
|
|
457
|
-
"data-slot": "navigation-menu-link",
|
|
458
|
-
className: button.cn(
|
|
459
|
-
"block select-none space-y-1 rounded-[var(--radius)] p-3 leading-none no-underline outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
460
|
-
className
|
|
461
|
-
),
|
|
462
|
-
...props
|
|
463
|
-
}
|
|
464
|
-
);
|
|
465
|
-
}
|
|
466
|
-
function NavigationMenuIndicator({
|
|
467
|
-
className,
|
|
468
|
-
...props
|
|
469
|
-
}) {
|
|
470
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
471
|
-
NavigationMenuPrimitive__namespace.Indicator,
|
|
472
|
-
{
|
|
473
|
-
"data-slot": "navigation-menu-indicator",
|
|
474
|
-
className: button.cn(
|
|
475
|
-
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
476
|
-
className
|
|
477
|
-
),
|
|
478
|
-
...props,
|
|
479
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
480
|
-
}
|
|
481
|
-
);
|
|
482
|
-
}
|
|
483
|
-
function Pagination({ className, ...props }) {
|
|
484
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
485
|
-
"nav",
|
|
486
|
-
{
|
|
487
|
-
role: "navigation",
|
|
488
|
-
"aria-label": "pagination",
|
|
489
|
-
"data-slot": "pagination",
|
|
490
|
-
className: button.cn("mx-auto flex w-full justify-center", className),
|
|
491
|
-
...props
|
|
492
|
-
}
|
|
493
|
-
);
|
|
494
|
-
}
|
|
495
|
-
function PaginationContent({
|
|
496
|
-
className,
|
|
497
|
-
...props
|
|
498
|
-
}) {
|
|
499
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
500
|
-
"ul",
|
|
501
|
-
{
|
|
502
|
-
"data-slot": "pagination-content",
|
|
503
|
-
className: button.cn("flex flex-row items-center gap-1", className),
|
|
504
|
-
...props
|
|
505
|
-
}
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
function PaginationItem({ ...props }) {
|
|
509
|
-
return /* @__PURE__ */ jsxRuntime.jsx("li", { "data-slot": "pagination-item", ...props });
|
|
510
|
-
}
|
|
511
|
-
function PaginationLink({
|
|
512
|
-
className,
|
|
513
|
-
isActive,
|
|
514
|
-
size = "icon",
|
|
515
|
-
...props
|
|
516
|
-
}) {
|
|
517
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
518
|
-
"a",
|
|
519
|
-
{
|
|
520
|
-
"aria-current": isActive ? "page" : void 0,
|
|
521
|
-
"data-slot": "pagination-link",
|
|
522
|
-
"data-active": isActive,
|
|
523
|
-
className: button.cn(
|
|
524
|
-
button.buttonVariants({
|
|
525
|
-
variant: isActive ? "outline" : "ghost",
|
|
526
|
-
size
|
|
527
|
-
}),
|
|
528
|
-
className
|
|
529
|
-
),
|
|
530
|
-
...props
|
|
531
|
-
}
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
function PaginationPrevious({
|
|
535
|
-
className,
|
|
536
|
-
...props
|
|
537
|
-
}) {
|
|
538
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
539
|
-
PaginationLink,
|
|
540
|
-
{
|
|
541
|
-
"aria-label": "Go to previous page",
|
|
542
|
-
size: "default",
|
|
543
|
-
className: button.cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
544
|
-
...props,
|
|
545
|
-
children: [
|
|
546
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, {}),
|
|
547
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Previous" })
|
|
548
|
-
]
|
|
549
|
-
}
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
function PaginationNext({
|
|
553
|
-
className,
|
|
554
|
-
...props
|
|
555
|
-
}) {
|
|
556
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
557
|
-
PaginationLink,
|
|
558
|
-
{
|
|
559
|
-
"aria-label": "Go to next page",
|
|
560
|
-
size: "default",
|
|
561
|
-
className: button.cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
562
|
-
...props,
|
|
563
|
-
children: [
|
|
564
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Next" }),
|
|
565
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, {})
|
|
566
|
-
]
|
|
567
|
-
}
|
|
568
|
-
);
|
|
569
|
-
}
|
|
570
|
-
function PaginationEllipsis({
|
|
571
|
-
className,
|
|
572
|
-
...props
|
|
573
|
-
}) {
|
|
574
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
575
|
-
"span",
|
|
576
|
-
{
|
|
577
|
-
"aria-hidden": true,
|
|
578
|
-
"data-slot": "pagination-ellipsis",
|
|
579
|
-
className: button.cn("flex size-9 items-center justify-center", className),
|
|
580
|
-
...props,
|
|
581
|
-
children: [
|
|
582
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontalIcon, { className: "size-4" }),
|
|
583
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
584
|
-
]
|
|
585
|
-
}
|
|
586
|
-
);
|
|
587
|
-
}
|
|
588
|
-
const toggleVariants = classVarianceAuthority.cva(
|
|
589
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
590
|
-
{
|
|
591
|
-
variants: {
|
|
592
|
-
variant: {
|
|
593
|
-
default: "bg-transparent",
|
|
594
|
-
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
595
|
-
},
|
|
596
|
-
size: {
|
|
597
|
-
default: "h-9 px-2 min-w-9",
|
|
598
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
599
|
-
lg: "h-10 px-2.5 min-w-10"
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
defaultVariants: {
|
|
603
|
-
variant: "default",
|
|
604
|
-
size: "default"
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
);
|
|
608
|
-
const Toggle = React__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
609
|
-
TogglePrimitive__namespace.Root,
|
|
610
|
-
{
|
|
611
|
-
ref,
|
|
612
|
-
"data-slot": "toggle",
|
|
613
|
-
className: button.cn(toggleVariants({ variant, size, className })),
|
|
614
|
-
...props
|
|
615
|
-
}
|
|
616
|
-
));
|
|
617
|
-
Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
|
|
618
|
-
const ToggleGroupContext = React__namespace.createContext({
|
|
619
|
-
size: "default",
|
|
620
|
-
variant: "default"
|
|
621
|
-
});
|
|
622
|
-
const ToggleGroup = React__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
623
|
-
ToggleGroupPrimitive__namespace.Root,
|
|
624
|
-
{
|
|
625
|
-
ref,
|
|
626
|
-
"data-slot": "toggle-group",
|
|
627
|
-
"data-variant": variant,
|
|
628
|
-
"data-size": size,
|
|
629
|
-
className: button.cn(
|
|
630
|
-
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
631
|
-
className
|
|
632
|
-
),
|
|
633
|
-
...props,
|
|
634
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
635
|
-
}
|
|
636
|
-
));
|
|
637
|
-
ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
|
|
638
|
-
const ToggleGroupItem = React__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
639
|
-
const context = React__namespace.useContext(ToggleGroupContext);
|
|
640
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
641
|
-
ToggleGroupPrimitive__namespace.Item,
|
|
642
|
-
{
|
|
643
|
-
ref,
|
|
644
|
-
"data-slot": "toggle-group-item",
|
|
645
|
-
"data-variant": context.variant || variant,
|
|
646
|
-
"data-size": context.size || size,
|
|
647
|
-
className: button.cn(
|
|
648
|
-
toggleVariants({
|
|
649
|
-
variant: context.variant || variant,
|
|
650
|
-
size: context.size || size
|
|
651
|
-
}),
|
|
652
|
-
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
653
|
-
className
|
|
654
|
-
),
|
|
655
|
-
...props,
|
|
656
|
-
children
|
|
657
|
-
}
|
|
658
|
-
);
|
|
659
|
-
});
|
|
660
|
-
ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
|
|
661
|
-
function InputOTP({
|
|
662
|
-
className,
|
|
663
|
-
containerClassName,
|
|
664
|
-
...props
|
|
665
|
-
}) {
|
|
666
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
667
|
-
inputOtp.OTPInput,
|
|
668
|
-
{
|
|
669
|
-
"data-slot": "input-otp",
|
|
670
|
-
containerClassName: button.cn(
|
|
671
|
-
"flex items-center gap-2 has-disabled:opacity-50",
|
|
672
|
-
containerClassName
|
|
673
|
-
),
|
|
674
|
-
className: button.cn("disabled:cursor-not-allowed", className),
|
|
675
|
-
...props
|
|
676
|
-
}
|
|
677
|
-
);
|
|
678
|
-
}
|
|
679
|
-
function InputOTPGroup({ className, ...props }) {
|
|
680
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
681
|
-
"div",
|
|
682
|
-
{
|
|
683
|
-
"data-slot": "input-otp-group",
|
|
684
|
-
className: button.cn("flex items-center gap-1", className),
|
|
685
|
-
...props
|
|
686
|
-
}
|
|
687
|
-
);
|
|
688
|
-
}
|
|
689
|
-
function InputOTPSlot({
|
|
690
|
-
index,
|
|
691
|
-
className,
|
|
692
|
-
size = "md",
|
|
693
|
-
...props
|
|
694
|
-
}) {
|
|
695
|
-
const inputOTPContext = React__namespace.useContext(inputOtp.OTPInputContext);
|
|
696
|
-
const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
|
|
697
|
-
const sizeClasses = {
|
|
698
|
-
sm: "h-8 w-8 text-sm",
|
|
699
|
-
md: "h-10 w-10 text-base",
|
|
700
|
-
lg: "h-12 w-12 text-lg"
|
|
701
|
-
};
|
|
702
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
703
|
-
"div",
|
|
704
|
-
{
|
|
705
|
-
"data-slot": "input-otp-slot",
|
|
706
|
-
"data-active": isActive,
|
|
707
|
-
className: button.cn(
|
|
708
|
-
"data-[active=true]:border-primary data-[active=true]:ring-primary/20 data-[active=true]:aria-invalid:ring-destructive/20 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex items-center justify-center border border-border rounded-[var(--radius)] bg-background transition-all outline-none data-[active=true]:z-10 data-[active=true]:ring-2",
|
|
709
|
-
sizeClasses[size],
|
|
710
|
-
className
|
|
711
|
-
),
|
|
712
|
-
...props,
|
|
713
|
-
children: [
|
|
714
|
-
char,
|
|
715
|
-
hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
716
|
-
]
|
|
717
|
-
}
|
|
718
|
-
);
|
|
719
|
-
}
|
|
720
|
-
function InputOTPSeparator({ ...props }) {
|
|
721
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MinusIcon, {}) });
|
|
722
|
-
}
|
|
723
|
-
const Form = reactHookForm.FormProvider;
|
|
724
|
-
const FormFieldContext = React__namespace.createContext(
|
|
725
|
-
{}
|
|
726
|
-
);
|
|
727
|
-
const FormField = ({
|
|
728
|
-
...props
|
|
729
|
-
}) => {
|
|
730
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
731
|
-
};
|
|
732
|
-
const useFormField = () => {
|
|
733
|
-
const fieldContext = React__namespace.useContext(FormFieldContext);
|
|
734
|
-
const itemContext = React__namespace.useContext(FormItemContext);
|
|
735
|
-
const { getFieldState } = reactHookForm.useFormContext();
|
|
736
|
-
const formState = reactHookForm.useFormState({ name: fieldContext.name });
|
|
737
|
-
const fieldState = getFieldState(
|
|
738
|
-
fieldContext.name,
|
|
739
|
-
formState
|
|
740
|
-
);
|
|
741
|
-
if (!fieldContext) {
|
|
742
|
-
throw new Error(
|
|
743
|
-
"useFormField should be used within <FormField>"
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
const { id } = itemContext;
|
|
747
|
-
return {
|
|
748
|
-
id,
|
|
749
|
-
name: fieldContext.name,
|
|
750
|
-
formItemId: `${id}-form-item`,
|
|
751
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
752
|
-
formMessageId: `${id}-form-item-message`,
|
|
753
|
-
...fieldState
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
const FormItemContext = React__namespace.createContext(
|
|
757
|
-
{}
|
|
758
|
-
);
|
|
759
|
-
function FormItem({
|
|
760
|
-
className,
|
|
761
|
-
...props
|
|
762
|
-
}) {
|
|
763
|
-
const id = React__namespace.useId();
|
|
764
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
765
|
-
"div",
|
|
766
|
-
{
|
|
767
|
-
"data-slot": "form-item",
|
|
768
|
-
className: button.cn("grid gap-2", className),
|
|
769
|
-
...props
|
|
770
|
-
}
|
|
771
|
-
) });
|
|
772
|
-
}
|
|
773
|
-
function FormLabel({
|
|
774
|
-
className,
|
|
775
|
-
...props
|
|
776
|
-
}) {
|
|
777
|
-
const { error, formItemId } = useFormField();
|
|
778
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
779
|
-
alertDialog.Label,
|
|
780
|
-
{
|
|
781
|
-
"data-slot": "form-label",
|
|
782
|
-
"data-error": !!error,
|
|
783
|
-
className: button.cn(
|
|
784
|
-
"data-[error=true]:text-destructive",
|
|
785
|
-
className
|
|
786
|
-
),
|
|
787
|
-
htmlFor: formItemId,
|
|
788
|
-
...props
|
|
789
|
-
}
|
|
790
|
-
);
|
|
791
|
-
}
|
|
792
|
-
function FormControl({
|
|
793
|
-
...props
|
|
794
|
-
}) {
|
|
795
|
-
const {
|
|
796
|
-
error,
|
|
797
|
-
formItemId,
|
|
798
|
-
formDescriptionId,
|
|
799
|
-
formMessageId
|
|
800
|
-
} = useFormField();
|
|
801
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
802
|
-
reactSlot.Slot,
|
|
803
|
-
{
|
|
804
|
-
"data-slot": "form-control",
|
|
805
|
-
id: formItemId,
|
|
806
|
-
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
807
|
-
"aria-invalid": !!error,
|
|
808
|
-
...props
|
|
809
|
-
}
|
|
810
|
-
);
|
|
811
|
-
}
|
|
812
|
-
function FormDescription({
|
|
813
|
-
className,
|
|
814
|
-
...props
|
|
815
|
-
}) {
|
|
816
|
-
const { formDescriptionId } = useFormField();
|
|
817
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
818
|
-
"p",
|
|
819
|
-
{
|
|
820
|
-
"data-slot": "form-description",
|
|
821
|
-
id: formDescriptionId,
|
|
822
|
-
className: button.cn("text-muted-foreground text-sm", className),
|
|
823
|
-
...props
|
|
824
|
-
}
|
|
825
|
-
);
|
|
826
|
-
}
|
|
827
|
-
function FormMessage({
|
|
828
|
-
className,
|
|
829
|
-
...props
|
|
830
|
-
}) {
|
|
831
|
-
const { error, formMessageId } = useFormField();
|
|
832
|
-
const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
|
|
833
|
-
if (!body) {
|
|
834
|
-
return null;
|
|
835
|
-
}
|
|
836
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
837
|
-
"p",
|
|
838
|
-
{
|
|
839
|
-
"data-slot": "form-message",
|
|
840
|
-
id: formMessageId,
|
|
841
|
-
className: button.cn("text-destructive text-sm", className),
|
|
842
|
-
...props,
|
|
843
|
-
children: body
|
|
844
|
-
}
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
function Calendar({
|
|
848
|
-
className,
|
|
849
|
-
classNames,
|
|
850
|
-
showOutsideDays = true,
|
|
851
|
-
captionLayout = "label",
|
|
852
|
-
buttonVariant = "ghost",
|
|
853
|
-
formatters,
|
|
854
|
-
components,
|
|
855
|
-
...props
|
|
856
|
-
}) {
|
|
857
|
-
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
858
|
-
const isDropdownCaption = captionLayout.startsWith("dropdown");
|
|
859
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
860
|
-
reactDayPicker.DayPicker,
|
|
861
|
-
{
|
|
862
|
-
showOutsideDays,
|
|
863
|
-
className: button.cn(
|
|
864
|
-
"bg-background group/calendar p-4 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent font-sans",
|
|
865
|
-
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
866
|
-
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
867
|
-
className
|
|
868
|
-
),
|
|
869
|
-
captionLayout,
|
|
870
|
-
formatters,
|
|
871
|
-
classNames: {
|
|
872
|
-
root: button.cn("w-fit", defaultClassNames.root),
|
|
873
|
-
months: button.cn(
|
|
874
|
-
"flex gap-6 flex-col md:flex-row relative",
|
|
875
|
-
defaultClassNames.months
|
|
876
|
-
),
|
|
877
|
-
month: button.cn("flex flex-col w-full gap-5", defaultClassNames.month),
|
|
878
|
-
nav: button.cn(
|
|
879
|
-
"flex items-center gap-2 w-full absolute top-0 inset-x-0 justify-between",
|
|
880
|
-
defaultClassNames.nav
|
|
881
|
-
),
|
|
882
|
-
button_previous: button.cn(
|
|
883
|
-
button.buttonVariants({ variant: buttonVariant }),
|
|
884
|
-
"size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
|
|
885
|
-
defaultClassNames.button_previous
|
|
886
|
-
),
|
|
887
|
-
button_next: button.cn(
|
|
888
|
-
button.buttonVariants({ variant: buttonVariant }),
|
|
889
|
-
"size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
|
|
890
|
-
defaultClassNames.button_next
|
|
891
|
-
),
|
|
892
|
-
month_caption: button.cn(
|
|
893
|
-
"flex items-center justify-center w-full",
|
|
894
|
-
isDropdownCaption ? "h-auto px-0" : "h-(--cell-size) px-(--cell-size)",
|
|
895
|
-
defaultClassNames.month_caption
|
|
896
|
-
),
|
|
897
|
-
dropdowns: button.cn(
|
|
898
|
-
"w-full flex items-center justify-center gap-2",
|
|
899
|
-
isDropdownCaption ? "h-auto" : "h-(--cell-size)",
|
|
900
|
-
defaultClassNames.dropdowns
|
|
901
|
-
),
|
|
902
|
-
dropdown_root: button.cn(
|
|
903
|
-
isDropdownCaption ? "relative flex min-w-[7rem] items-center rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 px-2.5 py-1" : "relative rounded-[var(--radius)] hover:bg-accent transition-colors",
|
|
904
|
-
defaultClassNames.dropdown_root
|
|
905
|
-
),
|
|
906
|
-
dropdown: button.cn(
|
|
907
|
-
isDropdownCaption ? "absolute inset-0 cursor-pointer opacity-0" : "absolute bg-popover inset-0 opacity-0 cursor-pointer",
|
|
908
|
-
defaultClassNames.dropdown
|
|
909
|
-
),
|
|
910
|
-
caption_label: button.cn(
|
|
911
|
-
"select-none font-[family-name:var(--font-family,Roboto)] tracking-tight transition-all duration-200",
|
|
912
|
-
captionLayout === "label" ? "rounded-[var(--radius)] px-2 py-1 text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] hover:bg-accent hover:text-accent-foreground" : "flex h-full w-full items-center justify-between gap-2 rounded-[var(--radius)] text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] [&>svg]:text-muted-foreground [&>svg]:size-4",
|
|
913
|
-
defaultClassNames.caption_label
|
|
914
|
-
),
|
|
915
|
-
table: "w-full border-collapse mt-1",
|
|
916
|
-
weekdays: button.cn("flex gap-1", defaultClassNames.weekdays),
|
|
917
|
-
weekday: button.cn(
|
|
918
|
-
"text-muted-foreground rounded-(--cell-radius) flex-1 select-none text-[length:var(--calendar-weekday-size)] font-[number:var(--font-weight-medium)] uppercase tracking-wider",
|
|
919
|
-
defaultClassNames.weekday
|
|
920
|
-
),
|
|
921
|
-
week: button.cn("flex w-full gap-1", defaultClassNames.week),
|
|
922
|
-
week_number_header: button.cn(
|
|
923
|
-
"select-none w-(--cell-size)",
|
|
924
|
-
defaultClassNames.week_number_header
|
|
925
|
-
),
|
|
926
|
-
week_number: button.cn(
|
|
927
|
-
"select-none text-muted-foreground text-[length:var(--calendar-weekday-size)]",
|
|
928
|
-
defaultClassNames.week_number
|
|
929
|
-
),
|
|
930
|
-
day: button.cn(
|
|
931
|
-
"relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
|
|
932
|
-
props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
933
|
-
defaultClassNames.day
|
|
934
|
-
),
|
|
935
|
-
range_start: button.cn(
|
|
936
|
-
"rounded-l-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:right-0 -z-0 isolate",
|
|
937
|
-
defaultClassNames.range_start
|
|
938
|
-
),
|
|
939
|
-
range_middle: button.cn(
|
|
940
|
-
"rounded-none bg-accent/30",
|
|
941
|
-
defaultClassNames.range_middle
|
|
942
|
-
),
|
|
943
|
-
range_end: button.cn(
|
|
944
|
-
"rounded-r-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:left-0 -z-0 isolate",
|
|
945
|
-
defaultClassNames.range_end
|
|
946
|
-
),
|
|
947
|
-
today: button.cn(
|
|
948
|
-
"bg-accent/60 text-accent-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none font-[number:var(--font-weight-semibold)]",
|
|
949
|
-
defaultClassNames.today
|
|
950
|
-
),
|
|
951
|
-
outside: button.cn(
|
|
952
|
-
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
953
|
-
defaultClassNames.outside
|
|
954
|
-
),
|
|
955
|
-
disabled: button.cn(
|
|
956
|
-
"text-muted-foreground/30 opacity-40",
|
|
957
|
-
defaultClassNames.disabled
|
|
958
|
-
),
|
|
959
|
-
hidden: button.cn("invisible", defaultClassNames.hidden),
|
|
960
|
-
...classNames
|
|
961
|
-
},
|
|
962
|
-
components: {
|
|
963
|
-
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
964
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
965
|
-
"div",
|
|
966
|
-
{
|
|
967
|
-
"data-slot": "calendar",
|
|
968
|
-
ref: rootRef,
|
|
969
|
-
className: button.cn(className2),
|
|
970
|
-
...props2
|
|
971
|
-
}
|
|
972
|
-
);
|
|
973
|
-
},
|
|
974
|
-
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
975
|
-
if (orientation === "left") {
|
|
976
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
977
|
-
lucideReact.ChevronLeft,
|
|
978
|
-
{
|
|
979
|
-
className: button.cn("size-5 transition-transform group-hover:scale-110", className2),
|
|
980
|
-
...props2
|
|
981
|
-
}
|
|
982
|
-
);
|
|
983
|
-
}
|
|
984
|
-
if (orientation === "right") {
|
|
985
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
986
|
-
lucideReact.ChevronRight,
|
|
987
|
-
{
|
|
988
|
-
className: button.cn("size-5 transition-transform group-hover:scale-110", className2),
|
|
989
|
-
...props2
|
|
990
|
-
}
|
|
991
|
-
);
|
|
992
|
-
}
|
|
993
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
994
|
-
lucideReact.ChevronDown,
|
|
995
|
-
{
|
|
996
|
-
className: button.cn("size-4", className2),
|
|
997
|
-
...props2
|
|
998
|
-
}
|
|
999
|
-
);
|
|
1000
|
-
},
|
|
1001
|
-
DayButton: CalendarDayButton,
|
|
1002
|
-
WeekNumber: ({ children, ...props2 }) => {
|
|
1003
|
-
return /* @__PURE__ */ jsxRuntime.jsx("td", { ...props2, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center font-[number:var(--font-weight-medium)]", children }) });
|
|
1004
|
-
},
|
|
1005
|
-
...components
|
|
1006
|
-
},
|
|
1007
|
-
...props
|
|
1008
|
-
}
|
|
1009
|
-
);
|
|
1010
|
-
}
|
|
1011
|
-
function CalendarDayButton({
|
|
1012
|
-
className,
|
|
1013
|
-
day,
|
|
1014
|
-
modifiers,
|
|
1015
|
-
...props
|
|
1016
|
-
}) {
|
|
1017
|
-
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
1018
|
-
const ref = React__namespace.useRef(null);
|
|
1019
|
-
React__namespace.useEffect(() => {
|
|
1020
|
-
var _a;
|
|
1021
|
-
if (modifiers.focused) (_a = ref.current) == null ? void 0 : _a.focus();
|
|
1022
|
-
}, [modifiers.focused]);
|
|
1023
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1024
|
-
button.Button,
|
|
1025
|
-
{
|
|
1026
|
-
ref,
|
|
1027
|
-
variant: "ghost",
|
|
1028
|
-
size: "icon",
|
|
1029
|
-
"data-day": day.date.toLocaleDateString(),
|
|
1030
|
-
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
1031
|
-
"data-range-start": modifiers.range_start,
|
|
1032
|
-
"data-range-end": modifiers.range_end,
|
|
1033
|
-
"data-range-middle": modifiers.range_middle,
|
|
1034
|
-
className: button.cn(
|
|
1035
|
-
"relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col items-center justify-center gap-1 border-0 leading-none transition-all duration-200 cursor-pointer disabled:cursor-not-allowed",
|
|
1036
|
-
"text-[length:var(--calendar-day-size)] font-[number:var(--font-weight-regular)]",
|
|
1037
|
-
"hover:bg-accent/70 hover:text-accent-foreground hover:scale-105",
|
|
1038
|
-
"data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[selected-single=true]:font-[number:var(--font-weight-semibold)] data-[selected-single=true]:shadow-sm",
|
|
1039
|
-
"data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-foreground",
|
|
1040
|
-
"data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-start=true]:font-[number:var(--font-weight-semibold)] data-[range-start=true]:shadow-sm",
|
|
1041
|
-
"data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-end=true]:font-[number:var(--font-weight-semibold)] data-[range-end=true]:shadow-sm",
|
|
1042
|
-
"group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 group-data-[focused=true]/day:ring-2 group-data-[focused=true]/day:ring-offset-2 group-data-[focused=true]/day:ring-offset-background",
|
|
1043
|
-
"data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius)",
|
|
1044
|
-
"data-[range-middle=true]:rounded-none",
|
|
1045
|
-
"data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius)",
|
|
1046
|
-
"[&>span]:opacity-80",
|
|
1047
|
-
defaultClassNames.day,
|
|
1048
|
-
className
|
|
1049
|
-
),
|
|
1050
|
-
...props,
|
|
1051
|
-
children: day.date.getDate()
|
|
1052
|
-
}
|
|
1053
|
-
);
|
|
1054
|
-
}
|
|
1055
|
-
function Sheet({ ...props }) {
|
|
1056
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
|
|
1057
|
-
}
|
|
1058
|
-
function SheetTrigger({
|
|
1059
|
-
...props
|
|
1060
|
-
}) {
|
|
1061
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
1062
|
-
}
|
|
1063
|
-
function SheetClose({
|
|
1064
|
-
...props
|
|
1065
|
-
}) {
|
|
1066
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "sheet-close", ...props });
|
|
1067
|
-
}
|
|
1068
|
-
function SheetPortal({
|
|
1069
|
-
...props
|
|
1070
|
-
}) {
|
|
1071
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1072
|
-
}
|
|
1073
|
-
const SheetOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1074
|
-
DialogPrimitive__namespace.Overlay,
|
|
1075
|
-
{
|
|
1076
|
-
className: button.cn(
|
|
1077
|
-
"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",
|
|
1078
|
-
className
|
|
1079
|
-
),
|
|
1080
|
-
...props,
|
|
1081
|
-
ref
|
|
1082
|
-
}
|
|
1083
|
-
));
|
|
1084
|
-
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
1085
|
-
function SheetContent({
|
|
1086
|
-
className,
|
|
1087
|
-
children,
|
|
1088
|
-
side = "right",
|
|
1089
|
-
...props
|
|
1090
|
-
}) {
|
|
1091
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
1092
|
-
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
1093
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1094
|
-
DialogPrimitive__namespace.Content,
|
|
1095
|
-
{
|
|
1096
|
-
"data-slot": "sheet-content",
|
|
1097
|
-
className: button.cn(
|
|
1098
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1099
|
-
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
1100
|
-
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
1101
|
-
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
1102
|
-
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
1103
|
-
className
|
|
1104
|
-
),
|
|
1105
|
-
...props,
|
|
1106
|
-
children: [
|
|
1107
|
-
children,
|
|
1108
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1109
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
|
|
1110
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1111
|
-
] })
|
|
1112
|
-
]
|
|
1113
|
-
}
|
|
1114
|
-
)
|
|
1115
|
-
] });
|
|
1116
|
-
}
|
|
1117
|
-
function SheetHeader({ className, ...props }) {
|
|
1118
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1119
|
-
"div",
|
|
1120
|
-
{
|
|
1121
|
-
"data-slot": "sheet-header",
|
|
1122
|
-
className: button.cn("flex flex-col gap-1.5 px-6 pt-6", className),
|
|
1123
|
-
...props
|
|
1124
|
-
}
|
|
1125
|
-
);
|
|
1126
|
-
}
|
|
1127
|
-
function SheetFooter({ className, ...props }) {
|
|
1128
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1129
|
-
"div",
|
|
1130
|
-
{
|
|
1131
|
-
"data-slot": "sheet-footer",
|
|
1132
|
-
className: button.cn("mt-auto flex flex-col gap-2 px-6 pb-6", className),
|
|
1133
|
-
...props
|
|
1134
|
-
}
|
|
1135
|
-
);
|
|
1136
|
-
}
|
|
1137
|
-
function SheetTitle({
|
|
1138
|
-
className,
|
|
1139
|
-
...props
|
|
1140
|
-
}) {
|
|
1141
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1142
|
-
DialogPrimitive__namespace.Title,
|
|
1143
|
-
{
|
|
1144
|
-
"data-slot": "sheet-title",
|
|
1145
|
-
className: button.cn("text-foreground font-semibold", className),
|
|
1146
|
-
...props
|
|
1147
|
-
}
|
|
1148
|
-
);
|
|
1149
|
-
}
|
|
1150
|
-
function SheetDescription({
|
|
1151
|
-
className,
|
|
1152
|
-
...props
|
|
1153
|
-
}) {
|
|
1154
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1155
|
-
DialogPrimitive__namespace.Description,
|
|
1156
|
-
{
|
|
1157
|
-
"data-slot": "sheet-description",
|
|
1158
|
-
className: button.cn("text-muted-foreground text-sm", className),
|
|
1159
|
-
...props
|
|
1160
|
-
}
|
|
1161
|
-
);
|
|
1162
|
-
}
|
|
1163
|
-
function Drawer({
|
|
1164
|
-
...props
|
|
1165
|
-
}) {
|
|
1166
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
|
|
1167
|
-
}
|
|
1168
|
-
function DrawerTrigger({
|
|
1169
|
-
...props
|
|
1170
|
-
}) {
|
|
1171
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
|
|
1172
|
-
}
|
|
1173
|
-
function DrawerPortal({
|
|
1174
|
-
...props
|
|
1175
|
-
}) {
|
|
1176
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
|
|
1177
|
-
}
|
|
1178
|
-
function DrawerClose({
|
|
1179
|
-
...props
|
|
1180
|
-
}) {
|
|
1181
|
-
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
|
|
1182
|
-
}
|
|
1183
|
-
const DrawerOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1184
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1185
|
-
vaul.Drawer.Overlay,
|
|
1186
|
-
{
|
|
1187
|
-
ref,
|
|
1188
|
-
"data-slot": "drawer-overlay",
|
|
1189
|
-
className: button.cn(
|
|
1190
|
-
"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",
|
|
1191
|
-
className
|
|
1192
|
-
),
|
|
1193
|
-
...props
|
|
1194
|
-
}
|
|
1195
|
-
);
|
|
1196
|
-
});
|
|
1197
|
-
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
1198
|
-
function DrawerContent({
|
|
1199
|
-
className,
|
|
1200
|
-
children,
|
|
1201
|
-
...props
|
|
1202
|
-
}) {
|
|
1203
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
1204
|
-
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
1205
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1206
|
-
vaul.Drawer.Content,
|
|
1207
|
-
{
|
|
1208
|
-
"data-slot": "drawer-content",
|
|
1209
|
-
className: button.cn(
|
|
1210
|
-
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
1211
|
-
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
1212
|
-
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
1213
|
-
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
1214
|
-
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
1215
|
-
className
|
|
1216
|
-
),
|
|
1217
|
-
...props,
|
|
1218
|
-
children: [
|
|
1219
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
1220
|
-
children
|
|
1221
|
-
]
|
|
1222
|
-
}
|
|
1223
|
-
)
|
|
1224
|
-
] });
|
|
1225
|
-
}
|
|
1226
|
-
function DrawerHeader({ className, ...props }) {
|
|
1227
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1228
|
-
"div",
|
|
1229
|
-
{
|
|
1230
|
-
"data-slot": "drawer-header",
|
|
1231
|
-
className: button.cn("flex flex-col gap-1.5 p-4", className),
|
|
1232
|
-
...props
|
|
1233
|
-
}
|
|
1234
|
-
);
|
|
1235
|
-
}
|
|
1236
|
-
function DrawerFooter({ className, ...props }) {
|
|
1237
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1238
|
-
"div",
|
|
1239
|
-
{
|
|
1240
|
-
"data-slot": "drawer-footer",
|
|
1241
|
-
className: button.cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
1242
|
-
...props
|
|
1243
|
-
}
|
|
1244
|
-
);
|
|
1245
|
-
}
|
|
1246
|
-
function DrawerTitle({
|
|
1247
|
-
className,
|
|
1248
|
-
...props
|
|
1249
|
-
}) {
|
|
1250
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1251
|
-
vaul.Drawer.Title,
|
|
1252
|
-
{
|
|
1253
|
-
"data-slot": "drawer-title",
|
|
1254
|
-
className: button.cn("text-foreground font-semibold", className),
|
|
1255
|
-
...props
|
|
1256
|
-
}
|
|
1257
|
-
);
|
|
1258
|
-
}
|
|
1259
|
-
function DrawerDescription({
|
|
1260
|
-
className,
|
|
1261
|
-
...props
|
|
1262
|
-
}) {
|
|
1263
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1264
|
-
vaul.Drawer.Description,
|
|
1265
|
-
{
|
|
1266
|
-
"data-slot": "drawer-description",
|
|
1267
|
-
className: button.cn("text-muted-foreground text-sm", className),
|
|
1268
|
-
...props
|
|
1269
|
-
}
|
|
1270
|
-
);
|
|
1271
|
-
}
|
|
1272
|
-
function DrawerHandle({ className, ...props }) {
|
|
1273
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1274
|
-
"div",
|
|
1275
|
-
{
|
|
1276
|
-
"data-slot": "drawer-handle",
|
|
1277
|
-
className: button.cn("bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full", className),
|
|
1278
|
-
...props
|
|
1279
|
-
}
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
function HoverCard({
|
|
1283
|
-
...props
|
|
1284
|
-
}) {
|
|
1285
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Root, { "data-slot": "hover-card", ...props });
|
|
1286
|
-
}
|
|
1287
|
-
function HoverCardTrigger({
|
|
1288
|
-
...props
|
|
1289
|
-
}) {
|
|
1290
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
1291
|
-
}
|
|
1292
|
-
function HoverCardContent({
|
|
1293
|
-
className,
|
|
1294
|
-
align = "center",
|
|
1295
|
-
sideOffset = 4,
|
|
1296
|
-
...props
|
|
1297
|
-
}) {
|
|
1298
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1299
|
-
HoverCardPrimitive__namespace.Content,
|
|
1300
|
-
{
|
|
1301
|
-
"data-slot": "hover-card-content",
|
|
1302
|
-
align,
|
|
1303
|
-
sideOffset,
|
|
1304
|
-
className: button.cn(
|
|
1305
|
-
"bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
1306
|
-
className
|
|
1307
|
-
),
|
|
1308
|
-
...props
|
|
1309
|
-
}
|
|
1310
|
-
) });
|
|
1311
|
-
}
|
|
1312
|
-
function ContextMenu({
|
|
1313
|
-
...props
|
|
1314
|
-
}) {
|
|
1315
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Root, { "data-slot": "context-menu", ...props });
|
|
1316
|
-
}
|
|
1317
|
-
function ContextMenuTrigger({
|
|
1318
|
-
...props
|
|
1319
|
-
}) {
|
|
1320
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
1321
|
-
}
|
|
1322
|
-
function ContextMenuGroup({
|
|
1323
|
-
...props
|
|
1324
|
-
}) {
|
|
1325
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Group, { "data-slot": "context-menu-group", ...props });
|
|
1326
|
-
}
|
|
1327
|
-
function ContextMenuPortal({
|
|
1328
|
-
...props
|
|
1329
|
-
}) {
|
|
1330
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
1331
|
-
}
|
|
1332
|
-
function ContextMenuSub({
|
|
1333
|
-
...props
|
|
1334
|
-
}) {
|
|
1335
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
1336
|
-
}
|
|
1337
|
-
function ContextMenuRadioGroup({
|
|
1338
|
-
...props
|
|
1339
|
-
}) {
|
|
1340
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1341
|
-
ContextMenuPrimitive__namespace.RadioGroup,
|
|
1342
|
-
{
|
|
1343
|
-
"data-slot": "context-menu-radio-group",
|
|
1344
|
-
...props
|
|
1345
|
-
}
|
|
1346
|
-
);
|
|
1347
|
-
}
|
|
1348
|
-
function ContextMenuSubTrigger({
|
|
1349
|
-
className,
|
|
1350
|
-
inset,
|
|
1351
|
-
children,
|
|
1352
|
-
...props
|
|
1353
|
-
}) {
|
|
1354
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1355
|
-
ContextMenuPrimitive__namespace.SubTrigger,
|
|
1356
|
-
{
|
|
1357
|
-
"data-slot": "context-menu-sub-trigger",
|
|
1358
|
-
"data-inset": inset,
|
|
1359
|
-
className: button.cn(
|
|
1360
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1361
|
-
className
|
|
1362
|
-
),
|
|
1363
|
-
...props,
|
|
1364
|
-
children: [
|
|
1365
|
-
children,
|
|
1366
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto" })
|
|
1367
|
-
]
|
|
1368
|
-
}
|
|
1369
|
-
);
|
|
1370
|
-
}
|
|
1371
|
-
function ContextMenuSubContent({
|
|
1372
|
-
className,
|
|
1373
|
-
...props
|
|
1374
|
-
}) {
|
|
1375
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1376
|
-
ContextMenuPrimitive__namespace.SubContent,
|
|
1377
|
-
{
|
|
1378
|
-
"data-slot": "context-menu-sub-content",
|
|
1379
|
-
className: button.cn(
|
|
1380
|
-
"bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1381
|
-
className
|
|
1382
|
-
),
|
|
1383
|
-
...props
|
|
1384
|
-
}
|
|
1385
|
-
);
|
|
1386
|
-
}
|
|
1387
|
-
function ContextMenuContent({
|
|
1388
|
-
className,
|
|
1389
|
-
...props
|
|
1390
|
-
}) {
|
|
1391
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1392
|
-
ContextMenuPrimitive__namespace.Content,
|
|
1393
|
-
{
|
|
1394
|
-
"data-slot": "context-menu-content",
|
|
1395
|
-
className: button.cn(
|
|
1396
|
-
"bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
1397
|
-
className
|
|
1398
|
-
),
|
|
1399
|
-
...props
|
|
1400
|
-
}
|
|
1401
|
-
) });
|
|
1402
|
-
}
|
|
1403
|
-
function ContextMenuItem({
|
|
1404
|
-
className,
|
|
1405
|
-
inset,
|
|
1406
|
-
variant = "default",
|
|
1407
|
-
...props
|
|
1408
|
-
}) {
|
|
1409
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1410
|
-
ContextMenuPrimitive__namespace.Item,
|
|
1411
|
-
{
|
|
1412
|
-
"data-slot": "context-menu-item",
|
|
1413
|
-
"data-inset": inset,
|
|
1414
|
-
"data-variant": variant,
|
|
1415
|
-
className: button.cn(
|
|
1416
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1417
|
-
className
|
|
1418
|
-
),
|
|
1419
|
-
...props
|
|
1420
|
-
}
|
|
1421
|
-
);
|
|
1422
|
-
}
|
|
1423
|
-
function ContextMenuCheckboxItem({
|
|
1424
|
-
className,
|
|
1425
|
-
children,
|
|
1426
|
-
checked,
|
|
1427
|
-
...props
|
|
1428
|
-
}) {
|
|
1429
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1430
|
-
ContextMenuPrimitive__namespace.CheckboxItem,
|
|
1431
|
-
{
|
|
1432
|
-
"data-slot": "context-menu-checkbox-item",
|
|
1433
|
-
className: button.cn(
|
|
1434
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1435
|
-
className
|
|
1436
|
-
),
|
|
1437
|
-
checked,
|
|
1438
|
-
...props,
|
|
1439
|
-
children: [
|
|
1440
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
|
|
1441
|
-
children
|
|
1442
|
-
]
|
|
1443
|
-
}
|
|
1444
|
-
);
|
|
1445
|
-
}
|
|
1446
|
-
function ContextMenuRadioItem({
|
|
1447
|
-
className,
|
|
1448
|
-
children,
|
|
1449
|
-
...props
|
|
1450
|
-
}) {
|
|
1451
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1452
|
-
ContextMenuPrimitive__namespace.RadioItem,
|
|
1453
|
-
{
|
|
1454
|
-
"data-slot": "context-menu-radio-item",
|
|
1455
|
-
className: button.cn(
|
|
1456
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1457
|
-
className
|
|
1458
|
-
),
|
|
1459
|
-
...props,
|
|
1460
|
-
children: [
|
|
1461
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
1462
|
-
children
|
|
1463
|
-
]
|
|
1464
|
-
}
|
|
1465
|
-
);
|
|
1466
|
-
}
|
|
1467
|
-
function ContextMenuLabel({
|
|
1468
|
-
className,
|
|
1469
|
-
inset,
|
|
1470
|
-
...props
|
|
1471
|
-
}) {
|
|
1472
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1473
|
-
ContextMenuPrimitive__namespace.Label,
|
|
1474
|
-
{
|
|
1475
|
-
"data-slot": "context-menu-label",
|
|
1476
|
-
"data-inset": inset,
|
|
1477
|
-
className: button.cn(
|
|
1478
|
-
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
1479
|
-
className
|
|
1480
|
-
),
|
|
1481
|
-
...props
|
|
1482
|
-
}
|
|
1483
|
-
);
|
|
1484
|
-
}
|
|
1485
|
-
function ContextMenuSeparator({
|
|
1486
|
-
className,
|
|
1487
|
-
...props
|
|
1488
|
-
}) {
|
|
1489
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1490
|
-
ContextMenuPrimitive__namespace.Separator,
|
|
1491
|
-
{
|
|
1492
|
-
"data-slot": "context-menu-separator",
|
|
1493
|
-
className: button.cn("bg-border -mx-1 my-1 h-px", className),
|
|
1494
|
-
...props
|
|
1495
|
-
}
|
|
1496
|
-
);
|
|
1497
|
-
}
|
|
1498
|
-
function ContextMenuShortcut({
|
|
1499
|
-
className,
|
|
1500
|
-
...props
|
|
1501
|
-
}) {
|
|
1502
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1503
|
-
"span",
|
|
1504
|
-
{
|
|
1505
|
-
"data-slot": "context-menu-shortcut",
|
|
1506
|
-
className: button.cn(
|
|
1507
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1508
|
-
className
|
|
1509
|
-
),
|
|
1510
|
-
...props
|
|
1511
|
-
}
|
|
1512
|
-
);
|
|
1513
|
-
}
|
|
1514
|
-
function Menubar({
|
|
1515
|
-
className,
|
|
1516
|
-
...props
|
|
1517
|
-
}) {
|
|
1518
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1519
|
-
MenubarPrimitive__namespace.Root,
|
|
1520
|
-
{
|
|
1521
|
-
"data-slot": "menubar",
|
|
1522
|
-
className: button.cn(
|
|
1523
|
-
"bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
|
|
1524
|
-
className
|
|
1525
|
-
),
|
|
1526
|
-
...props
|
|
1527
|
-
}
|
|
1528
|
-
);
|
|
1529
|
-
}
|
|
1530
|
-
function MenubarMenu({
|
|
1531
|
-
...props
|
|
1532
|
-
}) {
|
|
1533
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { "data-slot": "menubar-menu", ...props });
|
|
1534
|
-
}
|
|
1535
|
-
function MenubarGroup({
|
|
1536
|
-
...props
|
|
1537
|
-
}) {
|
|
1538
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { "data-slot": "menubar-group", ...props });
|
|
1539
|
-
}
|
|
1540
|
-
function MenubarPortal({
|
|
1541
|
-
...props
|
|
1542
|
-
}) {
|
|
1543
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { "data-slot": "menubar-portal", ...props });
|
|
1544
|
-
}
|
|
1545
|
-
function MenubarRadioGroup({
|
|
1546
|
-
...props
|
|
1547
|
-
}) {
|
|
1548
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
|
|
1549
|
-
}
|
|
1550
|
-
function MenubarTrigger({
|
|
1551
|
-
className,
|
|
1552
|
-
...props
|
|
1553
|
-
}) {
|
|
1554
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1555
|
-
MenubarPrimitive__namespace.Trigger,
|
|
1556
|
-
{
|
|
1557
|
-
"data-slot": "menubar-trigger",
|
|
1558
|
-
className: button.cn(
|
|
1559
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
|
|
1560
|
-
className
|
|
1561
|
-
),
|
|
1562
|
-
...props
|
|
1563
|
-
}
|
|
1564
|
-
);
|
|
1565
|
-
}
|
|
1566
|
-
function MenubarContent({
|
|
1567
|
-
className,
|
|
1568
|
-
align = "start",
|
|
1569
|
-
alignOffset = -4,
|
|
1570
|
-
sideOffset = 8,
|
|
1571
|
-
...props
|
|
1572
|
-
}) {
|
|
1573
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1574
|
-
MenubarPrimitive__namespace.Content,
|
|
1575
|
-
{
|
|
1576
|
-
"data-slot": "menubar-content",
|
|
1577
|
-
align,
|
|
1578
|
-
alignOffset,
|
|
1579
|
-
sideOffset,
|
|
1580
|
-
className: button.cn(
|
|
1581
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
1582
|
-
className
|
|
1583
|
-
),
|
|
1584
|
-
...props
|
|
1585
|
-
}
|
|
1586
|
-
) });
|
|
1587
|
-
}
|
|
1588
|
-
function MenubarItem({
|
|
1589
|
-
className,
|
|
1590
|
-
inset,
|
|
1591
|
-
variant = "default",
|
|
1592
|
-
...props
|
|
1593
|
-
}) {
|
|
1594
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1595
|
-
MenubarPrimitive__namespace.Item,
|
|
1596
|
-
{
|
|
1597
|
-
"data-slot": "menubar-item",
|
|
1598
|
-
"data-inset": inset,
|
|
1599
|
-
"data-variant": variant,
|
|
1600
|
-
className: button.cn(
|
|
1601
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1602
|
-
className
|
|
1603
|
-
),
|
|
1604
|
-
...props
|
|
1605
|
-
}
|
|
1606
|
-
);
|
|
1607
|
-
}
|
|
1608
|
-
function MenubarCheckboxItem({
|
|
1609
|
-
className,
|
|
1610
|
-
children,
|
|
1611
|
-
checked,
|
|
1612
|
-
...props
|
|
1613
|
-
}) {
|
|
1614
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1615
|
-
MenubarPrimitive__namespace.CheckboxItem,
|
|
1616
|
-
{
|
|
1617
|
-
"data-slot": "menubar-checkbox-item",
|
|
1618
|
-
className: button.cn(
|
|
1619
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1620
|
-
className
|
|
1621
|
-
),
|
|
1622
|
-
checked,
|
|
1623
|
-
...props,
|
|
1624
|
-
children: [
|
|
1625
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
|
|
1626
|
-
children
|
|
1627
|
-
]
|
|
1628
|
-
}
|
|
1629
|
-
);
|
|
1630
|
-
}
|
|
1631
|
-
function MenubarRadioItem({
|
|
1632
|
-
className,
|
|
1633
|
-
children,
|
|
1634
|
-
...props
|
|
1635
|
-
}) {
|
|
1636
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1637
|
-
MenubarPrimitive__namespace.RadioItem,
|
|
1638
|
-
{
|
|
1639
|
-
"data-slot": "menubar-radio-item",
|
|
1640
|
-
className: button.cn(
|
|
1641
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1642
|
-
className
|
|
1643
|
-
),
|
|
1644
|
-
...props,
|
|
1645
|
-
children: [
|
|
1646
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
1647
|
-
children
|
|
1648
|
-
]
|
|
1649
|
-
}
|
|
1650
|
-
);
|
|
1651
|
-
}
|
|
1652
|
-
function MenubarLabel({
|
|
1653
|
-
className,
|
|
1654
|
-
inset,
|
|
1655
|
-
...props
|
|
1656
|
-
}) {
|
|
1657
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1658
|
-
MenubarPrimitive__namespace.Label,
|
|
1659
|
-
{
|
|
1660
|
-
"data-slot": "menubar-label",
|
|
1661
|
-
"data-inset": inset,
|
|
1662
|
-
className: button.cn(
|
|
1663
|
-
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
1664
|
-
className
|
|
1665
|
-
),
|
|
1666
|
-
...props
|
|
1667
|
-
}
|
|
1668
|
-
);
|
|
1669
|
-
}
|
|
1670
|
-
function MenubarSeparator({
|
|
1671
|
-
className,
|
|
1672
|
-
...props
|
|
1673
|
-
}) {
|
|
1674
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1675
|
-
MenubarPrimitive__namespace.Separator,
|
|
1676
|
-
{
|
|
1677
|
-
"data-slot": "menubar-separator",
|
|
1678
|
-
className: button.cn("bg-border -mx-1 my-1 h-px", className),
|
|
1679
|
-
...props
|
|
1680
|
-
}
|
|
1681
|
-
);
|
|
1682
|
-
}
|
|
1683
|
-
function MenubarShortcut({
|
|
1684
|
-
className,
|
|
1685
|
-
...props
|
|
1686
|
-
}) {
|
|
1687
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1688
|
-
"span",
|
|
1689
|
-
{
|
|
1690
|
-
"data-slot": "menubar-shortcut",
|
|
1691
|
-
className: button.cn(
|
|
1692
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1693
|
-
className
|
|
1694
|
-
),
|
|
1695
|
-
...props
|
|
1696
|
-
}
|
|
1697
|
-
);
|
|
1698
|
-
}
|
|
1699
|
-
function MenubarSub({
|
|
1700
|
-
...props
|
|
1701
|
-
}) {
|
|
1702
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
|
|
1703
|
-
}
|
|
1704
|
-
function MenubarSubTrigger({
|
|
1705
|
-
className,
|
|
1706
|
-
inset,
|
|
1707
|
-
children,
|
|
1708
|
-
...props
|
|
1709
|
-
}) {
|
|
1710
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1711
|
-
MenubarPrimitive__namespace.SubTrigger,
|
|
1712
|
-
{
|
|
1713
|
-
"data-slot": "menubar-sub-trigger",
|
|
1714
|
-
"data-inset": inset,
|
|
1715
|
-
className: button.cn(
|
|
1716
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
|
|
1717
|
-
className
|
|
1718
|
-
),
|
|
1719
|
-
...props,
|
|
1720
|
-
children: [
|
|
1721
|
-
children,
|
|
1722
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
1723
|
-
]
|
|
1724
|
-
}
|
|
1725
|
-
);
|
|
1726
|
-
}
|
|
1727
|
-
function MenubarSubContent({
|
|
1728
|
-
className,
|
|
1729
|
-
...props
|
|
1730
|
-
}) {
|
|
1731
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1732
|
-
MenubarPrimitive__namespace.SubContent,
|
|
1733
|
-
{
|
|
1734
|
-
"data-slot": "menubar-sub-content",
|
|
1735
|
-
className: button.cn(
|
|
1736
|
-
"bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1737
|
-
className
|
|
1738
|
-
),
|
|
1739
|
-
...props
|
|
1740
|
-
}
|
|
1741
|
-
);
|
|
1742
|
-
}
|
|
1743
|
-
function Command({
|
|
1744
|
-
className,
|
|
1745
|
-
...props
|
|
1746
|
-
}) {
|
|
1747
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1748
|
-
cmdk.Command,
|
|
1749
|
-
{
|
|
1750
|
-
"data-slot": "command",
|
|
1751
|
-
className: button.cn(
|
|
1752
|
-
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1753
|
-
className
|
|
1754
|
-
),
|
|
1755
|
-
...props
|
|
1756
|
-
}
|
|
1757
|
-
);
|
|
1758
|
-
}
|
|
1759
|
-
function CommandDialog({
|
|
1760
|
-
title = "Command Palette",
|
|
1761
|
-
description = "Search for a command to run...",
|
|
1762
|
-
children,
|
|
1763
|
-
...props
|
|
1764
|
-
}) {
|
|
1765
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { ...props, children: [
|
|
1766
|
-
/* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { className: "sr-only", children: [
|
|
1767
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: title }),
|
|
1768
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: description })
|
|
1769
|
-
] }),
|
|
1770
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
|
|
1771
|
-
] });
|
|
1772
|
-
}
|
|
1773
|
-
function CommandInput({
|
|
1774
|
-
className,
|
|
1775
|
-
...props
|
|
1776
|
-
}) {
|
|
1777
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1778
|
-
"div",
|
|
1779
|
-
{
|
|
1780
|
-
"data-slot": "command-input-wrapper",
|
|
1781
|
-
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1782
|
-
children: [
|
|
1783
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
1784
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1785
|
-
cmdk.Command.Input,
|
|
1786
|
-
{
|
|
1787
|
-
"data-slot": "command-input",
|
|
1788
|
-
className: button.cn(
|
|
1789
|
-
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1790
|
-
className
|
|
1791
|
-
),
|
|
1792
|
-
...props
|
|
1793
|
-
}
|
|
1794
|
-
)
|
|
1795
|
-
]
|
|
1796
|
-
}
|
|
1797
|
-
);
|
|
1798
|
-
}
|
|
1799
|
-
function CommandList({
|
|
1800
|
-
className,
|
|
1801
|
-
...props
|
|
1802
|
-
}) {
|
|
1803
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1804
|
-
cmdk.Command.List,
|
|
1805
|
-
{
|
|
1806
|
-
"data-slot": "command-list",
|
|
1807
|
-
role: "listbox",
|
|
1808
|
-
className: button.cn(
|
|
1809
|
-
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
1810
|
-
className
|
|
1811
|
-
),
|
|
1812
|
-
...props
|
|
1813
|
-
}
|
|
1814
|
-
);
|
|
1815
|
-
}
|
|
1816
|
-
function CommandEmpty({
|
|
1817
|
-
...props
|
|
1818
|
-
}) {
|
|
1819
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1820
|
-
cmdk.Command.Empty,
|
|
1821
|
-
{
|
|
1822
|
-
"data-slot": "command-empty",
|
|
1823
|
-
className: "py-6 text-center text-sm",
|
|
1824
|
-
...props
|
|
1825
|
-
}
|
|
1826
|
-
);
|
|
1827
|
-
}
|
|
1828
|
-
function CommandGroup({
|
|
1829
|
-
className,
|
|
1830
|
-
...props
|
|
1831
|
-
}) {
|
|
1832
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1833
|
-
cmdk.Command.Group,
|
|
1834
|
-
{
|
|
1835
|
-
"data-slot": "command-group",
|
|
1836
|
-
className: button.cn(
|
|
1837
|
-
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
1838
|
-
className
|
|
1839
|
-
),
|
|
1840
|
-
...props
|
|
1841
|
-
}
|
|
1842
|
-
);
|
|
1843
|
-
}
|
|
1844
|
-
function CommandSeparator({
|
|
1845
|
-
className,
|
|
1846
|
-
...props
|
|
1847
|
-
}) {
|
|
1848
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1849
|
-
cmdk.Command.Separator,
|
|
1850
|
-
{
|
|
1851
|
-
"data-slot": "command-separator",
|
|
1852
|
-
className: button.cn("bg-border -mx-1 h-px", className),
|
|
1853
|
-
...props
|
|
1854
|
-
}
|
|
1855
|
-
);
|
|
1856
|
-
}
|
|
1857
|
-
function CommandItem({
|
|
1858
|
-
className,
|
|
1859
|
-
...props
|
|
1860
|
-
}) {
|
|
1861
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1862
|
-
cmdk.Command.Item,
|
|
1863
|
-
{
|
|
1864
|
-
"data-slot": "command-item",
|
|
1865
|
-
role: "option",
|
|
1866
|
-
className: button.cn(
|
|
1867
|
-
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1868
|
-
className
|
|
1869
|
-
),
|
|
1870
|
-
...props
|
|
1871
|
-
}
|
|
1872
|
-
);
|
|
1873
|
-
}
|
|
1874
|
-
function CommandShortcut({
|
|
1875
|
-
className,
|
|
1876
|
-
...props
|
|
1877
|
-
}) {
|
|
1878
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1879
|
-
"span",
|
|
1880
|
-
{
|
|
1881
|
-
"data-slot": "command-shortcut",
|
|
1882
|
-
className: button.cn(
|
|
1883
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1884
|
-
className
|
|
1885
|
-
),
|
|
1886
|
-
...props
|
|
1887
|
-
}
|
|
1888
|
-
);
|
|
1889
|
-
}
|
|
1890
|
-
const variantStyles = {
|
|
1891
|
-
default: "bg-primary text-primary-foreground",
|
|
1892
|
-
secondary: "bg-secondary text-secondary-foreground",
|
|
1893
|
-
destructive: "bg-destructive text-destructive-foreground",
|
|
1894
|
-
outline: "border-2 border-primary bg-background text-primary",
|
|
1895
|
-
success: "bg-success text-success-foreground",
|
|
1896
|
-
info: "bg-info text-info-foreground",
|
|
1897
|
-
warning: "bg-warning text-warning-foreground"
|
|
1898
|
-
};
|
|
1899
|
-
const NotificationBadge = React__namespace.forwardRef(
|
|
1900
|
-
({
|
|
1901
|
-
className,
|
|
1902
|
-
count = 0,
|
|
1903
|
-
max = 99,
|
|
1904
|
-
showZero = false,
|
|
1905
|
-
dot = false,
|
|
1906
|
-
variant = "destructive",
|
|
1907
|
-
children,
|
|
1908
|
-
...props
|
|
1909
|
-
}, ref) => {
|
|
1910
|
-
const displayCount = count > max ? `${max}+` : count;
|
|
1911
|
-
const shouldShow = count > 0 || showZero;
|
|
1912
|
-
if (!shouldShow && !dot) {
|
|
1913
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children });
|
|
1914
|
-
}
|
|
1915
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("relative inline-block", className), ...props, children: [
|
|
1916
|
-
children,
|
|
1917
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1918
|
-
"span",
|
|
1919
|
-
{
|
|
1920
|
-
className: button.cn(
|
|
1921
|
-
"absolute -right-1 -top-1 flex items-center justify-center rounded-full",
|
|
1922
|
-
variantStyles[variant],
|
|
1923
|
-
dot ? "h-2 w-2" : "min-w-[1.25rem] h-5 px-1.5"
|
|
1924
|
-
),
|
|
1925
|
-
children: !dot && shouldShow && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-medium leading-none", children: displayCount })
|
|
1926
|
-
}
|
|
1927
|
-
)
|
|
1928
|
-
] });
|
|
1929
|
-
}
|
|
1930
|
-
);
|
|
1931
|
-
NotificationBadge.displayName = "NotificationBadge";
|
|
1932
|
-
const StatsCard = React__namespace.forwardRef(
|
|
1933
|
-
({ className, title, value, description, trend, icon, ...props }, ref) => {
|
|
1934
|
-
const getTrendIcon = () => {
|
|
1935
|
-
if (!trend) return null;
|
|
1936
|
-
if (trend.value > 0) {
|
|
1937
|
-
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingUp, { className: "h-4 w-4 text-success" });
|
|
1938
|
-
} else if (trend.value < 0) {
|
|
1939
|
-
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingDown, { className: "h-4 w-4 text-destructive" });
|
|
1940
|
-
} else {
|
|
1941
|
-
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "h-4 w-4 text-muted-foreground" });
|
|
1942
|
-
}
|
|
1943
|
-
};
|
|
1944
|
-
const getTrendColor = () => {
|
|
1945
|
-
if (!trend) return "";
|
|
1946
|
-
if (trend.value > 0) {
|
|
1947
|
-
return "text-success";
|
|
1948
|
-
} else if (trend.value < 0) {
|
|
1949
|
-
return "text-destructive";
|
|
1950
|
-
} else {
|
|
1951
|
-
return "text-muted-foreground";
|
|
1952
|
-
}
|
|
1953
|
-
};
|
|
1954
|
-
return /* @__PURE__ */ jsxRuntime.jsx(card.Card, { ref, className: button.cn("", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(card.CardContent, { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
1955
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1956
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-1 text-sm", children: title }),
|
|
1957
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-2", children: [
|
|
1958
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-xl sm:text-2xl", children: value }),
|
|
1959
|
-
trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("flex items-center gap-1 text-sm", getTrendColor()), children: [
|
|
1960
|
-
getTrendIcon(),
|
|
1961
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
1962
|
-
Math.abs(trend.value),
|
|
1963
|
-
"%"
|
|
1964
|
-
] })
|
|
1965
|
-
] })
|
|
1966
|
-
] }),
|
|
1967
|
-
(description || (trend == null ? void 0 : trend.label)) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mt-1 text-xs sm:text-sm", children: (trend == null ? void 0 : trend.label) || description })
|
|
1968
|
-
] }),
|
|
1969
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius)] bg-muted p-2 sm:p-3 text-muted-foreground flex-shrink-0", children: icon })
|
|
1970
|
-
] }) }) });
|
|
1971
|
-
}
|
|
1972
|
-
);
|
|
1973
|
-
StatsCard.displayName = "StatsCard";
|
|
1974
|
-
const Timeline = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1975
|
-
"ol",
|
|
1976
|
-
{
|
|
1977
|
-
ref,
|
|
1978
|
-
className: button.cn("relative border-l border-border", className),
|
|
1979
|
-
...props
|
|
1980
|
-
}
|
|
1981
|
-
));
|
|
1982
|
-
Timeline.displayName = "Timeline";
|
|
1983
|
-
const TimelineItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1984
|
-
"li",
|
|
1985
|
-
{
|
|
1986
|
-
ref,
|
|
1987
|
-
className: button.cn("mb-10 ml-6", className),
|
|
1988
|
-
...props
|
|
1989
|
-
}
|
|
1990
|
-
));
|
|
1991
|
-
TimelineItem.displayName = "TimelineItem";
|
|
1992
|
-
const TimelineDot = React__namespace.forwardRef(({ className, variant = "default", icon, children, ...props }, ref) => {
|
|
1993
|
-
const variantStyles2 = {
|
|
1994
|
-
default: "bg-muted border-border",
|
|
1995
|
-
primary: "bg-primary border-primary",
|
|
1996
|
-
success: "bg-success border-success",
|
|
1997
|
-
info: "bg-info border-info",
|
|
1998
|
-
warning: "bg-warning border-warning",
|
|
1999
|
-
destructive: "bg-destructive border-destructive",
|
|
2000
|
-
outline: "bg-background border-border"
|
|
2001
|
-
};
|
|
2002
|
-
const iconColorStyles = {
|
|
2003
|
-
default: "text-muted-foreground",
|
|
2004
|
-
primary: "text-primary-foreground",
|
|
2005
|
-
success: "text-success-foreground",
|
|
2006
|
-
info: "text-info-foreground",
|
|
2007
|
-
warning: "text-warning-foreground",
|
|
2008
|
-
destructive: "text-destructive-foreground",
|
|
2009
|
-
outline: "text-foreground"
|
|
2010
|
-
};
|
|
2011
|
-
if (icon || children) {
|
|
2012
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2013
|
-
"div",
|
|
2014
|
-
{
|
|
2015
|
-
ref,
|
|
2016
|
-
className: button.cn(
|
|
2017
|
-
"absolute -left-[17px] mt-0.5 h-8 w-8 rounded-full border-2 flex items-center justify-center",
|
|
2018
|
-
variantStyles2[variant],
|
|
2019
|
-
className
|
|
2020
|
-
),
|
|
2021
|
-
...props,
|
|
2022
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: button.cn("h-4 w-4", iconColorStyles[variant]), children: icon || children })
|
|
2023
|
-
}
|
|
2024
|
-
);
|
|
2025
|
-
}
|
|
2026
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2027
|
-
"div",
|
|
2028
|
-
{
|
|
2029
|
-
ref,
|
|
2030
|
-
className: button.cn(
|
|
2031
|
-
"absolute -left-[9px] mt-1.5 h-4 w-4 rounded-full border-2",
|
|
2032
|
-
variantStyles2[variant],
|
|
2033
|
-
className
|
|
2034
|
-
),
|
|
2035
|
-
...props
|
|
2036
|
-
}
|
|
2037
|
-
);
|
|
2038
|
-
});
|
|
2039
|
-
TimelineDot.displayName = "TimelineDot";
|
|
2040
|
-
const TimelineContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2041
|
-
"div",
|
|
2042
|
-
{
|
|
2043
|
-
ref,
|
|
2044
|
-
className: button.cn("", className),
|
|
2045
|
-
...props
|
|
2046
|
-
}
|
|
2047
|
-
));
|
|
2048
|
-
TimelineContent.displayName = "TimelineContent";
|
|
2049
|
-
const TimelineHeading = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2050
|
-
"h3",
|
|
2051
|
-
{
|
|
2052
|
-
ref,
|
|
2053
|
-
className: button.cn("mb-1 text-foreground", className),
|
|
2054
|
-
...props
|
|
2055
|
-
}
|
|
2056
|
-
));
|
|
2057
|
-
TimelineHeading.displayName = "TimelineHeading";
|
|
2058
|
-
const TimelineTime = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2059
|
-
"time",
|
|
2060
|
-
{
|
|
2061
|
-
ref,
|
|
2062
|
-
className: button.cn("mb-2 block text-muted-foreground", className),
|
|
2063
|
-
...props
|
|
2064
|
-
}
|
|
2065
|
-
));
|
|
2066
|
-
TimelineTime.displayName = "TimelineTime";
|
|
2067
|
-
const TimelineDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2068
|
-
"p",
|
|
2069
|
-
{
|
|
2070
|
-
ref,
|
|
2071
|
-
className: button.cn("text-muted-foreground", className),
|
|
2072
|
-
...props
|
|
2073
|
-
}
|
|
2074
|
-
));
|
|
2075
|
-
TimelineDescription.displayName = "TimelineDescription";
|
|
2076
|
-
const TreeView = React__namespace.forwardRef(
|
|
2077
|
-
({ className, data, onNodeClick, onNodeSelect, defaultExpanded = [], selectedNodeId, ...props }, ref) => {
|
|
2078
|
-
const [expanded, setExpanded] = React__namespace.useState(new Set(defaultExpanded));
|
|
2079
|
-
const [internalSelectedId, setInternalSelectedId] = React__namespace.useState(void 0);
|
|
2080
|
-
const nodeRefs = React__namespace.useRef(/* @__PURE__ */ new Map());
|
|
2081
|
-
const isControlled = selectedNodeId !== void 0;
|
|
2082
|
-
const effectiveSelectedId = isControlled ? selectedNodeId : internalSelectedId;
|
|
2083
|
-
const toggleExpand = (nodeId) => {
|
|
2084
|
-
setExpanded((prev) => {
|
|
2085
|
-
const next = new Set(prev);
|
|
2086
|
-
next.has(nodeId) ? next.delete(nodeId) : next.add(nodeId);
|
|
2087
|
-
return next;
|
|
2088
|
-
});
|
|
2089
|
-
};
|
|
2090
|
-
const getVisibleNodes = React__namespace.useCallback(() => {
|
|
2091
|
-
const result = [];
|
|
2092
|
-
const traverse = (nodes) => {
|
|
2093
|
-
var _a;
|
|
2094
|
-
for (const node of nodes) {
|
|
2095
|
-
result.push(node);
|
|
2096
|
-
if (((_a = node.children) == null ? void 0 : _a.length) && expanded.has(node.id)) traverse(node.children);
|
|
2097
|
-
}
|
|
2098
|
-
};
|
|
2099
|
-
traverse(data);
|
|
2100
|
-
return result;
|
|
2101
|
-
}, [data, expanded]);
|
|
2102
|
-
const findParent = (nodes, targetId) => {
|
|
2103
|
-
var _a;
|
|
2104
|
-
for (const n of nodes) {
|
|
2105
|
-
if ((_a = n.children) == null ? void 0 : _a.some((c) => c.id === targetId)) return n;
|
|
2106
|
-
if (n.children) {
|
|
2107
|
-
const found = findParent(n.children, targetId);
|
|
2108
|
-
if (found) return found;
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
return null;
|
|
2112
|
-
};
|
|
2113
|
-
const handleSelect = (node) => {
|
|
2114
|
-
if (!isControlled) setInternalSelectedId(node.id);
|
|
2115
|
-
onNodeSelect == null ? void 0 : onNodeSelect(node);
|
|
2116
|
-
onNodeClick == null ? void 0 : onNodeClick(node);
|
|
2117
|
-
};
|
|
2118
|
-
const handleKeyDown = (e, node) => {
|
|
2119
|
-
var _a, _b;
|
|
2120
|
-
const visibleNodes = getVisibleNodes();
|
|
2121
|
-
const idx = visibleNodes.findIndex((n) => n.id === node.id);
|
|
2122
|
-
const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
|
|
2123
|
-
const isExpanded = expanded.has(node.id);
|
|
2124
|
-
const focusNode = (id) => {
|
|
2125
|
-
var _a2;
|
|
2126
|
-
(_a2 = nodeRefs.current.get(id)) == null ? void 0 : _a2.focus();
|
|
2127
|
-
};
|
|
2128
|
-
switch (e.key) {
|
|
2129
|
-
case "ArrowDown": {
|
|
2130
|
-
e.preventDefault();
|
|
2131
|
-
const next = visibleNodes[idx + 1];
|
|
2132
|
-
if (next) focusNode(next.id);
|
|
2133
|
-
break;
|
|
2134
|
-
}
|
|
2135
|
-
case "ArrowUp": {
|
|
2136
|
-
e.preventDefault();
|
|
2137
|
-
const prev = visibleNodes[idx - 1];
|
|
2138
|
-
if (prev) focusNode(prev.id);
|
|
2139
|
-
break;
|
|
2140
|
-
}
|
|
2141
|
-
case "ArrowRight": {
|
|
2142
|
-
e.preventDefault();
|
|
2143
|
-
if (hasChildren && !isExpanded) {
|
|
2144
|
-
toggleExpand(node.id);
|
|
2145
|
-
} else if (hasChildren && isExpanded && ((_b = node.children) == null ? void 0 : _b.length)) {
|
|
2146
|
-
focusNode(node.children[0].id);
|
|
2147
|
-
}
|
|
2148
|
-
break;
|
|
2149
|
-
}
|
|
2150
|
-
case "ArrowLeft": {
|
|
2151
|
-
e.preventDefault();
|
|
2152
|
-
if (hasChildren && isExpanded) {
|
|
2153
|
-
toggleExpand(node.id);
|
|
2154
|
-
} else {
|
|
2155
|
-
const parent = findParent(data, node.id);
|
|
2156
|
-
if (parent) focusNode(parent.id);
|
|
2157
|
-
}
|
|
2158
|
-
break;
|
|
2159
|
-
}
|
|
2160
|
-
case "Home": {
|
|
2161
|
-
e.preventDefault();
|
|
2162
|
-
if (visibleNodes.length > 0) focusNode(visibleNodes[0].id);
|
|
2163
|
-
break;
|
|
2164
|
-
}
|
|
2165
|
-
case "End": {
|
|
2166
|
-
e.preventDefault();
|
|
2167
|
-
const last = visibleNodes[visibleNodes.length - 1];
|
|
2168
|
-
if (last) focusNode(last.id);
|
|
2169
|
-
break;
|
|
2170
|
-
}
|
|
2171
|
-
case "Enter":
|
|
2172
|
-
case " ": {
|
|
2173
|
-
e.preventDefault();
|
|
2174
|
-
if (hasChildren) toggleExpand(node.id);
|
|
2175
|
-
handleSelect(node);
|
|
2176
|
-
break;
|
|
2177
|
-
}
|
|
2178
|
-
}
|
|
2179
|
-
};
|
|
2180
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: button.cn("w-full", className), role: "tree", ...props, children: data.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2181
|
-
TreeNodeComponent,
|
|
2182
|
-
{
|
|
2183
|
-
node,
|
|
2184
|
-
level: 0,
|
|
2185
|
-
expanded,
|
|
2186
|
-
selectedId: effectiveSelectedId,
|
|
2187
|
-
onToggle: toggleExpand,
|
|
2188
|
-
onSelect: handleSelect,
|
|
2189
|
-
onKeyDown: handleKeyDown,
|
|
2190
|
-
nodeRefs
|
|
2191
|
-
},
|
|
2192
|
-
node.id
|
|
2193
|
-
)) });
|
|
2194
|
-
}
|
|
2195
|
-
);
|
|
2196
|
-
TreeView.displayName = "TreeView";
|
|
2197
|
-
const TreeNodeComponent = ({
|
|
2198
|
-
node,
|
|
2199
|
-
level,
|
|
2200
|
-
expanded,
|
|
2201
|
-
selectedId,
|
|
2202
|
-
onToggle,
|
|
2203
|
-
onSelect,
|
|
2204
|
-
onKeyDown,
|
|
2205
|
-
nodeRefs
|
|
2206
|
-
}) => {
|
|
2207
|
-
var _a;
|
|
2208
|
-
const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
|
|
2209
|
-
const isExpanded = expanded.has(node.id);
|
|
2210
|
-
const isSelected = node.id === selectedId;
|
|
2211
|
-
const handleClick = () => {
|
|
2212
|
-
if (hasChildren) onToggle(node.id);
|
|
2213
|
-
onSelect(node);
|
|
2214
|
-
};
|
|
2215
|
-
const setRef = (el) => {
|
|
2216
|
-
if (el) nodeRefs.current.set(node.id, el);
|
|
2217
|
-
else nodeRefs.current.delete(node.id);
|
|
2218
|
-
};
|
|
2219
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "none", children: [
|
|
2220
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2221
|
-
"button",
|
|
2222
|
-
{
|
|
2223
|
-
ref: setRef,
|
|
2224
|
-
role: "treeitem",
|
|
2225
|
-
"aria-expanded": hasChildren ? isExpanded : void 0,
|
|
2226
|
-
"aria-selected": isSelected,
|
|
2227
|
-
tabIndex: isSelected ? 0 : -1,
|
|
2228
|
-
onClick: handleClick,
|
|
2229
|
-
onKeyDown: (e) => onKeyDown(e, node),
|
|
2230
|
-
className: button.cn(
|
|
2231
|
-
"flex w-full items-center gap-2 rounded-[var(--radius)] px-2 py-1.5 text-left transition-colors",
|
|
2232
|
-
"hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
2233
|
-
isSelected && "bg-primary/10 text-primary font-medium"
|
|
2234
|
-
),
|
|
2235
|
-
style: { paddingLeft: `${level * 1.5 + 0.5}rem` },
|
|
2236
|
-
children: [
|
|
2237
|
-
hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: isExpanded ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-4 flex-shrink-0", "aria-hidden": "true" }),
|
|
2238
|
-
node.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: node.icon }),
|
|
2239
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-foreground", children: node.label })
|
|
2240
|
-
]
|
|
2241
|
-
}
|
|
2242
|
-
),
|
|
2243
|
-
hasChildren && isExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", children: node.children.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2244
|
-
TreeNodeComponent,
|
|
2245
|
-
{
|
|
2246
|
-
node: child,
|
|
2247
|
-
level: level + 1,
|
|
2248
|
-
expanded,
|
|
2249
|
-
selectedId,
|
|
2250
|
-
onToggle,
|
|
2251
|
-
onSelect,
|
|
2252
|
-
onKeyDown,
|
|
2253
|
-
nodeRefs
|
|
2254
|
-
},
|
|
2255
|
-
child.id
|
|
2256
|
-
)) })
|
|
2257
|
-
] });
|
|
2258
|
-
};
|
|
2259
|
-
function Collapsible({
|
|
2260
|
-
...props
|
|
2261
|
-
}) {
|
|
2262
|
-
return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
|
|
2263
|
-
}
|
|
2264
|
-
function CollapsibleTrigger({
|
|
2265
|
-
...props
|
|
2266
|
-
}) {
|
|
2267
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2268
|
-
CollapsiblePrimitive__namespace.CollapsibleTrigger,
|
|
2269
|
-
{
|
|
2270
|
-
"data-slot": "collapsible-trigger",
|
|
2271
|
-
...props
|
|
2272
|
-
}
|
|
2273
|
-
);
|
|
2274
|
-
}
|
|
2275
|
-
function CollapsibleContent({
|
|
2276
|
-
...props
|
|
2277
|
-
}) {
|
|
2278
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2279
|
-
CollapsiblePrimitive__namespace.CollapsibleContent,
|
|
2280
|
-
{
|
|
2281
|
-
"data-slot": "collapsible-content",
|
|
2282
|
-
...props
|
|
2283
|
-
}
|
|
2284
|
-
);
|
|
2285
|
-
}
|
|
2286
|
-
function Accordion({
|
|
2287
|
-
...props
|
|
2288
|
-
}) {
|
|
2289
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { "data-slot": "accordion", ...props });
|
|
2290
|
-
}
|
|
2291
|
-
function AccordionItem({
|
|
2292
|
-
className,
|
|
2293
|
-
...props
|
|
2294
|
-
}) {
|
|
2295
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2296
|
-
AccordionPrimitive__namespace.Item,
|
|
2297
|
-
{
|
|
2298
|
-
"data-slot": "accordion-item",
|
|
2299
|
-
className: button.cn("border-b last:border-b-0", className),
|
|
2300
|
-
...props
|
|
2301
|
-
}
|
|
2302
|
-
);
|
|
2303
|
-
}
|
|
2304
|
-
function AccordionTrigger({
|
|
2305
|
-
className,
|
|
2306
|
-
children,
|
|
2307
|
-
...props
|
|
2308
|
-
}) {
|
|
2309
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2310
|
-
AccordionPrimitive__namespace.Trigger,
|
|
2311
|
-
{
|
|
2312
|
-
"data-slot": "accordion-trigger",
|
|
2313
|
-
className: button.cn(
|
|
2314
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
2315
|
-
className
|
|
2316
|
-
),
|
|
2317
|
-
...props,
|
|
2318
|
-
children: [
|
|
2319
|
-
children,
|
|
2320
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
2321
|
-
]
|
|
2322
|
-
}
|
|
2323
|
-
) });
|
|
2324
|
-
}
|
|
2325
|
-
function AccordionContent({
|
|
2326
|
-
className,
|
|
2327
|
-
children,
|
|
2328
|
-
...props
|
|
2329
|
-
}) {
|
|
2330
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2331
|
-
AccordionPrimitive__namespace.Content,
|
|
2332
|
-
{
|
|
2333
|
-
"data-slot": "accordion-content",
|
|
2334
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
2335
|
-
...props,
|
|
2336
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("pt-0 pb-4", className), children })
|
|
2337
|
-
}
|
|
2338
|
-
);
|
|
2339
|
-
}
|
|
2340
|
-
const CarouselContext = React__namespace.createContext(null);
|
|
2341
|
-
function useCarousel() {
|
|
2342
|
-
const context = React__namespace.useContext(CarouselContext);
|
|
2343
|
-
if (!context) {
|
|
2344
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
2345
|
-
}
|
|
2346
|
-
return context;
|
|
2347
|
-
}
|
|
2348
|
-
function Carousel({
|
|
2349
|
-
orientation = "horizontal",
|
|
2350
|
-
opts,
|
|
2351
|
-
setApi,
|
|
2352
|
-
plugins,
|
|
2353
|
-
className,
|
|
2354
|
-
children,
|
|
2355
|
-
...props
|
|
2356
|
-
}) {
|
|
2357
|
-
const [carouselRef, api] = useEmblaCarousel(
|
|
2358
|
-
{
|
|
2359
|
-
...opts,
|
|
2360
|
-
axis: orientation === "horizontal" ? "x" : "y"
|
|
2361
|
-
},
|
|
2362
|
-
plugins
|
|
2363
|
-
);
|
|
2364
|
-
const [canScrollPrev, setCanScrollPrev] = React__namespace.useState(false);
|
|
2365
|
-
const [canScrollNext, setCanScrollNext] = React__namespace.useState(false);
|
|
2366
|
-
const onSelect = React__namespace.useCallback((api2) => {
|
|
2367
|
-
if (!api2) return;
|
|
2368
|
-
setCanScrollPrev(api2.canScrollPrev());
|
|
2369
|
-
setCanScrollNext(api2.canScrollNext());
|
|
2370
|
-
}, []);
|
|
2371
|
-
const scrollPrev = React__namespace.useCallback(() => {
|
|
2372
|
-
api == null ? void 0 : api.scrollPrev();
|
|
2373
|
-
}, [api]);
|
|
2374
|
-
const scrollNext = React__namespace.useCallback(() => {
|
|
2375
|
-
api == null ? void 0 : api.scrollNext();
|
|
2376
|
-
}, [api]);
|
|
2377
|
-
const handleKeyDown = React__namespace.useCallback(
|
|
2378
|
-
(event) => {
|
|
2379
|
-
if (event.key === "ArrowLeft") {
|
|
2380
|
-
event.preventDefault();
|
|
2381
|
-
scrollPrev();
|
|
2382
|
-
} else if (event.key === "ArrowRight") {
|
|
2383
|
-
event.preventDefault();
|
|
2384
|
-
scrollNext();
|
|
2385
|
-
}
|
|
2386
|
-
},
|
|
2387
|
-
[scrollPrev, scrollNext]
|
|
2388
|
-
);
|
|
2389
|
-
React__namespace.useEffect(() => {
|
|
2390
|
-
if (!api || !setApi) return;
|
|
2391
|
-
setApi(api);
|
|
2392
|
-
}, [api, setApi]);
|
|
2393
|
-
React__namespace.useEffect(() => {
|
|
2394
|
-
if (!api) return;
|
|
2395
|
-
onSelect(api);
|
|
2396
|
-
api.on("reInit", onSelect);
|
|
2397
|
-
api.on("select", onSelect);
|
|
2398
|
-
return () => {
|
|
2399
|
-
api == null ? void 0 : api.off("select", onSelect);
|
|
2400
|
-
};
|
|
2401
|
-
}, [api, onSelect]);
|
|
2402
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2403
|
-
CarouselContext.Provider,
|
|
2404
|
-
{
|
|
2405
|
-
value: {
|
|
2406
|
-
carouselRef,
|
|
2407
|
-
api,
|
|
2408
|
-
opts,
|
|
2409
|
-
orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
|
|
2410
|
-
scrollPrev,
|
|
2411
|
-
scrollNext,
|
|
2412
|
-
canScrollPrev,
|
|
2413
|
-
canScrollNext
|
|
2414
|
-
},
|
|
2415
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2416
|
-
"div",
|
|
2417
|
-
{
|
|
2418
|
-
onKeyDownCapture: handleKeyDown,
|
|
2419
|
-
className: button.cn("relative", className),
|
|
2420
|
-
role: "region",
|
|
2421
|
-
"aria-roledescription": "carousel",
|
|
2422
|
-
"data-slot": "carousel",
|
|
2423
|
-
...props,
|
|
2424
|
-
children
|
|
2425
|
-
}
|
|
2426
|
-
)
|
|
2427
|
-
}
|
|
2428
|
-
);
|
|
2429
|
-
}
|
|
2430
|
-
function CarouselContent({ className, ...props }) {
|
|
2431
|
-
const { carouselRef, orientation } = useCarousel();
|
|
2432
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2433
|
-
"div",
|
|
2434
|
-
{
|
|
2435
|
-
ref: carouselRef,
|
|
2436
|
-
className: "overflow-hidden",
|
|
2437
|
-
"data-slot": "carousel-content",
|
|
2438
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2439
|
-
"div",
|
|
2440
|
-
{
|
|
2441
|
-
className: button.cn(
|
|
2442
|
-
"flex",
|
|
2443
|
-
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
2444
|
-
className
|
|
2445
|
-
),
|
|
2446
|
-
...props
|
|
2447
|
-
}
|
|
2448
|
-
)
|
|
2449
|
-
}
|
|
2450
|
-
);
|
|
2451
|
-
}
|
|
2452
|
-
function CarouselItem({ className, ...props }) {
|
|
2453
|
-
const { orientation } = useCarousel();
|
|
2454
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2455
|
-
"div",
|
|
2456
|
-
{
|
|
2457
|
-
role: "group",
|
|
2458
|
-
"aria-roledescription": "slide",
|
|
2459
|
-
"data-slot": "carousel-item",
|
|
2460
|
-
className: button.cn(
|
|
2461
|
-
"min-w-0 shrink-0 grow-0 basis-full",
|
|
2462
|
-
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
2463
|
-
className
|
|
2464
|
-
),
|
|
2465
|
-
...props
|
|
2466
|
-
}
|
|
2467
|
-
);
|
|
2468
|
-
}
|
|
2469
|
-
function CarouselPrevious({
|
|
2470
|
-
className,
|
|
2471
|
-
variant = "outline",
|
|
2472
|
-
size = "icon",
|
|
2473
|
-
...props
|
|
2474
|
-
}) {
|
|
2475
|
-
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
2476
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2477
|
-
button.Button,
|
|
2478
|
-
{
|
|
2479
|
-
"data-slot": "carousel-previous",
|
|
2480
|
-
variant,
|
|
2481
|
-
size,
|
|
2482
|
-
className: button.cn(
|
|
2483
|
-
"absolute size-8 rounded-full",
|
|
2484
|
-
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2485
|
-
className
|
|
2486
|
-
),
|
|
2487
|
-
disabled: !canScrollPrev,
|
|
2488
|
-
onClick: scrollPrev,
|
|
2489
|
-
...props,
|
|
2490
|
-
children: [
|
|
2491
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
|
|
2492
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
2493
|
-
]
|
|
2494
|
-
}
|
|
2495
|
-
);
|
|
2496
|
-
}
|
|
2497
|
-
function CarouselNext({
|
|
2498
|
-
className,
|
|
2499
|
-
variant = "outline",
|
|
2500
|
-
size = "icon",
|
|
2501
|
-
...props
|
|
2502
|
-
}) {
|
|
2503
|
-
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
2504
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2505
|
-
button.Button,
|
|
2506
|
-
{
|
|
2507
|
-
"data-slot": "carousel-next",
|
|
2508
|
-
variant,
|
|
2509
|
-
size,
|
|
2510
|
-
className: button.cn(
|
|
2511
|
-
"absolute size-8 rounded-full",
|
|
2512
|
-
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
2513
|
-
className
|
|
2514
|
-
),
|
|
2515
|
-
disabled: !canScrollNext,
|
|
2516
|
-
onClick: scrollNext,
|
|
2517
|
-
...props,
|
|
2518
|
-
children: [
|
|
2519
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
|
|
2520
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
|
|
2521
|
-
]
|
|
2522
|
-
}
|
|
2523
|
-
);
|
|
2524
|
-
}
|
|
2525
|
-
const StepperContext = React__namespace.createContext(void 0);
|
|
2526
|
-
const useStepper = () => {
|
|
2527
|
-
const context = React__namespace.useContext(StepperContext);
|
|
2528
|
-
if (!context) throw new Error("useStepper must be used within a Stepper");
|
|
2529
|
-
return context;
|
|
2530
|
-
};
|
|
2531
|
-
const Stepper = React__namespace.forwardRef(
|
|
2532
|
-
({ currentStep, orientation = "horizontal", className, children, ...props }, ref) => {
|
|
2533
|
-
const totalSteps = React__namespace.Children.count(children);
|
|
2534
|
-
return /* @__PURE__ */ jsxRuntime.jsx(StepperContext.Provider, { value: { currentStep, totalSteps, orientation }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2535
|
-
"div",
|
|
2536
|
-
{
|
|
2537
|
-
ref,
|
|
2538
|
-
className: button.cn("w-full", className),
|
|
2539
|
-
...props,
|
|
2540
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn(
|
|
2541
|
-
orientation === "horizontal" ? "flex items-start justify-between" : "flex flex-col gap-0"
|
|
2542
|
-
), children })
|
|
2543
|
-
}
|
|
2544
|
-
) });
|
|
2545
|
-
}
|
|
2546
|
-
);
|
|
2547
|
-
Stepper.displayName = "Stepper";
|
|
2548
|
-
const Step = React__namespace.forwardRef(
|
|
2549
|
-
({ step, label, description, error = false, className, ...props }, ref) => {
|
|
2550
|
-
const { currentStep, totalSteps, orientation } = useStepper();
|
|
2551
|
-
const isActive = step === currentStep;
|
|
2552
|
-
const isCompleted = step < currentStep && !error;
|
|
2553
|
-
const isFirst = step === 1;
|
|
2554
|
-
const isLast = step === totalSteps;
|
|
2555
|
-
const circleClasses = button.cn(
|
|
2556
|
-
"relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors",
|
|
2557
|
-
isActive && !error && "border-primary bg-primary text-primary-foreground",
|
|
2558
|
-
isCompleted && "border-primary bg-primary text-primary-foreground",
|
|
2559
|
-
error && "border-destructive bg-destructive text-destructive-foreground",
|
|
2560
|
-
!isActive && !isCompleted && !error && "border-muted bg-background text-muted-foreground"
|
|
2561
|
-
);
|
|
2562
|
-
const connectorClasses = (filled) => button.cn("transition-colors", filled ? "bg-primary" : "bg-muted");
|
|
2563
|
-
if (orientation === "vertical") {
|
|
2564
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("flex gap-4", className), ...props, children: [
|
|
2565
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
2566
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: step }) }),
|
|
2567
|
-
!isLast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("w-0.5 flex-1 min-h-[2rem] mt-1", connectorClasses(step < currentStep)) })
|
|
2568
|
-
] }),
|
|
2569
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("pb-6", isLast && "pb-0"), children: [
|
|
2570
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
|
|
2571
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
2572
|
-
] })
|
|
2573
|
-
] });
|
|
2574
|
-
}
|
|
2575
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("flex flex-1 flex-col items-center", className), ...props, children: [
|
|
2576
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-start", children: [
|
|
2577
|
-
step > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step <= currentStep)) }),
|
|
2578
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: step }) }),
|
|
2579
|
-
step < totalSteps && /* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step < currentStep)) })
|
|
2580
|
-
] }),
|
|
2581
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn(
|
|
2582
|
-
"mt-2 px-1",
|
|
2583
|
-
isFirst && "text-left self-start",
|
|
2584
|
-
isLast && "text-right self-end",
|
|
2585
|
-
!isFirst && !isLast && "text-center w-full"
|
|
2586
|
-
), children: [
|
|
2587
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: button.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
|
|
2588
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
2589
|
-
] })
|
|
2590
|
-
] });
|
|
2591
|
-
}
|
|
2592
|
-
);
|
|
2593
|
-
Step.displayName = "Step";
|
|
2594
|
-
const FileUpload = React__namespace.forwardRef(
|
|
2595
|
-
({
|
|
2596
|
-
className,
|
|
2597
|
-
onFilesChange,
|
|
2598
|
-
maxFiles = 1,
|
|
2599
|
-
maxSize = 5 * 1024 * 1024,
|
|
2600
|
-
// 5MB default
|
|
2601
|
-
showPreview = true,
|
|
2602
|
-
onError,
|
|
2603
|
-
accept,
|
|
2604
|
-
disabled,
|
|
2605
|
-
...props
|
|
2606
|
-
}, ref) => {
|
|
2607
|
-
const [files, setFiles] = React__namespace.useState([]);
|
|
2608
|
-
const [dragActive, setDragActive] = React__namespace.useState(false);
|
|
2609
|
-
const [errorMessage, setErrorMessage] = React__namespace.useState(null);
|
|
2610
|
-
const inputRef = React__namespace.useRef(null);
|
|
2611
|
-
const handleFiles = (newFiles) => {
|
|
2612
|
-
if (!newFiles) return;
|
|
2613
|
-
setErrorMessage(null);
|
|
2614
|
-
const filesArray = Array.from(newFiles);
|
|
2615
|
-
const oversized = filesArray.filter((f) => f.size > maxSize);
|
|
2616
|
-
const validFiles = filesArray.filter((f) => f.size <= maxSize);
|
|
2617
|
-
if (oversized.length > 0) {
|
|
2618
|
-
const limitMB = (maxSize / 1024 / 1024).toFixed(0);
|
|
2619
|
-
setErrorMessage(`${oversized.length} file(s) exceed the ${limitMB}MB limit and were not added.`);
|
|
2620
|
-
onError == null ? void 0 : onError(oversized, "size");
|
|
2621
|
-
}
|
|
2622
|
-
const merged = maxFiles === 1 ? validFiles.slice(0, 1) : [...files, ...validFiles].slice(0, maxFiles);
|
|
2623
|
-
const countRejected = maxFiles === 1 ? validFiles.slice(1) : [...files, ...validFiles].slice(maxFiles);
|
|
2624
|
-
if (countRejected.length > 0) {
|
|
2625
|
-
setErrorMessage(`Only ${maxFiles} file(s) allowed. ${countRejected.length} file(s) were not added.`);
|
|
2626
|
-
onError == null ? void 0 : onError(countRejected, "count");
|
|
2627
|
-
}
|
|
2628
|
-
setFiles(merged);
|
|
2629
|
-
onFilesChange == null ? void 0 : onFilesChange(merged);
|
|
2630
|
-
};
|
|
2631
|
-
const handleDrag = (e) => {
|
|
2632
|
-
e.preventDefault();
|
|
2633
|
-
e.stopPropagation();
|
|
2634
|
-
if (e.type === "dragenter" || e.type === "dragover") {
|
|
2635
|
-
setDragActive(true);
|
|
2636
|
-
} else if (e.type === "dragleave") {
|
|
2637
|
-
setDragActive(false);
|
|
2638
|
-
}
|
|
2639
|
-
};
|
|
2640
|
-
const handleDrop = (e) => {
|
|
2641
|
-
e.preventDefault();
|
|
2642
|
-
e.stopPropagation();
|
|
2643
|
-
setDragActive(false);
|
|
2644
|
-
if (disabled) return;
|
|
2645
|
-
handleFiles(e.dataTransfer.files);
|
|
2646
|
-
};
|
|
2647
|
-
const handleChange = (e) => {
|
|
2648
|
-
e.preventDefault();
|
|
2649
|
-
if (disabled) return;
|
|
2650
|
-
handleFiles(e.target.files);
|
|
2651
|
-
};
|
|
2652
|
-
const removeFile = (index) => {
|
|
2653
|
-
const updatedFiles = files.filter((_, i) => i !== index);
|
|
2654
|
-
setFiles(updatedFiles);
|
|
2655
|
-
onFilesChange == null ? void 0 : onFilesChange(updatedFiles);
|
|
2656
|
-
if (updatedFiles.length === 0) setErrorMessage(null);
|
|
2657
|
-
};
|
|
2658
|
-
const openFileDialog = () => {
|
|
2659
|
-
var _a;
|
|
2660
|
-
if (!disabled) {
|
|
2661
|
-
setErrorMessage(null);
|
|
2662
|
-
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
2663
|
-
}
|
|
2664
|
-
};
|
|
2665
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: button.cn("w-full", className), children: [
|
|
2666
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2667
|
-
"div",
|
|
2668
|
-
{
|
|
2669
|
-
onDragEnter: handleDrag,
|
|
2670
|
-
onDragLeave: handleDrag,
|
|
2671
|
-
onDragOver: handleDrag,
|
|
2672
|
-
onDrop: handleDrop,
|
|
2673
|
-
onClick: openFileDialog,
|
|
2674
|
-
className: button.cn(
|
|
2675
|
-
"relative flex cursor-pointer flex-col items-center justify-center rounded-[var(--radius)] border-2 border-dashed border-border bg-background p-8 transition-colors hover:bg-muted/50",
|
|
2676
|
-
dragActive && "border-primary bg-primary/5",
|
|
2677
|
-
errorMessage && "border-destructive/50",
|
|
2678
|
-
disabled && "cursor-not-allowed opacity-50"
|
|
2679
|
-
),
|
|
2680
|
-
children: [
|
|
2681
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { className: "mb-4 h-10 w-10 text-muted-foreground" }),
|
|
2682
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mb-2 text-foreground", children: [
|
|
2683
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: "Click to upload" }),
|
|
2684
|
-
" or drag and drop"
|
|
2685
|
-
] }),
|
|
2686
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
|
|
2687
|
-
maxFiles > 1 ? `Up to ${maxFiles} files` : "1 file",
|
|
2688
|
-
" • Max ",
|
|
2689
|
-
(maxSize / 1024 / 1024).toFixed(0),
|
|
2690
|
-
"MB"
|
|
2691
|
-
] }),
|
|
2692
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2693
|
-
"input",
|
|
2694
|
-
{
|
|
2695
|
-
...props,
|
|
2696
|
-
ref: inputRef,
|
|
2697
|
-
type: "file",
|
|
2698
|
-
className: "hidden",
|
|
2699
|
-
onChange: handleChange,
|
|
2700
|
-
multiple: maxFiles > 1,
|
|
2701
|
-
accept,
|
|
2702
|
-
disabled
|
|
2703
|
-
}
|
|
2704
|
-
)
|
|
2705
|
-
]
|
|
2706
|
-
}
|
|
2707
|
-
),
|
|
2708
|
-
errorMessage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex items-center gap-2 rounded-[var(--radius)] border border-destructive/30 bg-destructive/5 px-3 py-2 text-sm text-destructive", children: [
|
|
2709
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "h-4 w-4 shrink-0" }),
|
|
2710
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: errorMessage })
|
|
2711
|
-
] }),
|
|
2712
|
-
showPreview && files.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 space-y-2", children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2713
|
-
"div",
|
|
2714
|
-
{
|
|
2715
|
-
className: "flex items-center justify-between rounded-[var(--radius)] border border-border bg-card p-3",
|
|
2716
|
-
children: [
|
|
2717
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2718
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileIcon, { className: "h-5 w-5 text-muted-foreground" }),
|
|
2719
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2720
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground", children: file.name }),
|
|
2721
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
|
|
2722
|
-
(file.size / 1024).toFixed(2),
|
|
2723
|
-
" KB"
|
|
2724
|
-
] })
|
|
2725
|
-
] })
|
|
2726
|
-
] }),
|
|
2727
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2728
|
-
button.Button,
|
|
2729
|
-
{
|
|
2730
|
-
type: "button",
|
|
2731
|
-
variant: "ghost",
|
|
2732
|
-
size: "sm",
|
|
2733
|
-
onClick: (e) => {
|
|
2734
|
-
e.stopPropagation();
|
|
2735
|
-
removeFile(index);
|
|
2736
|
-
},
|
|
2737
|
-
disabled,
|
|
2738
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
|
|
2739
|
-
}
|
|
2740
|
-
)
|
|
2741
|
-
]
|
|
2742
|
-
},
|
|
2743
|
-
index
|
|
2744
|
-
)) })
|
|
2745
|
-
] });
|
|
2746
|
-
}
|
|
2747
|
-
);
|
|
2748
|
-
FileUpload.displayName = "FileUpload";
|
|
2749
|
-
const Rating = React__namespace.forwardRef(
|
|
2750
|
-
({
|
|
2751
|
-
className,
|
|
2752
|
-
value = 0,
|
|
2753
|
-
onChange,
|
|
2754
|
-
max = 5,
|
|
2755
|
-
readonly = false,
|
|
2756
|
-
disabled = false,
|
|
2757
|
-
size = "md",
|
|
2758
|
-
showValue = false,
|
|
2759
|
-
allowHalf = false,
|
|
2760
|
-
getAriaLabel,
|
|
2761
|
-
...props
|
|
2762
|
-
}, ref) => {
|
|
2763
|
-
const [hoverValue, setHoverValue] = React__namespace.useState(null);
|
|
2764
|
-
const isInteractive = !readonly && !disabled;
|
|
2765
|
-
const sizeStyles = {
|
|
2766
|
-
sm: "h-4 w-4",
|
|
2767
|
-
md: "h-5 w-5",
|
|
2768
|
-
lg: "h-6 w-6"
|
|
2769
|
-
};
|
|
2770
|
-
const handleClick = (rating) => {
|
|
2771
|
-
if (isInteractive) onChange == null ? void 0 : onChange(rating);
|
|
2772
|
-
};
|
|
2773
|
-
const handleMouseMove = (e, rating) => {
|
|
2774
|
-
if (!isInteractive) return;
|
|
2775
|
-
if (allowHalf) {
|
|
2776
|
-
const rect = e.currentTarget.getBoundingClientRect();
|
|
2777
|
-
setHoverValue(e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating);
|
|
2778
|
-
} else {
|
|
2779
|
-
setHoverValue(rating);
|
|
2780
|
-
}
|
|
2781
|
-
};
|
|
2782
|
-
const handleMouseLeave = () => {
|
|
2783
|
-
if (isInteractive) setHoverValue(null);
|
|
2784
|
-
};
|
|
2785
|
-
const handleClickWithHalf = (e, rating) => {
|
|
2786
|
-
if (!isInteractive) return;
|
|
2787
|
-
if (allowHalf) {
|
|
2788
|
-
const rect = e.currentTarget.getBoundingClientRect();
|
|
2789
|
-
const half = e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating;
|
|
2790
|
-
onChange == null ? void 0 : onChange(half);
|
|
2791
|
-
} else {
|
|
2792
|
-
handleClick(rating);
|
|
2793
|
-
}
|
|
2794
|
-
};
|
|
2795
|
-
const displayValue = hoverValue ?? value;
|
|
2796
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2797
|
-
"div",
|
|
2798
|
-
{
|
|
2799
|
-
ref,
|
|
2800
|
-
className: button.cn("flex items-center gap-1", disabled && "opacity-50", className),
|
|
2801
|
-
...props,
|
|
2802
|
-
children: [
|
|
2803
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", role: "group", "aria-label": "Rating", children: Array.from({ length: max }, (_, index) => {
|
|
2804
|
-
const rating = index + 1;
|
|
2805
|
-
const isFull = rating <= displayValue;
|
|
2806
|
-
const isHalf = allowHalf && !isFull && rating - 0.5 <= displayValue;
|
|
2807
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2808
|
-
"button",
|
|
2809
|
-
{
|
|
2810
|
-
type: "button",
|
|
2811
|
-
onClick: (e) => handleClickWithHalf(e, rating),
|
|
2812
|
-
onMouseMove: (e) => handleMouseMove(e, rating),
|
|
2813
|
-
onMouseLeave: handleMouseLeave,
|
|
2814
|
-
disabled: readonly || disabled,
|
|
2815
|
-
"aria-label": getAriaLabel ? getAriaLabel(rating, max) : `${rating} / ${max}`,
|
|
2816
|
-
className: button.cn(
|
|
2817
|
-
"relative transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2818
|
-
isInteractive && "cursor-pointer hover:scale-110",
|
|
2819
|
-
!isInteractive && "cursor-default"
|
|
2820
|
-
),
|
|
2821
|
-
children: [
|
|
2822
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: button.cn(sizeStyles[size], "fill-none text-muted-foreground") }),
|
|
2823
|
-
(isFull || isHalf) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2824
|
-
"span",
|
|
2825
|
-
{
|
|
2826
|
-
className: button.cn(
|
|
2827
|
-
"absolute inset-0 overflow-hidden",
|
|
2828
|
-
isHalf ? "w-1/2" : "w-full"
|
|
2829
|
-
),
|
|
2830
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: button.cn(sizeStyles[size], "fill-warning text-warning") })
|
|
2831
|
-
}
|
|
2832
|
-
)
|
|
2833
|
-
]
|
|
2834
|
-
},
|
|
2835
|
-
index
|
|
2836
|
-
);
|
|
2837
|
-
}) }),
|
|
2838
|
-
showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: value % 1 === 0 ? value.toFixed(0) : value.toFixed(1) })
|
|
2839
|
-
]
|
|
2840
|
-
}
|
|
2841
|
-
);
|
|
2842
|
-
}
|
|
2843
|
-
);
|
|
2844
|
-
Rating.displayName = "Rating";
|
|
2845
|
-
const Search = React__namespace.forwardRef(
|
|
2846
|
-
({
|
|
2847
|
-
className,
|
|
2848
|
-
containerClassName,
|
|
2849
|
-
onSearch,
|
|
2850
|
-
onClear,
|
|
2851
|
-
onChange,
|
|
2852
|
-
size = "md",
|
|
2853
|
-
searchLabel = "Search",
|
|
2854
|
-
clearLabel = "Clear search",
|
|
2855
|
-
value: controlledValue,
|
|
2856
|
-
defaultValue,
|
|
2857
|
-
...props
|
|
2858
|
-
}, ref) => {
|
|
2859
|
-
const isControlled = controlledValue !== void 0;
|
|
2860
|
-
const [internalValue, setInternalValue] = React__namespace.useState(
|
|
2861
|
-
isControlled ? "" : defaultValue ?? ""
|
|
2862
|
-
);
|
|
2863
|
-
const displayValue = isControlled ? controlledValue : internalValue;
|
|
2864
|
-
const sizeClasses = {
|
|
2865
|
-
sm: "h-8 px-8 py-1 text-sm",
|
|
2866
|
-
md: "h-10 px-10 py-2 text-base",
|
|
2867
|
-
lg: "h-12 px-12 py-3 text-base"
|
|
2868
|
-
};
|
|
2869
|
-
const iconSizeClasses = {
|
|
2870
|
-
sm: "left-2 h-3.5 w-3.5",
|
|
2871
|
-
md: "left-3 h-4 w-4",
|
|
2872
|
-
lg: "left-4 h-5 w-5"
|
|
2873
|
-
};
|
|
2874
|
-
const clearSizeClasses = {
|
|
2875
|
-
sm: "right-2",
|
|
2876
|
-
md: "right-3",
|
|
2877
|
-
lg: "right-4"
|
|
2878
|
-
};
|
|
2879
|
-
const handleChange = (e) => {
|
|
2880
|
-
const newValue = e.target.value;
|
|
2881
|
-
if (!isControlled) setInternalValue(newValue);
|
|
2882
|
-
onChange == null ? void 0 : onChange(e);
|
|
2883
|
-
onSearch == null ? void 0 : onSearch(newValue);
|
|
2884
|
-
};
|
|
2885
|
-
const handleClear = () => {
|
|
2886
|
-
if (!isControlled) setInternalValue("");
|
|
2887
|
-
onClear == null ? void 0 : onClear();
|
|
2888
|
-
onSearch == null ? void 0 : onSearch("");
|
|
2889
|
-
};
|
|
2890
|
-
const handleKeyDown = (e) => {
|
|
2891
|
-
var _a;
|
|
2892
|
-
if (e.key === "Escape") {
|
|
2893
|
-
handleClear();
|
|
2894
|
-
}
|
|
2895
|
-
(_a = props.onKeyDown) == null ? void 0 : _a.call(props, e);
|
|
2896
|
-
};
|
|
2897
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: button.cn("relative w-full", containerClassName), children: [
|
|
2898
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2899
|
-
lucideReact.Search,
|
|
2900
|
-
{
|
|
2901
|
-
"aria-hidden": "true",
|
|
2902
|
-
className: button.cn("absolute top-1/2 -translate-y-1/2 text-muted-foreground", iconSizeClasses[size])
|
|
2903
|
-
}
|
|
2904
|
-
),
|
|
2905
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2906
|
-
"input",
|
|
2907
|
-
{
|
|
2908
|
-
ref,
|
|
2909
|
-
type: "text",
|
|
2910
|
-
value: displayValue,
|
|
2911
|
-
onChange: handleChange,
|
|
2912
|
-
onKeyDown: handleKeyDown,
|
|
2913
|
-
className: button.cn(
|
|
2914
|
-
"flex w-full rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none",
|
|
2915
|
-
"placeholder:text-muted-foreground",
|
|
2916
|
-
"focus:ring-2 focus:ring-primary focus:border-transparent",
|
|
2917
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2918
|
-
sizeClasses[size],
|
|
2919
|
-
className
|
|
2920
|
-
),
|
|
2921
|
-
"aria-label": props.placeholder || searchLabel,
|
|
2922
|
-
...props
|
|
2923
|
-
}
|
|
2924
|
-
),
|
|
2925
|
-
displayValue && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2926
|
-
"button",
|
|
2927
|
-
{
|
|
2928
|
-
type: "button",
|
|
2929
|
-
onClick: handleClear,
|
|
2930
|
-
"aria-label": clearLabel,
|
|
2931
|
-
className: button.cn(
|
|
2932
|
-
"absolute top-1/2 -translate-y-1/2 text-muted-foreground transition-colors hover:text-foreground focus:outline-none",
|
|
2933
|
-
clearSizeClasses[size]
|
|
2934
|
-
),
|
|
2935
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
|
|
2936
|
-
}
|
|
2937
|
-
)
|
|
2938
|
-
] });
|
|
2939
|
-
}
|
|
2940
|
-
);
|
|
2941
|
-
Search.displayName = "Search";
|
|
2942
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
2943
|
-
const RouteMapContent = React.forwardRef(
|
|
2944
|
-
({ apiKey, ...props }, ref) => {
|
|
2945
|
-
const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
|
|
2946
|
-
const {
|
|
2947
|
-
origin,
|
|
2948
|
-
destination,
|
|
2949
|
-
waypoints = [],
|
|
2950
|
-
travelMode = "DRIVING",
|
|
2951
|
-
height = "450px",
|
|
2952
|
-
mapContainerClassName,
|
|
2953
|
-
disableDefaultUI = false,
|
|
2954
|
-
zoomControl = true,
|
|
2955
|
-
streetViewControl = false,
|
|
2956
|
-
mapTypeControl = false,
|
|
2957
|
-
fullscreenControl = true,
|
|
2958
|
-
onRouteCalculated,
|
|
2959
|
-
className,
|
|
2960
|
-
...divProps
|
|
2961
|
-
} = props;
|
|
2962
|
-
const mapRef = React.useRef(null);
|
|
2963
|
-
const gmpMapRef = React.useRef(null);
|
|
2964
|
-
const directionsRendererRef = React.useRef(null);
|
|
2965
|
-
React.useRef(false);
|
|
2966
|
-
const isCalculatingRef = React.useRef(false);
|
|
2967
|
-
React.useEffect(() => {
|
|
2968
|
-
if (!isLoaded && apiKey && !loadError && load) {
|
|
2969
|
-
load(apiKey).catch(console.error);
|
|
2970
|
-
}
|
|
2971
|
-
}, [isLoaded, apiKey, loadError, load]);
|
|
2972
|
-
React.useEffect(() => {
|
|
2973
|
-
if (!isLoaded || !gmpMapRef.current) return;
|
|
2974
|
-
const setupMap = (map) => {
|
|
2975
|
-
mapRef.current = map;
|
|
2976
|
-
const computedStyle = getComputedStyle(document.documentElement);
|
|
2977
|
-
const primaryColor = computedStyle.getPropertyValue("--primary").trim() || "#4F46E5";
|
|
2978
|
-
if (!directionsRendererRef.current) {
|
|
2979
|
-
directionsRendererRef.current = new google.maps.DirectionsRenderer({
|
|
2980
|
-
map,
|
|
2981
|
-
suppressMarkers: false,
|
|
2982
|
-
polylineOptions: {
|
|
2983
|
-
strokeColor: primaryColor,
|
|
2984
|
-
strokeWeight: 5,
|
|
2985
|
-
strokeOpacity: 0.8
|
|
2986
|
-
}
|
|
2987
|
-
});
|
|
2988
|
-
} else {
|
|
2989
|
-
directionsRendererRef.current.setMap(map);
|
|
2990
|
-
}
|
|
2991
|
-
};
|
|
2992
|
-
const gmpMap = gmpMapRef.current;
|
|
2993
|
-
if (gmpMap.innerMap) {
|
|
2994
|
-
setupMap(gmpMap.innerMap);
|
|
2995
|
-
} else {
|
|
2996
|
-
const interval = setInterval(() => {
|
|
2997
|
-
if (gmpMap.innerMap) {
|
|
2998
|
-
setupMap(gmpMap.innerMap);
|
|
2999
|
-
clearInterval(interval);
|
|
3000
|
-
}
|
|
3001
|
-
}, 100);
|
|
3002
|
-
return () => clearInterval(interval);
|
|
3003
|
-
}
|
|
3004
|
-
return () => {
|
|
3005
|
-
if (directionsRendererRef.current) {
|
|
3006
|
-
directionsRendererRef.current.setMap(null);
|
|
3007
|
-
}
|
|
3008
|
-
mapRef.current = null;
|
|
3009
|
-
};
|
|
3010
|
-
}, [isLoaded]);
|
|
3011
|
-
React.useEffect(() => {
|
|
3012
|
-
if (gmpMapRef.current && origin) {
|
|
3013
|
-
gmpMapRef.current.center = origin;
|
|
3014
|
-
}
|
|
3015
|
-
}, [origin.lat, origin.lng]);
|
|
3016
|
-
React.useEffect(() => {
|
|
3017
|
-
if (gmpMapRef.current) {
|
|
3018
|
-
gmpMapRef.current.zoom = 13;
|
|
3019
|
-
}
|
|
3020
|
-
}, []);
|
|
3021
|
-
React.useEffect(() => {
|
|
3022
|
-
const map = mapRef.current;
|
|
3023
|
-
const renderer = directionsRendererRef.current;
|
|
3024
|
-
if (!map || !renderer || !isLoaded || isCalculatingRef.current) return;
|
|
3025
|
-
if (!origin || !destination) return;
|
|
3026
|
-
isCalculatingRef.current = true;
|
|
3027
|
-
const directionsService = new google.maps.DirectionsService();
|
|
3028
|
-
const request = {
|
|
3029
|
-
origin,
|
|
3030
|
-
destination,
|
|
3031
|
-
waypoints: waypoints.map((wp) => ({
|
|
3032
|
-
location: wp,
|
|
3033
|
-
stopover: true
|
|
3034
|
-
})),
|
|
3035
|
-
travelMode: google.maps.TravelMode[travelMode]
|
|
3036
|
-
};
|
|
3037
|
-
directionsService.route(request, (result, status) => {
|
|
3038
|
-
var _a;
|
|
3039
|
-
isCalculatingRef.current = false;
|
|
3040
|
-
if (status === "OK" && result) {
|
|
3041
|
-
renderer.setDirections(result);
|
|
3042
|
-
const route = result.routes[0];
|
|
3043
|
-
if (((_a = route == null ? void 0 : route.legs) == null ? void 0 : _a.length) > 0 && onRouteCalculated) {
|
|
3044
|
-
let totalDistance = 0;
|
|
3045
|
-
let totalDuration = 0;
|
|
3046
|
-
route.legs.forEach((leg) => {
|
|
3047
|
-
if (leg.distance) totalDistance += leg.distance.value;
|
|
3048
|
-
if (leg.duration) totalDuration += leg.duration.value;
|
|
3049
|
-
});
|
|
3050
|
-
const distanceKm = (totalDistance / 1e3).toFixed(1);
|
|
3051
|
-
const distanceText = `${distanceKm} km`;
|
|
3052
|
-
const hours = Math.floor(totalDuration / 3600);
|
|
3053
|
-
const minutes = Math.floor(totalDuration % 3600 / 60);
|
|
3054
|
-
const durationText = hours > 0 ? `${hours}h ${minutes}min` : `${minutes} min`;
|
|
3055
|
-
onRouteCalculated(distanceText, durationText);
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
});
|
|
3059
|
-
}, [isLoaded, origin.lat, origin.lng, destination.lat, destination.lng, travelMode, mapRef.current]);
|
|
3060
|
-
if (loadError) {
|
|
3061
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3062
|
-
"div",
|
|
3063
|
-
{
|
|
3064
|
-
ref,
|
|
3065
|
-
className: button.cn(
|
|
3066
|
-
"relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
|
|
3067
|
-
className
|
|
3068
|
-
),
|
|
3069
|
-
style: { height },
|
|
3070
|
-
...divProps,
|
|
3071
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-2 p-6", children: [
|
|
3072
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, 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" }) }) }),
|
|
3073
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-foreground", children: "Failed to load Google Maps" }),
|
|
3074
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
|
|
3075
|
-
] }) })
|
|
3076
|
-
}
|
|
3077
|
-
);
|
|
3078
|
-
}
|
|
3079
|
-
if (!isLoaded) {
|
|
3080
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3081
|
-
"div",
|
|
3082
|
-
{
|
|
3083
|
-
ref,
|
|
3084
|
-
className: button.cn(
|
|
3085
|
-
"relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
|
|
3086
|
-
className
|
|
3087
|
-
),
|
|
3088
|
-
style: { height },
|
|
3089
|
-
...divProps
|
|
3090
|
-
}
|
|
3091
|
-
);
|
|
3092
|
-
}
|
|
3093
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3094
|
-
"div",
|
|
3095
|
-
{
|
|
3096
|
-
ref,
|
|
3097
|
-
className: button.cn(
|
|
3098
|
-
"relative rounded-[var(--radius-card)] border border-border overflow-hidden",
|
|
3099
|
-
className
|
|
3100
|
-
),
|
|
3101
|
-
style: { height },
|
|
3102
|
-
...divProps,
|
|
3103
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3104
|
-
"gmp-map",
|
|
3105
|
-
{
|
|
3106
|
-
ref: gmpMapRef,
|
|
3107
|
-
style: { height: "100%", width: "100%", display: "block" },
|
|
3108
|
-
"map-id": props.mapId || "xertica-route-map"
|
|
3109
|
-
}
|
|
3110
|
-
)
|
|
3111
|
-
}
|
|
3112
|
-
);
|
|
3113
|
-
}
|
|
3114
|
-
);
|
|
3115
|
-
RouteMapContent.displayName = "RouteMapContent";
|
|
3116
|
-
const RouteMap = React.forwardRef(
|
|
3117
|
-
(props, ref) => {
|
|
3118
|
-
const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
|
|
3119
|
-
const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("AssistantChart-9w31gdAb.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__ && void 0 || "";
|
|
3120
|
-
const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
|
|
3121
|
-
if (isLoaded || isValidKey || loadError) {
|
|
3122
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
|
|
3123
|
-
}
|
|
3124
|
-
const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
|
|
3125
|
-
if (isScriptInjected) {
|
|
3126
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
|
|
3127
|
-
}
|
|
3128
|
-
const {
|
|
3129
|
-
origin,
|
|
3130
|
-
destination,
|
|
3131
|
-
waypoints,
|
|
3132
|
-
travelMode,
|
|
3133
|
-
height,
|
|
3134
|
-
apiKey,
|
|
3135
|
-
mapContainerClassName,
|
|
3136
|
-
disableDefaultUI,
|
|
3137
|
-
zoomControl,
|
|
3138
|
-
streetViewControl,
|
|
3139
|
-
mapTypeControl,
|
|
3140
|
-
fullscreenControl,
|
|
3141
|
-
onRouteCalculated,
|
|
3142
|
-
...divProps
|
|
3143
|
-
} = props;
|
|
3144
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3145
|
-
"div",
|
|
3146
|
-
{
|
|
3147
|
-
ref,
|
|
3148
|
-
className: button.cn(
|
|
3149
|
-
"relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
|
|
3150
|
-
props.className
|
|
3151
|
-
),
|
|
3152
|
-
style: { height: props.height || "450px" },
|
|
3153
|
-
...divProps,
|
|
3154
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-muted/50 to-muted", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-3 p-6", children: [
|
|
3155
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
3156
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, 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" }),
|
|
3157
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
3158
|
-
] }) }),
|
|
3159
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
|
|
3160
|
-
] }) })
|
|
3161
|
-
}
|
|
3162
|
-
);
|
|
3163
|
-
}
|
|
3164
|
-
);
|
|
3165
|
-
RouteMap.displayName = "RouteMap";
|
|
3166
|
-
const SimpleMap = React.forwardRef(
|
|
3167
|
-
({
|
|
3168
|
-
center,
|
|
3169
|
-
address,
|
|
3170
|
-
markerTitle,
|
|
3171
|
-
markerInfo,
|
|
3172
|
-
showMarker = true,
|
|
3173
|
-
zoom = 15,
|
|
3174
|
-
height = "350px",
|
|
3175
|
-
...props
|
|
3176
|
-
}, ref) => {
|
|
3177
|
-
const markers = showMarker && center ? [
|
|
3178
|
-
{
|
|
3179
|
-
position: center,
|
|
3180
|
-
title: markerTitle || address || "Location",
|
|
3181
|
-
info: markerInfo || address
|
|
3182
|
-
}
|
|
3183
|
-
] : [];
|
|
3184
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3185
|
-
alertDialog.Map,
|
|
3186
|
-
{
|
|
3187
|
-
ref,
|
|
3188
|
-
center,
|
|
3189
|
-
zoom,
|
|
3190
|
-
height,
|
|
3191
|
-
markers,
|
|
3192
|
-
...props
|
|
3193
|
-
}
|
|
3194
|
-
);
|
|
3195
|
-
}
|
|
3196
|
-
);
|
|
3197
|
-
SimpleMap.displayName = "SimpleMap";
|
|
3198
|
-
function AssistantChart({
|
|
3199
|
-
data,
|
|
3200
|
-
config,
|
|
3201
|
-
categoryKey = "month",
|
|
3202
|
-
bars,
|
|
3203
|
-
xAxisFormatter,
|
|
3204
|
-
className
|
|
3205
|
-
}) {
|
|
3206
|
-
const resolvedBars = bars ?? Object.keys(config).map((key) => ({ dataKey: key }));
|
|
3207
|
-
const formatTick = xAxisFormatter ?? ((value) => value.slice(0, 3));
|
|
3208
|
-
return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config, className: button.cn("min-h-[200px] w-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.BarChart, { accessibilityLayer: true, data, children: [
|
|
3209
|
-
/* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { vertical: false }),
|
|
3210
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3211
|
-
RechartsPrimitive.XAxis,
|
|
3212
|
-
{
|
|
3213
|
-
dataKey: categoryKey,
|
|
3214
|
-
tickLine: false,
|
|
3215
|
-
tickMargin: 10,
|
|
3216
|
-
axisLine: false,
|
|
3217
|
-
tickFormatter: formatTick
|
|
3218
|
-
}
|
|
3219
|
-
),
|
|
3220
|
-
/* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { cursor: false, content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "dashed" }) }),
|
|
3221
|
-
resolvedBars.map((bar) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3222
|
-
RechartsPrimitive.Bar,
|
|
3223
|
-
{
|
|
3224
|
-
dataKey: bar.dataKey,
|
|
3225
|
-
fill: bar.fill ?? `var(--color-${bar.dataKey})`,
|
|
3226
|
-
radius: bar.radius ?? 4
|
|
3227
|
-
},
|
|
3228
|
-
bar.dataKey
|
|
3229
|
-
))
|
|
3230
|
-
] }) });
|
|
3231
|
-
}
|
|
3232
|
-
exports.Accordion = Accordion;
|
|
3233
|
-
exports.AccordionContent = AccordionContent;
|
|
3234
|
-
exports.AccordionItem = AccordionItem;
|
|
3235
|
-
exports.AccordionTrigger = AccordionTrigger;
|
|
3236
|
-
exports.AspectRatio = AspectRatio;
|
|
3237
|
-
exports.AssistantChart = AssistantChart;
|
|
3238
|
-
exports.Calendar = Calendar;
|
|
3239
|
-
exports.CalendarDayButton = CalendarDayButton;
|
|
3240
|
-
exports.Carousel = Carousel;
|
|
3241
|
-
exports.CarouselContent = CarouselContent;
|
|
3242
|
-
exports.CarouselItem = CarouselItem;
|
|
3243
|
-
exports.CarouselNext = CarouselNext;
|
|
3244
|
-
exports.CarouselPrevious = CarouselPrevious;
|
|
3245
|
-
exports.Collapsible = Collapsible;
|
|
3246
|
-
exports.CollapsibleContent = CollapsibleContent;
|
|
3247
|
-
exports.CollapsibleTrigger = CollapsibleTrigger;
|
|
3248
|
-
exports.Command = Command;
|
|
3249
|
-
exports.CommandDialog = CommandDialog;
|
|
3250
|
-
exports.CommandEmpty = CommandEmpty;
|
|
3251
|
-
exports.CommandGroup = CommandGroup;
|
|
3252
|
-
exports.CommandInput = CommandInput;
|
|
3253
|
-
exports.CommandItem = CommandItem;
|
|
3254
|
-
exports.CommandList = CommandList;
|
|
3255
|
-
exports.CommandSeparator = CommandSeparator;
|
|
3256
|
-
exports.CommandShortcut = CommandShortcut;
|
|
3257
|
-
exports.ContextMenu = ContextMenu;
|
|
3258
|
-
exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
|
|
3259
|
-
exports.ContextMenuContent = ContextMenuContent;
|
|
3260
|
-
exports.ContextMenuGroup = ContextMenuGroup;
|
|
3261
|
-
exports.ContextMenuItem = ContextMenuItem;
|
|
3262
|
-
exports.ContextMenuLabel = ContextMenuLabel;
|
|
3263
|
-
exports.ContextMenuPortal = ContextMenuPortal;
|
|
3264
|
-
exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
|
|
3265
|
-
exports.ContextMenuRadioItem = ContextMenuRadioItem;
|
|
3266
|
-
exports.ContextMenuSeparator = ContextMenuSeparator;
|
|
3267
|
-
exports.ContextMenuShortcut = ContextMenuShortcut;
|
|
3268
|
-
exports.ContextMenuSub = ContextMenuSub;
|
|
3269
|
-
exports.ContextMenuSubContent = ContextMenuSubContent;
|
|
3270
|
-
exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
|
|
3271
|
-
exports.ContextMenuTrigger = ContextMenuTrigger;
|
|
3272
|
-
exports.Drawer = Drawer;
|
|
3273
|
-
exports.DrawerClose = DrawerClose;
|
|
3274
|
-
exports.DrawerContent = DrawerContent;
|
|
3275
|
-
exports.DrawerDescription = DrawerDescription;
|
|
3276
|
-
exports.DrawerFooter = DrawerFooter;
|
|
3277
|
-
exports.DrawerHandle = DrawerHandle;
|
|
3278
|
-
exports.DrawerHeader = DrawerHeader;
|
|
3279
|
-
exports.DrawerOverlay = DrawerOverlay;
|
|
3280
|
-
exports.DrawerPortal = DrawerPortal;
|
|
3281
|
-
exports.DrawerTitle = DrawerTitle;
|
|
3282
|
-
exports.DrawerTrigger = DrawerTrigger;
|
|
3283
|
-
exports.FileUpload = FileUpload;
|
|
3284
|
-
exports.Form = Form;
|
|
3285
|
-
exports.FormControl = FormControl;
|
|
3286
|
-
exports.FormDescription = FormDescription;
|
|
3287
|
-
exports.FormField = FormField;
|
|
3288
|
-
exports.FormItem = FormItem;
|
|
3289
|
-
exports.FormLabel = FormLabel;
|
|
3290
|
-
exports.FormMessage = FormMessage;
|
|
3291
|
-
exports.HoverCard = HoverCard;
|
|
3292
|
-
exports.HoverCardContent = HoverCardContent;
|
|
3293
|
-
exports.HoverCardTrigger = HoverCardTrigger;
|
|
3294
|
-
exports.InputOTP = InputOTP;
|
|
3295
|
-
exports.InputOTPGroup = InputOTPGroup;
|
|
3296
|
-
exports.InputOTPSeparator = InputOTPSeparator;
|
|
3297
|
-
exports.InputOTPSlot = InputOTPSlot;
|
|
3298
|
-
exports.Menubar = Menubar;
|
|
3299
|
-
exports.MenubarCheckboxItem = MenubarCheckboxItem;
|
|
3300
|
-
exports.MenubarContent = MenubarContent;
|
|
3301
|
-
exports.MenubarGroup = MenubarGroup;
|
|
3302
|
-
exports.MenubarItem = MenubarItem;
|
|
3303
|
-
exports.MenubarLabel = MenubarLabel;
|
|
3304
|
-
exports.MenubarMenu = MenubarMenu;
|
|
3305
|
-
exports.MenubarPortal = MenubarPortal;
|
|
3306
|
-
exports.MenubarRadioGroup = MenubarRadioGroup;
|
|
3307
|
-
exports.MenubarRadioItem = MenubarRadioItem;
|
|
3308
|
-
exports.MenubarSeparator = MenubarSeparator;
|
|
3309
|
-
exports.MenubarShortcut = MenubarShortcut;
|
|
3310
|
-
exports.MenubarSub = MenubarSub;
|
|
3311
|
-
exports.MenubarSubContent = MenubarSubContent;
|
|
3312
|
-
exports.MenubarSubTrigger = MenubarSubTrigger;
|
|
3313
|
-
exports.MenubarTrigger = MenubarTrigger;
|
|
3314
|
-
exports.NavigationMenu = NavigationMenu;
|
|
3315
|
-
exports.NavigationMenuContent = NavigationMenuContent;
|
|
3316
|
-
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
3317
|
-
exports.NavigationMenuItem = NavigationMenuItem;
|
|
3318
|
-
exports.NavigationMenuLink = NavigationMenuLink;
|
|
3319
|
-
exports.NavigationMenuList = NavigationMenuList;
|
|
3320
|
-
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
3321
|
-
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
3322
|
-
exports.NotificationBadge = NotificationBadge;
|
|
3323
|
-
exports.Pagination = Pagination;
|
|
3324
|
-
exports.PaginationContent = PaginationContent;
|
|
3325
|
-
exports.PaginationEllipsis = PaginationEllipsis;
|
|
3326
|
-
exports.PaginationItem = PaginationItem;
|
|
3327
|
-
exports.PaginationLink = PaginationLink;
|
|
3328
|
-
exports.PaginationNext = PaginationNext;
|
|
3329
|
-
exports.PaginationPrevious = PaginationPrevious;
|
|
3330
|
-
exports.Rating = Rating;
|
|
3331
|
-
exports.ResizableHandle = ResizableHandle;
|
|
3332
|
-
exports.ResizablePanel = ResizablePanel;
|
|
3333
|
-
exports.ResizablePanelGroup = ResizablePanelGroup;
|
|
3334
|
-
exports.RouteMap = RouteMap;
|
|
3335
|
-
exports.Search = Search;
|
|
3336
|
-
exports.Sheet = Sheet;
|
|
3337
|
-
exports.SheetClose = SheetClose;
|
|
3338
|
-
exports.SheetContent = SheetContent;
|
|
3339
|
-
exports.SheetDescription = SheetDescription;
|
|
3340
|
-
exports.SheetFooter = SheetFooter;
|
|
3341
|
-
exports.SheetHeader = SheetHeader;
|
|
3342
|
-
exports.SheetPortal = SheetPortal;
|
|
3343
|
-
exports.SheetTitle = SheetTitle;
|
|
3344
|
-
exports.SheetTrigger = SheetTrigger;
|
|
3345
|
-
exports.SimpleMap = SimpleMap;
|
|
3346
|
-
exports.StatsCard = StatsCard;
|
|
3347
|
-
exports.Step = Step;
|
|
3348
|
-
exports.Stepper = Stepper;
|
|
3349
|
-
exports.Timeline = Timeline;
|
|
3350
|
-
exports.TimelineContent = TimelineContent;
|
|
3351
|
-
exports.TimelineDescription = TimelineDescription;
|
|
3352
|
-
exports.TimelineDot = TimelineDot;
|
|
3353
|
-
exports.TimelineHeading = TimelineHeading;
|
|
3354
|
-
exports.TimelineItem = TimelineItem;
|
|
3355
|
-
exports.TimelineTime = TimelineTime;
|
|
3356
|
-
exports.Toggle = Toggle;
|
|
3357
|
-
exports.ToggleGroup = ToggleGroup;
|
|
3358
|
-
exports.ToggleGroupItem = ToggleGroupItem;
|
|
3359
|
-
exports.TreeView = TreeView;
|
|
3360
|
-
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
3361
|
-
exports.toggleVariants = toggleVariants;
|
|
3362
|
-
exports.useFormField = useFormField;
|
|
3363
|
-
exports.useStepper = useStepper;
|