@luxfi/ui 8.0.0 → 8.2.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/dist/3d-button.cjs +298 -0
- package/dist/3d-button.d.ts +52 -0
- package/dist/3d-button.d.ts.map +1 -0
- package/dist/3d-button.js +273 -0
- package/dist/3d-card.cjs +236 -0
- package/dist/3d-card.d.ts +29 -0
- package/dist/3d-card.d.ts.map +1 -0
- package/dist/3d-card.js +209 -0
- package/dist/3d-carousel.cjs +375 -0
- package/dist/3d-carousel.d.ts +26 -0
- package/dist/3d-carousel.d.ts.map +1 -0
- package/dist/3d-carousel.js +348 -0
- package/dist/3d-grid.cjs +360 -0
- package/dist/3d-grid.d.ts +49 -0
- package/dist/3d-grid.d.ts.map +1 -0
- package/dist/3d-grid.js +335 -0
- package/dist/3d-marquee.cjs +8669 -0
- package/dist/3d-marquee.d.ts +65 -0
- package/dist/3d-marquee.d.ts.map +1 -0
- package/dist/3d-marquee.js +8645 -0
- package/dist/3d-model-viewer.cjs +909 -0
- package/dist/3d-model-viewer.d.ts +45 -0
- package/dist/3d-model-viewer.d.ts.map +1 -0
- package/dist/3d-model-viewer.js +886 -0
- package/dist/3d-pin.cjs +46 -0
- package/dist/3d-pin.d.ts +8 -0
- package/dist/3d-pin.d.ts.map +1 -0
- package/dist/3d-pin.js +24 -0
- package/dist/3d-scene.cjs +439 -0
- package/dist/3d-scene.d.ts +76 -0
- package/dist/3d-scene.d.ts.map +1 -0
- package/dist/3d-scene.js +407 -0
- package/dist/3d-text.cjs +367 -0
- package/dist/3d-text.d.ts +62 -0
- package/dist/3d-text.d.ts.map +1 -0
- package/dist/3d-text.js +341 -0
- package/dist/accordion.d.ts.map +1 -1
- package/dist/advanced-chart.cjs +53 -0
- package/dist/advanced-chart.d.ts +6 -0
- package/dist/advanced-chart.d.ts.map +1 -0
- package/dist/advanced-chart.js +51 -0
- package/dist/advanced-navigation-bar.cjs +459 -0
- package/dist/advanced-navigation-bar.d.ts +14 -0
- package/dist/advanced-navigation-bar.d.ts.map +1 -0
- package/dist/advanced-navigation-bar.js +437 -0
- package/dist/ai-actions.cjs +57 -0
- package/dist/ai-actions.d.ts +14 -0
- package/dist/ai-actions.d.ts.map +1 -0
- package/dist/ai-actions.js +35 -0
- package/dist/ai-agents.cjs +1764 -0
- package/dist/ai-agents.d.ts +56 -0
- package/dist/ai-agents.d.ts.map +1 -0
- package/dist/ai-agents.js +1740 -0
- package/dist/ai-assistant.cjs +907 -0
- package/dist/ai-assistant.d.ts +28 -0
- package/dist/ai-assistant.d.ts.map +1 -0
- package/dist/ai-assistant.js +886 -0
- package/dist/ai-chat.cjs +1165 -0
- package/dist/ai-chat.d.ts +56 -0
- package/dist/ai-chat.d.ts.map +1 -0
- package/dist/ai-chat.js +1141 -0
- package/dist/ai-code.cjs +1866 -0
- package/dist/ai-code.d.ts +58 -0
- package/dist/ai-code.d.ts.map +1 -0
- package/dist/ai-code.js +1841 -0
- package/dist/ai-model-selector-navigation-bar.cjs +59 -0
- package/dist/ai-model-selector-navigation-bar.d.ts +15 -0
- package/dist/ai-model-selector-navigation-bar.d.ts.map +1 -0
- package/dist/ai-model-selector-navigation-bar.js +37 -0
- package/dist/ai-models.cjs +41 -0
- package/dist/ai-models.d.ts +15 -0
- package/dist/ai-models.d.ts.map +1 -0
- package/dist/ai-models.js +19 -0
- package/dist/ai-playground.cjs +1110 -0
- package/dist/ai-playground.d.ts +67 -0
- package/dist/ai-playground.d.ts.map +1 -0
- package/dist/ai-playground.js +1088 -0
- package/dist/ai-tools.cjs +1043 -0
- package/dist/ai-tools.d.ts +23 -0
- package/dist/ai-tools.d.ts.map +1 -0
- package/dist/ai-tools.js +1022 -0
- package/dist/ai-vision.cjs +1831 -0
- package/dist/ai-vision.d.ts +74 -0
- package/dist/ai-vision.d.ts.map +1 -0
- package/dist/ai-vision.js +1810 -0
- package/dist/ai-voice-settings.cjs +1511 -0
- package/dist/ai-voice-settings.d.ts +100 -0
- package/dist/ai-voice-settings.d.ts.map +1 -0
- package/dist/ai-voice-settings.js +1478 -0
- package/dist/ai-voice.cjs +1522 -0
- package/dist/ai-voice.d.ts +51 -0
- package/dist/ai-voice.d.ts.map +1 -0
- package/dist/ai-voice.js +1501 -0
- package/dist/alert.cjs +13 -142
- package/dist/alert.js +14 -143
- package/dist/android.cjs +127 -0
- package/dist/android.d.ts +19 -0
- package/dist/android.d.ts.map +1 -0
- package/dist/android.js +104 -0
- package/dist/animated-background.cjs +8830 -0
- package/dist/animated-background.d.ts +103 -0
- package/dist/animated-background.d.ts.map +1 -0
- package/dist/animated-background.js +8824 -0
- package/dist/animated-beam.cjs +8438 -0
- package/dist/animated-beam.d.ts +15 -0
- package/dist/animated-beam.d.ts.map +1 -0
- package/dist/animated-beam.js +8417 -0
- package/dist/animated-cursor.cjs +269 -0
- package/dist/animated-cursor.d.ts +71 -0
- package/dist/animated-cursor.d.ts.map +1 -0
- package/dist/animated-cursor.js +264 -0
- package/dist/animated-icon.cjs +8927 -0
- package/dist/animated-icon.d.ts +119 -0
- package/dist/animated-icon.d.ts.map +1 -0
- package/dist/animated-icon.js +8902 -0
- package/dist/animated-list.cjs +9226 -0
- package/dist/animated-list.d.ts +126 -0
- package/dist/animated-list.d.ts.map +1 -0
- package/dist/animated-list.js +9201 -0
- package/dist/animated-number.cjs +8773 -0
- package/dist/animated-number.d.ts +127 -0
- package/dist/animated-number.d.ts.map +1 -0
- package/dist/animated-number.js +8767 -0
- package/dist/animated-testimonials.cjs +8653 -0
- package/dist/animated-testimonials.d.ts +17 -0
- package/dist/animated-testimonials.d.ts.map +1 -0
- package/dist/animated-testimonials.js +8632 -0
- package/dist/animated-text.cjs +8914 -0
- package/dist/animated-text.d.ts +65 -0
- package/dist/animated-text.d.ts.map +1 -0
- package/dist/animated-text.js +8890 -0
- package/dist/animated-tooltip.cjs +8624 -0
- package/dist/animated-tooltip.d.ts +9 -0
- package/dist/animated-tooltip.d.ts.map +1 -0
- package/dist/animated-tooltip.js +8603 -0
- package/dist/announcement.cjs +465 -0
- package/dist/announcement.d.ts +9 -0
- package/dist/announcement.d.ts.map +1 -0
- package/dist/announcement.js +443 -0
- package/dist/app-switcher-navigation-bar.cjs +470 -0
- package/dist/app-switcher-navigation-bar.d.ts +15 -0
- package/dist/app-switcher-navigation-bar.d.ts.map +1 -0
- package/dist/app-switcher-navigation-bar.js +448 -0
- package/dist/apple-cards-carousel.cjs +9356 -0
- package/dist/apple-cards-carousel.d.ts +36 -0
- package/dist/apple-cards-carousel.d.ts.map +1 -0
- package/dist/apple-cards-carousel.js +9334 -0
- package/dist/apple-hello-effect.cjs +8380 -0
- package/dist/apple-hello-effect.d.ts +8 -0
- package/dist/apple-hello-effect.d.ts.map +1 -0
- package/dist/apple-hello-effect.js +8359 -0
- package/dist/auth.cjs +6 -5
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +6 -5
- package/dist/badge.cjs +28 -164
- package/dist/badge.d.ts +2 -5
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +29 -165
- package/dist/bank.d.ts +31 -31
- package/dist/bank.d.ts.map +1 -1
- package/dist/banner.cjs +78 -0
- package/dist/banner.d.ts +20 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/banner.js +55 -0
- package/dist/breadcrumb-and-filters-navigation-bar.cjs +51 -0
- package/dist/breadcrumb-and-filters-navigation-bar.d.ts +10 -0
- package/dist/breadcrumb-and-filters-navigation-bar.d.ts.map +1 -0
- package/dist/breadcrumb-and-filters-navigation-bar.js +29 -0
- package/dist/breadcrumb-navigation-bar.cjs +37 -0
- package/dist/breadcrumb-navigation-bar.d.ts +10 -0
- package/dist/breadcrumb-navigation-bar.d.ts.map +1 -0
- package/dist/breadcrumb-navigation-bar.js +15 -0
- package/dist/button.cjs +21 -150
- package/dist/button.d.ts +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +21 -150
- package/dist/calendar.cjs +55 -0
- package/dist/calendar.d.ts +9 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +53 -0
- package/dist/centered-logo-navigation-bar.cjs +37 -0
- package/dist/centered-logo-navigation-bar.d.ts +15 -0
- package/dist/centered-logo-navigation-bar.d.ts.map +1 -0
- package/dist/centered-logo-navigation-bar.js +15 -0
- package/dist/chart.cjs +266 -0
- package/dist/chart.d.ts +52 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +238 -0
- package/dist/choicebox.cjs +77 -0
- package/dist/choicebox.d.ts +15 -0
- package/dist/choicebox.d.ts.map +1 -0
- package/dist/choicebox.js +55 -0
- package/dist/chrome.cjs +36 -30
- package/dist/chrome.d.ts.map +1 -1
- package/dist/chrome.js +37 -31
- package/dist/code-block.cjs +871 -0
- package/dist/code-block.d.ts +38 -0
- package/dist/code-block.d.ts.map +1 -0
- package/dist/code-block.js +849 -0
- package/dist/code-compare.cjs +1714 -0
- package/dist/code-compare.d.ts +46 -0
- package/dist/code-compare.d.ts.map +1 -0
- package/dist/code-compare.js +1692 -0
- package/dist/code-diff.cjs +1073 -0
- package/dist/code-diff.d.ts +42 -0
- package/dist/code-diff.d.ts.map +1 -0
- package/dist/code-diff.js +1051 -0
- package/dist/code-editor.cjs +641 -0
- package/dist/code-editor.d.ts +23 -0
- package/dist/code-editor.d.ts.map +1 -0
- package/dist/code-editor.js +616 -0
- package/dist/code-explorer.cjs +729 -0
- package/dist/code-explorer.d.ts +41 -0
- package/dist/code-explorer.d.ts.map +1 -0
- package/dist/code-explorer.js +707 -0
- package/dist/code-preview.cjs +1349 -0
- package/dist/code-preview.d.ts +38 -0
- package/dist/code-preview.d.ts.map +1 -0
- package/dist/code-preview.js +1327 -0
- package/dist/code-snippet.cjs +920 -0
- package/dist/code-snippet.d.ts +48 -0
- package/dist/code-snippet.d.ts.map +1 -0
- package/dist/code-snippet.js +897 -0
- package/dist/code-tabs.cjs +76 -0
- package/dist/code-tabs.d.ts +12 -0
- package/dist/code-tabs.d.ts.map +1 -0
- package/dist/code-tabs.js +54 -0
- package/dist/code-terminal.cjs +894 -0
- package/dist/code-terminal.d.ts +48 -0
- package/dist/code-terminal.d.ts.map +1 -0
- package/dist/code-terminal.js +872 -0
- package/dist/collaboration-navigation-bar.cjs +49 -0
- package/dist/collaboration-navigation-bar.d.ts +11 -0
- package/dist/collaboration-navigation-bar.d.ts.map +1 -0
- package/dist/collaboration-navigation-bar.js +27 -0
- package/dist/collapsible.cjs +34 -155
- package/dist/collapsible.d.ts +2 -2
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.js +34 -155
- package/dist/color-mode.d.ts +1 -1
- package/dist/color-mode.d.ts.map +1 -1
- package/dist/color-picker.cjs +516 -0
- package/dist/color-picker.d.ts +10 -0
- package/dist/color-picker.d.ts.map +1 -0
- package/dist/color-picker.js +495 -0
- package/dist/combobox.cjs +488 -0
- package/dist/combobox.d.ts +14 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.js +466 -0
- package/dist/communication-navigation-bar.cjs +438 -0
- package/dist/communication-navigation-bar.d.ts +7 -0
- package/dist/communication-navigation-bar.d.ts.map +1 -0
- package/dist/communication-navigation-bar.js +416 -0
- package/dist/company-profile.cjs +46 -0
- package/dist/company-profile.d.ts +10 -0
- package/dist/company-profile.d.ts.map +1 -0
- package/dist/company-profile.js +44 -0
- package/dist/comparison.cjs +60 -0
- package/dist/comparison.d.ts +16 -0
- package/dist/comparison.d.ts.map +1 -0
- package/dist/comparison.js +38 -0
- package/dist/context-switcher-navigation-bar.cjs +51 -0
- package/dist/context-switcher-navigation-bar.d.ts +10 -0
- package/dist/context-switcher-navigation-bar.d.ts.map +1 -0
- package/dist/context-switcher-navigation-bar.js +29 -0
- package/dist/credit-card.cjs +77 -0
- package/dist/credit-card.d.ts +11 -0
- package/dist/credit-card.d.ts.map +1 -0
- package/dist/credit-card.js +55 -0
- package/dist/crypto-screener.cjs +43 -0
- package/dist/crypto-screener.d.ts +4 -0
- package/dist/crypto-screener.d.ts.map +1 -0
- package/dist/crypto-screener.js +41 -0
- package/dist/cursor.cjs +71 -0
- package/dist/cursor.d.ts +9 -0
- package/dist/cursor.d.ts.map +1 -0
- package/dist/cursor.js +49 -0
- package/dist/dashboard-navigation-bar.cjs +441 -0
- package/dist/dashboard-navigation-bar.d.ts +11 -0
- package/dist/dashboard-navigation-bar.d.ts.map +1 -0
- package/dist/dashboard-navigation-bar.js +419 -0
- package/dist/dialog-stack.cjs +460 -0
- package/dist/dialog-stack.d.ts +13 -0
- package/dist/dialog-stack.d.ts.map +1 -0
- package/dist/dialog-stack.js +438 -0
- package/dist/dialog.cjs +12 -11
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +12 -11
- package/dist/direction.cjs +26 -0
- package/dist/direction.d.ts +20 -0
- package/dist/direction.d.ts.map +1 -0
- package/dist/direction.js +23 -0
- package/dist/dock.cjs +8675 -0
- package/dist/dock.d.ts +20 -0
- package/dist/dock.d.ts.map +1 -0
- package/dist/dock.js +8653 -0
- package/dist/drawer.d.ts +6 -6
- package/dist/drawer.d.ts.map +1 -1
- package/dist/dropzone.cjs +116 -0
- package/dist/dropzone.d.ts +11 -0
- package/dist/dropzone.d.ts.map +1 -0
- package/dist/dropzone.js +94 -0
- package/dist/e-commerce-navigation-bar.cjs +442 -0
- package/dist/e-commerce-navigation-bar.d.ts +12 -0
- package/dist/e-commerce-navigation-bar.d.ts.map +1 -0
- package/dist/e-commerce-navigation-bar.js +420 -0
- package/dist/editor.cjs +497 -0
- package/dist/editor.d.ts +9 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +475 -0
- package/dist/empty.cjs +117 -0
- package/dist/empty.d.ts +18 -0
- package/dist/empty.d.ts.map +1 -0
- package/dist/empty.js +110 -0
- package/dist/engine.cjs +91 -0
- package/dist/engine.js +86 -0
- package/dist/field.cjs +2 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +3 -2
- package/dist/financials.cjs +66 -0
- package/dist/financials.d.ts +12 -0
- package/dist/financials.d.ts.map +1 -0
- package/dist/financials.js +64 -0
- package/dist/forex-screener.cjs +44 -0
- package/dist/forex-screener.d.ts +4 -0
- package/dist/forex-screener.d.ts.map +1 -0
- package/dist/forex-screener.js +42 -0
- package/dist/gantt.cjs +65 -0
- package/dist/gantt.d.ts +13 -0
- package/dist/gantt.d.ts.map +1 -0
- package/dist/gantt.js +43 -0
- package/dist/grid-pattern.cjs +327 -0
- package/dist/grid-pattern.d.ts +111 -0
- package/dist/grid-pattern.d.ts.map +1 -0
- package/dist/grid-pattern.js +304 -0
- package/dist/hooks/use-mobile.cjs +22 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/iam.d.ts.map +1 -1
- package/dist/icon-button.cjs +13 -142
- package/dist/icon-button.js +14 -143
- package/dist/icon-navigation-bar.cjs +48 -0
- package/dist/icon-navigation-bar.d.ts +11 -0
- package/dist/icon-navigation-bar.d.ts.map +1 -0
- package/dist/icon-navigation-bar.js +26 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/image-crop.cjs +482 -0
- package/dist/image-crop.d.ts +9 -0
- package/dist/image-crop.d.ts.map +1 -0
- package/dist/image-crop.js +460 -0
- package/dist/image-zoom.cjs +77 -0
- package/dist/image-zoom.d.ts +7 -0
- package/dist/image-zoom.d.ts.map +1 -0
- package/dist/image-zoom.js +55 -0
- package/dist/image.cjs +15 -143
- package/dist/image.d.ts.map +1 -1
- package/dist/image.js +16 -144
- package/dist/index.cjs +30274 -1201
- package/dist/index.d.ts +121 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30006 -1220
- package/dist/ink.cjs +17 -0
- package/dist/ink.d.ts.map +1 -1
- package/dist/ink.js +15 -0
- package/dist/input-otp.cjs +72 -0
- package/dist/input-otp.d.ts +35 -0
- package/dist/input-otp.d.ts.map +1 -0
- package/dist/input-otp.js +47 -0
- package/dist/input.d.ts +7 -7
- package/dist/input.d.ts.map +1 -1
- package/dist/iphone-15-pro.cjs +61 -0
- package/dist/iphone-15-pro.d.ts +9 -0
- package/dist/iphone-15-pro.d.ts.map +1 -0
- package/dist/iphone-15-pro.js +39 -0
- package/dist/item.cjs +215 -0
- package/dist/item.d.ts +41 -0
- package/dist/item.d.ts.map +1 -0
- package/dist/item.js +200 -0
- package/dist/kanban.cjs +1354 -0
- package/dist/kanban.d.ts +37 -0
- package/dist/kanban.d.ts.map +1 -0
- package/dist/kanban.js +1330 -0
- package/dist/kbd.cjs +40 -0
- package/dist/kbd.d.ts +4 -0
- package/dist/kbd.d.ts.map +1 -0
- package/dist/kbd.js +37 -0
- package/dist/limelight-nav-navigation-bar.cjs +51 -0
- package/dist/limelight-nav-navigation-bar.d.ts +10 -0
- package/dist/limelight-nav-navigation-bar.d.ts.map +1 -0
- package/dist/limelight-nav-navigation-bar.js +29 -0
- package/dist/limelight-nav.cjs +570 -0
- package/dist/limelight-nav.d.ts +10 -0
- package/dist/limelight-nav.d.ts.map +1 -0
- package/dist/limelight-nav.js +549 -0
- package/dist/link.cjs +29 -152
- package/dist/link.d.ts +1 -1
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +30 -153
- package/dist/list.cjs +35 -0
- package/dist/list.d.ts +5 -0
- package/dist/list.d.ts.map +1 -0
- package/dist/list.js +12 -0
- package/dist/lux.config.d.ts +88 -88
- package/dist/lux.config.d.ts.map +1 -1
- package/dist/magnetic.cjs +63 -0
- package/dist/magnetic.d.ts +8 -0
- package/dist/magnetic.d.ts.map +1 -0
- package/dist/magnetic.js +41 -0
- package/dist/market-overview.cjs +102 -0
- package/dist/market-overview.d.ts +4 -0
- package/dist/market-overview.d.ts.map +1 -0
- package/dist/market-overview.js +100 -0
- package/dist/marquee.cjs +67 -0
- package/dist/marquee.d.ts +10 -0
- package/dist/marquee.d.ts.map +1 -0
- package/dist/marquee.js +45 -0
- package/dist/menu-dock.cjs +64 -0
- package/dist/menu-dock.d.ts +14 -0
- package/dist/menu-dock.d.ts.map +1 -0
- package/dist/menu-dock.js +42 -0
- package/dist/menu.d.ts.map +1 -1
- package/dist/menubar.cjs +116 -0
- package/dist/menubar.d.ts +30 -0
- package/dist/menubar.d.ts.map +1 -0
- package/dist/menubar.js +61 -0
- package/dist/message-dock.cjs +480 -0
- package/dist/message-dock.d.ts +15 -0
- package/dist/message-dock.d.ts.map +1 -0
- package/dist/message-dock.js +458 -0
- package/dist/mini-calendar.cjs +505 -0
- package/dist/mini-calendar.d.ts +10 -0
- package/dist/mini-calendar.d.ts.map +1 -0
- package/dist/mini-calendar.js +483 -0
- package/dist/minimal-tiptap.cjs +48 -0
- package/dist/minimal-tiptap.d.ts +8 -0
- package/dist/minimal-tiptap.d.ts.map +1 -0
- package/dist/minimal-tiptap.js +26 -0
- package/dist/motion-highlight.cjs +71 -0
- package/dist/motion-highlight.d.ts +7 -0
- package/dist/motion-highlight.d.ts.map +1 -0
- package/dist/motion-highlight.js +49 -0
- package/dist/music-player.cjs +810 -0
- package/dist/music-player.d.ts +19 -0
- package/dist/music-player.d.ts.map +1 -0
- package/dist/music-player.js +788 -0
- package/dist/native-select.cjs +82 -0
- package/dist/native-select.d.ts +9 -0
- package/dist/native-select.d.ts.map +1 -0
- package/dist/native-select.js +58 -0
- package/dist/news-timeline.cjs +42 -0
- package/dist/news-timeline.d.ts +4 -0
- package/dist/news-timeline.d.ts.map +1 -0
- package/dist/news-timeline.js +40 -0
- package/dist/order-entry.cjs +141 -0
- package/dist/order-entry.d.ts +15 -0
- package/dist/order-entry.d.ts.map +1 -0
- package/dist/order-entry.js +136 -0
- package/dist/orders-history.cjs +83 -0
- package/dist/orders-history.d.ts +18 -0
- package/dist/orders-history.d.ts.map +1 -0
- package/dist/orders-history.js +78 -0
- package/dist/pagination.cjs +132 -0
- package/dist/pagination.d.ts +29 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +104 -0
- package/dist/particles-background.cjs +159 -0
- package/dist/particles-background.d.ts +19 -0
- package/dist/particles-background.d.ts.map +1 -0
- package/dist/particles-background.js +157 -0
- package/dist/pill.cjs +80 -0
- package/dist/pill.d.ts +21 -0
- package/dist/pill.d.ts.map +1 -0
- package/dist/pill.js +57 -0
- package/dist/pixel-image.cjs +71 -0
- package/dist/pixel-image.d.ts +8 -0
- package/dist/pixel-image.d.ts.map +1 -0
- package/dist/pixel-image.js +49 -0
- package/dist/popover.cjs +11 -9
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +11 -9
- package/dist/positions-list.cjs +98 -0
- package/dist/positions-list.d.ts +13 -0
- package/dist/positions-list.d.ts.map +1 -0
- package/dist/positions-list.js +93 -0
- package/dist/progress-circle.cjs +2 -1
- package/dist/progress-circle.d.ts.map +1 -1
- package/dist/progress-circle.js +2 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/pulse-animation.cjs +8741 -0
- package/dist/pulse-animation.d.ts +155 -0
- package/dist/pulse-animation.d.ts.map +1 -0
- package/dist/pulse-animation.js +8732 -0
- package/dist/qr-code.cjs +65 -0
- package/dist/qr-code.d.ts +21 -0
- package/dist/qr-code.d.ts.map +1 -0
- package/dist/qr-code.js +43 -0
- package/dist/radio.d.ts.map +1 -1
- package/dist/relative-time.cjs +88 -0
- package/dist/relative-time.d.ts +9 -0
- package/dist/relative-time.d.ts.map +1 -0
- package/dist/relative-time.js +66 -0
- package/dist/resizable.cjs +61 -0
- package/dist/resizable.d.ts +24 -0
- package/dist/resizable.d.ts.map +1 -0
- package/dist/resizable.js +37 -0
- package/dist/reveal-animation.cjs +8791 -0
- package/dist/reveal-animation.d.ts +134 -0
- package/dist/reveal-animation.d.ts.map +1 -0
- package/dist/reveal-animation.js +8779 -0
- package/dist/safari.cjs +90 -0
- package/dist/safari.d.ts +9 -0
- package/dist/safari.d.ts.map +1 -0
- package/dist/safari.js +68 -0
- package/dist/sandbox.cjs +94 -0
- package/dist/sandbox.d.ts +9 -0
- package/dist/sandbox.d.ts.map +1 -0
- package/dist/sandbox.js +72 -0
- package/dist/search-and-toggle-navigation-bar.cjs +51 -0
- package/dist/search-and-toggle-navigation-bar.d.ts +10 -0
- package/dist/search-and-toggle-navigation-bar.d.ts.map +1 -0
- package/dist/search-and-toggle-navigation-bar.js +29 -0
- package/dist/select.cjs +34 -160
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +34 -160
- package/dist/sidebar.cjs +1134 -0
- package/dist/sidebar.d.ts +80 -0
- package/dist/sidebar.d.ts.map +1 -0
- package/dist/sidebar.js +1090 -0
- package/dist/simple-navigation-bar.cjs +45 -0
- package/dist/simple-navigation-bar.d.ts +11 -0
- package/dist/simple-navigation-bar.d.ts.map +1 -0
- package/dist/simple-navigation-bar.js +23 -0
- package/dist/site/commerce/ui/conf.cjs +15 -0
- package/dist/site/commerce/ui/conf.d.ts +12 -0
- package/dist/site/commerce/ui/conf.d.ts.map +1 -0
- package/dist/site/commerce/ui/conf.js +13 -0
- package/dist/site/commerce/ui/context.cjs +280 -0
- package/dist/site/commerce/ui/context.d.ts +7 -0
- package/dist/site/commerce/ui/context.d.ts.map +1 -0
- package/dist/site/commerce/ui/context.js +276 -0
- package/dist/site/commerce/ui/store.cjs +205 -0
- package/dist/site/commerce/ui/store.d.ts +81 -0
- package/dist/site/commerce/ui/store.d.ts.map +1 -0
- package/dist/site/commerce/ui/store.js +203 -0
- package/dist/site/components/access-code-input.cjs +52 -0
- package/dist/site/components/access-code-input.d.ts +8 -0
- package/dist/site/components/access-code-input.d.ts.map +1 -0
- package/dist/site/components/access-code-input.js +50 -0
- package/dist/site/components/analytics.cjs +52 -0
- package/dist/site/components/analytics.d.ts +3 -0
- package/dist/site/components/analytics.d.ts.map +1 -0
- package/dist/site/components/analytics.js +46 -0
- package/dist/site/components/auth/callback.cjs +31 -0
- package/dist/site/components/auth/callback.d.ts +9 -0
- package/dist/site/components/auth/callback.d.ts.map +1 -0
- package/dist/site/components/auth/callback.js +29 -0
- package/dist/site/components/auth/login-panel.cjs +131 -0
- package/dist/site/components/auth/login-panel.css +4 -0
- package/dist/site/components/auth/login-panel.d.ts +12 -0
- package/dist/site/components/auth/login-panel.d.ts.map +1 -0
- package/dist/site/components/auth/login-panel.js +124 -0
- package/dist/site/components/auth/login.cjs +35 -0
- package/dist/site/components/auth/login.d.ts +13 -0
- package/dist/site/components/auth/login.d.ts.map +1 -0
- package/dist/site/components/auth/login.js +33 -0
- package/dist/site/components/auth/provider.cjs +20 -0
- package/dist/site/components/auth/provider.d.ts +6 -0
- package/dist/site/components/auth/provider.d.ts.map +1 -0
- package/dist/site/components/auth/provider.js +18 -0
- package/dist/site/components/auth/resume.cjs +15 -0
- package/dist/site/components/auth/resume.d.ts +4 -0
- package/dist/site/components/auth/resume.d.ts.map +1 -0
- package/dist/site/components/auth/resume.js +12 -0
- package/dist/site/components/auth/widget.cjs +63 -0
- package/dist/site/components/auth/widget.d.ts +13 -0
- package/dist/site/components/auth/widget.d.ts.map +1 -0
- package/dist/site/components/auth/widget.js +61 -0
- package/dist/site/components/back-button.cjs +36 -0
- package/dist/site/components/back-button.d.ts +17 -0
- package/dist/site/components/back-button.d.ts.map +1 -0
- package/dist/site/components/back-button.js +34 -0
- package/dist/site/components/chat-widget.cjs +67 -0
- package/dist/site/components/chat-widget.d.ts +12 -0
- package/dist/site/components/chat-widget.d.ts.map +1 -0
- package/dist/site/components/chat-widget.js +61 -0
- package/dist/site/components/commerce/bag-button.cjs +79 -0
- package/dist/site/components/commerce/bag-button.css +4 -0
- package/dist/site/components/commerce/bag-button.d.ts +16 -0
- package/dist/site/components/commerce/bag-button.d.ts.map +1 -0
- package/dist/site/components/commerce/bag-button.js +77 -0
- package/dist/site/components/commerce/buy-button.cjs +31 -0
- package/dist/site/components/commerce/buy-button.d.ts +11 -0
- package/dist/site/components/commerce/buy-button.d.ts.map +1 -0
- package/dist/site/components/commerce/buy-button.js +29 -0
- package/dist/site/components/commerce/checkout-button.cjs +116 -0
- package/dist/site/components/commerce/checkout-button.css +4 -0
- package/dist/site/components/commerce/checkout-button.d.ts +13 -0
- package/dist/site/components/commerce/checkout-button.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-button.js +114 -0
- package/dist/site/components/commerce/checkout-panel/cart-accordian.cjs +50 -0
- package/dist/site/components/commerce/checkout-panel/cart-accordian.d.ts +11 -0
- package/dist/site/components/commerce/checkout-panel/cart-accordian.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/cart-accordian.js +48 -0
- package/dist/site/components/commerce/checkout-panel/checkout-panel-props.cjs +2 -0
- package/dist/site/components/commerce/checkout-panel/checkout-panel-props.d.ts +8 -0
- package/dist/site/components/commerce/checkout-panel/checkout-panel-props.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/checkout-panel-props.js +1 -0
- package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.cjs +30 -0
- package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.d.ts +10 -0
- package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.js +28 -0
- package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +235 -0
- package/dist/site/components/commerce/checkout-panel/desktop-cp.css +132 -0
- package/dist/site/components/commerce/checkout-panel/desktop-cp.d.ts +5 -0
- package/dist/site/components/commerce/checkout-panel/desktop-cp.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/desktop-cp.js +229 -0
- package/dist/site/components/commerce/checkout-panel/index.cjs +502 -0
- package/dist/site/components/commerce/checkout-panel/index.css +132 -0
- package/dist/site/components/commerce/checkout-panel/index.d.ts +6 -0
- package/dist/site/components/commerce/checkout-panel/index.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/index.js +496 -0
- package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +295 -0
- package/dist/site/components/commerce/checkout-panel/mobile-cp.css +132 -0
- package/dist/site/components/commerce/checkout-panel/mobile-cp.d.ts +5 -0
- package/dist/site/components/commerce/checkout-panel/mobile-cp.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/mobile-cp.js +289 -0
- package/dist/site/components/commerce/checkout-panel/policy-links.cjs +25 -0
- package/dist/site/components/commerce/checkout-panel/policy-links.d.ts +6 -0
- package/dist/site/components/commerce/checkout-panel/policy-links.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/policy-links.js +19 -0
- package/dist/site/components/commerce/checkout-panel/steps-indicator.cjs +27 -0
- package/dist/site/components/commerce/checkout-panel/steps-indicator.d.ts +7 -0
- package/dist/site/components/commerce/checkout-panel/steps-indicator.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/steps-indicator.js +25 -0
- package/dist/site/components/commerce/checkout-panel/thank-you.cjs +25 -0
- package/dist/site/components/commerce/checkout-panel/thank-you.d.ts +5 -0
- package/dist/site/components/commerce/checkout-panel/thank-you.d.ts.map +1 -0
- package/dist/site/components/commerce/checkout-panel/thank-you.js +19 -0
- package/dist/site/components/commerce/desktop-bag-popup.cjs +72 -0
- package/dist/site/components/commerce/desktop-bag-popup.css +4 -0
- package/dist/site/components/commerce/desktop-bag-popup.d.ts +8 -0
- package/dist/site/components/commerce/desktop-bag-popup.d.ts.map +1 -0
- package/dist/site/components/commerce/desktop-bag-popup.js +70 -0
- package/dist/site/components/commerce/drawer/index.cjs +361 -0
- package/dist/site/components/commerce/drawer/index.css +132 -0
- package/dist/site/components/commerce/drawer/index.d.ts +4 -0
- package/dist/site/components/commerce/drawer/index.d.ts.map +1 -0
- package/dist/site/components/commerce/drawer/index.js +359 -0
- package/dist/site/components/commerce/drawer/micro.cjs +230 -0
- package/dist/site/components/commerce/drawer/micro.css +4 -0
- package/dist/site/components/commerce/drawer/micro.d.ts +8 -0
- package/dist/site/components/commerce/drawer/micro.d.ts.map +1 -0
- package/dist/site/components/commerce/drawer/micro.js +228 -0
- package/dist/site/components/commerce/drawer/shell.cjs +78 -0
- package/dist/site/components/commerce/drawer/shell.css +127 -0
- package/dist/site/components/commerce/drawer/shell.d.ts +9 -0
- package/dist/site/components/commerce/drawer/shell.d.ts.map +1 -0
- package/dist/site/components/commerce/drawer/shell.js +76 -0
- package/dist/site/components/contact-dialog/contact-form.cjs +70 -0
- package/dist/site/components/contact-dialog/contact-form.d.ts +13 -0
- package/dist/site/components/contact-dialog/contact-form.d.ts.map +1 -0
- package/dist/site/components/contact-dialog/contact-form.js +64 -0
- package/dist/site/components/contact-dialog/disclaimer.cjs +15 -0
- package/dist/site/components/contact-dialog/disclaimer.d.ts +4 -0
- package/dist/site/components/contact-dialog/disclaimer.d.ts.map +1 -0
- package/dist/site/components/contact-dialog/disclaimer.js +13 -0
- package/dist/site/components/contact-dialog/index.cjs +113 -0
- package/dist/site/components/contact-dialog/index.d.ts +5 -0
- package/dist/site/components/contact-dialog/index.d.ts.map +1 -0
- package/dist/site/components/contact-dialog/index.js +107 -0
- package/dist/site/components/copyright.cjs +24 -0
- package/dist/site/components/copyright.d.ts +6 -0
- package/dist/site/components/copyright.d.ts.map +1 -0
- package/dist/site/components/copyright.js +22 -0
- package/dist/site/components/drawer-margin.cjs +35 -0
- package/dist/site/components/drawer-margin.d.ts +6 -0
- package/dist/site/components/drawer-margin.d.ts.map +1 -0
- package/dist/site/components/drawer-margin.js +33 -0
- package/dist/site/components/footer-nav.cjs +22 -0
- package/dist/site/components/footer-nav.d.ts +9 -0
- package/dist/site/components/footer-nav.d.ts.map +1 -0
- package/dist/site/components/footer-nav.js +20 -0
- package/dist/site/components/footer.cjs +132 -0
- package/dist/site/components/footer.d.ts +9 -0
- package/dist/site/components/footer.d.ts.map +1 -0
- package/dist/site/components/footer.js +126 -0
- package/dist/site/components/header/desktop-nav-menu.cjs +170 -0
- package/dist/site/components/header/desktop-nav-menu.d.ts +9 -0
- package/dist/site/components/header/desktop-nav-menu.d.ts.map +1 -0
- package/dist/site/components/header/desktop-nav-menu.js +145 -0
- package/dist/site/components/header/desktop.cjs +405 -0
- package/dist/site/components/header/desktop.css +4 -0
- package/dist/site/components/header/desktop.d.ts +13 -0
- package/dist/site/components/header/desktop.d.ts.map +1 -0
- package/dist/site/components/header/desktop.js +381 -0
- package/dist/site/components/header/index.cjs +717 -0
- package/dist/site/components/header/index.css +132 -0
- package/dist/site/components/header/index.d.ts +11 -0
- package/dist/site/components/header/index.d.ts.map +1 -0
- package/dist/site/components/header/index.js +693 -0
- package/dist/site/components/header/mobile-bag-drawer.cjs +114 -0
- package/dist/site/components/header/mobile-bag-drawer.css +4 -0
- package/dist/site/components/header/mobile-bag-drawer.d.ts +9 -0
- package/dist/site/components/header/mobile-bag-drawer.d.ts.map +1 -0
- package/dist/site/components/header/mobile-bag-drawer.js +112 -0
- package/dist/site/components/header/mobile-menu-toggle-button.cjs +30 -0
- package/dist/site/components/header/mobile-menu-toggle-button.d.ts +8 -0
- package/dist/site/components/header/mobile-menu-toggle-button.d.ts.map +1 -0
- package/dist/site/components/header/mobile-menu-toggle-button.js +28 -0
- package/dist/site/components/header/mobile-nav-menu-ai.cjs +66 -0
- package/dist/site/components/header/mobile-nav-menu-ai.css +132 -0
- package/dist/site/components/header/mobile-nav-menu-ai.d.ts +7 -0
- package/dist/site/components/header/mobile-nav-menu-ai.d.ts.map +1 -0
- package/dist/site/components/header/mobile-nav-menu-ai.js +60 -0
- package/dist/site/components/header/mobile-nav-menu-item.cjs +98 -0
- package/dist/site/components/header/mobile-nav-menu-item.css +132 -0
- package/dist/site/components/header/mobile-nav-menu-item.d.ts +8 -0
- package/dist/site/components/header/mobile-nav-menu-item.d.ts.map +1 -0
- package/dist/site/components/header/mobile-nav-menu-item.js +92 -0
- package/dist/site/components/header/mobile-nav-menu.cjs +175 -0
- package/dist/site/components/header/mobile-nav-menu.css +132 -0
- package/dist/site/components/header/mobile-nav-menu.d.ts +14 -0
- package/dist/site/components/header/mobile-nav-menu.d.ts.map +1 -0
- package/dist/site/components/header/mobile-nav-menu.js +169 -0
- package/dist/site/components/header/mobile.cjs +447 -0
- package/dist/site/components/header/mobile.css +132 -0
- package/dist/site/components/header/mobile.d.ts +12 -0
- package/dist/site/components/header/mobile.d.ts.map +1 -0
- package/dist/site/components/header/mobile.js +441 -0
- package/dist/site/components/header/theme-toggle.cjs +28 -0
- package/dist/site/components/header/theme-toggle.d.ts +4 -0
- package/dist/site/components/header/theme-toggle.d.ts.map +1 -0
- package/dist/site/components/header/theme-toggle.js +26 -0
- package/dist/site/components/icons/avatar.cjs +12 -0
- package/dist/site/components/icons/avatar.d.ts +5 -0
- package/dist/site/components/icons/avatar.d.ts.map +1 -0
- package/dist/site/components/icons/avatar.js +10 -0
- package/dist/site/components/icons/bag-icon.cjs +9 -0
- package/dist/site/components/icons/bag-icon.d.ts +5 -0
- package/dist/site/components/icons/bag-icon.d.ts.map +1 -0
- package/dist/site/components/icons/bag-icon.js +7 -0
- package/dist/site/components/icons/index.cjs +39 -0
- package/dist/site/components/icons/index.css +4 -0
- package/dist/site/components/icons/index.d.ts +6 -0
- package/dist/site/components/icons/index.d.ts.map +1 -0
- package/dist/site/components/icons/index.js +33 -0
- package/dist/site/components/icons/left-arrow.cjs +9 -0
- package/dist/site/components/icons/left-arrow.d.ts +5 -0
- package/dist/site/components/icons/left-arrow.d.ts.map +1 -0
- package/dist/site/components/icons/left-arrow.js +7 -0
- package/dist/site/components/icons/right-arrow.cjs +9 -0
- package/dist/site/components/icons/right-arrow.d.ts +5 -0
- package/dist/site/components/icons/right-arrow.d.ts.map +1 -0
- package/dist/site/components/icons/right-arrow.js +7 -0
- package/dist/site/components/icons/social-icon.cjs +24 -0
- package/dist/site/components/icons/social-icon.css +4 -0
- package/dist/site/components/icons/social-icon.d.ts +10 -0
- package/dist/site/components/icons/social-icon.d.ts.map +1 -0
- package/dist/site/components/icons/social-icon.js +22 -0
- package/dist/site/components/index.cjs +2004 -0
- package/dist/site/components/index.css +132 -0
- package/dist/site/components/index.d.ts +24 -0
- package/dist/site/components/index.d.ts.map +1 -0
- package/dist/site/components/index.js +1952 -0
- package/dist/site/components/logo.cjs +37 -0
- package/dist/site/components/logo.d.ts +23 -0
- package/dist/site/components/logo.d.ts.map +1 -0
- package/dist/site/components/logo.js +31 -0
- package/dist/site/components/main.cjs +22 -0
- package/dist/site/components/main.d.ts +9 -0
- package/dist/site/components/main.d.ts.map +1 -0
- package/dist/site/components/main.js +20 -0
- package/dist/site/components/mini-chart/index.cjs +94 -0
- package/dist/site/components/mini-chart/index.d.ts +3 -0
- package/dist/site/components/mini-chart/index.d.ts.map +1 -0
- package/dist/site/components/mini-chart/index.js +92 -0
- package/dist/site/components/mini-chart/mini-chart-props.cjs +2 -0
- package/dist/site/components/mini-chart/mini-chart-props.d.ts +33 -0
- package/dist/site/components/mini-chart/mini-chart-props.d.ts.map +1 -0
- package/dist/site/components/mini-chart/mini-chart-props.js +1 -0
- package/dist/site/components/mini-chart/mini-chart.cjs +80 -0
- package/dist/site/components/mini-chart/mini-chart.d.ts +5 -0
- package/dist/site/components/mini-chart/mini-chart.d.ts.map +1 -0
- package/dist/site/components/mini-chart/mini-chart.js +78 -0
- package/dist/site/components/mini-chart/wrapper.cjs +94 -0
- package/dist/site/components/mini-chart/wrapper.d.ts +7 -0
- package/dist/site/components/mini-chart/wrapper.d.ts.map +1 -0
- package/dist/site/components/mini-chart/wrapper.js +92 -0
- package/dist/site/components/not-found/index.cjs +844 -0
- package/dist/site/components/not-found/index.css +132 -0
- package/dist/site/components/not-found/index.d.ts +8 -0
- package/dist/site/components/not-found/index.d.ts.map +1 -0
- package/dist/site/components/not-found/index.js +820 -0
- package/dist/site/components/security/index.cjs +857 -0
- package/dist/site/components/security/index.css +132 -0
- package/dist/site/components/security/index.d.ts +9 -0
- package/dist/site/components/security/index.d.ts.map +1 -0
- package/dist/site/components/security/index.js +833 -0
- package/dist/site/components/tooltip.cjs +28 -0
- package/dist/site/components/tooltip.d.ts +11 -0
- package/dist/site/components/tooltip.d.ts.map +1 -0
- package/dist/site/components/tooltip.js +26 -0
- package/dist/site/next/analytics/fpixel.cjs +14 -0
- package/dist/site/next/analytics/fpixel.d.ts +9 -0
- package/dist/site/next/analytics/fpixel.d.ts.map +1 -0
- package/dist/site/next/analytics/fpixel.js +10 -0
- package/dist/site/next/analytics/google-analytics.cjs +8 -0
- package/dist/site/next/analytics/google-analytics.d.ts +8 -0
- package/dist/site/next/analytics/google-analytics.d.ts.map +1 -0
- package/dist/site/next/analytics/google-analytics.js +6 -0
- package/dist/site/next/analytics/index.cjs +57 -0
- package/dist/site/next/analytics/index.d.ts +4 -0
- package/dist/site/next/analytics/index.d.ts.map +1 -0
- package/dist/site/next/analytics/index.js +49 -0
- package/dist/site/next/analytics/pixel-analytics.cjs +59 -0
- package/dist/site/next/analytics/pixel-analytics.d.ts +5 -0
- package/dist/site/next/analytics/pixel-analytics.d.ts.map +1 -0
- package/dist/site/next/analytics/pixel-analytics.js +52 -0
- package/dist/site/next/font/font-desc.cjs +2 -0
- package/dist/site/next/font/font-desc.d.ts +19 -0
- package/dist/site/next/font/font-desc.d.ts.map +1 -0
- package/dist/site/next/font/font-desc.js +1 -0
- package/dist/site/next/font/fonts.cjs +42 -0
- package/dist/site/next/font/fonts.d.ts +4 -0
- package/dist/site/next/font/fonts.d.ts.map +1 -0
- package/dist/site/next/font/fonts.js +40 -0
- package/dist/site/next/font/get-app-router-font-classes.cjs +96 -0
- package/dist/site/next/font/get-app-router-font-classes.d.ts +15 -0
- package/dist/site/next/font/get-app-router-font-classes.d.ts.map +1 -0
- package/dist/site/next/font/get-app-router-font-classes.js +90 -0
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.cjs +90 -0
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.d.ts +8 -0
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.d.ts.map +1 -0
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.js +84 -0
- package/dist/site/next/font/next-font-desc.cjs +2 -0
- package/dist/site/next/font/next-font-desc.d.ts +20 -0
- package/dist/site/next/font/next-font-desc.d.ts.map +1 -0
- package/dist/site/next/font/next-font-desc.js +1 -0
- package/dist/site/next/font/pages-router-font-vars.cjs +100 -0
- package/dist/site/next/font/pages-router-font-vars.d.ts +3 -0
- package/dist/site/next/font/pages-router-font-vars.d.ts.map +1 -0
- package/dist/site/next/font/pages-router-font-vars.js +94 -0
- package/dist/site/next/head-metadata/index.cjs +139 -0
- package/dist/site/next/head-metadata/index.d.ts +12 -0
- package/dist/site/next/head-metadata/index.d.ts.map +1 -0
- package/dist/site/next/head-metadata/index.js +129 -0
- package/dist/site/next/head-metadata/next-metadata.cjs +2 -0
- package/dist/site/next/head-metadata/next-metadata.d.ts +48 -0
- package/dist/site/next/head-metadata/next-metadata.d.ts.map +1 -0
- package/dist/site/next/head-metadata/next-metadata.js +1 -0
- package/dist/site/next/index.cjs +147 -0
- package/dist/site/next/index.d.ts +3 -0
- package/dist/site/next/index.d.ts.map +1 -0
- package/dist/site/next/index.js +140 -0
- package/dist/site/next/middleware/determine-device-mw.cjs +17 -0
- package/dist/site/next/middleware/determine-device-mw.d.ts +4 -0
- package/dist/site/next/middleware/determine-device-mw.d.ts.map +1 -0
- package/dist/site/next/middleware/determine-device-mw.js +15 -0
- package/dist/site/root-layout/index.cjs +1574 -0
- package/dist/site/root-layout/index.css +374 -0
- package/dist/site/root-layout/index.d.ts +20 -0
- package/dist/site/root-layout/index.d.ts.map +1 -0
- package/dist/site/root-layout/index.js +1547 -0
- package/dist/site/site-def/footer/community.cjs +77 -0
- package/dist/site/site-def/footer/community.css +4 -0
- package/dist/site/site-def/footer/community.d.ts +13 -0
- package/dist/site/site-def/footer/community.d.ts.map +1 -0
- package/dist/site/site-def/footer/community.js +75 -0
- package/dist/site/site-def/footer/company.cjs +40 -0
- package/dist/site/site-def/footer/company.d.ts +23 -0
- package/dist/site/site-def/footer/company.d.ts.map +1 -0
- package/dist/site/site-def/footer/company.js +38 -0
- package/dist/site/site-def/footer/ecosystem.cjs +40 -0
- package/dist/site/site-def/footer/ecosystem.d.ts +11 -0
- package/dist/site/site-def/footer/ecosystem.d.ts.map +1 -0
- package/dist/site/site-def/footer/ecosystem.js +38 -0
- package/dist/site/site-def/footer/index.cjs +228 -0
- package/dist/site/site-def/footer/index.css +4 -0
- package/dist/site/site-def/footer/index.d.ts +16 -0
- package/dist/site/site-def/footer/index.d.ts.map +1 -0
- package/dist/site/site-def/footer/index.js +220 -0
- package/dist/site/site-def/footer/legal.cjs +24 -0
- package/dist/site/site-def/footer/legal.d.ts +5 -0
- package/dist/site/site-def/footer/legal.d.ts.map +1 -0
- package/dist/site/site-def/footer/legal.js +21 -0
- package/dist/site/site-def/footer/network.cjs +48 -0
- package/dist/site/site-def/footer/network.d.ts +11 -0
- package/dist/site/site-def/footer/network.d.ts.map +1 -0
- package/dist/site/site-def/footer/network.js +46 -0
- package/dist/site/site-def/index.cjs +627 -0
- package/dist/site/site-def/index.css +4 -0
- package/dist/site/site-def/index.d.ts +5 -0
- package/dist/site/site-def/index.d.ts.map +1 -0
- package/dist/site/site-def/index.js +624 -0
- package/dist/site/site-def/main-nav.cjs +393 -0
- package/dist/site/site-def/main-nav.d.ts +46 -0
- package/dist/site/site-def/main-nav.d.ts.map +1 -0
- package/dist/site/site-def/main-nav.js +391 -0
- package/dist/site/types/chatbot-config.cjs +2 -0
- package/dist/site/types/chatbot-config.d.ts +6 -0
- package/dist/site/types/chatbot-config.d.ts.map +1 -0
- package/dist/site/types/chatbot-config.js +1 -0
- package/dist/site/types/chatbot-suggested-question.cjs +2 -0
- package/dist/site/types/chatbot-suggested-question.d.ts +7 -0
- package/dist/site/types/chatbot-suggested-question.d.ts.map +1 -0
- package/dist/site/types/chatbot-suggested-question.js +1 -0
- package/dist/site/types/contact-info.cjs +2 -0
- package/dist/site/types/contact-info.d.ts +7 -0
- package/dist/site/types/contact-info.d.ts.map +1 -0
- package/dist/site/types/contact-info.js +1 -0
- package/dist/site/types/index.cjs +2 -0
- package/dist/site/types/index.d.ts +5 -0
- package/dist/site/types/index.d.ts.map +1 -0
- package/dist/site/types/index.js +1 -0
- package/dist/site/types/site-def.cjs +2 -0
- package/dist/site/types/site-def.d.ts +41 -0
- package/dist/site/types/site-def.d.ts.map +1 -0
- package/dist/site/types/site-def.js +1 -0
- package/dist/site/util/index.cjs +11 -0
- package/dist/site/util/index.d.ts +2 -0
- package/dist/site/util/index.d.ts.map +1 -0
- package/dist/site/util/index.js +9 -0
- package/dist/skeleton.cjs +14 -143
- package/dist/skeleton.d.ts +3 -42
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +15 -144
- package/dist/slider.d.ts +1 -0
- package/dist/slider.d.ts.map +1 -1
- package/dist/status-dashboard-navigation-bar.cjs +51 -0
- package/dist/status-dashboard-navigation-bar.d.ts +10 -0
- package/dist/status-dashboard-navigation-bar.d.ts.map +1 -0
- package/dist/status-dashboard-navigation-bar.js +29 -0
- package/dist/status.cjs +85 -0
- package/dist/status.d.ts +23 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/status.js +62 -0
- package/dist/stock-screener.cjs +44 -0
- package/dist/stock-screener.d.ts +4 -0
- package/dist/stock-screener.d.ts.map +1 -0
- package/dist/stock-screener.js +42 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +1 -3
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.js +1 -1
- package/dist/symbol-info.cjs +44 -0
- package/dist/symbol-info.d.ts +9 -0
- package/dist/symbol-info.d.ts.map +1 -0
- package/dist/symbol-info.js +42 -0
- package/dist/table.cjs +53 -167
- package/dist/table.d.ts +2 -2
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +53 -167
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tag.cjs +13 -142
- package/dist/tag.js +14 -143
- package/dist/tags.cjs +385 -0
- package/dist/tags.d.ts +13 -0
- package/dist/tags.d.ts.map +1 -0
- package/dist/tags.js +364 -0
- package/dist/team-switcher-navigation-bar.cjs +51 -0
- package/dist/team-switcher-navigation-bar.d.ts +10 -0
- package/dist/team-switcher-navigation-bar.d.ts.map +1 -0
- package/dist/team-switcher-navigation-bar.js +29 -0
- package/dist/technical-analysis.cjs +69 -0
- package/dist/technical-analysis.d.ts +13 -0
- package/dist/technical-analysis.d.ts.map +1 -0
- package/dist/technical-analysis.js +67 -0
- package/dist/terminal.cjs +372 -0
- package/dist/terminal.d.ts +21 -0
- package/dist/terminal.d.ts.map +1 -0
- package/dist/terminal.js +350 -0
- package/dist/ticker-tape.cjs +54 -0
- package/dist/ticker-tape.d.ts +4 -0
- package/dist/ticker-tape.d.ts.map +1 -0
- package/dist/ticker-tape.js +52 -0
- package/dist/ticker.cjs +66 -0
- package/dist/ticker.d.ts +10 -0
- package/dist/ticker.d.ts.map +1 -0
- package/dist/ticker.js +44 -0
- package/dist/timeline.cjs +317 -0
- package/dist/timeline.d.ts +20 -0
- package/dist/timeline.d.ts.map +1 -0
- package/dist/timeline.js +295 -0
- package/dist/toaster.d.ts +6 -3
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toggle.cjs +62 -0
- package/dist/toggle.d.ts +26 -0
- package/dist/toggle.d.ts.map +1 -0
- package/dist/toggle.js +57 -0
- package/dist/trading-panel.cjs +212 -0
- package/dist/trading-panel.d.ts +7 -0
- package/dist/trading-panel.d.ts.map +1 -0
- package/dist/trading-panel.js +207 -0
- package/dist/two-tier-navigation-bar.cjs +51 -0
- package/dist/two-tier-navigation-bar.d.ts +10 -0
- package/dist/two-tier-navigation-bar.d.ts.map +1 -0
- package/dist/two-tier-navigation-bar.js +29 -0
- package/dist/underline-navigation-bar.cjs +51 -0
- package/dist/underline-navigation-bar.d.ts +10 -0
- package/dist/underline-navigation-bar.d.ts.map +1 -0
- package/dist/underline-navigation-bar.js +29 -0
- package/dist/utils/cn.cjs +10 -0
- package/dist/utils/cn.js +1 -0
- package/dist/white-label.d.ts +5 -5
- package/dist/white-label.d.ts.map +1 -1
- package/dist/youtube-pip-player.cjs +489 -0
- package/dist/youtube-pip-player.d.ts +41 -0
- package/dist/youtube-pip-player.d.ts.map +1 -0
- package/dist/youtube-pip-player.js +466 -0
- package/package.json +826 -72
- package/src/3d-button.tsx +346 -0
- package/src/3d-card.tsx +271 -0
- package/src/3d-carousel.tsx +444 -0
- package/src/3d-grid.tsx +448 -0
- package/src/3d-marquee.tsx +422 -0
- package/src/3d-model-viewer.tsx +659 -0
- package/src/3d-pin.tsx +37 -0
- package/src/3d-scene.tsx +629 -0
- package/src/3d-text.tsx +442 -0
- package/src/advanced-chart.tsx +63 -0
- package/src/advanced-navigation-bar.tsx +83 -0
- package/src/ai-actions.tsx +60 -0
- package/src/ai-agents.tsx +1174 -0
- package/src/ai-assistant.tsx +227 -0
- package/src/ai-chat.tsx +554 -0
- package/src/ai-code.tsx +1331 -0
- package/src/ai-model-selector-navigation-bar.tsx +78 -0
- package/src/ai-models.tsx +58 -0
- package/src/ai-playground.tsx +429 -0
- package/src/ai-tools.tsx +383 -0
- package/src/ai-vision.tsx +1220 -0
- package/src/ai-voice-settings.tsx +726 -0
- package/src/ai-voice.tsx +711 -0
- package/src/android.tsx +92 -0
- package/src/animated-background.tsx +625 -0
- package/src/animated-beam.tsx +110 -0
- package/src/animated-cursor.tsx +406 -0
- package/src/animated-icon.tsx +520 -0
- package/src/animated-list.tsx +508 -0
- package/src/animated-number.tsx +485 -0
- package/src/animated-testimonials.tsx +119 -0
- package/src/animated-text.tsx +481 -0
- package/src/animated-tooltip.tsx +54 -0
- package/src/announcement.tsx +55 -0
- package/src/app-switcher-navigation-bar.tsx +76 -0
- package/src/apple-cards-carousel.tsx +349 -0
- package/src/apple-hello-effect.tsx +50 -0
- package/src/auth.tsx +9 -8
- package/src/avatar.tsx +1 -1
- package/src/badge.tsx +27 -30
- package/src/banner.tsx +62 -0
- package/src/breadcrumb-and-filters-navigation-bar.tsx +40 -0
- package/src/breadcrumb-navigation-bar.tsx +43 -0
- package/src/button.tsx +10 -9
- package/src/calendar.tsx +62 -0
- package/src/centered-logo-navigation-bar.tsx +43 -0
- package/src/chart.tsx +372 -0
- package/src/choicebox.tsx +89 -0
- package/src/chrome.tsx +41 -40
- package/src/code-block.tsx +278 -0
- package/src/code-compare.tsx +551 -0
- package/src/code-diff.tsx +573 -0
- package/src/code-editor.tsx +250 -0
- package/src/code-explorer.tsx +403 -0
- package/src/code-preview.tsx +488 -0
- package/src/code-snippet.tsx +336 -0
- package/src/code-tabs.tsx +78 -0
- package/src/code-terminal.tsx +530 -0
- package/src/collaboration-navigation-bar.tsx +50 -0
- package/src/collapsible.tsx +3 -2
- package/src/color-picker.tsx +68 -0
- package/src/combobox.tsx +87 -0
- package/src/communication-navigation-bar.tsx +42 -0
- package/src/company-profile.tsx +67 -0
- package/src/comparison.tsx +68 -0
- package/src/context-switcher-navigation-bar.tsx +39 -0
- package/src/credit-card.tsx +72 -0
- package/src/crypto-screener.tsx +57 -0
- package/src/cursor.tsx +61 -0
- package/src/dashboard-navigation-bar.tsx +49 -0
- package/src/dialog-stack.tsx +55 -0
- package/src/dialog.tsx +16 -15
- package/src/direction.tsx +40 -0
- package/src/dock.tsx +172 -0
- package/src/dropzone.tsx +106 -0
- package/src/e-commerce-navigation-bar.tsx +54 -0
- package/src/editor.tsx +85 -0
- package/src/empty.tsx +117 -0
- package/src/field.tsx +2 -1
- package/src/financials.tsx +85 -0
- package/src/forex-screener.tsx +58 -0
- package/src/gantt.tsx +68 -0
- package/src/grid-pattern.tsx +353 -0
- package/src/hooks/use-mobile.ts +29 -0
- package/src/icon-navigation-bar.tsx +36 -0
- package/src/image-crop.tsx +67 -0
- package/src/image-zoom.tsx +64 -0
- package/src/image.tsx +2 -1
- package/src/index.ts +123 -0
- package/src/input-otp.tsx +72 -0
- package/src/iphone-15-pro.tsx +69 -0
- package/src/item.tsx +193 -0
- package/src/kanban.tsx +772 -0
- package/src/kbd.tsx +32 -0
- package/src/limelight-nav-navigation-bar.tsx +39 -0
- package/src/limelight-nav.tsx +101 -0
- package/src/link.tsx +18 -18
- package/src/list.tsx +22 -0
- package/src/magnetic.tsx +54 -0
- package/src/market-overview.tsx +116 -0
- package/src/marquee.tsx +62 -0
- package/src/menu-dock.tsx +56 -0
- package/src/menubar.tsx +149 -0
- package/src/message-dock.tsx +89 -0
- package/src/mini-calendar.tsx +121 -0
- package/src/minimal-tiptap.tsx +32 -0
- package/src/motion-highlight.tsx +55 -0
- package/src/music-player.tsx +413 -0
- package/src/native-select.tsx +63 -0
- package/src/news-timeline.tsx +56 -0
- package/src/order-entry.tsx +162 -0
- package/src/orders-history.tsx +115 -0
- package/src/pagination.tsx +118 -0
- package/src/particles-background.tsx +225 -0
- package/src/pill.tsx +61 -0
- package/src/pixel-image.tsx +64 -0
- package/src/popover.tsx +10 -9
- package/src/positions-list.tsx +108 -0
- package/src/progress-circle.tsx +2 -1
- package/src/pulse-animation.tsx +606 -0
- package/src/qr-code.tsx +64 -0
- package/src/relative-time.tsx +84 -0
- package/src/resizable.tsx +46 -0
- package/src/reveal-animation.tsx +532 -0
- package/src/safari.tsx +115 -0
- package/src/sandbox.tsx +83 -0
- package/src/search-and-toggle-navigation-bar.tsx +39 -0
- package/src/select.tsx +31 -30
- package/src/sidebar.tsx +723 -0
- package/src/simple-navigation-bar.tsx +39 -0
- package/src/site/commerce/ui/conf.ts +13 -0
- package/src/site/commerce/ui/context.tsx +120 -0
- package/src/site/commerce/ui/store.ts +295 -0
- package/src/site/components/access-code-input.tsx +70 -0
- package/src/site/components/analytics.tsx +14 -0
- package/src/site/components/auth/callback.tsx +40 -0
- package/src/site/components/auth/login-panel.tsx +83 -0
- package/src/site/components/auth/login.tsx +47 -0
- package/src/site/components/auth/provider.tsx +34 -0
- package/src/site/components/auth/resume.ts +16 -0
- package/src/site/components/auth/widget.tsx +80 -0
- package/src/site/components/back-button.tsx +46 -0
- package/src/site/components/chat-widget.tsx +83 -0
- package/src/site/components/commerce/bag-button.tsx +99 -0
- package/src/site/components/commerce/buy-button.tsx +33 -0
- package/src/site/components/commerce/checkout-button.tsx +131 -0
- package/src/site/components/commerce/checkout-panel/cart-accordian.tsx +65 -0
- package/src/site/components/commerce/checkout-panel/checkout-panel-props.ts +10 -0
- package/src/site/components/commerce/checkout-panel/desktop-bag-carousel.tsx +36 -0
- package/src/site/components/commerce/checkout-panel/desktop-cp.tsx +82 -0
- package/src/site/components/commerce/checkout-panel/index.tsx +126 -0
- package/src/site/components/commerce/checkout-panel/mobile-cp.tsx +67 -0
- package/src/site/components/commerce/checkout-panel/policy-links.tsx +24 -0
- package/src/site/components/commerce/checkout-panel/steps-indicator.tsx +39 -0
- package/src/site/components/commerce/checkout-panel/thank-you.tsx +18 -0
- package/src/site/components/commerce/desktop-bag-popup.tsx +78 -0
- package/src/site/components/commerce/drawer/index.tsx +88 -0
- package/src/site/components/commerce/drawer/micro.tsx +145 -0
- package/src/site/components/commerce/drawer/shell.tsx +83 -0
- package/src/site/components/contact-dialog/contact-form.tsx +109 -0
- package/src/site/components/contact-dialog/disclaimer.tsx +13 -0
- package/src/site/components/contact-dialog/index.tsx +64 -0
- package/src/site/components/copyright.tsx +22 -0
- package/src/site/components/drawer-margin.tsx +28 -0
- package/src/site/components/footer-nav.tsx +31 -0
- package/src/site/components/footer.tsx +72 -0
- package/src/site/components/header/desktop-nav-menu.tsx +202 -0
- package/src/site/components/header/desktop.tsx +65 -0
- package/src/site/components/header/index.tsx +50 -0
- package/src/site/components/header/mobile-bag-drawer.tsx +51 -0
- package/src/site/components/header/mobile-menu-toggle-button.tsx +34 -0
- package/src/site/components/header/mobile-nav-menu-ai.tsx +52 -0
- package/src/site/components/header/mobile-nav-menu-item.tsx +48 -0
- package/src/site/components/header/mobile-nav-menu.tsx +103 -0
- package/src/site/components/header/mobile.tsx +169 -0
- package/src/site/components/header/theme-toggle.tsx +26 -0
- package/src/site/components/icons/avatar.tsx +11 -0
- package/src/site/components/icons/bag-icon.tsx +10 -0
- package/src/site/components/icons/index.ts +5 -0
- package/src/site/components/icons/left-arrow.tsx +11 -0
- package/src/site/components/icons/right-arrow.tsx +10 -0
- package/src/site/components/icons/social-icon.tsx +35 -0
- package/src/site/components/icons/social-svg.css +3 -0
- package/src/site/components/index.ts +26 -0
- package/src/site/components/logo.tsx +65 -0
- package/src/site/components/main.tsx +26 -0
- package/src/site/components/mini-chart/index.tsx +8 -0
- package/src/site/components/mini-chart/mini-chart-props.ts +44 -0
- package/src/site/components/mini-chart/mini-chart.tsx +86 -0
- package/src/site/components/mini-chart/wrapper.tsx +23 -0
- package/src/site/components/not-found/index.tsx +28 -0
- package/src/site/components/security/index.tsx +55 -0
- package/src/site/components/tooltip.tsx +31 -0
- package/src/site/next/analytics/fpixel.ts +16 -0
- package/src/site/next/analytics/google-analytics.ts +14 -0
- package/src/site/next/analytics/index.ts +3 -0
- package/src/site/next/analytics/pixel-analytics.tsx +55 -0
- package/src/site/next/font/font-desc.ts +18 -0
- package/src/site/next/font/fonts.ts +40 -0
- package/src/site/next/font/get-app-router-font-classes.ts +19 -0
- package/src/site/next/font/load-and-return-lux-next-fonts-on-import.ts +60 -0
- package/src/site/next/font/local/InterVariable-Italic.ttf +0 -0
- package/src/site/next/font/local/InterVariable-Italic.woff2 +0 -0
- package/src/site/next/font/local/InterVariable.ttf +0 -0
- package/src/site/next/font/local/InterVariable.woff2 +0 -0
- package/src/site/next/font/local/Zen-Variable.woff2 +0 -0
- package/src/site/next/font/next-font-desc.ts +29 -0
- package/src/site/next/font/pages-router-font-vars.tsx +18 -0
- package/src/site/next/head-metadata/index.tsx +209 -0
- package/src/site/next/head-metadata/next-metadata.ts +49 -0
- package/src/site/next/index.ts +2 -0
- package/src/site/next/middleware/determine-device-mw.ts +16 -0
- package/src/site/root-layout/WHY_THIS_IS_SEPARATE.txt +2 -0
- package/src/site/root-layout/index.tsx +125 -0
- package/src/site/site-def/footer/community.tsx +58 -0
- package/src/site/site-def/footer/company.ts +37 -0
- package/src/site/site-def/footer/ecosystem.ts +37 -0
- package/src/site/site-def/footer/index.tsx +26 -0
- package/src/site/site-def/footer/legal.ts +28 -0
- package/src/site/site-def/footer/network.ts +45 -0
- package/src/site/site-def/footer/svg/warpcast-logo.svg +12 -0
- package/src/site/site-def/index.ts +4 -0
- package/src/site/site-def/main-nav.tsx +460 -0
- package/src/site/style/cart-animation.css +29 -0
- package/src/site/style/checkout-animation.css +23 -0
- package/src/site/style/drawer-handle-overrides.css +160 -0
- package/src/site/style/fonts/COPY_TO_PUBLIC_FOR_NON_NEXT.txt +0 -0
- package/src/site/style/fonts/InterVariable-Italic.ttf +0 -0
- package/src/site/style/fonts/InterVariable-Italic.woff2 +0 -0
- package/src/site/style/fonts/InterVariable.ttf +0 -0
- package/src/site/style/fonts/InterVariable.woff2 +0 -0
- package/src/site/style/fonts/Zen-Variable.woff2 +0 -0
- package/src/site/style/lux-colors.css +84 -0
- package/src/site/style/lux-fonts.css +24 -0
- package/src/site/style/lux-global-non-next.css +52 -0
- package/src/site/style/lux-global.css +135 -0
- package/src/site/types/chatbot-config.ts +7 -0
- package/src/site/types/chatbot-suggested-question.ts +7 -0
- package/src/site/types/contact-info.ts +11 -0
- package/src/site/types/index.ts +4 -0
- package/src/site/types/site-def.ts +53 -0
- package/src/site/util/index.ts +11 -0
- package/src/skeleton.tsx +20 -168
- package/src/slider.tsx +1 -0
- package/src/status-dashboard-navigation-bar.tsx +39 -0
- package/src/status.tsx +63 -0
- package/src/stock-screener.tsx +58 -0
- package/src/switch.tsx +2 -2
- package/src/symbol-info.tsx +64 -0
- package/src/table.tsx +26 -25
- package/src/tags.tsx +62 -0
- package/src/team-switcher-navigation-bar.tsx +39 -0
- package/src/technical-analysis.tsx +99 -0
- package/src/terminal.tsx +399 -0
- package/src/ticker-tape.tsx +68 -0
- package/src/ticker.tsx +52 -0
- package/src/timeline.tsx +412 -0
- package/src/toggle.tsx +84 -0
- package/src/trading-panel.tsx +262 -0
- package/src/two-tier-navigation-bar.tsx +39 -0
- package/src/underline-navigation-bar.tsx +39 -0
- package/src/youtube-pip-player.tsx +606 -0
- package/tokens.css +11 -0
package/dist/ai-code.cjs
ADDED
|
@@ -0,0 +1,1866 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var ui = require('@hanzo/ui');
|
|
5
|
+
var React10 = require('react');
|
|
6
|
+
var Editor = require('@monaco-editor/react');
|
|
7
|
+
var lucideReact = require('lucide-react');
|
|
8
|
+
var nextThemes = require('next-themes');
|
|
9
|
+
var sonner = require('sonner');
|
|
10
|
+
var gui = require('@hanzo/gui');
|
|
11
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
12
|
+
var usehooks = require('@uidotdev/usehooks');
|
|
13
|
+
var ResizablePrimitive = require('react-resizable-panels');
|
|
14
|
+
|
|
15
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
|
|
17
|
+
function _interopNamespace(e) {
|
|
18
|
+
if (e && e.__esModule) return e;
|
|
19
|
+
var n = Object.create(null);
|
|
20
|
+
if (e) {
|
|
21
|
+
Object.keys(e).forEach(function (k) {
|
|
22
|
+
if (k !== 'default') {
|
|
23
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return e[k]; }
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
n.default = e;
|
|
32
|
+
return Object.freeze(n);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var React10__namespace = /*#__PURE__*/_interopNamespace(React10);
|
|
36
|
+
var Editor__default = /*#__PURE__*/_interopDefault(Editor);
|
|
37
|
+
var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
|
|
38
|
+
|
|
39
|
+
var SKELETON_CLASSES = "lux-skeleton rounded-sm";
|
|
40
|
+
var Skeleton = React10__namespace.forwardRef(
|
|
41
|
+
function Skeleton2(props, ref) {
|
|
42
|
+
const { loading = true, asChild, className, children, style, ...rest } = props;
|
|
43
|
+
if (!loading) {
|
|
44
|
+
if (asChild && React10__namespace.isValidElement(children)) return children;
|
|
45
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className, style, ...rest, children });
|
|
46
|
+
}
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
"data-loading": true,
|
|
52
|
+
...ui.sx(
|
|
53
|
+
SKELETON_CLASSES,
|
|
54
|
+
asChild || children ? "[&_*]:invisible" : "min-h-5",
|
|
55
|
+
className
|
|
56
|
+
),
|
|
57
|
+
style,
|
|
58
|
+
...rest,
|
|
59
|
+
children
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
React10__namespace.forwardRef(
|
|
65
|
+
function SkeletonCircle2(props, ref) {
|
|
66
|
+
const { size = 40, loading = true, className, ...rest } = props;
|
|
67
|
+
const dimension = typeof size === "number" ? `${size}px` : size;
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
69
|
+
Skeleton,
|
|
70
|
+
{
|
|
71
|
+
ref,
|
|
72
|
+
loading,
|
|
73
|
+
...ui.sx("rounded-full shrink-0", className),
|
|
74
|
+
style: { width: dimension, height: dimension, ...rest.style },
|
|
75
|
+
...rest
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
React10__namespace.forwardRef(
|
|
81
|
+
function SkeletonText2(props, ref) {
|
|
82
|
+
const { noOfLines = 3, loading = true, className, ...rest } = props;
|
|
83
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className: ui.cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
+
Skeleton,
|
|
85
|
+
{
|
|
86
|
+
loading,
|
|
87
|
+
...ui.sx(ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
|
|
88
|
+
},
|
|
89
|
+
index
|
|
90
|
+
)) });
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
var ink = (children, Wrap = gui.Text, props = {}) => {
|
|
94
|
+
let hasText = false;
|
|
95
|
+
React10.Children.forEach(children, (child) => {
|
|
96
|
+
if (typeof child === "string" || typeof child === "number") hasText = true;
|
|
97
|
+
});
|
|
98
|
+
if (!hasText) return children;
|
|
99
|
+
return React10.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React10.createElement(Wrap, props, child) : child);
|
|
100
|
+
};
|
|
101
|
+
var TOUCH_PX = 1024;
|
|
102
|
+
function useBelow(px) {
|
|
103
|
+
const [below, setBelow] = React10__namespace.useState(false);
|
|
104
|
+
React10__namespace.useEffect(() => {
|
|
105
|
+
const mql = window.matchMedia(`(max-width: ${px - 1}px)`);
|
|
106
|
+
const apply = () => setBelow(mql.matches);
|
|
107
|
+
apply();
|
|
108
|
+
mql.addEventListener("change", apply);
|
|
109
|
+
return () => mql.removeEventListener("change", apply);
|
|
110
|
+
}, [px]);
|
|
111
|
+
return below;
|
|
112
|
+
}
|
|
113
|
+
var useIsTouch = () => useBelow(TOUCH_PX);
|
|
114
|
+
function mapPlacement(p) {
|
|
115
|
+
if (!p) return void 0;
|
|
116
|
+
return p;
|
|
117
|
+
}
|
|
118
|
+
var Tooltip = React10__namespace.forwardRef(
|
|
119
|
+
function Tooltip2(props, ref) {
|
|
120
|
+
const {
|
|
121
|
+
showArrow: showArrowProp,
|
|
122
|
+
onOpenChange,
|
|
123
|
+
variant,
|
|
124
|
+
selected,
|
|
125
|
+
children,
|
|
126
|
+
disabled,
|
|
127
|
+
disableOnMobile,
|
|
128
|
+
content,
|
|
129
|
+
contentProps,
|
|
130
|
+
defaultOpen = false,
|
|
131
|
+
triggerProps,
|
|
132
|
+
closeDelay = 100,
|
|
133
|
+
openDelay = 100,
|
|
134
|
+
interactive,
|
|
135
|
+
positioning
|
|
136
|
+
} = props;
|
|
137
|
+
const [open, setOpen] = React10__namespace.useState(defaultOpen);
|
|
138
|
+
const timeoutRef = React10__namespace.useRef(null);
|
|
139
|
+
const isMobile = useIsTouch();
|
|
140
|
+
const handleOpenChange = React10__namespace.useCallback((nextOpen) => {
|
|
141
|
+
setOpen(nextOpen);
|
|
142
|
+
onOpenChange?.({ open: nextOpen });
|
|
143
|
+
}, [onOpenChange]);
|
|
144
|
+
const handleOpenChangeManual = React10__namespace.useCallback((nextOpen) => {
|
|
145
|
+
timeoutRef.current && window.clearTimeout(timeoutRef.current);
|
|
146
|
+
timeoutRef.current = window.setTimeout(() => {
|
|
147
|
+
setOpen(nextOpen);
|
|
148
|
+
onOpenChange?.({ open: nextOpen });
|
|
149
|
+
}, nextOpen ? openDelay : closeDelay);
|
|
150
|
+
}, [closeDelay, openDelay, onOpenChange]);
|
|
151
|
+
const handleClickAway = React10__namespace.useCallback(() => {
|
|
152
|
+
if (open) handleOpenChangeManual(false);
|
|
153
|
+
}, [open, handleOpenChangeManual]);
|
|
154
|
+
const triggerRef = usehooks.useClickAway(handleClickAway);
|
|
155
|
+
const handleTriggerClick = React10__namespace.useCallback(() => {
|
|
156
|
+
handleOpenChangeManual(!open);
|
|
157
|
+
}, [handleOpenChangeManual, open]);
|
|
158
|
+
const handleContentClick = React10__namespace.useCallback((event) => {
|
|
159
|
+
event.stopPropagation();
|
|
160
|
+
if (interactive) {
|
|
161
|
+
const closestLink = event.target?.closest("a");
|
|
162
|
+
if (closestLink) {
|
|
163
|
+
handleOpenChangeManual(false);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}, [interactive, handleOpenChangeManual]);
|
|
167
|
+
React10__namespace.useEffect(() => {
|
|
168
|
+
return () => {
|
|
169
|
+
if (timeoutRef.current) {
|
|
170
|
+
clearTimeout(timeoutRef.current);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}, []);
|
|
174
|
+
if (disabled || disableOnMobile && isMobile) return children;
|
|
175
|
+
const defaultShowArrow = variant === "popover" ? false : true;
|
|
176
|
+
const showArrow = showArrowProp !== void 0 ? showArrowProp : defaultShowArrow;
|
|
177
|
+
const isPopover = variant === "popover";
|
|
178
|
+
const placement = mapPlacement(positioning?.placement) ?? "top";
|
|
179
|
+
const offset = positioning?.offset?.mainAxis ?? 4;
|
|
180
|
+
return /* @__PURE__ */ jsxRuntime.jsx(gui.TooltipGroup, { delay: openDelay, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
181
|
+
gui.Tooltip,
|
|
182
|
+
{
|
|
183
|
+
open,
|
|
184
|
+
onOpenChange: handleOpenChange,
|
|
185
|
+
delay: { open: openDelay, close: closeDelay },
|
|
186
|
+
placement,
|
|
187
|
+
offset,
|
|
188
|
+
unstyled: true,
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
191
|
+
gui.Tooltip.Trigger,
|
|
192
|
+
{
|
|
193
|
+
ref: triggerRef,
|
|
194
|
+
asChild: true,
|
|
195
|
+
...isMobile ? { onClick: handleTriggerClick } : {},
|
|
196
|
+
...triggerProps,
|
|
197
|
+
children
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
201
|
+
gui.Tooltip.Content,
|
|
202
|
+
{
|
|
203
|
+
ref,
|
|
204
|
+
unstyled: true,
|
|
205
|
+
zIndex: 9999,
|
|
206
|
+
overflow: "hidden",
|
|
207
|
+
borderRadius: 8,
|
|
208
|
+
paddingHorizontal: 12,
|
|
209
|
+
paddingVertical: 8,
|
|
210
|
+
maxWidth: isPopover ? 384 : 320,
|
|
211
|
+
backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)",
|
|
212
|
+
transition: "quick",
|
|
213
|
+
enterStyle: { opacity: 0, scale: 0.95 },
|
|
214
|
+
exitStyle: { opacity: 0, scale: 0.95 },
|
|
215
|
+
...isPopover ? {
|
|
216
|
+
borderWidth: 1,
|
|
217
|
+
borderColor: "var(--color-border-divider)",
|
|
218
|
+
shadowColor: "var(--shadow-popover)"
|
|
219
|
+
} : {},
|
|
220
|
+
onClick: interactive ? handleContentClick : void 0,
|
|
221
|
+
...selected ? { "data-selected": true } : {},
|
|
222
|
+
...contentProps,
|
|
223
|
+
children: [
|
|
224
|
+
showArrow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
225
|
+
gui.Tooltip.Arrow,
|
|
226
|
+
{
|
|
227
|
+
unstyled: true,
|
|
228
|
+
backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)"
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
ink(content, void 0, {
|
|
232
|
+
fontSize: 14,
|
|
233
|
+
color: isPopover ? "var(--color-text-primary)" : "var(--color-tooltip-fg)"
|
|
234
|
+
})
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
) });
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
function TruncatedTextTooltip({ label, children }) {
|
|
244
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { content: label, positioning: { placement: "top" }, children });
|
|
245
|
+
}
|
|
246
|
+
var SIZE = {
|
|
247
|
+
sm: { padding: 4, height: 18, minHeight: 18 },
|
|
248
|
+
md: { paddingHorizontal: 4, paddingVertical: 2, minHeight: 24 },
|
|
249
|
+
lg: { paddingHorizontal: 8, paddingVertical: 4, minHeight: 28 }
|
|
250
|
+
};
|
|
251
|
+
var SIZE_TEXT = {
|
|
252
|
+
sm: { fontSize: 12, fontWeight: "500" },
|
|
253
|
+
md: { fontSize: 14, fontWeight: "500" },
|
|
254
|
+
lg: { fontSize: 14, fontWeight: "600" }
|
|
255
|
+
};
|
|
256
|
+
var COLOR_PALETTE = {
|
|
257
|
+
gray: { bg: "var(--color-badge-gray-bg)", fg: "var(--color-badge-gray-fg)" },
|
|
258
|
+
green: { bg: "var(--color-badge-green-bg)", fg: "var(--color-badge-green-fg)" },
|
|
259
|
+
red: { bg: "var(--color-badge-red-bg)", fg: "var(--color-badge-red-fg)" },
|
|
260
|
+
purple: { bg: "var(--color-badge-purple-bg)", fg: "var(--color-badge-purple-fg)" },
|
|
261
|
+
orange: { bg: "var(--color-badge-orange-bg)", fg: "var(--color-badge-orange-fg)" },
|
|
262
|
+
blue: { bg: "var(--color-badge-blue-bg)", fg: "var(--color-badge-blue-fg)" },
|
|
263
|
+
yellow: { bg: "var(--color-badge-yellow-bg)", fg: "var(--color-badge-yellow-fg)" },
|
|
264
|
+
teal: { bg: "var(--color-badge-teal-bg)", fg: "var(--color-badge-teal-fg)" },
|
|
265
|
+
cyan: { bg: "var(--color-badge-cyan-bg)", fg: "var(--color-badge-cyan-fg)" },
|
|
266
|
+
pink: { bg: "var(--color-badge-pink-bg)", fg: "var(--color-badge-pink-fg)" },
|
|
267
|
+
purple_alt: { bg: "var(--color-badge-purple-alt-bg)", fg: "var(--color-badge-purple-alt-fg)" },
|
|
268
|
+
blue_alt: { bg: "var(--color-badge-blue-alt-bg)", fg: "var(--color-badge-blue-alt-fg)" },
|
|
269
|
+
bright_gray: { bg: "var(--color-badge-bright-gray-bg)", fg: "var(--color-badge-bright-gray-fg)" },
|
|
270
|
+
bright_green: { bg: "var(--color-badge-bright-green-bg)", fg: "var(--color-badge-bright-green-fg)" },
|
|
271
|
+
bright_red: { bg: "var(--color-badge-bright-red-bg)", fg: "var(--color-badge-bright-red-fg)" },
|
|
272
|
+
bright_blue: { bg: "var(--color-badge-bright-blue-bg)", fg: "var(--color-badge-bright-blue-fg)" },
|
|
273
|
+
bright_yellow: { bg: "var(--color-badge-bright-yellow-bg)", fg: "var(--color-badge-bright-yellow-fg)" },
|
|
274
|
+
bright_teal: { bg: "var(--color-badge-bright-teal-bg)", fg: "var(--color-badge-bright-teal-fg)" },
|
|
275
|
+
bright_cyan: { bg: "var(--color-badge-bright-cyan-bg)", fg: "var(--color-badge-bright-cyan-fg)" },
|
|
276
|
+
bright_orange: { bg: "var(--color-badge-bright-orange-bg)", fg: "var(--color-badge-bright-orange-fg)" },
|
|
277
|
+
bright_purple: { bg: "var(--color-badge-bright-purple-bg)", fg: "var(--color-badge-bright-purple-fg)" },
|
|
278
|
+
bright_pink: { bg: "var(--color-badge-bright-pink-bg)", fg: "var(--color-badge-bright-pink-fg)" }
|
|
279
|
+
};
|
|
280
|
+
var TONE = {
|
|
281
|
+
subtle: (p) => ({ backgroundColor: p.bg, color: p.fg, borderWidth: 0 }),
|
|
282
|
+
solid: (p) => ({ backgroundColor: p.fg, color: p.bg, borderWidth: 0 }),
|
|
283
|
+
outline: (p) => ({
|
|
284
|
+
backgroundColor: "transparent",
|
|
285
|
+
color: p.fg,
|
|
286
|
+
borderWidth: 1,
|
|
287
|
+
borderColor: p.fg
|
|
288
|
+
})
|
|
289
|
+
};
|
|
290
|
+
var Badge = React10__namespace.default.forwardRef(
|
|
291
|
+
function Badge2(props, ref) {
|
|
292
|
+
const {
|
|
293
|
+
loading,
|
|
294
|
+
startElement,
|
|
295
|
+
children,
|
|
296
|
+
truncated = false,
|
|
297
|
+
endElement,
|
|
298
|
+
variant = "subtle",
|
|
299
|
+
size = "md",
|
|
300
|
+
colorPalette = "gray",
|
|
301
|
+
className,
|
|
302
|
+
style: badgeStyle,
|
|
303
|
+
...rest
|
|
304
|
+
} = props;
|
|
305
|
+
const palette = COLOR_PALETTE[colorPalette];
|
|
306
|
+
const tone = TONE[variant](palette);
|
|
307
|
+
const child = children ? (
|
|
308
|
+
// `ellipsis` is gui Text's own built-in variant for single-line
|
|
309
|
+
// truncation — it expands to the same overflow/text-overflow/
|
|
310
|
+
// white-space/max-width rule Tailwind's `text-ellipsis` did, but
|
|
311
|
+
// through the component's own variants (guaranteed to compile),
|
|
312
|
+
// rather than naming each longhand as a separate style prop.
|
|
313
|
+
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { ellipsis: true, ...SIZE_TEXT[size], color: tone.color, children })
|
|
314
|
+
) : null;
|
|
315
|
+
const childrenElement = truncated ? /* @__PURE__ */ jsxRuntime.jsx(TruncatedTextTooltip, { label: children, children: child }) : child;
|
|
316
|
+
const badgeElement = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
317
|
+
gui.XStack,
|
|
318
|
+
{
|
|
319
|
+
ref,
|
|
320
|
+
render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
321
|
+
display: "inline-flex",
|
|
322
|
+
alignItems: "center",
|
|
323
|
+
alignSelf: "flex-start",
|
|
324
|
+
borderRadius: 2,
|
|
325
|
+
gap: 4,
|
|
326
|
+
maxWidth: "100%",
|
|
327
|
+
userSelect: "text",
|
|
328
|
+
...SIZE[size],
|
|
329
|
+
...tone,
|
|
330
|
+
className,
|
|
331
|
+
style: badgeStyle,
|
|
332
|
+
...rest,
|
|
333
|
+
children: [
|
|
334
|
+
startElement,
|
|
335
|
+
childrenElement,
|
|
336
|
+
endElement
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
if (loading) {
|
|
341
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, asChild: true, children: badgeElement });
|
|
342
|
+
}
|
|
343
|
+
return badgeElement;
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
var SpinnerFrame = gui.styled(gui.View, {
|
|
347
|
+
name: "ButtonSpinner",
|
|
348
|
+
render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
349
|
+
width: 16,
|
|
350
|
+
height: 16,
|
|
351
|
+
borderRadius: 1e3,
|
|
352
|
+
borderWidth: 2,
|
|
353
|
+
borderColor: "currentColor",
|
|
354
|
+
borderBottomColor: "transparent",
|
|
355
|
+
borderLeftColor: "transparent"
|
|
356
|
+
});
|
|
357
|
+
function Spinner({ className }) {
|
|
358
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
359
|
+
SpinnerFrame,
|
|
360
|
+
{
|
|
361
|
+
role: "status",
|
|
362
|
+
"aria-label": "Loading",
|
|
363
|
+
className: [
|
|
364
|
+
"animate-spin",
|
|
365
|
+
className
|
|
366
|
+
].filter(Boolean).join(" ")
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
var ButtonFrame = gui.styled(gui.View, {
|
|
371
|
+
name: "LuxButton",
|
|
372
|
+
render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button" }),
|
|
373
|
+
role: "button",
|
|
374
|
+
tabIndex: 0,
|
|
375
|
+
cursor: "pointer",
|
|
376
|
+
userSelect: "none",
|
|
377
|
+
display: "inline-flex",
|
|
378
|
+
alignItems: "center",
|
|
379
|
+
justifyContent: "center",
|
|
380
|
+
gap: 0,
|
|
381
|
+
overflow: "hidden",
|
|
382
|
+
borderRadius: 6,
|
|
383
|
+
// Whitespace nowrap via className since hanzogui doesn't have a direct token
|
|
384
|
+
// Transition via className
|
|
385
|
+
variants: {
|
|
386
|
+
size: {
|
|
387
|
+
"2xs": { paddingHorizontal: 8, height: 20, minWidth: 20, fontSize: 12, borderRadius: 4, gap: 4 },
|
|
388
|
+
xs: { paddingHorizontal: 8, height: 24, minWidth: 24, fontSize: 14, borderRadius: 4, gap: 4 },
|
|
389
|
+
sm: { paddingHorizontal: 12, height: 32, minWidth: 32, fontSize: 14, borderRadius: 6, gap: 4 },
|
|
390
|
+
md: { paddingHorizontal: 12, height: 40, minWidth: 40, fontSize: 16, borderRadius: 6, gap: 8 }
|
|
391
|
+
},
|
|
392
|
+
disabled: {
|
|
393
|
+
true: {
|
|
394
|
+
opacity: 0.2,
|
|
395
|
+
cursor: "not-allowed",
|
|
396
|
+
pointerEvents: "none"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
defaultVariants: {
|
|
401
|
+
size: "md"
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
var VARIANT_CLASSES = {
|
|
405
|
+
solid: [
|
|
406
|
+
"bg-[var(--color-button-solid-bg)] text-[var(--color-button-solid-text)]",
|
|
407
|
+
"hover:bg-[var(--color-hover)]",
|
|
408
|
+
"data-[expanded]:bg-[var(--color-hover)]"
|
|
409
|
+
].join(" "),
|
|
410
|
+
solid_danger: [
|
|
411
|
+
"bg-[var(--color-button-danger-bg)] text-[var(--color-button-danger-fg)]",
|
|
412
|
+
"hover:bg-[var(--color-button-danger-bg-hover)]",
|
|
413
|
+
"data-[expanded]:bg-[var(--color-button-danger-bg-hover)]"
|
|
414
|
+
].join(" "),
|
|
415
|
+
outline: [
|
|
416
|
+
"border-2 border-solid bg-transparent",
|
|
417
|
+
"text-[var(--color-button-outline-fg)] border-[var(--color-button-outline-fg)]",
|
|
418
|
+
"hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]"
|
|
419
|
+
].join(" "),
|
|
420
|
+
outline_danger: [
|
|
421
|
+
"border-2 border-solid bg-transparent",
|
|
422
|
+
"text-[var(--color-button-danger-bg)] border-[var(--color-button-danger-bg)]",
|
|
423
|
+
"hover:bg-transparent hover:text-[var(--color-button-danger-bg-hover)] hover:border-[var(--color-button-danger-bg-hover)]"
|
|
424
|
+
].join(" "),
|
|
425
|
+
dropdown: [
|
|
426
|
+
"border-2 border-solid bg-transparent",
|
|
427
|
+
"text-[var(--color-button-dropdown-fg)] border-[var(--color-button-dropdown-border)]",
|
|
428
|
+
"hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
|
|
429
|
+
"data-[expanded]:bg-transparent data-[expanded]:text-[var(--color-hover)] data-[expanded]:border-[var(--color-hover)]",
|
|
430
|
+
"data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
|
|
431
|
+
"data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
|
|
432
|
+
"data-[selected]:hover:text-[var(--color-hover)] data-[selected]:hover:border-transparent",
|
|
433
|
+
"data-[selected]:data-[expanded]:text-[var(--color-hover)]"
|
|
434
|
+
].join(" "),
|
|
435
|
+
header: [
|
|
436
|
+
"bg-transparent border-2 border-solid",
|
|
437
|
+
"text-[var(--color-button-header-fg)] border-[var(--color-button-header-border)]",
|
|
438
|
+
"hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
|
|
439
|
+
"data-[selected]:bg-[var(--color-button-header-bg-selected)]",
|
|
440
|
+
"data-[selected]:text-[var(--color-button-header-fg-selected)] data-[selected]:border-transparent data-[selected]:border-0",
|
|
441
|
+
"data-[selected]:hover:bg-[var(--color-button-header-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
|
|
442
|
+
"data-[selected]:data-[expanded]:text-[var(--color-hover)]",
|
|
443
|
+
"data-[selected]:data-[highlighted]:bg-[var(--color-button-header-bg-highlighted)]",
|
|
444
|
+
"data-[selected]:data-[highlighted]:text-[var(--color-button-header-fg-highlighted)]",
|
|
445
|
+
"data-[selected]:data-[highlighted]:border-transparent data-[selected]:data-[highlighted]:border-0",
|
|
446
|
+
"data-[selected]:data-[highlighted]:hover:bg-[var(--color-button-header-bg-highlighted)]",
|
|
447
|
+
"data-[selected]:data-[highlighted]:hover:text-[var(--color-hover)]",
|
|
448
|
+
"data-[selected]:data-[highlighted]:data-[expanded]:text-[var(--color-hover)]"
|
|
449
|
+
].join(" "),
|
|
450
|
+
hero: [
|
|
451
|
+
"bg-[var(--color-button-hero-bg)] text-[var(--color-button-hero-fg)]",
|
|
452
|
+
"hover:bg-[var(--color-button-hero-bg-hover)] hover:text-[var(--color-button-hero-fg-hover)]",
|
|
453
|
+
"data-[selected]:bg-[var(--color-button-hero-bg-selected)] data-[selected]:text-[var(--color-button-hero-fg-selected)]",
|
|
454
|
+
"data-[selected]:hover:bg-[var(--color-button-hero-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
|
|
455
|
+
"data-[selected]:data-[expanded]:text-[var(--color-hover)]"
|
|
456
|
+
].join(" "),
|
|
457
|
+
segmented: [
|
|
458
|
+
"bg-transparent border-2 border-solid rounded-none",
|
|
459
|
+
"text-[var(--color-button-segmented-fg)] border-[var(--color-selected-control-bg)]",
|
|
460
|
+
"hover:text-[var(--color-hover)]",
|
|
461
|
+
"data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
|
|
462
|
+
"data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-selected-control-text)]",
|
|
463
|
+
"[&:not(:last-child)]:border-r-0 data-[selected]:[&:not(:last-child)]:border-r-2",
|
|
464
|
+
"data-[selected]+*:border-l-0",
|
|
465
|
+
"first:rounded-l-md last:rounded-r-md"
|
|
466
|
+
].join(" "),
|
|
467
|
+
plain: "bg-transparent text-inherit border-none hover:bg-transparent",
|
|
468
|
+
subtle: [
|
|
469
|
+
"bg-[var(--color-button-subtle-bg)] text-[var(--color-button-subtle-fg)]",
|
|
470
|
+
"hover:bg-[var(--color-button-subtle-bg)] hover:text-[var(--color-hover)]",
|
|
471
|
+
"disabled:bg-[var(--color-button-subtle-bg)] disabled:text-[var(--color-button-subtle-fg)]"
|
|
472
|
+
].join(" "),
|
|
473
|
+
link: [
|
|
474
|
+
"bg-transparent text-[var(--color-link-primary)] border-none font-normal",
|
|
475
|
+
"px-0 h-auto",
|
|
476
|
+
"hover:bg-transparent hover:text-[var(--color-link-primary-hover)]",
|
|
477
|
+
"disabled:text-[var(--color-text-secondary)]"
|
|
478
|
+
].join(" "),
|
|
479
|
+
icon_secondary: [
|
|
480
|
+
"bg-transparent text-[var(--color-icon-secondary)] border-none",
|
|
481
|
+
"hover:text-[var(--color-hover)]",
|
|
482
|
+
"data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
|
|
483
|
+
"data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
|
|
484
|
+
"data-[selected]:data-[expanded]:text-[var(--color-hover)]",
|
|
485
|
+
"data-[expanded]:text-[var(--color-hover)]"
|
|
486
|
+
].join(" "),
|
|
487
|
+
icon_background: [
|
|
488
|
+
"bg-[var(--color-button-icon-background-bg)] text-[var(--color-icon-secondary)] border-none",
|
|
489
|
+
"hover:text-[var(--color-hover)]",
|
|
490
|
+
"data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
|
|
491
|
+
"data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
|
|
492
|
+
"data-[selected]:data-[expanded]:text-[var(--color-hover)]",
|
|
493
|
+
"data-[expanded]:text-[var(--color-hover)]"
|
|
494
|
+
].join(" "),
|
|
495
|
+
pagination: [
|
|
496
|
+
"border-2 border-solid bg-transparent",
|
|
497
|
+
"text-[var(--color-button-pagination-fg)] border-[var(--color-button-pagination-border)]",
|
|
498
|
+
"hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
|
|
499
|
+
"data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
|
|
500
|
+
"data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
|
|
501
|
+
"data-[selected]:hover:text-[var(--color-selected-control-text)] data-[selected]:hover:border-transparent"
|
|
502
|
+
].join(" ")
|
|
503
|
+
};
|
|
504
|
+
var BASE_CLASSES = "font-semibold whitespace-nowrap transition-colors duration-150";
|
|
505
|
+
var SP = 4;
|
|
506
|
+
function buildShimStyle(props) {
|
|
507
|
+
const s = { ...props.style };
|
|
508
|
+
if (props.mt !== void 0) s.marginTop = typeof props.mt === "number" ? `${props.mt * SP}px` : props.mt;
|
|
509
|
+
if (props.ml !== void 0) s.marginLeft = typeof props.ml === "number" ? `${props.ml * SP}px` : props.ml;
|
|
510
|
+
if (props.mr !== void 0) s.marginRight = typeof props.mr === "number" ? `${props.mr * SP}px` : props.mr;
|
|
511
|
+
if (props.px !== void 0) {
|
|
512
|
+
const v = typeof props.px === "number" ? `${props.px * SP}px` : props.px;
|
|
513
|
+
s.paddingLeft = v;
|
|
514
|
+
s.paddingRight = v;
|
|
515
|
+
}
|
|
516
|
+
if (props.py !== void 0) {
|
|
517
|
+
const v = typeof props.py === "number" ? `${props.py * SP}px` : props.py;
|
|
518
|
+
s.paddingTop = v;
|
|
519
|
+
s.paddingBottom = v;
|
|
520
|
+
}
|
|
521
|
+
if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
|
|
522
|
+
if (props.gap !== void 0) s.gap = typeof props.gap === "number" ? `${props.gap * SP}px` : props.gap;
|
|
523
|
+
if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
|
|
524
|
+
if (props.columnGap !== void 0) s.columnGap = typeof props.columnGap === "number" ? `${props.columnGap * SP}px` : props.columnGap;
|
|
525
|
+
if (props.gridColumn !== void 0) s.gridColumn = typeof props.gridColumn === "number" ? String(props.gridColumn) : props.gridColumn;
|
|
526
|
+
if (props.gridRow) s.gridRow = props.gridRow;
|
|
527
|
+
if (props.justifySelf) s.justifySelf = props.justifySelf;
|
|
528
|
+
if (props.alignSelf) s.alignSelf = props.alignSelf;
|
|
529
|
+
if (props.h) s.height = props.h;
|
|
530
|
+
if (props.w) s.width = props.w;
|
|
531
|
+
if (props.display) s.display = props.display;
|
|
532
|
+
if (props.borderBottomRightRadius !== void 0) s.borderBottomRightRadius = typeof props.borderBottomRightRadius === "number" ? `${props.borderBottomRightRadius}px` : props.borderBottomRightRadius;
|
|
533
|
+
if (props.borderTopRightRadius !== void 0) s.borderTopRightRadius = typeof props.borderTopRightRadius === "number" ? `${props.borderTopRightRadius}px` : props.borderTopRightRadius;
|
|
534
|
+
return Object.keys(s).length > 0 ? s : void 0;
|
|
535
|
+
}
|
|
536
|
+
var Button = React10__namespace.forwardRef(
|
|
537
|
+
function Button2(props, ref) {
|
|
538
|
+
const {
|
|
539
|
+
className,
|
|
540
|
+
variant = "solid",
|
|
541
|
+
size = "md",
|
|
542
|
+
asChild = false,
|
|
543
|
+
loading = false,
|
|
544
|
+
loadingText,
|
|
545
|
+
loadingSkeleton = false,
|
|
546
|
+
expanded,
|
|
547
|
+
selected,
|
|
548
|
+
highlighted,
|
|
549
|
+
disabled,
|
|
550
|
+
children,
|
|
551
|
+
style: styleProp,
|
|
552
|
+
// Strip Chakra style props
|
|
553
|
+
mt,
|
|
554
|
+
ml,
|
|
555
|
+
mr,
|
|
556
|
+
px,
|
|
557
|
+
py,
|
|
558
|
+
fontWeight,
|
|
559
|
+
gap,
|
|
560
|
+
flexShrink,
|
|
561
|
+
columnGap,
|
|
562
|
+
gridColumn,
|
|
563
|
+
gridRow,
|
|
564
|
+
justifySelf,
|
|
565
|
+
alignSelf,
|
|
566
|
+
textStyle: _textStyle,
|
|
567
|
+
h,
|
|
568
|
+
w,
|
|
569
|
+
display,
|
|
570
|
+
borderBottomRightRadius,
|
|
571
|
+
borderTopRightRadius,
|
|
572
|
+
...rest
|
|
573
|
+
} = props;
|
|
574
|
+
const mergedStyle = buildShimStyle({
|
|
575
|
+
style: styleProp,
|
|
576
|
+
mt,
|
|
577
|
+
ml,
|
|
578
|
+
mr,
|
|
579
|
+
px,
|
|
580
|
+
py,
|
|
581
|
+
fontWeight,
|
|
582
|
+
gap,
|
|
583
|
+
flexShrink,
|
|
584
|
+
columnGap,
|
|
585
|
+
gridColumn,
|
|
586
|
+
gridRow,
|
|
587
|
+
justifySelf,
|
|
588
|
+
alignSelf,
|
|
589
|
+
h,
|
|
590
|
+
w,
|
|
591
|
+
display,
|
|
592
|
+
borderBottomRightRadius,
|
|
593
|
+
borderTopRightRadius
|
|
594
|
+
});
|
|
595
|
+
const dataAttrs = {};
|
|
596
|
+
if (expanded) dataAttrs["data-expanded"] = true;
|
|
597
|
+
if (selected) dataAttrs["data-selected"] = true;
|
|
598
|
+
if (highlighted) dataAttrs["data-highlighted"] = true;
|
|
599
|
+
if (loadingSkeleton) dataAttrs["data-loading-skeleton"] = true;
|
|
600
|
+
const isDisabled = !loadingSkeleton && (loading || disabled);
|
|
601
|
+
const inner = loading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
602
|
+
/* @__PURE__ */ jsxRuntime.jsx(Spinner, {}),
|
|
603
|
+
loadingText != null && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginLeft: 8 }, children: loadingText })
|
|
604
|
+
] }) : children;
|
|
605
|
+
const variantClass = VARIANT_CLASSES[variant] ?? VARIANT_CLASSES.solid;
|
|
606
|
+
const combinedClassName = [BASE_CLASSES, variantClass, className].filter(Boolean).join(" ");
|
|
607
|
+
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
608
|
+
ButtonFrame,
|
|
609
|
+
{
|
|
610
|
+
ref,
|
|
611
|
+
size,
|
|
612
|
+
disabled: isDisabled || void 0,
|
|
613
|
+
asChild: asChild || void 0,
|
|
614
|
+
className: combinedClassName,
|
|
615
|
+
style: mergedStyle,
|
|
616
|
+
...dataAttrs,
|
|
617
|
+
...rest,
|
|
618
|
+
children: inner
|
|
619
|
+
}
|
|
620
|
+
);
|
|
621
|
+
if (loadingSkeleton) {
|
|
622
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
|
|
623
|
+
}
|
|
624
|
+
return button;
|
|
625
|
+
}
|
|
626
|
+
);
|
|
627
|
+
React10__namespace.forwardRef(
|
|
628
|
+
function ButtonGroup2(props, ref) {
|
|
629
|
+
const { className, ...rest } = props;
|
|
630
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
631
|
+
ui.Box,
|
|
632
|
+
{
|
|
633
|
+
ref,
|
|
634
|
+
className: ["inline-flex", className].filter(Boolean).join(" "),
|
|
635
|
+
role: "group",
|
|
636
|
+
...rest
|
|
637
|
+
}
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
);
|
|
641
|
+
React10__namespace.forwardRef(
|
|
642
|
+
function ButtonGroupRadio2(props, ref) {
|
|
643
|
+
const {
|
|
644
|
+
children,
|
|
645
|
+
onChange,
|
|
646
|
+
variant = "segmented",
|
|
647
|
+
defaultValue,
|
|
648
|
+
loading = false,
|
|
649
|
+
equalWidth = false,
|
|
650
|
+
className,
|
|
651
|
+
...rest
|
|
652
|
+
} = props;
|
|
653
|
+
const firstChildValue = React10__namespace.useMemo(() => {
|
|
654
|
+
const firstChild = Array.isArray(children) ? children[0] : void 0;
|
|
655
|
+
return typeof firstChild?.props.value === "string" ? firstChild.props.value : void 0;
|
|
656
|
+
}, [children]);
|
|
657
|
+
const [value, setValue] = React10__namespace.useState(defaultValue ?? firstChildValue);
|
|
658
|
+
const handleItemClick = React10__namespace.useCallback((event) => {
|
|
659
|
+
const v = event.currentTarget.value;
|
|
660
|
+
setValue(v);
|
|
661
|
+
onChange?.(v);
|
|
662
|
+
}, [onChange]);
|
|
663
|
+
const clonedChildren = React10__namespace.Children.map(children, (child) => {
|
|
664
|
+
return React10__namespace.cloneElement(child, {
|
|
665
|
+
onClick: handleItemClick,
|
|
666
|
+
selected: value === child.props.value,
|
|
667
|
+
variant
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
const childrenLength = React10__namespace.Children.count(children);
|
|
671
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
672
|
+
ui.Box,
|
|
673
|
+
{
|
|
674
|
+
ref,
|
|
675
|
+
className: [
|
|
676
|
+
"inline-flex gap-0",
|
|
677
|
+
equalWidth ? "grid" : "",
|
|
678
|
+
className
|
|
679
|
+
].filter(Boolean).join(" "),
|
|
680
|
+
style: equalWidth ? { gridTemplateColumns: `repeat(${childrenLength}, 1fr)` } : void 0,
|
|
681
|
+
role: "group",
|
|
682
|
+
...rest,
|
|
683
|
+
children: clonedChildren
|
|
684
|
+
}
|
|
685
|
+
) });
|
|
686
|
+
}
|
|
687
|
+
);
|
|
688
|
+
var SIZE2 = {
|
|
689
|
+
sm: 4,
|
|
690
|
+
md: 8,
|
|
691
|
+
lg: 12,
|
|
692
|
+
xl: 16
|
|
693
|
+
};
|
|
694
|
+
function normalizeValue(value, min, max) {
|
|
695
|
+
if (value == null) return 0;
|
|
696
|
+
if (max <= min) return 0;
|
|
697
|
+
return Math.round((value - min) / (max - min) * 100);
|
|
698
|
+
}
|
|
699
|
+
var Progress = React10__namespace.forwardRef(
|
|
700
|
+
function Progress2(props, ref) {
|
|
701
|
+
const {
|
|
702
|
+
value,
|
|
703
|
+
min = 0,
|
|
704
|
+
max = 100,
|
|
705
|
+
size = "md",
|
|
706
|
+
color,
|
|
707
|
+
trackProps,
|
|
708
|
+
style,
|
|
709
|
+
w,
|
|
710
|
+
flex,
|
|
711
|
+
...rest
|
|
712
|
+
} = props;
|
|
713
|
+
const percent = normalizeValue(value, min, max);
|
|
714
|
+
const trackStyle = {
|
|
715
|
+
...trackProps?.style,
|
|
716
|
+
...trackProps?.borderStartRadius !== void 0 && {
|
|
717
|
+
borderStartStartRadius: trackProps.borderStartRadius,
|
|
718
|
+
borderEndStartRadius: trackProps.borderStartRadius
|
|
719
|
+
},
|
|
720
|
+
...trackProps?.borderEndRadius !== void 0 && {
|
|
721
|
+
borderStartEndRadius: trackProps.borderEndRadius,
|
|
722
|
+
borderEndEndRadius: trackProps.borderEndRadius
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
const rootStyle = {
|
|
726
|
+
position: "relative",
|
|
727
|
+
...style,
|
|
728
|
+
...w !== void 0 && { width: w === "full" ? "100%" : w },
|
|
729
|
+
...flex !== void 0 && { flex }
|
|
730
|
+
};
|
|
731
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
732
|
+
"div",
|
|
733
|
+
{
|
|
734
|
+
ref,
|
|
735
|
+
style: rootStyle,
|
|
736
|
+
...rest,
|
|
737
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
738
|
+
gui.Progress,
|
|
739
|
+
{
|
|
740
|
+
value: percent,
|
|
741
|
+
max: 100,
|
|
742
|
+
unstyled: true,
|
|
743
|
+
className: trackProps?.className,
|
|
744
|
+
width: "100%",
|
|
745
|
+
overflow: "hidden",
|
|
746
|
+
borderRadius: 9999,
|
|
747
|
+
height: SIZE2[size],
|
|
748
|
+
backgroundColor: "var(--color-progress-track)",
|
|
749
|
+
style: trackStyle,
|
|
750
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
751
|
+
gui.Progress.Indicator,
|
|
752
|
+
{
|
|
753
|
+
unstyled: true,
|
|
754
|
+
transition: "slow",
|
|
755
|
+
height: "100%",
|
|
756
|
+
borderRadius: 9999,
|
|
757
|
+
backgroundColor: color ? void 0 : "var(--color-progress-indicator)",
|
|
758
|
+
style: {
|
|
759
|
+
...color && { backgroundColor: `var(--color-${color.replace(".", "-")}, ${color})` }
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
)
|
|
763
|
+
}
|
|
764
|
+
)
|
|
765
|
+
}
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
);
|
|
769
|
+
var ResizablePanelGroup = ({
|
|
770
|
+
className,
|
|
771
|
+
...props
|
|
772
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
773
|
+
ResizablePrimitive__namespace.PanelGroup,
|
|
774
|
+
{
|
|
775
|
+
className: ui.cn(
|
|
776
|
+
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
777
|
+
className
|
|
778
|
+
),
|
|
779
|
+
...props
|
|
780
|
+
}
|
|
781
|
+
);
|
|
782
|
+
var ResizablePanel = ResizablePrimitive__namespace.Panel;
|
|
783
|
+
var ResizableHandle = ({
|
|
784
|
+
withHandle,
|
|
785
|
+
className,
|
|
786
|
+
...props
|
|
787
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
788
|
+
ResizablePrimitive__namespace.PanelResizeHandle,
|
|
789
|
+
{
|
|
790
|
+
className: ui.cn(
|
|
791
|
+
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
792
|
+
className
|
|
793
|
+
),
|
|
794
|
+
...props,
|
|
795
|
+
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { style: ui.css("h-2.5 w-2.5") }) })
|
|
796
|
+
}
|
|
797
|
+
);
|
|
798
|
+
var WEIGHT = { xs: 0.5, sm: 1, md: 2, lg: 3 };
|
|
799
|
+
var Separator = React10__namespace.default.forwardRef(
|
|
800
|
+
function Separator2({ orientation = "horizontal", variant = "solid", size = "sm", ...rest }, ref) {
|
|
801
|
+
const vertical = orientation === "vertical";
|
|
802
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
803
|
+
gui.Separator,
|
|
804
|
+
{
|
|
805
|
+
ref,
|
|
806
|
+
vertical,
|
|
807
|
+
role: "separator",
|
|
808
|
+
"aria-orientation": orientation,
|
|
809
|
+
borderWidth: 0,
|
|
810
|
+
borderStyle: variant,
|
|
811
|
+
borderColor: "var(--color-border-divider)",
|
|
812
|
+
...vertical ? { borderLeftWidth: WEIGHT[size], alignSelf: "stretch", height: "auto", width: 0 } : { borderTopWidth: WEIGHT[size], width: "100%" },
|
|
813
|
+
...rest
|
|
814
|
+
}
|
|
815
|
+
);
|
|
816
|
+
}
|
|
817
|
+
);
|
|
818
|
+
var SIZE3 = {
|
|
819
|
+
xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
|
|
820
|
+
sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
|
|
821
|
+
md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
|
|
822
|
+
lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
|
|
823
|
+
"2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
|
|
824
|
+
};
|
|
825
|
+
var VARIANT = {
|
|
826
|
+
outline: { borderWidth: 1, borderStyle: "solid" },
|
|
827
|
+
filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
|
|
828
|
+
unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
|
|
829
|
+
};
|
|
830
|
+
var CONTROL = {
|
|
831
|
+
width: "100%",
|
|
832
|
+
outlineWidth: 0,
|
|
833
|
+
backgroundColor: "var(--color-input-bg)",
|
|
834
|
+
color: "var(--color-input-fg)",
|
|
835
|
+
borderColor: "var(--color-input-border)",
|
|
836
|
+
hoverStyle: { borderColor: "var(--color-input-border-hover)" },
|
|
837
|
+
focusStyle: { borderColor: "var(--color-input-border-focus)" },
|
|
838
|
+
disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
|
|
839
|
+
};
|
|
840
|
+
var Input = React10__namespace.default.forwardRef(
|
|
841
|
+
({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
|
|
842
|
+
const handleChange = React10__namespace.default.useCallback(
|
|
843
|
+
(event) => {
|
|
844
|
+
onChange?.(event);
|
|
845
|
+
onChangeText?.(event.target.value);
|
|
846
|
+
},
|
|
847
|
+
[onChange, onChangeText]
|
|
848
|
+
);
|
|
849
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
850
|
+
gui.Input,
|
|
851
|
+
{
|
|
852
|
+
ref,
|
|
853
|
+
unstyled: true,
|
|
854
|
+
className: className ? `lux-control ${className}` : "lux-control",
|
|
855
|
+
...CONTROL,
|
|
856
|
+
...SIZE3[size],
|
|
857
|
+
...VARIANT[variant],
|
|
858
|
+
...rest,
|
|
859
|
+
onChange: handleChange
|
|
860
|
+
}
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
);
|
|
864
|
+
Input.displayName = "Input";
|
|
865
|
+
var SIZE4 = {
|
|
866
|
+
xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
|
|
867
|
+
sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
|
|
868
|
+
md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
|
|
869
|
+
lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$6", borderRadius: 8 },
|
|
870
|
+
"2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$7", borderRadius: 8 }
|
|
871
|
+
};
|
|
872
|
+
var Textarea = React10__namespace.default.forwardRef(
|
|
873
|
+
({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
|
|
874
|
+
const handleChange = React10__namespace.default.useCallback(
|
|
875
|
+
(event) => {
|
|
876
|
+
onChange?.(event);
|
|
877
|
+
onChangeText?.(event.target.value);
|
|
878
|
+
},
|
|
879
|
+
[onChange, onChangeText]
|
|
880
|
+
);
|
|
881
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
882
|
+
gui.TextArea,
|
|
883
|
+
{
|
|
884
|
+
ref,
|
|
885
|
+
unstyled: true,
|
|
886
|
+
className: className ? `lux-control ${className}` : "lux-control",
|
|
887
|
+
...CONTROL,
|
|
888
|
+
...SIZE4[size],
|
|
889
|
+
...VARIANT[variant],
|
|
890
|
+
...rest,
|
|
891
|
+
onChange: handleChange
|
|
892
|
+
}
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
);
|
|
896
|
+
Textarea.displayName = "Textarea";
|
|
897
|
+
var suggestionVariants = ui.variants(
|
|
898
|
+
"relative rounded-lg border p-3 transition-colors",
|
|
899
|
+
{
|
|
900
|
+
variants: {
|
|
901
|
+
severity: {
|
|
902
|
+
info: "border-[var(--color-link-primary)] bg-[var(--color-link-primary)] dark:border-[var(--color-link-primary)] dark:bg-[var(--color-link-primary)]",
|
|
903
|
+
warning: "border-[var(--lux-state-notice)] bg-[var(--lux-state-notice)] dark:border-[var(--lux-state-notice)] dark:bg-[var(--lux-state-notice)]",
|
|
904
|
+
error: "border-[var(--lux-state-error)] bg-[var(--lux-state-error)] dark:border-[var(--lux-state-error)] dark:bg-[var(--lux-state-error)]"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
defaultVariants: {
|
|
908
|
+
severity: "info"
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
);
|
|
912
|
+
var featureIcons = {
|
|
913
|
+
generate: lucideReact.Wand2,
|
|
914
|
+
explain: lucideReact.Eye,
|
|
915
|
+
refactor: lucideReact.Code,
|
|
916
|
+
debug: lucideReact.Bug,
|
|
917
|
+
test: lucideReact.TestTube,
|
|
918
|
+
document: lucideReact.FileText,
|
|
919
|
+
review: lucideReact.GitCompare
|
|
920
|
+
};
|
|
921
|
+
var languagePatterns = {
|
|
922
|
+
typescript: /\.(tsx?|ts)$/,
|
|
923
|
+
javascript: /\.(jsx?|js|mjs)$/,
|
|
924
|
+
python: /\.py$/,
|
|
925
|
+
java: /\.java$/,
|
|
926
|
+
csharp: /\.cs$/,
|
|
927
|
+
cpp: /\.(cpp|cc|cxx)$/,
|
|
928
|
+
c: /\.c$/,
|
|
929
|
+
go: /\.go$/,
|
|
930
|
+
rust: /\.rs$/,
|
|
931
|
+
php: /\.php$/,
|
|
932
|
+
ruby: /\.rb$/,
|
|
933
|
+
swift: /\.swift$/
|
|
934
|
+
};
|
|
935
|
+
var SecurityPanel = React10__namespace.forwardRef(({ issues, onFixIssue, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { ref, className: ui.cn("space-y-2", className), ...props, children: [
|
|
936
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
937
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { style: ui.css("h-4 w-4") }),
|
|
938
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "font-medium", children: "Security Analysis" }),
|
|
939
|
+
issues.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
940
|
+
Badge,
|
|
941
|
+
{
|
|
942
|
+
colorPalette: issues.some((i) => i.severity === "critical") ? "red" : "gray",
|
|
943
|
+
children: [
|
|
944
|
+
issues.length,
|
|
945
|
+
" issue",
|
|
946
|
+
issues.length !== 1 ? "s" : ""
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
)
|
|
950
|
+
] }),
|
|
951
|
+
issues.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "No security issues detected" }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2", children: issues.map((issue) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
952
|
+
ui.Box,
|
|
953
|
+
{
|
|
954
|
+
className: ui.cn(
|
|
955
|
+
"rounded-lg border p-3 text-sm",
|
|
956
|
+
issue.severity === "critical" && "border-[var(--lux-state-error)] bg-[var(--lux-state-error)] dark:bg-[var(--lux-state-error)]",
|
|
957
|
+
issue.severity === "high" && "border-[var(--lux-state-notice)] bg-[var(--lux-state-notice)] dark:bg-[var(--lux-state-notice)]",
|
|
958
|
+
issue.severity === "medium" && "border-[var(--lux-state-notice)] bg-[var(--lux-state-notice)] dark:bg-[var(--lux-state-notice)]",
|
|
959
|
+
issue.severity === "low" && "border-[var(--color-link-primary)] bg-[var(--color-link-primary)] dark:bg-[var(--color-link-primary)]"
|
|
960
|
+
),
|
|
961
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-start justify-between gap-2", children: [
|
|
962
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-1", children: [
|
|
963
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
964
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
965
|
+
Badge,
|
|
966
|
+
{
|
|
967
|
+
colorPalette: issue.severity === "critical" || issue.severity === "high" ? "red" : "gray",
|
|
968
|
+
...ui.sx("text-xs"),
|
|
969
|
+
children: issue.severity.toUpperCase()
|
|
970
|
+
}
|
|
971
|
+
),
|
|
972
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "span", className: "text-xs text-muted-foreground", children: [
|
|
973
|
+
"Line ",
|
|
974
|
+
issue.line
|
|
975
|
+
] })
|
|
976
|
+
] }),
|
|
977
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: issue.message }),
|
|
978
|
+
issue.fix && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "p", className: "text-xs text-muted-foreground", children: [
|
|
979
|
+
"Fix: ",
|
|
980
|
+
issue.fix
|
|
981
|
+
] })
|
|
982
|
+
] }),
|
|
983
|
+
onFixIssue && issue.fix && /* @__PURE__ */ jsxRuntime.jsx(
|
|
984
|
+
Button,
|
|
985
|
+
{
|
|
986
|
+
size: "sm",
|
|
987
|
+
variant: "outline",
|
|
988
|
+
onClick: () => onFixIssue(issue),
|
|
989
|
+
children: "Fix"
|
|
990
|
+
}
|
|
991
|
+
)
|
|
992
|
+
] })
|
|
993
|
+
},
|
|
994
|
+
issue.id
|
|
995
|
+
)) })
|
|
996
|
+
] }));
|
|
997
|
+
SecurityPanel.displayName = "SecurityPanel";
|
|
998
|
+
var SuggestionsPanel = React10__namespace.forwardRef(({ suggestions, onApplySuggestion, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { ref, className: ui.cn("space-y-2", className), ...props, children: [
|
|
999
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
1000
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { style: ui.css("h-4 w-4") }),
|
|
1001
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "font-medium", children: "AI Suggestions" })
|
|
1002
|
+
] }),
|
|
1003
|
+
suggestions.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "No suggestions available" }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2", children: suggestions.map((suggestion) => {
|
|
1004
|
+
const Icon = featureIcons[suggestion.type] || lucideReact.Code;
|
|
1005
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1006
|
+
ui.Box,
|
|
1007
|
+
{
|
|
1008
|
+
className: ui.cn(
|
|
1009
|
+
suggestionVariants({ severity: suggestion.severity || "info" }),
|
|
1010
|
+
"space-y-2"
|
|
1011
|
+
),
|
|
1012
|
+
children: [
|
|
1013
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-start justify-between gap-2", children: [
|
|
1014
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-1", children: [
|
|
1015
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
1016
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { style: ui.css("h-4 w-4") }),
|
|
1017
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "font-medium text-sm", children: suggestion.title })
|
|
1018
|
+
] }),
|
|
1019
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: suggestion.description }),
|
|
1020
|
+
suggestion.startLine && suggestion.endLine && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "span", className: "text-xs text-muted-foreground", children: [
|
|
1021
|
+
"Lines ",
|
|
1022
|
+
suggestion.startLine,
|
|
1023
|
+
"-",
|
|
1024
|
+
suggestion.endLine
|
|
1025
|
+
] })
|
|
1026
|
+
] }),
|
|
1027
|
+
onApplySuggestion && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1028
|
+
Button,
|
|
1029
|
+
{
|
|
1030
|
+
size: "sm",
|
|
1031
|
+
variant: "outline",
|
|
1032
|
+
onClick: () => onApplySuggestion(suggestion),
|
|
1033
|
+
children: "Apply"
|
|
1034
|
+
}
|
|
1035
|
+
)
|
|
1036
|
+
] }),
|
|
1037
|
+
suggestion.code && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "mt-2 rounded bg-background/50 p-2", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "pre", className: "text-xs overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx("code", { children: suggestion.code }) }) })
|
|
1038
|
+
]
|
|
1039
|
+
},
|
|
1040
|
+
suggestion.id
|
|
1041
|
+
);
|
|
1042
|
+
}) })
|
|
1043
|
+
] }));
|
|
1044
|
+
SuggestionsPanel.displayName = "SuggestionsPanel";
|
|
1045
|
+
var ChatPanel = React10__namespace.forwardRef(
|
|
1046
|
+
({
|
|
1047
|
+
messages,
|
|
1048
|
+
onSendMessage,
|
|
1049
|
+
isGenerating,
|
|
1050
|
+
placeholder = "Ask AI about your code...",
|
|
1051
|
+
className,
|
|
1052
|
+
...props
|
|
1053
|
+
}, ref) => {
|
|
1054
|
+
const [input, setInput] = React10__namespace.useState("");
|
|
1055
|
+
const scrollRef = React10__namespace.useRef(null);
|
|
1056
|
+
React10__namespace.useEffect(() => {
|
|
1057
|
+
if (scrollRef.current) {
|
|
1058
|
+
scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
|
|
1059
|
+
}
|
|
1060
|
+
}, [messages]);
|
|
1061
|
+
const handleSend = () => {
|
|
1062
|
+
if (!input.trim() || isGenerating) return;
|
|
1063
|
+
onSendMessage(input);
|
|
1064
|
+
setInput("");
|
|
1065
|
+
};
|
|
1066
|
+
const handleKeyPress = (e) => {
|
|
1067
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
1068
|
+
e.preventDefault();
|
|
1069
|
+
handleSend();
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1073
|
+
ui.Box,
|
|
1074
|
+
{
|
|
1075
|
+
ref,
|
|
1076
|
+
className: ui.cn("flex h-full flex-col", className),
|
|
1077
|
+
...props,
|
|
1078
|
+
children: [
|
|
1079
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2 p-3 border-b", children: [
|
|
1080
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { style: ui.css("h-4 w-4") }),
|
|
1081
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "font-medium", children: "AI Assistant" })
|
|
1082
|
+
] }),
|
|
1083
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ref: scrollRef, ...ui.sx("flex-1 p-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-3", children: [
|
|
1084
|
+
messages.map((message) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1085
|
+
ui.Box,
|
|
1086
|
+
{
|
|
1087
|
+
className: ui.cn(
|
|
1088
|
+
"flex gap-2",
|
|
1089
|
+
message.role === "user" ? "justify-end" : "justify-start"
|
|
1090
|
+
),
|
|
1091
|
+
children: [
|
|
1092
|
+
message.role === "assistant" && /* @__PURE__ */ jsxRuntime.jsx(ui.Avatar, { ...ui.sx("h-6 w-6 shrink-0"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.AvatarFallback, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { style: ui.css("h-3 w-3") }) }) }),
|
|
1093
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1094
|
+
ui.Box,
|
|
1095
|
+
{
|
|
1096
|
+
className: ui.cn(
|
|
1097
|
+
"max-w-[80%] rounded-lg px-3 py-2 text-sm",
|
|
1098
|
+
message.role === "user" ? "bg-primary text-primary-foreground" : "bg-muted"
|
|
1099
|
+
),
|
|
1100
|
+
children: message.type === "code" ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "pre", className: "overflow-x-auto", children: /* @__PURE__ */ jsxRuntime.jsx("code", { children: message.content }) }) : /* @__PURE__ */ jsxRuntime.jsx("p", { children: message.content })
|
|
1101
|
+
}
|
|
1102
|
+
),
|
|
1103
|
+
message.role === "user" && /* @__PURE__ */ jsxRuntime.jsx(ui.Avatar, { ...ui.sx("h-6 w-6 shrink-0"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.AvatarFallback, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { style: ui.css("h-3 w-3") }) }) })
|
|
1104
|
+
]
|
|
1105
|
+
},
|
|
1106
|
+
message.id
|
|
1107
|
+
)),
|
|
1108
|
+
isGenerating && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2 justify-start", children: [
|
|
1109
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Avatar, { ...ui.sx("h-6 w-6 shrink-0"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.AvatarFallback, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { style: ui.css("h-3 w-3") }) }) }),
|
|
1110
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "bg-muted rounded-lg px-3 py-2 text-sm", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
1111
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-3 w-3 animate-spin") }),
|
|
1112
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "AI is thinking..." })
|
|
1113
|
+
] }) })
|
|
1114
|
+
] })
|
|
1115
|
+
] }) }),
|
|
1116
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "border-t p-3", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2", children: [
|
|
1117
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1118
|
+
Textarea,
|
|
1119
|
+
{
|
|
1120
|
+
value: input,
|
|
1121
|
+
onChange: (e) => setInput(e.target.value),
|
|
1122
|
+
onKeyPress: handleKeyPress,
|
|
1123
|
+
placeholder,
|
|
1124
|
+
disabled: isGenerating,
|
|
1125
|
+
...ui.sx("min-h-[60px] resize-none"),
|
|
1126
|
+
rows: 2
|
|
1127
|
+
}
|
|
1128
|
+
),
|
|
1129
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1130
|
+
Button,
|
|
1131
|
+
{
|
|
1132
|
+
size: "icon",
|
|
1133
|
+
onClick: handleSend,
|
|
1134
|
+
disabled: !input.trim() || isGenerating,
|
|
1135
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Send, { style: ui.css("h-4 w-4") })
|
|
1136
|
+
}
|
|
1137
|
+
)
|
|
1138
|
+
] }) })
|
|
1139
|
+
]
|
|
1140
|
+
}
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
);
|
|
1144
|
+
ChatPanel.displayName = "ChatPanel";
|
|
1145
|
+
var FileTabs = React10__namespace.forwardRef(
|
|
1146
|
+
({
|
|
1147
|
+
files,
|
|
1148
|
+
activeFile,
|
|
1149
|
+
onFileChange,
|
|
1150
|
+
onFileCreate,
|
|
1151
|
+
onFileDelete,
|
|
1152
|
+
className,
|
|
1153
|
+
...props
|
|
1154
|
+
}, ref) => {
|
|
1155
|
+
const [newFileName, setNewFileName] = React10__namespace.useState("");
|
|
1156
|
+
const [isCreating, setIsCreating] = React10__namespace.useState(false);
|
|
1157
|
+
const handleCreateFile = () => {
|
|
1158
|
+
if (newFileName.trim() && onFileCreate) {
|
|
1159
|
+
onFileCreate(newFileName.trim());
|
|
1160
|
+
setNewFileName("");
|
|
1161
|
+
setIsCreating(false);
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1165
|
+
ui.Box,
|
|
1166
|
+
{
|
|
1167
|
+
ref,
|
|
1168
|
+
className: ui.cn(
|
|
1169
|
+
"flex items-center gap-1 border-b bg-muted/30 px-2",
|
|
1170
|
+
className
|
|
1171
|
+
),
|
|
1172
|
+
...props,
|
|
1173
|
+
children: [
|
|
1174
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.ScrollArea, { ...ui.sx("flex-1"), children: [
|
|
1175
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center gap-1 py-1", children: files.map((file) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1176
|
+
Button,
|
|
1177
|
+
{
|
|
1178
|
+
variant: activeFile === file.name ? "secondary" : "ghost",
|
|
1179
|
+
size: "sm",
|
|
1180
|
+
...ui.sx("h-8 gap-2 rounded-t-md rounded-b-none"),
|
|
1181
|
+
onClick: () => onFileChange?.(file.name),
|
|
1182
|
+
children: [
|
|
1183
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileCode, { style: ui.css("h-3 w-3") }),
|
|
1184
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs", children: file.name }),
|
|
1185
|
+
onFileDelete && files.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1186
|
+
Button,
|
|
1187
|
+
{
|
|
1188
|
+
variant: "ghost",
|
|
1189
|
+
size: "icon",
|
|
1190
|
+
...ui.sx("h-4 w-4 hover:bg-destructive hover:text-destructive-foreground"),
|
|
1191
|
+
onClick: (e) => {
|
|
1192
|
+
e.stopPropagation();
|
|
1193
|
+
onFileDelete(file.name);
|
|
1194
|
+
},
|
|
1195
|
+
children: "\xD7"
|
|
1196
|
+
}
|
|
1197
|
+
)
|
|
1198
|
+
]
|
|
1199
|
+
},
|
|
1200
|
+
file.name
|
|
1201
|
+
)) }),
|
|
1202
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.ScrollBar, { orientation: "horizontal" })
|
|
1203
|
+
] }),
|
|
1204
|
+
onFileCreate && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center gap-1", children: isCreating ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-1", children: [
|
|
1205
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1206
|
+
ui.Box,
|
|
1207
|
+
{
|
|
1208
|
+
tag: "input",
|
|
1209
|
+
type: "text",
|
|
1210
|
+
value: newFileName,
|
|
1211
|
+
onChange: (e) => setNewFileName(e.target.value),
|
|
1212
|
+
placeholder: "filename.ext",
|
|
1213
|
+
className: "h-6 w-24 rounded border px-2 text-xs",
|
|
1214
|
+
onKeyPress: (e) => {
|
|
1215
|
+
if (e.key === "Enter") handleCreateFile();
|
|
1216
|
+
if (e.key === "Escape") setIsCreating(false);
|
|
1217
|
+
},
|
|
1218
|
+
autoFocus: true
|
|
1219
|
+
}
|
|
1220
|
+
),
|
|
1221
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1222
|
+
Button,
|
|
1223
|
+
{
|
|
1224
|
+
size: "icon",
|
|
1225
|
+
...ui.sx("h-6 w-6"),
|
|
1226
|
+
onClick: handleCreateFile,
|
|
1227
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { style: ui.css("h-3 w-3") })
|
|
1228
|
+
}
|
|
1229
|
+
)
|
|
1230
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1231
|
+
Button,
|
|
1232
|
+
{
|
|
1233
|
+
variant: "ghost",
|
|
1234
|
+
size: "icon",
|
|
1235
|
+
...ui.sx("h-6 w-6"),
|
|
1236
|
+
onClick: () => setIsCreating(true),
|
|
1237
|
+
children: "+"
|
|
1238
|
+
}
|
|
1239
|
+
) })
|
|
1240
|
+
]
|
|
1241
|
+
}
|
|
1242
|
+
);
|
|
1243
|
+
}
|
|
1244
|
+
);
|
|
1245
|
+
FileTabs.displayName = "FileTabs";
|
|
1246
|
+
var AICode = React10__namespace.forwardRef(
|
|
1247
|
+
({
|
|
1248
|
+
value,
|
|
1249
|
+
defaultValue = "",
|
|
1250
|
+
language = "typescript",
|
|
1251
|
+
theme: themeProp = "auto",
|
|
1252
|
+
height = "500px",
|
|
1253
|
+
onGenerate,
|
|
1254
|
+
onExplain,
|
|
1255
|
+
onRefactor,
|
|
1256
|
+
onDebug,
|
|
1257
|
+
onTest,
|
|
1258
|
+
onDocument,
|
|
1259
|
+
onReview,
|
|
1260
|
+
onSecurityScan,
|
|
1261
|
+
onChange,
|
|
1262
|
+
features = [
|
|
1263
|
+
"generate",
|
|
1264
|
+
"explain",
|
|
1265
|
+
"refactor",
|
|
1266
|
+
"debug",
|
|
1267
|
+
"test",
|
|
1268
|
+
"document",
|
|
1269
|
+
"review"
|
|
1270
|
+
],
|
|
1271
|
+
showMinimap = false,
|
|
1272
|
+
showLineNumbers = true,
|
|
1273
|
+
isGenerating = false,
|
|
1274
|
+
multiFileSupport = false,
|
|
1275
|
+
files = [{ name: "main.ts", content: defaultValue, language }],
|
|
1276
|
+
activeFile,
|
|
1277
|
+
onFileChange,
|
|
1278
|
+
onFileCreate,
|
|
1279
|
+
placeholder = "Ask AI to generate code or explain existing code...",
|
|
1280
|
+
className,
|
|
1281
|
+
...props
|
|
1282
|
+
}, ref) => {
|
|
1283
|
+
const { theme: systemTheme } = nextThemes.useTheme();
|
|
1284
|
+
const [editorValue, setEditorValue] = React10__namespace.useState(value || defaultValue);
|
|
1285
|
+
const [currentLanguage, setCurrentLanguage] = React10__namespace.useState(language);
|
|
1286
|
+
const [explanations, setExplanations] = React10__namespace.useState([]);
|
|
1287
|
+
const [suggestions, setSuggestions] = React10__namespace.useState([]);
|
|
1288
|
+
const [securityIssues, setSecurityIssues] = React10__namespace.useState(
|
|
1289
|
+
[]
|
|
1290
|
+
);
|
|
1291
|
+
const [messages, setMessages] = React10__namespace.useState([]);
|
|
1292
|
+
const [currentFiles, setCurrentFiles] = React10__namespace.useState(files);
|
|
1293
|
+
const [currentActiveFile, setCurrentActiveFile] = React10__namespace.useState(
|
|
1294
|
+
activeFile || files[0]?.name
|
|
1295
|
+
);
|
|
1296
|
+
const [showSidePanel, setShowSidePanel] = React10__namespace.useState(true);
|
|
1297
|
+
const [sidePanelTab, setSidePanelTab] = React10__namespace.useState("chat");
|
|
1298
|
+
const [isProcessing, setIsProcessing] = React10__namespace.useState(false);
|
|
1299
|
+
const [progress, setProgress] = React10__namespace.useState(0);
|
|
1300
|
+
const editorRef = React10__namespace.useRef(null);
|
|
1301
|
+
const currentFile = React10__namespace.useMemo(() => {
|
|
1302
|
+
return currentFiles.find((f) => f.name === currentActiveFile) || currentFiles[0];
|
|
1303
|
+
}, [currentFiles, currentActiveFile]);
|
|
1304
|
+
React10__namespace.useEffect(() => {
|
|
1305
|
+
if (currentFile) {
|
|
1306
|
+
setEditorValue(currentFile.content);
|
|
1307
|
+
setCurrentLanguage(
|
|
1308
|
+
currentFile.language || getLanguageFromFile(currentFile.name)
|
|
1309
|
+
);
|
|
1310
|
+
}
|
|
1311
|
+
}, [currentFile]);
|
|
1312
|
+
React10__namespace.useEffect(() => {
|
|
1313
|
+
if (value !== void 0) {
|
|
1314
|
+
setEditorValue(value);
|
|
1315
|
+
}
|
|
1316
|
+
}, [value]);
|
|
1317
|
+
const resolveTheme = React10__namespace.useMemo(() => {
|
|
1318
|
+
if (themeProp === "auto") {
|
|
1319
|
+
return systemTheme === "dark" ? "vs-dark" : "light";
|
|
1320
|
+
}
|
|
1321
|
+
return themeProp === "dark" ? "vs-dark" : "light";
|
|
1322
|
+
}, [themeProp, systemTheme]);
|
|
1323
|
+
const getLanguageFromFile = React10__namespace.useCallback((fileName) => {
|
|
1324
|
+
for (const [lang, pattern] of Object.entries(languagePatterns)) {
|
|
1325
|
+
if (pattern.test(fileName)) {
|
|
1326
|
+
return lang;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
return "plaintext";
|
|
1330
|
+
}, []);
|
|
1331
|
+
const handleEditorChange = React10__namespace.useCallback(
|
|
1332
|
+
(newValue) => {
|
|
1333
|
+
const content = newValue || "";
|
|
1334
|
+
setEditorValue(content);
|
|
1335
|
+
onChange?.(content);
|
|
1336
|
+
if (multiFileSupport && currentActiveFile) {
|
|
1337
|
+
setCurrentFiles(
|
|
1338
|
+
(prev) => prev.map(
|
|
1339
|
+
(f) => f.name === currentActiveFile ? { ...f, content } : f
|
|
1340
|
+
)
|
|
1341
|
+
);
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
[onChange, multiFileSupport, currentActiveFile]
|
|
1345
|
+
);
|
|
1346
|
+
const handleEditorMount = React10__namespace.useCallback(
|
|
1347
|
+
(editor, monaco) => {
|
|
1348
|
+
editorRef.current = editor;
|
|
1349
|
+
monaco.languages.registerHoverProvider(currentLanguage, {
|
|
1350
|
+
provideHover: (model, position) => {
|
|
1351
|
+
const line = position.lineNumber;
|
|
1352
|
+
const explanation = explanations.find((e) => e.line === line);
|
|
1353
|
+
if (explanation) {
|
|
1354
|
+
return {
|
|
1355
|
+
range: new monaco.Range(line, 1, line, 1),
|
|
1356
|
+
contents: [
|
|
1357
|
+
{ value: `**${explanation.type.toUpperCase()}**` },
|
|
1358
|
+
{ value: explanation.content }
|
|
1359
|
+
]
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
return null;
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
monaco.languages.registerCodeActionProvider(currentLanguage, {
|
|
1366
|
+
provideCodeActions: (model, range, context, token) => {
|
|
1367
|
+
const actions = suggestions.filter(
|
|
1368
|
+
(s) => s.startLine && s.endLine && range.startLineNumber >= s.startLine && range.endLineNumber <= s.endLine
|
|
1369
|
+
).map((suggestion) => ({
|
|
1370
|
+
title: suggestion.title,
|
|
1371
|
+
kind: "quickfix",
|
|
1372
|
+
edit: suggestion.code ? {
|
|
1373
|
+
edits: [
|
|
1374
|
+
{
|
|
1375
|
+
resource: model.uri,
|
|
1376
|
+
edit: {
|
|
1377
|
+
range: new monaco.Range(
|
|
1378
|
+
suggestion.startLine,
|
|
1379
|
+
1,
|
|
1380
|
+
suggestion.endLine,
|
|
1381
|
+
model.getLineMaxColumn(suggestion.endLine)
|
|
1382
|
+
),
|
|
1383
|
+
text: suggestion.code
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
]
|
|
1387
|
+
} : void 0
|
|
1388
|
+
}));
|
|
1389
|
+
return { actions, dispose: () => {
|
|
1390
|
+
} };
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
},
|
|
1394
|
+
[currentLanguage, explanations, suggestions]
|
|
1395
|
+
);
|
|
1396
|
+
const handleGenerate = React10__namespace.useCallback(
|
|
1397
|
+
async (prompt) => {
|
|
1398
|
+
if (!onGenerate) return;
|
|
1399
|
+
setIsProcessing(true);
|
|
1400
|
+
setProgress(0);
|
|
1401
|
+
try {
|
|
1402
|
+
const progressInterval = setInterval(() => {
|
|
1403
|
+
setProgress((prev) => Math.min(prev + 10, 90));
|
|
1404
|
+
}, 200);
|
|
1405
|
+
const newMessage = {
|
|
1406
|
+
id: Date.now().toString(),
|
|
1407
|
+
content: prompt,
|
|
1408
|
+
role: "user",
|
|
1409
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
1410
|
+
type: "prompt"
|
|
1411
|
+
};
|
|
1412
|
+
setMessages((prev) => [...prev, newMessage]);
|
|
1413
|
+
const generatedCode = await onGenerate(prompt);
|
|
1414
|
+
clearInterval(progressInterval);
|
|
1415
|
+
setProgress(100);
|
|
1416
|
+
setEditorValue(generatedCode);
|
|
1417
|
+
onChange?.(generatedCode);
|
|
1418
|
+
const responseMessage = {
|
|
1419
|
+
id: (Date.now() + 1).toString(),
|
|
1420
|
+
content: generatedCode,
|
|
1421
|
+
role: "assistant",
|
|
1422
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
1423
|
+
type: "code"
|
|
1424
|
+
};
|
|
1425
|
+
setMessages((prev) => [...prev, responseMessage]);
|
|
1426
|
+
if (multiFileSupport && currentActiveFile) {
|
|
1427
|
+
setCurrentFiles(
|
|
1428
|
+
(prev) => prev.map(
|
|
1429
|
+
(f) => f.name === currentActiveFile ? { ...f, content: generatedCode } : f
|
|
1430
|
+
)
|
|
1431
|
+
);
|
|
1432
|
+
}
|
|
1433
|
+
} catch (error) {
|
|
1434
|
+
console.error("Failed to generate code:", error);
|
|
1435
|
+
sonner.toast.error("Failed to generate code", {
|
|
1436
|
+
description: "Please try again",
|
|
1437
|
+
action: {
|
|
1438
|
+
label: "Retry",
|
|
1439
|
+
onClick: () => handleGenerate(prompt)
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
} finally {
|
|
1443
|
+
setIsProcessing(false);
|
|
1444
|
+
setProgress(0);
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
[onGenerate, onChange, multiFileSupport, currentActiveFile]
|
|
1448
|
+
);
|
|
1449
|
+
const handleExplain = React10__namespace.useCallback(
|
|
1450
|
+
async (selectedLine) => {
|
|
1451
|
+
if (!onExplain) return;
|
|
1452
|
+
setIsProcessing(true);
|
|
1453
|
+
try {
|
|
1454
|
+
const explanationsResult = await onExplain(editorValue, selectedLine);
|
|
1455
|
+
setExplanations(explanationsResult);
|
|
1456
|
+
setSidePanelTab("suggestions");
|
|
1457
|
+
} catch (error) {
|
|
1458
|
+
console.error("Failed to explain code:", error);
|
|
1459
|
+
sonner.toast.error("Failed to explain code", {
|
|
1460
|
+
description: "Please try again"
|
|
1461
|
+
});
|
|
1462
|
+
} finally {
|
|
1463
|
+
setIsProcessing(false);
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
[onExplain, editorValue]
|
|
1467
|
+
);
|
|
1468
|
+
const handleFeatureAction = React10__namespace.useCallback(
|
|
1469
|
+
async (feature) => {
|
|
1470
|
+
if (isProcessing) return;
|
|
1471
|
+
setIsProcessing(true);
|
|
1472
|
+
try {
|
|
1473
|
+
switch (feature) {
|
|
1474
|
+
case "refactor":
|
|
1475
|
+
if (onRefactor) {
|
|
1476
|
+
const refactoredCode = await onRefactor(editorValue);
|
|
1477
|
+
setEditorValue(refactoredCode);
|
|
1478
|
+
onChange?.(refactoredCode);
|
|
1479
|
+
}
|
|
1480
|
+
break;
|
|
1481
|
+
case "debug":
|
|
1482
|
+
if (onDebug) {
|
|
1483
|
+
const debugSuggestions = await onDebug(editorValue);
|
|
1484
|
+
setSuggestions(debugSuggestions);
|
|
1485
|
+
setSidePanelTab("suggestions");
|
|
1486
|
+
}
|
|
1487
|
+
break;
|
|
1488
|
+
case "test":
|
|
1489
|
+
if (onTest) {
|
|
1490
|
+
const testCode = await onTest(editorValue);
|
|
1491
|
+
const testMessage = {
|
|
1492
|
+
id: Date.now().toString(),
|
|
1493
|
+
content: testCode,
|
|
1494
|
+
role: "assistant",
|
|
1495
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
1496
|
+
type: "code"
|
|
1497
|
+
};
|
|
1498
|
+
setMessages((prev) => [...prev, testMessage]);
|
|
1499
|
+
setSidePanelTab("chat");
|
|
1500
|
+
}
|
|
1501
|
+
break;
|
|
1502
|
+
case "document":
|
|
1503
|
+
if (onDocument) {
|
|
1504
|
+
const documentation = await onDocument(editorValue);
|
|
1505
|
+
const docMessage = {
|
|
1506
|
+
id: Date.now().toString(),
|
|
1507
|
+
content: documentation,
|
|
1508
|
+
role: "assistant",
|
|
1509
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
1510
|
+
type: "explanation"
|
|
1511
|
+
};
|
|
1512
|
+
setMessages((prev) => [...prev, docMessage]);
|
|
1513
|
+
setSidePanelTab("chat");
|
|
1514
|
+
}
|
|
1515
|
+
break;
|
|
1516
|
+
case "review":
|
|
1517
|
+
if (onReview) {
|
|
1518
|
+
const reviewSuggestions = await onReview(editorValue);
|
|
1519
|
+
setSuggestions(reviewSuggestions);
|
|
1520
|
+
setSidePanelTab("suggestions");
|
|
1521
|
+
}
|
|
1522
|
+
break;
|
|
1523
|
+
}
|
|
1524
|
+
} catch (error) {
|
|
1525
|
+
console.error(`Failed to ${feature}:`, error);
|
|
1526
|
+
} finally {
|
|
1527
|
+
setIsProcessing(false);
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
[
|
|
1531
|
+
isProcessing,
|
|
1532
|
+
editorValue,
|
|
1533
|
+
onRefactor,
|
|
1534
|
+
onDebug,
|
|
1535
|
+
onTest,
|
|
1536
|
+
onDocument,
|
|
1537
|
+
onReview,
|
|
1538
|
+
onChange
|
|
1539
|
+
]
|
|
1540
|
+
);
|
|
1541
|
+
const handleSecurityScan = React10__namespace.useCallback(async () => {
|
|
1542
|
+
if (!onSecurityScan) return;
|
|
1543
|
+
setIsProcessing(true);
|
|
1544
|
+
try {
|
|
1545
|
+
const issues = await onSecurityScan(editorValue);
|
|
1546
|
+
setSecurityIssues(issues);
|
|
1547
|
+
setSidePanelTab("security");
|
|
1548
|
+
} catch (error) {
|
|
1549
|
+
console.error("Failed to scan for security issues:", error);
|
|
1550
|
+
sonner.toast.error("Security scan failed", {
|
|
1551
|
+
description: "Please try again"
|
|
1552
|
+
});
|
|
1553
|
+
} finally {
|
|
1554
|
+
setIsProcessing(false);
|
|
1555
|
+
}
|
|
1556
|
+
}, [onSecurityScan, editorValue]);
|
|
1557
|
+
const handleFileChange = React10__namespace.useCallback(
|
|
1558
|
+
(fileName) => {
|
|
1559
|
+
setCurrentActiveFile(fileName);
|
|
1560
|
+
onFileChange?.(fileName);
|
|
1561
|
+
},
|
|
1562
|
+
[onFileChange]
|
|
1563
|
+
);
|
|
1564
|
+
const handleFileCreate = React10__namespace.useCallback(
|
|
1565
|
+
(fileName) => {
|
|
1566
|
+
const newFile = {
|
|
1567
|
+
name: fileName,
|
|
1568
|
+
content: "",
|
|
1569
|
+
language: getLanguageFromFile(fileName)
|
|
1570
|
+
};
|
|
1571
|
+
setCurrentFiles((prev) => [...prev, newFile]);
|
|
1572
|
+
setCurrentActiveFile(fileName);
|
|
1573
|
+
onFileCreate?.(fileName, "");
|
|
1574
|
+
},
|
|
1575
|
+
[getLanguageFromFile, onFileCreate]
|
|
1576
|
+
);
|
|
1577
|
+
const handleFileDelete = React10__namespace.useCallback(
|
|
1578
|
+
(fileName) => {
|
|
1579
|
+
if (currentFiles.length <= 1) return;
|
|
1580
|
+
setCurrentFiles((prev) => prev.filter((f) => f.name !== fileName));
|
|
1581
|
+
if (currentActiveFile === fileName) {
|
|
1582
|
+
const remainingFiles = currentFiles.filter((f) => f.name !== fileName);
|
|
1583
|
+
setCurrentActiveFile(remainingFiles[0]?.name);
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
[currentFiles, currentActiveFile]
|
|
1587
|
+
);
|
|
1588
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.TooltipProvider, { delay: 0, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1589
|
+
ui.Box,
|
|
1590
|
+
{
|
|
1591
|
+
ref,
|
|
1592
|
+
className: ui.cn(
|
|
1593
|
+
"flex h-full w-full flex-col overflow-hidden rounded-lg border bg-background",
|
|
1594
|
+
className
|
|
1595
|
+
),
|
|
1596
|
+
...props,
|
|
1597
|
+
children: [
|
|
1598
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between border-b bg-muted/50 p-2", children: [
|
|
1599
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-1", children: [
|
|
1600
|
+
features.map((feature) => {
|
|
1601
|
+
const Icon = featureIcons[feature];
|
|
1602
|
+
const isActive = feature === "explain" && explanations.length > 0;
|
|
1603
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
1604
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1605
|
+
Button,
|
|
1606
|
+
{
|
|
1607
|
+
variant: isActive ? "secondary" : "ghost",
|
|
1608
|
+
size: "sm",
|
|
1609
|
+
...ui.sx("h-8 gap-1.5 px-2"),
|
|
1610
|
+
onClick: () => {
|
|
1611
|
+
if (feature === "explain") {
|
|
1612
|
+
handleExplain();
|
|
1613
|
+
} else {
|
|
1614
|
+
handleFeatureAction(feature);
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
disabled: isProcessing,
|
|
1618
|
+
children: [
|
|
1619
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { style: ui.css("h-3 w-3") }),
|
|
1620
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs capitalize", children: feature })
|
|
1621
|
+
]
|
|
1622
|
+
}
|
|
1623
|
+
) }),
|
|
1624
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
1625
|
+
"AI ",
|
|
1626
|
+
feature,
|
|
1627
|
+
" assistance"
|
|
1628
|
+
] }) })
|
|
1629
|
+
] }, feature);
|
|
1630
|
+
}),
|
|
1631
|
+
/* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical", ...ui.sx("h-4") }),
|
|
1632
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
1633
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1634
|
+
Button,
|
|
1635
|
+
{
|
|
1636
|
+
variant: "ghost",
|
|
1637
|
+
size: "sm",
|
|
1638
|
+
...ui.sx("h-8 gap-1.5 px-2"),
|
|
1639
|
+
onClick: handleSecurityScan,
|
|
1640
|
+
disabled: isProcessing,
|
|
1641
|
+
children: [
|
|
1642
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { style: ui.css("h-3 w-3") }),
|
|
1643
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs", children: "Security" })
|
|
1644
|
+
]
|
|
1645
|
+
}
|
|
1646
|
+
) }),
|
|
1647
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Scan for security vulnerabilities" }) })
|
|
1648
|
+
] })
|
|
1649
|
+
] }),
|
|
1650
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
1651
|
+
isProcessing && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
1652
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-3 w-3 animate-spin") }),
|
|
1653
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs text-muted-foreground", children: "Processing..." }),
|
|
1654
|
+
progress > 0 && /* @__PURE__ */ jsxRuntime.jsx(Progress, { value: progress, ...ui.sx("w-16 h-1") })
|
|
1655
|
+
] }),
|
|
1656
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1657
|
+
Button,
|
|
1658
|
+
{
|
|
1659
|
+
variant: "ghost",
|
|
1660
|
+
size: "sm",
|
|
1661
|
+
...ui.sx("h-8"),
|
|
1662
|
+
onClick: () => setShowSidePanel(!showSidePanel),
|
|
1663
|
+
children: showSidePanel ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.EyeOff, { style: ui.css("h-3 w-3") }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { style: ui.css("h-3 w-3") })
|
|
1664
|
+
}
|
|
1665
|
+
),
|
|
1666
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
|
|
1667
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "ghost", size: "sm", ...ui.sx("h-8 gap-1"), children: [
|
|
1668
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { style: ui.css("h-3 w-3") }),
|
|
1669
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { style: ui.css("h-3 w-3") })
|
|
1670
|
+
] }) }),
|
|
1671
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuContent, { align: "end", children: [
|
|
1672
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1673
|
+
ui.DropdownMenuCheckboxItem,
|
|
1674
|
+
{
|
|
1675
|
+
checked: showMinimap,
|
|
1676
|
+
onCheckedChange: (checked) => {
|
|
1677
|
+
},
|
|
1678
|
+
children: "Show Minimap"
|
|
1679
|
+
}
|
|
1680
|
+
),
|
|
1681
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1682
|
+
ui.DropdownMenuCheckboxItem,
|
|
1683
|
+
{
|
|
1684
|
+
checked: showLineNumbers,
|
|
1685
|
+
onCheckedChange: (checked) => {
|
|
1686
|
+
},
|
|
1687
|
+
children: "Show Line Numbers"
|
|
1688
|
+
}
|
|
1689
|
+
),
|
|
1690
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuSeparator, {}),
|
|
1691
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { children: [
|
|
1692
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { style: ui.css("mr-2 h-3 w-3") }),
|
|
1693
|
+
"Export Code"
|
|
1694
|
+
] }),
|
|
1695
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { children: [
|
|
1696
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { style: ui.css("mr-2 h-3 w-3") }),
|
|
1697
|
+
"Import Code"
|
|
1698
|
+
] })
|
|
1699
|
+
] })
|
|
1700
|
+
] })
|
|
1701
|
+
] })
|
|
1702
|
+
] }),
|
|
1703
|
+
multiFileSupport && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1704
|
+
FileTabs,
|
|
1705
|
+
{
|
|
1706
|
+
files: currentFiles,
|
|
1707
|
+
activeFile: currentActiveFile,
|
|
1708
|
+
onFileChange: handleFileChange,
|
|
1709
|
+
onFileCreate: onFileCreate ? handleFileCreate : void 0,
|
|
1710
|
+
onFileDelete: currentFiles.length > 1 ? handleFileDelete : void 0
|
|
1711
|
+
}
|
|
1712
|
+
),
|
|
1713
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ResizablePanelGroup, { direction: "horizontal", className: "flex-1", children: [
|
|
1714
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResizablePanel, { defaultSize: showSidePanel ? 70 : 100, minSize: 30, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1715
|
+
Editor__default.default,
|
|
1716
|
+
{
|
|
1717
|
+
height,
|
|
1718
|
+
language: currentLanguage,
|
|
1719
|
+
value: editorValue,
|
|
1720
|
+
theme: resolveTheme,
|
|
1721
|
+
onChange: handleEditorChange,
|
|
1722
|
+
onMount: handleEditorMount,
|
|
1723
|
+
options: {
|
|
1724
|
+
readOnly: isGenerating || isProcessing,
|
|
1725
|
+
lineNumbers: showLineNumbers ? "on" : "off",
|
|
1726
|
+
minimap: { enabled: showMinimap },
|
|
1727
|
+
wordWrap: "on",
|
|
1728
|
+
fontSize: 14,
|
|
1729
|
+
scrollBeyondLastLine: false,
|
|
1730
|
+
automaticLayout: true,
|
|
1731
|
+
tabSize: 2,
|
|
1732
|
+
insertSpaces: true,
|
|
1733
|
+
formatOnPaste: true,
|
|
1734
|
+
formatOnType: true,
|
|
1735
|
+
quickSuggestions: true,
|
|
1736
|
+
parameterHints: { enabled: true },
|
|
1737
|
+
suggestOnTriggerCharacters: true,
|
|
1738
|
+
acceptSuggestionOnEnter: "on",
|
|
1739
|
+
accessibilitySupport: "auto",
|
|
1740
|
+
scrollbar: {
|
|
1741
|
+
vertical: "auto",
|
|
1742
|
+
horizontal: "auto",
|
|
1743
|
+
verticalScrollbarSize: 10,
|
|
1744
|
+
horizontalScrollbarSize: 10
|
|
1745
|
+
},
|
|
1746
|
+
padding: {
|
|
1747
|
+
top: 16,
|
|
1748
|
+
bottom: 16
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
) }) }),
|
|
1753
|
+
showSidePanel && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1754
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResizableHandle, {}),
|
|
1755
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResizablePanel, { defaultSize: 30, minSize: 20, maxSize: 50, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1756
|
+
ui.Tabs,
|
|
1757
|
+
{
|
|
1758
|
+
value: sidePanelTab,
|
|
1759
|
+
onValueChange: (value2) => setSidePanelTab(value2),
|
|
1760
|
+
children: [
|
|
1761
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.TabsList, { ...ui.sx("grid w-full grid-cols-3"), children: [
|
|
1762
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.TabsTrigger, { value: "chat", ...ui.sx("text-xs"), children: [
|
|
1763
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { style: ui.css("h-3 w-3 mr-1") }),
|
|
1764
|
+
"Chat"
|
|
1765
|
+
] }),
|
|
1766
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.TabsTrigger, { value: "suggestions", ...ui.sx("text-xs"), children: [
|
|
1767
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { style: ui.css("h-3 w-3 mr-1") }),
|
|
1768
|
+
"AI",
|
|
1769
|
+
suggestions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1770
|
+
Badge,
|
|
1771
|
+
{
|
|
1772
|
+
colorPalette: "gray",
|
|
1773
|
+
...ui.sx("ml-1 h-4 text-xs"),
|
|
1774
|
+
children: suggestions.length
|
|
1775
|
+
}
|
|
1776
|
+
)
|
|
1777
|
+
] }),
|
|
1778
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.TabsTrigger, { value: "security", ...ui.sx("text-xs"), children: [
|
|
1779
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { style: ui.css("h-3 w-3 mr-1") }),
|
|
1780
|
+
"Security",
|
|
1781
|
+
securityIssues.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1782
|
+
Badge,
|
|
1783
|
+
{
|
|
1784
|
+
colorPalette: securityIssues.some(
|
|
1785
|
+
(i) => i.severity === "critical"
|
|
1786
|
+
) ? "red" : "gray",
|
|
1787
|
+
...ui.sx("ml-1 h-4 text-xs"),
|
|
1788
|
+
children: securityIssues.length
|
|
1789
|
+
}
|
|
1790
|
+
)
|
|
1791
|
+
] })
|
|
1792
|
+
] }),
|
|
1793
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "chat", ...ui.sx("h-[calc(100%-40px)]"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1794
|
+
ChatPanel,
|
|
1795
|
+
{
|
|
1796
|
+
messages,
|
|
1797
|
+
onSendMessage: handleGenerate,
|
|
1798
|
+
isGenerating: isGenerating || isProcessing,
|
|
1799
|
+
placeholder
|
|
1800
|
+
}
|
|
1801
|
+
) }),
|
|
1802
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1803
|
+
ui.TabsContent,
|
|
1804
|
+
{
|
|
1805
|
+
value: "suggestions",
|
|
1806
|
+
...ui.sx("h-[calc(100%-40px)] overflow-hidden"),
|
|
1807
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ...ui.sx("h-full p-3"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1808
|
+
SuggestionsPanel,
|
|
1809
|
+
{
|
|
1810
|
+
suggestions,
|
|
1811
|
+
onApplySuggestion: (suggestion) => {
|
|
1812
|
+
if (suggestion.code) {
|
|
1813
|
+
setEditorValue(suggestion.code);
|
|
1814
|
+
onChange?.(suggestion.code);
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
) })
|
|
1819
|
+
}
|
|
1820
|
+
),
|
|
1821
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1822
|
+
ui.TabsContent,
|
|
1823
|
+
{
|
|
1824
|
+
value: "security",
|
|
1825
|
+
...ui.sx("h-[calc(100%-40px)] overflow-hidden"),
|
|
1826
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ...ui.sx("h-full p-3"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1827
|
+
SecurityPanel,
|
|
1828
|
+
{
|
|
1829
|
+
issues: securityIssues,
|
|
1830
|
+
onFixIssue: (issue) => {
|
|
1831
|
+
if (issue.fix && editorRef.current) {
|
|
1832
|
+
const model = editorRef.current.getModel();
|
|
1833
|
+
if (model) {
|
|
1834
|
+
const line = model.getLineContent(issue.line);
|
|
1835
|
+
const newLine = issue.fix;
|
|
1836
|
+
editorRef.current.executeEdits("security-fix", [
|
|
1837
|
+
{
|
|
1838
|
+
range: {
|
|
1839
|
+
startLineNumber: issue.line,
|
|
1840
|
+
startColumn: 1,
|
|
1841
|
+
endLineNumber: issue.line,
|
|
1842
|
+
endColumn: line.length + 1
|
|
1843
|
+
},
|
|
1844
|
+
text: newLine
|
|
1845
|
+
}
|
|
1846
|
+
]);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
) })
|
|
1852
|
+
}
|
|
1853
|
+
)
|
|
1854
|
+
]
|
|
1855
|
+
}
|
|
1856
|
+
) })
|
|
1857
|
+
] })
|
|
1858
|
+
] })
|
|
1859
|
+
]
|
|
1860
|
+
}
|
|
1861
|
+
) });
|
|
1862
|
+
}
|
|
1863
|
+
);
|
|
1864
|
+
AICode.displayName = "AICode";
|
|
1865
|
+
|
|
1866
|
+
exports.AICode = AICode;
|