@mks2508/mks-ui 0.3.2 → 0.5.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/react-ui/blocks/Terminal/ResttyAdapter.d.ts +146 -0
- package/dist/react-ui/blocks/Terminal/ResttyAdapter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/ResttyAdapter.js +213 -0
- package/dist/react-ui/blocks/Terminal/Terminal.adapter.d.ts +55 -0
- package/dist/react-ui/blocks/Terminal/Terminal.adapter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/Terminal.adapter.js +68 -0
- package/dist/react-ui/blocks/Terminal/Terminal.theme.d.ts +43 -0
- package/dist/react-ui/blocks/Terminal/Terminal.theme.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/Terminal.theme.js +59 -0
- package/dist/react-ui/blocks/Terminal/Terminal.theme.restty.d.ts +63 -0
- package/dist/react-ui/blocks/Terminal/Terminal.theme.restty.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/Terminal.theme.restty.js +109 -0
- package/dist/react-ui/blocks/Terminal/Terminal.types.d.ts +351 -0
- package/dist/react-ui/blocks/Terminal/Terminal.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.d.ts +46 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.js +168 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.d.ts +21 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.js +31 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts +56 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalPanel.d.ts +60 -0
- package/dist/react-ui/blocks/Terminal/TerminalPanel.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalPanel.js +183 -0
- package/dist/react-ui/blocks/Terminal/TerminalRestty.d.ts +111 -0
- package/dist/react-ui/blocks/Terminal/TerminalRestty.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalRestty.js +185 -0
- package/dist/react-ui/blocks/Terminal/TerminalXterm.d.ts +58 -0
- package/dist/react-ui/blocks/Terminal/TerminalXterm.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/TerminalXterm.js +143 -0
- package/dist/react-ui/blocks/Terminal/XTermAdapter.d.ts +87 -0
- package/dist/react-ui/blocks/Terminal/XTermAdapter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/XTermAdapter.js +135 -0
- package/dist/react-ui/blocks/Terminal/chrome.d.ts +14 -0
- package/dist/react-ui/blocks/Terminal/chrome.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/chrome.js +6 -0
- package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts +160 -0
- package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/components/LogLineBadges.js +185 -0
- package/dist/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.d.ts +48 -0
- package/dist/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.js +139 -0
- package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.d.ts +60 -0
- package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.js +352 -0
- package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.d.ts +36 -0
- package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.js +52 -0
- package/dist/react-ui/blocks/Terminal/components/index.d.ts +10 -0
- package/dist/react-ui/blocks/Terminal/components/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/components/index.js +4 -0
- package/dist/react-ui/blocks/Terminal/display.d.ts +20 -0
- package/dist/react-ui/blocks/Terminal/display.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/display.js +9 -0
- package/dist/react-ui/blocks/Terminal/hooks/index.d.ts +11 -0
- package/dist/react-ui/blocks/Terminal/hooks/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/hooks/index.js +2 -0
- package/dist/react-ui/blocks/Terminal/hooks/useTerminalSettings.d.ts +69 -0
- package/dist/react-ui/blocks/Terminal/hooks/useTerminalSettings.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/hooks/useTerminalSettings.js +162 -0
- package/dist/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.d.ts +104 -0
- package/dist/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.js +180 -0
- package/dist/react-ui/blocks/Terminal/index.d.ts +43 -0
- package/dist/react-ui/blocks/Terminal/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/index.js +41 -0
- package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.d.ts +58 -0
- package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.js +222 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.d.ts +74 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.js +168 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.d.ts +42 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.js +175 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs.d.ts +43 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.d.ts +38 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.js +62 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.d.ts +67 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.d.ts +32 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.js +326 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.d.ts +36 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.js +371 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.d.ts +67 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.js +417 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.d.ts +197 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts +55 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.js +214 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.d.ts +35 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.js +57 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts +62 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.d.ts +30 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.js +126 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.d.ts +31 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.js +149 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.d.ts +35 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl.d.ts +58 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.d.ts +63 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.js +245 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.d.ts +24 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.js +225 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.d.ts +35 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.js +187 -0
- package/dist/react-ui/blocks/Terminal/panel/index.d.ts +30 -0
- package/dist/react-ui/blocks/Terminal/panel/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module-CNVWCefU.css +60 -0
- package/dist/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module.js +5 -0
- package/dist/react-ui/blocks/Terminal/panel/terminal-session-tabs.module-cmyJ11jP.css +60 -0
- package/dist/react-ui/blocks/Terminal/panel/terminal-session-tabs.module.js +5 -0
- package/dist/react-ui/blocks/Terminal/parsing/BadgeFormatter.d.ts +73 -0
- package/dist/react-ui/blocks/Terminal/parsing/BadgeFormatter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/BadgeFormatter.js +136 -0
- package/dist/react-ui/blocks/Terminal/parsing/HttpLogParser.d.ts +117 -0
- package/dist/react-ui/blocks/Terminal/parsing/HttpLogParser.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/HttpLogParser.js +174 -0
- package/dist/react-ui/blocks/Terminal/parsing/LogParser.types.d.ts +221 -0
- package/dist/react-ui/blocks/Terminal/parsing/LogParser.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/LogParserService.d.ts +184 -0
- package/dist/react-ui/blocks/Terminal/parsing/LogParserService.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/LogParserService.js +478 -0
- package/dist/react-ui/blocks/Terminal/parsing/MultilineAggregator.d.ts +173 -0
- package/dist/react-ui/blocks/Terminal/parsing/MultilineAggregator.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/MultilineAggregator.js +313 -0
- package/dist/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.d.ts +181 -0
- package/dist/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.js +221 -0
- package/dist/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.d.ts +69 -0
- package/dist/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.js +142 -0
- package/dist/react-ui/blocks/Terminal/parsing/TableParser.d.ts +125 -0
- package/dist/react-ui/blocks/Terminal/parsing/TableParser.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/TableParser.js +245 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.d.ts +165 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.js +225 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.d.ts +164 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.js +285 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.d.ts +188 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.js +178 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/index.d.ts +12 -0
- package/dist/react-ui/blocks/Terminal/parsing/ansi/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/index.d.ts +24 -0
- package/dist/react-ui/blocks/Terminal/parsing/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevel.types.d.ts +56 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevel.types.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.d.ts +140 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.js +325 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/index.d.ts +10 -0
- package/dist/react-ui/blocks/Terminal/parsing/levels/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/index.d.ts +11 -0
- package/dist/react-ui/blocks/index.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/activity.js +1 -1
- package/dist/react-ui/icons/lucide-animated/bell-electric.js +1 -1
- package/dist/react-ui/icons/lucide-animated/bell.js +1 -1
- package/dist/react-ui/icons/lucide-animated/bot.js +1 -1
- package/dist/react-ui/icons/lucide-animated/box.js +1 -1
- package/dist/react-ui/icons/lucide-animated/circle-check.js +1 -1
- package/dist/react-ui/icons/lucide-animated/delete.js +1 -1
- package/dist/react-ui/icons/lucide-animated/download.js +1 -1
- package/dist/react-ui/icons/lucide-animated/home.js +1 -1
- package/dist/react-ui/icons/lucide-animated/layout-panel-top.js +1 -1
- package/dist/react-ui/icons/lucide-animated/plus.js +1 -1
- package/dist/react-ui/icons/lucide-animated/search.js +1 -1
- package/dist/react-ui/icons/lucide-animated/settings.js +1 -1
- package/dist/react-ui/icons/lucide-animated/trending-down.js +1 -1
- package/dist/react-ui/icons/lucide-animated/trending-up.js +1 -1
- package/dist/react-ui/icons/lucide-animated/x.js +1 -1
- package/dist/react-ui/index.js +3 -1
- package/dist/react-ui/lib/icon-wrapper.d.ts +37 -0
- package/dist/react-ui/lib/icon-wrapper.d.ts.map +1 -0
- package/dist/react-ui/lib/icon-wrapper.js +55 -0
- package/dist/react-ui/lib/index.d.ts +1 -0
- package/dist/react-ui/lib/index.d.ts.map +1 -1
- package/dist/react-ui/lib/index.js +1 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.js +2 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.js +2 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.js +2 -0
- package/dist/react-ui/primitives/waapi/Morph/useMorph.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/Morph/useMorph.js +2 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorder.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/Reorder/useReorder.js +2 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.js +2 -0
- package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.js +2 -0
- package/dist/react-ui/primitives/waapi/core/useElementRegistry.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/core/useElementRegistry.js +2 -0
- package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.js +2 -0
- package/dist/react-ui/primitives/waapi/core/usePositionCapture.d.ts.map +1 -1
- package/dist/react-ui/primitives/waapi/core/usePositionCapture.js +2 -0
- package/dist/react-ui/ui/Button/Button.styles.d.ts +1 -1
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts +1 -1
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.js +1 -1
- package/dist/react-ui/ui/InputGroup/index.d.ts.map +1 -1
- package/dist/react-ui/ui/InputGroup/index.js +2 -0
- package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts +43 -25
- package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/react-ui/ui/Tabs/Tabs.styles.js +105 -13
- package/dist/react-ui/ui/Tabs/Tabs.types.d.ts +6 -3
- package/dist/react-ui/ui/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/react-ui/ui/Tabs/index.d.ts +18 -9
- package/dist/react-ui/ui/Tabs/index.d.ts.map +1 -1
- package/dist/react-ui/ui/Tabs/index.js +99 -27
- package/dist/react-ui/ui/index.js +1 -0
- package/package.json +84 -29
- package/src/css.d.ts +6 -0
- package/src/react-ui/blocks/Terminal/ResttyAdapter.ts +278 -0
- package/src/react-ui/blocks/Terminal/Terminal.adapter.ts +97 -0
- package/src/react-ui/blocks/Terminal/Terminal.theme.restty.ts +155 -0
- package/src/react-ui/blocks/Terminal/Terminal.theme.ts +80 -0
- package/src/react-ui/blocks/Terminal/Terminal.types.ts +438 -0
- package/src/react-ui/blocks/Terminal/TerminalDisplay.styles.ts +38 -0
- package/src/react-ui/blocks/Terminal/TerminalDisplay.tsx +243 -0
- package/src/react-ui/blocks/Terminal/TerminalDisplay.types.ts +73 -0
- package/src/react-ui/blocks/Terminal/TerminalPanel.tsx +269 -0
- package/src/react-ui/blocks/Terminal/TerminalRestty.tsx +326 -0
- package/src/react-ui/blocks/Terminal/TerminalXterm.tsx +230 -0
- package/src/react-ui/blocks/Terminal/XTermAdapter.ts +163 -0
- package/src/react-ui/blocks/Terminal/chrome.ts +25 -0
- package/src/react-ui/blocks/Terminal/components/LogLineBadges.tsx +316 -0
- package/src/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.tsx +218 -0
- package/src/react-ui/blocks/Terminal/components/SyntaxHighlight.tsx +386 -0
- package/src/react-ui/blocks/Terminal/components/TerminalLogBadge.tsx +67 -0
- package/src/react-ui/blocks/Terminal/components/index.ts +10 -0
- package/src/react-ui/blocks/Terminal/display.ts +46 -0
- package/src/react-ui/blocks/Terminal/hooks/index.ts +22 -0
- package/src/react-ui/blocks/Terminal/hooks/useTerminalSettings.ts +229 -0
- package/src/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.ts +292 -0
- package/src/react-ui/blocks/Terminal/index.ts +111 -0
- package/src/react-ui/blocks/Terminal/panel/LogLinesViewer.tsx +330 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalDebugPanel.tsx +242 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.tsx +202 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalFilterTabs.tsx +140 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.tsx +68 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.ts +85 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.tsx +383 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.tsx +439 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalLogsPanel.tsx +550 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.ts +259 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.ts +75 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.tsx +266 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.ts +82 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelFooter.tsx +112 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelHeader.tsx +178 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.tsx +203 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalSessionControl.tsx +252 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalSessionTabs.tsx +334 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.tsx +261 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalThemeSelector.tsx +248 -0
- package/src/react-ui/blocks/Terminal/panel/index.ts +72 -0
- package/src/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module.css +59 -0
- package/src/react-ui/blocks/Terminal/panel/terminal-session-tabs.module.css +59 -0
- package/src/react-ui/blocks/Terminal/parsing/BadgeFormatter.ts +180 -0
- package/src/react-ui/blocks/Terminal/parsing/HttpLogParser.ts +248 -0
- package/src/react-ui/blocks/Terminal/parsing/LogParser.types.ts +283 -0
- package/src/react-ui/blocks/Terminal/parsing/LogParserService.ts +686 -0
- package/src/react-ui/blocks/Terminal/parsing/MultilineAggregator.ts +466 -0
- package/src/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.ts +343 -0
- package/src/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.ts +167 -0
- package/src/react-ui/blocks/Terminal/parsing/TableParser.ts +348 -0
- package/src/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.ts +251 -0
- package/src/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.ts +390 -0
- package/src/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.ts +320 -0
- package/src/react-ui/blocks/Terminal/parsing/ansi/index.ts +20 -0
- package/src/react-ui/blocks/Terminal/parsing/index.ts +69 -0
- package/src/react-ui/blocks/Terminal/parsing/levels/LogLevel.types.ts +68 -0
- package/src/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.ts +436 -0
- package/src/react-ui/blocks/Terminal/parsing/levels/index.ts +14 -0
- package/src/react-ui/blocks/index.ts +11 -0
- package/src/react-ui/icons/lucide-animated/activity.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/bell-electric.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/bell.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/bot.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/box.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/circle-check.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/delete.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/download.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/home.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/layout-panel-top.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/plus.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/search.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/settings.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/trending-down.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/trending-up.tsx +2 -2
- package/src/react-ui/icons/lucide-animated/x.tsx +2 -2
- package/src/react-ui/lib/icon-wrapper.tsx +70 -0
- package/src/react-ui/lib/index.ts +1 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.ts +1 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.ts +1 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.ts +1 -0
- package/src/react-ui/primitives/waapi/Morph/useMorph.ts +1 -0
- package/src/react-ui/primitives/waapi/Reorder/useReorder.ts +1 -0
- package/src/react-ui/primitives/waapi/Reorder/useReorderPresence.ts +1 -0
- package/src/react-ui/primitives/waapi/core/useAnimationOrchestrator.ts +1 -0
- package/src/react-ui/primitives/waapi/core/useElementRegistry.ts +1 -0
- package/src/react-ui/primitives/waapi/core/useFLIPAnimation.ts +1 -0
- package/src/react-ui/primitives/waapi/core/usePositionCapture.ts +1 -0
- package/src/react-ui/ui/Accordion/index.tsx +3 -3
- package/src/react-ui/ui/CornerBracket/CornerBracket.styles.ts +1 -1
- package/src/react-ui/ui/InputGroup/index.tsx +2 -0
- package/src/react-ui/ui/Tabs/Tabs.css +39 -0
- package/src/react-ui/ui/Tabs/Tabs.styles.ts +119 -31
- package/src/react-ui/ui/Tabs/Tabs.types.ts +8 -3
- package/src/react-ui/ui/Tabs/index.tsx +135 -27
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { ListIcon } from "../../../icons/lucide-animated/list.js";
|
|
5
|
+
import { TerminalIcon } from "../../../icons/lucide-animated/terminal.js";
|
|
6
|
+
import "../../../icons/lucide-animated/index.js";
|
|
7
|
+
import { IconWrapper } from "../../../lib/icon-wrapper.js";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/react-ui/blocks/Terminal/panel/TerminalPanelHeader.tsx
|
|
11
|
+
/**
|
|
12
|
+
* TerminalPanelHeader Component.
|
|
13
|
+
*
|
|
14
|
+
* Enhanced macOS-style header with glassmorphism, dynamic session name,
|
|
15
|
+
* gradient mesh overlay, and premium glass effects.
|
|
16
|
+
*
|
|
17
|
+
* @module components/devenv/terminal/panel/header
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Traffic light button styles with macOS group hover behavior.
|
|
21
|
+
* Dots are desaturated until the group is hovered.
|
|
22
|
+
*/
|
|
23
|
+
const trafficLightStyles = {
|
|
24
|
+
close: "w-3 h-3 rounded-full transition-all duration-200 bg-muted-foreground/30 group-hover/traffic:bg-red-500/90 group-hover/traffic:shadow-[0_0_6px_rgba(239,68,68,0.4)] hover:!bg-red-500 hover:!shadow-[0_0_12px_rgba(239,68,68,0.6)] hover:!scale-110",
|
|
25
|
+
minimize: "w-3 h-3 rounded-full transition-all duration-200 bg-muted-foreground/30 group-hover/traffic:bg-yellow-500/90 group-hover/traffic:shadow-[0_0_6px_rgba(234,179,8,0.4)] hover:!bg-yellow-500 hover:!shadow-[0_0_12px_rgba(234,179,8,0.6)] hover:!scale-110",
|
|
26
|
+
maximize: "w-3 h-3 rounded-full transition-all duration-200 bg-muted-foreground/30 group-hover/traffic:bg-green-500/90 group-hover/traffic:shadow-[0_0_6px_rgba(34,197,94,0.4)] hover:!bg-green-500 hover:!shadow-[0_0_12px_rgba(34,197,94,0.6)] hover:!scale-110"
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Segmented control button styles (macOS-style).
|
|
30
|
+
*/
|
|
31
|
+
const segmentedButtonStyles = {
|
|
32
|
+
base: "flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium transition-all",
|
|
33
|
+
inactive: "text-muted-foreground hover:text-foreground hover:bg-white/5 hover:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.1)]",
|
|
34
|
+
active: "bg-primary/20 text-primary border border-primary/30 shadow-[0_0_8px_hsla(330,85%,43%,0.15)] hover:shadow-[0_0_12px_hsla(330,85%,43%,0.25)]"
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Connection status color classes with glow effects.
|
|
38
|
+
*/
|
|
39
|
+
function getStatusColor(isConnected) {
|
|
40
|
+
if (isConnected) return "bg-success/80 shadow-[0_0_8px_hsla(142,100%,62%,0.5)] animate-pulse";
|
|
41
|
+
return "bg-muted-foreground/60";
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* TerminalPanelHeader Component.
|
|
45
|
+
*
|
|
46
|
+
* Displays enhanced macOS-style header with:
|
|
47
|
+
* - Traffic light buttons (close, minimize, maximize) with glow effects
|
|
48
|
+
* - Dynamic session/container name display
|
|
49
|
+
* - Connection status badge with pulse animation
|
|
50
|
+
* - Gradient mesh overlay for depth
|
|
51
|
+
* - Multi-layer glassmorphism effect
|
|
52
|
+
* - Animated top accent line
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <TerminalPanelHeader
|
|
57
|
+
* containerName="devenv-agent-backend"
|
|
58
|
+
* isConnected={true}
|
|
59
|
+
* onClose={() => console.log('close')}
|
|
60
|
+
* />
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
function TerminalPanelHeader({ containerName, isConnected, viewMode = "terminal", onViewModeChange, onClose, onMinimize, onMaximize }) {
|
|
64
|
+
return /* @__PURE__ */ jsx("div", {
|
|
65
|
+
className: cn("relative overflow-hidden", "flex items-center justify-between px-4 h-12", "bg-background/60", "border-b border-border/30"),
|
|
66
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
67
|
+
className: "flex items-center justify-between w-full",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ jsxs("div", {
|
|
70
|
+
className: "group/traffic flex items-center gap-2 px-1 py-1 -mx-1 rounded-md",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsx("button", {
|
|
73
|
+
type: "button",
|
|
74
|
+
onClick: onClose,
|
|
75
|
+
className: trafficLightStyles.close,
|
|
76
|
+
"aria-label": "Close",
|
|
77
|
+
title: "Close"
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ jsx("button", {
|
|
80
|
+
type: "button",
|
|
81
|
+
onClick: onMinimize,
|
|
82
|
+
className: trafficLightStyles.minimize,
|
|
83
|
+
"aria-label": "Minimize",
|
|
84
|
+
title: "Minimize"
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ jsx("button", {
|
|
87
|
+
type: "button",
|
|
88
|
+
onClick: onMaximize,
|
|
89
|
+
className: trafficLightStyles.maximize,
|
|
90
|
+
"aria-label": "Maximize",
|
|
91
|
+
title: "Maximize"
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ jsxs("div", {
|
|
96
|
+
className: "flex-1 flex items-center justify-center gap-2",
|
|
97
|
+
children: [/* @__PURE__ */ jsx(IconWrapper, {
|
|
98
|
+
icon: TerminalIcon,
|
|
99
|
+
size: 14,
|
|
100
|
+
className: cn("transition-all duration-500 flex-shrink-0", isConnected ? "text-primary/80" : "text-muted-foreground/40")
|
|
101
|
+
}), /* @__PURE__ */ jsx("h3", {
|
|
102
|
+
className: cn("text-sm font-mono font-medium truncate transition-all duration-500", isConnected ? "text-foreground/95 drop-shadow-[0_0_8px_hsla(330,85%,43%,0.3)]" : "text-foreground/60"),
|
|
103
|
+
children: containerName
|
|
104
|
+
})]
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ jsxs("div", {
|
|
107
|
+
className: "flex items-center gap-3",
|
|
108
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "flex items-center bg-background/80 rounded-lg p-0.5 border-t border-white/10 border-b border-border/50 border-x border-border/40 shadow-[inset_0_0.5px_0_rgba(255,255,255,0.15),0_0_0_1px_rgba(0,0,0,0.1)]",
|
|
110
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
111
|
+
type: "button",
|
|
112
|
+
onClick: () => onViewModeChange?.("terminal"),
|
|
113
|
+
className: cn(segmentedButtonStyles.base, !onViewModeChange && "opacity-70 cursor-not-allowed", viewMode === "terminal" ? segmentedButtonStyles.active : segmentedButtonStyles.inactive),
|
|
114
|
+
title: "Terminal mode - Raw logs with original ANSI colors",
|
|
115
|
+
children: [/* @__PURE__ */ jsx(IconWrapper, {
|
|
116
|
+
icon: TerminalIcon,
|
|
117
|
+
size: 14
|
|
118
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
119
|
+
className: "hidden xs:inline",
|
|
120
|
+
children: "Terminal"
|
|
121
|
+
})]
|
|
122
|
+
}), /* @__PURE__ */ jsxs("button", {
|
|
123
|
+
type: "button",
|
|
124
|
+
onClick: () => onViewModeChange?.("react"),
|
|
125
|
+
className: cn(segmentedButtonStyles.base, !onViewModeChange && "opacity-70 cursor-not-allowed", viewMode === "react" ? segmentedButtonStyles.active : segmentedButtonStyles.inactive),
|
|
126
|
+
title: "React mode - Logs with badges and syntax highlighting",
|
|
127
|
+
children: [/* @__PURE__ */ jsx(IconWrapper, {
|
|
128
|
+
icon: ListIcon,
|
|
129
|
+
size: 14
|
|
130
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
131
|
+
className: "hidden xs:inline",
|
|
132
|
+
children: "List"
|
|
133
|
+
})]
|
|
134
|
+
})]
|
|
135
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
136
|
+
className: "flex items-center gap-2",
|
|
137
|
+
children: [/* @__PURE__ */ jsx("div", { className: cn("w-2 h-2 rounded-full transition-all duration-300", getStatusColor(isConnected)) }), /* @__PURE__ */ jsx("span", {
|
|
138
|
+
className: "text-xs text-muted-foreground font-medium hidden sm:inline",
|
|
139
|
+
children: isConnected ? "Connected" : "Disconnected"
|
|
140
|
+
})]
|
|
141
|
+
})]
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
})
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
//#endregion
|
|
149
|
+
export { TerminalPanelHeader };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalPanelToolbar Component.
|
|
3
|
+
*
|
|
4
|
+
* Filter toolbar with log level buttons, toggles, and action buttons.
|
|
5
|
+
*
|
|
6
|
+
* @module components/devenv/terminal/panel/toolbar
|
|
7
|
+
*/
|
|
8
|
+
import type { ITerminalPanelToolbarProps } from './TerminalLogsPanel.types';
|
|
9
|
+
/**
|
|
10
|
+
* TerminalPanelToolbar Component.
|
|
11
|
+
*
|
|
12
|
+
* Displays filter toolbar with:
|
|
13
|
+
* - Log level filter buttons with badges
|
|
14
|
+
* - Follow cursor toggle
|
|
15
|
+
* - Line numbers toggle
|
|
16
|
+
* - Action buttons (Search, Clear, Download)
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <TerminalPanelToolbar
|
|
21
|
+
* filterLevel="all"
|
|
22
|
+
* followCursor={true}
|
|
23
|
+
* showLineNumbers={false}
|
|
24
|
+
* levelCounts={{ info: 42, warn: 3, error: 1 }}
|
|
25
|
+
* onFilterChange={(level) => setFilterLevel(level)}
|
|
26
|
+
* onFollowCursorChange={(enabled) => setFollowCursor(enabled)}
|
|
27
|
+
* onShowLineNumbersChange={(enabled) => setShowLineNumbers(enabled)}
|
|
28
|
+
* onClear={() => clearLogs()}
|
|
29
|
+
* onDownload={() => downloadLogs()}
|
|
30
|
+
* onSearch={() => openSearch()}
|
|
31
|
+
* />
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function TerminalPanelToolbar({ filterLevel, followCursor, showLineNumbers, levelCounts, onFilterChange, onFollowCursorChange, onShowLineNumbersChange, onClear, onDownload, onSearch, }: ITerminalPanelToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=TerminalPanelToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalPanelToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EACV,0BAA0B,EAI3B,MAAM,2BAA2B,CAAC;AA4CnC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,YAAY,EACZ,eAAe,EACf,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,0BAA0B,2CA0G5B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalSessionControl Component.
|
|
3
|
+
*
|
|
4
|
+
* Ghostty-inspired session control with current session display,
|
|
5
|
+
* dropdown selector for containers, and close button.
|
|
6
|
+
*
|
|
7
|
+
* @module components/devenv/terminal/panel/session-control
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Container information for dropdown display.
|
|
11
|
+
*/
|
|
12
|
+
export interface IContainerOption {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
state: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Props for TerminalSessionControl component.
|
|
19
|
+
*/
|
|
20
|
+
export interface ITerminalSessionControlProps {
|
|
21
|
+
/** Current container name */
|
|
22
|
+
currentContainer?: string | null;
|
|
23
|
+
/** Available containers to select from */
|
|
24
|
+
containers: IContainerOption[];
|
|
25
|
+
/** Whether currently connected/streaming */
|
|
26
|
+
isConnected: boolean;
|
|
27
|
+
/** Callback when container is selected */
|
|
28
|
+
onContainerSelect: (containerName: string) => void;
|
|
29
|
+
/** Callback when close button is clicked (stop streaming) */
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
/** Callback when refresh is clicked */
|
|
32
|
+
onRefresh?: () => void;
|
|
33
|
+
/** Custom class name */
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* TerminalSessionControl Component.
|
|
38
|
+
*
|
|
39
|
+
* Displays compact session control with:
|
|
40
|
+
* - Current container name with status indicator
|
|
41
|
+
* - Dropdown button (+) to select from available containers
|
|
42
|
+
* - Close button (X) to stop streaming and deselect
|
|
43
|
+
* - Refresh button (optional)
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <TerminalSessionControl
|
|
48
|
+
* currentContainer="devenv-agent-backend"
|
|
49
|
+
* containers={containers}
|
|
50
|
+
* isConnected={true}
|
|
51
|
+
* onContainerSelect={(name) => selectContainer(name)}
|
|
52
|
+
* onClose={() => stopStreaming()}
|
|
53
|
+
* onRefresh={() => loadContainers()}
|
|
54
|
+
* />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare function TerminalSessionControl({ currentContainer, containers, isConnected, onContainerSelect, onClose, onRefresh, className, }: ITerminalSessionControlProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
//# sourceMappingURL=TerminalSessionControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalSessionControl.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/panel/TerminalSessionControl.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,6BAA6B;IAC7B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,0CAA0C;IAC1C,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAE/B,4CAA4C;IAC5C,WAAW,EAAE,OAAO,CAAC;IAErB,0CAA0C;IAC1C,iBAAiB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnD,6DAA6D;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,SAAS,GACV,EAAE,4BAA4B,2CA4K9B"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalSessionTabs Component.
|
|
3
|
+
*
|
|
4
|
+
* Ghostty-inspired session tab bar with status indicators,
|
|
5
|
+
* glassmorphic active state, and smooth animations.
|
|
6
|
+
*
|
|
7
|
+
* @module components/devenv/terminal/panel/session-tabs
|
|
8
|
+
*/
|
|
9
|
+
import type { ITerminalSession } from './TerminalLogsPanel.types';
|
|
10
|
+
/**
|
|
11
|
+
* Container option for dropdown.
|
|
12
|
+
*/
|
|
13
|
+
export interface IContainerOption {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
state: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props for TerminalSessionTabs component.
|
|
20
|
+
*/
|
|
21
|
+
export interface ITerminalSessionTabsProps {
|
|
22
|
+
/** Available sessions to display */
|
|
23
|
+
sessions: ITerminalSession[];
|
|
24
|
+
/** Currently active session ID */
|
|
25
|
+
activeSessionId: string | null;
|
|
26
|
+
/** Callback when tab is clicked */
|
|
27
|
+
onTabClick: (sessionId: string) => void;
|
|
28
|
+
/** Callback when close button is clicked */
|
|
29
|
+
onClose: (sessionId: string) => void;
|
|
30
|
+
/** Callback when new session button is clicked (optional, for refresh) */
|
|
31
|
+
onNewSession?: () => void;
|
|
32
|
+
/** Available containers that can be added as new tabs */
|
|
33
|
+
availableContainers?: IContainerOption[];
|
|
34
|
+
/** Callback when a container is selected from dropdown */
|
|
35
|
+
onAddContainer?: (containerName: string) => void;
|
|
36
|
+
/** Custom class name */
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* TerminalSessionTabs Component.
|
|
41
|
+
*
|
|
42
|
+
* Displays horizontal tab bar with:
|
|
43
|
+
* - Session name tabs with glassmorphic active state
|
|
44
|
+
* - Status indicator dots (connected/connecting/error)
|
|
45
|
+
* - Close button with hover reveal
|
|
46
|
+
* - New session "+" button with dropdown to select containers
|
|
47
|
+
* - Smooth slide animation on tab switch
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <TerminalSessionTabs
|
|
52
|
+
* sessions={sessions}
|
|
53
|
+
* activeSessionId="session-1"
|
|
54
|
+
* onTabClick={(id) => setActiveSession(id)}
|
|
55
|
+
* onClose={(id) => closeSession(id)}
|
|
56
|
+
* availableContainers={containers}
|
|
57
|
+
* onAddContainer={(name) => addContainerTab(name)}
|
|
58
|
+
* onNewSession={() => refreshContainers()}
|
|
59
|
+
* />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function TerminalSessionTabs({ sessions, activeSessionId, onTabClick, onClose, onNewSession, availableContainers, onAddContainer, className, }: ITerminalSessionTabsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
63
|
+
//# sourceMappingURL=TerminalSessionTabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalSessionTabs.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/panel/TerminalSessionTabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,oCAAoC;IACpC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAE7B,kCAAkC;IAClC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,mCAAmC;IACnC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC,4CAA4C;IAC5C,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAE1B,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEzC,0DAA0D;IAC1D,cAAc,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjD,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,eAAe,EACf,UAAU,EACV,OAAO,EACP,YAAY,EACZ,mBAAwB,EACxB,cAAc,EACd,SAAS,GACV,EAAE,yBAAyB,kDAsO3B"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { PlusIcon } from "../../../icons/lucide-animated/plus.js";
|
|
5
|
+
import { XIcon } from "../../../icons/lucide-animated/x.js";
|
|
6
|
+
import "../../../icons/lucide-animated/index.js";
|
|
7
|
+
import terminal_session_tabs_module_default from "./terminal-session-tabs.module.js";
|
|
8
|
+
import { useEffect, useRef, useState } from "react";
|
|
9
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
|
|
12
|
+
//#region src/react-ui/blocks/Terminal/panel/TerminalSessionTabs.tsx
|
|
13
|
+
/**
|
|
14
|
+
* TerminalSessionTabs Component.
|
|
15
|
+
*
|
|
16
|
+
* Ghostty-inspired session tab bar with status indicators,
|
|
17
|
+
* glassmorphic active state, and smooth animations.
|
|
18
|
+
*
|
|
19
|
+
* @module components/devenv/terminal/panel/session-tabs
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Get status color classes based on connection state.
|
|
23
|
+
*/
|
|
24
|
+
function getStatusColor(status) {
|
|
25
|
+
return {
|
|
26
|
+
connected: "bg-success/80 shadow-[0_0_8px_hsla(142,100%,62%,0.5)]",
|
|
27
|
+
connecting: "bg-yellow-500/80 animate-pulse",
|
|
28
|
+
disconnected: "bg-muted-foreground/60",
|
|
29
|
+
error: "bg-destructive/80 shadow-[0_0_8px_hsla(0,84%,60%,0.5)]"
|
|
30
|
+
}[status];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* TerminalSessionTabs Component.
|
|
34
|
+
*
|
|
35
|
+
* Displays horizontal tab bar with:
|
|
36
|
+
* - Session name tabs with glassmorphic active state
|
|
37
|
+
* - Status indicator dots (connected/connecting/error)
|
|
38
|
+
* - Close button with hover reveal
|
|
39
|
+
* - New session "+" button with dropdown to select containers
|
|
40
|
+
* - Smooth slide animation on tab switch
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <TerminalSessionTabs
|
|
45
|
+
* sessions={sessions}
|
|
46
|
+
* activeSessionId="session-1"
|
|
47
|
+
* onTabClick={(id) => setActiveSession(id)}
|
|
48
|
+
* onClose={(id) => closeSession(id)}
|
|
49
|
+
* availableContainers={containers}
|
|
50
|
+
* onAddContainer={(name) => addContainerTab(name)}
|
|
51
|
+
* onNewSession={() => refreshContainers()}
|
|
52
|
+
* />
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
function TerminalSessionTabs({ sessions, activeSessionId, onTabClick, onClose, onNewSession, availableContainers = [], onAddContainer, className }) {
|
|
56
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
57
|
+
const addButtonContainerRef = useRef(null);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
const handleClickOutside = (event) => {
|
|
60
|
+
if (addButtonContainerRef.current && !addButtonContainerRef.current.contains(event.target)) setIsDropdownOpen(false);
|
|
61
|
+
};
|
|
62
|
+
if (isDropdownOpen) {
|
|
63
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
64
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
65
|
+
}
|
|
66
|
+
}, [isDropdownOpen]);
|
|
67
|
+
/** Toggle dropdown or trigger new session callback. */
|
|
68
|
+
const openDropdown = () => {
|
|
69
|
+
if (availableToAdd.length > 0 && onAddContainer) setIsDropdownOpen(!isDropdownOpen);
|
|
70
|
+
else if (onNewSession) onNewSession();
|
|
71
|
+
};
|
|
72
|
+
const availableToAdd = (availableContainers || []).filter((container) => !sessions.some((session) => session.id === container.name));
|
|
73
|
+
if ((availableContainers || []).length === 0 && sessions.length === 0) return null;
|
|
74
|
+
const activeSession = sessions.find((s) => s.id === activeSessionId);
|
|
75
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
76
|
+
className: cn("flex items-center gap-1 px-3 h-12", "bg-background/60", "border-b border-border/30", "overflow-x-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-border/30 hover:scrollbar-thumb-border/50", className),
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ jsx("div", {
|
|
79
|
+
className: "flex items-center gap-1",
|
|
80
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
81
|
+
initial: false,
|
|
82
|
+
children: sessions.map((session) => {
|
|
83
|
+
const isActive = session.id === activeSessionId;
|
|
84
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
85
|
+
layout: true,
|
|
86
|
+
initial: {
|
|
87
|
+
opacity: 0,
|
|
88
|
+
scale: .85,
|
|
89
|
+
width: 0
|
|
90
|
+
},
|
|
91
|
+
animate: {
|
|
92
|
+
opacity: 1,
|
|
93
|
+
scale: 1,
|
|
94
|
+
width: "auto"
|
|
95
|
+
},
|
|
96
|
+
exit: {
|
|
97
|
+
opacity: 0,
|
|
98
|
+
scale: .85,
|
|
99
|
+
width: 0
|
|
100
|
+
},
|
|
101
|
+
transition: {
|
|
102
|
+
type: "spring",
|
|
103
|
+
stiffness: 500,
|
|
104
|
+
damping: 30,
|
|
105
|
+
mass: .8
|
|
106
|
+
},
|
|
107
|
+
role: "button",
|
|
108
|
+
tabIndex: 0,
|
|
109
|
+
onClick: () => onTabClick(session.id),
|
|
110
|
+
onKeyDown: (e) => {
|
|
111
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
112
|
+
e.preventDefault();
|
|
113
|
+
onTabClick(session.id);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
className: cn("group relative flex items-center gap-2 px-3 py-1.5 h-9 rounded-t-lg font-mono text-xs font-medium cursor-pointer overflow-hidden", "min-w-0 max-w-[200px] flex-shrink-0", isActive ? "bg-background text-foreground" : "bg-muted/40 text-muted-foreground/80 hover:bg-muted/60 hover:text-foreground"),
|
|
117
|
+
title: `${session.name} - ${session.status}${session.containerName ? ` (${session.containerName})` : ""}`,
|
|
118
|
+
children: [
|
|
119
|
+
isActive && /* @__PURE__ */ jsx(motion.div, {
|
|
120
|
+
layoutId: "active-session-tab",
|
|
121
|
+
className: "absolute inset-0 rounded-t-lg bg-gradient-to-t from-primary/12 via-primary/5 to-transparent pointer-events-none",
|
|
122
|
+
transition: {
|
|
123
|
+
type: "spring",
|
|
124
|
+
stiffness: 400,
|
|
125
|
+
damping: 28
|
|
126
|
+
}
|
|
127
|
+
}),
|
|
128
|
+
isActive && /* @__PURE__ */ jsx(motion.div, {
|
|
129
|
+
layoutId: "active-tab-glow",
|
|
130
|
+
className: "absolute bottom-0 left-1 right-1 h-0.5 rounded-full bg-primary shadow-[0_0_12px_hsla(330,85%,43%,0.6),0_0_4px_hsla(330,85%,43%,0.8)] pointer-events-none",
|
|
131
|
+
transition: {
|
|
132
|
+
type: "spring",
|
|
133
|
+
stiffness: 400,
|
|
134
|
+
damping: 28
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsx("div", { className: cn("w-1.5 h-1.5 rounded-full flex-shrink-0 relative z-10", getStatusColor(session.status)) }),
|
|
138
|
+
/* @__PURE__ */ jsx("span", {
|
|
139
|
+
className: "truncate relative z-10",
|
|
140
|
+
children: session.name
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ jsx("button", {
|
|
143
|
+
type: "button",
|
|
144
|
+
onClick: (e) => {
|
|
145
|
+
e.stopPropagation();
|
|
146
|
+
onClose(session.id);
|
|
147
|
+
},
|
|
148
|
+
className: cn("flex-shrink-0 p-0.5 rounded-sm transition-all duration-200 relative z-10", "opacity-0 group-hover:opacity-100", "hover:bg-destructive/20 hover:text-destructive hover:scale-110", isActive && "opacity-70 hover:opacity-100"),
|
|
149
|
+
"aria-label": `Close ${session.name}`,
|
|
150
|
+
title: `Close ${session.name}`,
|
|
151
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: 12 })
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
}, session.id);
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ jsxs("div", {
|
|
159
|
+
className: "relative flex-shrink-0",
|
|
160
|
+
ref: addButtonContainerRef,
|
|
161
|
+
children: [/* @__PURE__ */ jsx(motion.button, {
|
|
162
|
+
type: "button",
|
|
163
|
+
onClick: openDropdown,
|
|
164
|
+
whileHover: { scale: 1.08 },
|
|
165
|
+
whileTap: { scale: .95 },
|
|
166
|
+
className: cn(terminal_session_tabs_module_default.addButton, "flex items-center justify-center h-9 w-9 p-1.5 rounded-md transition-colors duration-200 flex-shrink-0", "bg-muted/50 text-muted-foreground hover:bg-primary/30 hover:text-primary", "border border-border/40 hover:border-primary/50", "shadow-[inset_0_0.5px_0_rgba(255,255,255,0.15)] hover:shadow-[0_0_8px_hsla(330,85%,43%,0.4)]"),
|
|
167
|
+
"aria-label": "New session",
|
|
168
|
+
"aria-expanded": isDropdownOpen,
|
|
169
|
+
title: availableToAdd.length > 0 ? "Add container tab" : "New session (Ctrl+Shift+T)",
|
|
170
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
171
|
+
animate: isDropdownOpen ? { rotate: 45 } : { rotate: 0 },
|
|
172
|
+
transition: {
|
|
173
|
+
type: "spring",
|
|
174
|
+
stiffness: 300,
|
|
175
|
+
damping: 20
|
|
176
|
+
},
|
|
177
|
+
children: /* @__PURE__ */ jsx(PlusIcon, { size: 16 })
|
|
178
|
+
})
|
|
179
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
180
|
+
className: terminal_session_tabs_module_default.containerDropdown,
|
|
181
|
+
"data-open": isDropdownOpen && availableToAdd.length > 0,
|
|
182
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
183
|
+
className: "glass-subtle rounded-lg py-1",
|
|
184
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
185
|
+
className: "px-3 py-2 text-xs font-mono text-muted-foreground border-b border-white/10",
|
|
186
|
+
children: "Add Container"
|
|
187
|
+
}), availableToAdd.map((container) => /* @__PURE__ */ jsxs("button", {
|
|
188
|
+
type: "button",
|
|
189
|
+
onClick: () => {
|
|
190
|
+
onAddContainer?.(container.name);
|
|
191
|
+
setIsDropdownOpen(false);
|
|
192
|
+
},
|
|
193
|
+
className: cn("w-full px-3 py-2 text-left flex items-center gap-2", "transition-all duration-150", "hover:bg-primary/10 hover:text-primary hover:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.15)]", container.state === "running" && "text-success"),
|
|
194
|
+
children: [/* @__PURE__ */ jsx("div", { className: cn("w-1.5 h-1.5 rounded-full flex-shrink-0", container.state === "running" ? "bg-success shadow-[0_0_4px_hsla(142,100%,62%,0.4)]" : "bg-muted-foreground") }), /* @__PURE__ */ jsxs("div", {
|
|
195
|
+
className: "flex-1 min-w-0",
|
|
196
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
197
|
+
className: "text-sm font-mono truncate",
|
|
198
|
+
children: container.name
|
|
199
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
200
|
+
className: "text-[10px] text-muted-foreground truncate",
|
|
201
|
+
children: container.state
|
|
202
|
+
})]
|
|
203
|
+
})]
|
|
204
|
+
}, container.id))]
|
|
205
|
+
})
|
|
206
|
+
})]
|
|
207
|
+
}),
|
|
208
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
209
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: activeSession && /* @__PURE__ */ jsxs(motion.div, {
|
|
210
|
+
initial: {
|
|
211
|
+
opacity: 0,
|
|
212
|
+
x: 12
|
|
213
|
+
},
|
|
214
|
+
animate: {
|
|
215
|
+
opacity: 1,
|
|
216
|
+
x: 0
|
|
217
|
+
},
|
|
218
|
+
exit: {
|
|
219
|
+
opacity: 0,
|
|
220
|
+
x: 12
|
|
221
|
+
},
|
|
222
|
+
transition: {
|
|
223
|
+
type: "spring",
|
|
224
|
+
stiffness: 400,
|
|
225
|
+
damping: 25
|
|
226
|
+
},
|
|
227
|
+
className: "flex items-center gap-2 px-2.5 py-1 rounded-md bg-muted/15 border border-border/20",
|
|
228
|
+
children: [
|
|
229
|
+
/* @__PURE__ */ jsx("span", {
|
|
230
|
+
className: "text-[10px] font-mono text-muted-foreground/80 uppercase tracking-widest",
|
|
231
|
+
children: activeSession.backend
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ jsx("span", { className: "w-1 h-1 rounded-full bg-primary/40" }),
|
|
234
|
+
/* @__PURE__ */ jsx("span", {
|
|
235
|
+
className: "text-[10px] font-mono text-muted-foreground/80 uppercase tracking-widest",
|
|
236
|
+
children: activeSession.mode
|
|
237
|
+
})
|
|
238
|
+
]
|
|
239
|
+
}) })
|
|
240
|
+
]
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
//#endregion
|
|
245
|
+
export { TerminalSessionTabs };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalSettingsPopover Component.
|
|
3
|
+
*
|
|
4
|
+
* Gear icon popover for global terminal settings:
|
|
5
|
+
* renderer (xterm/restty), theme (458 built-in), PTY backend,
|
|
6
|
+
* and font size. Reads and writes via useTerminalSettings hook.
|
|
7
|
+
*
|
|
8
|
+
* @module components/devenv/terminal/panel/TerminalSettingsPopover
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* TerminalSettingsPopover Component.
|
|
12
|
+
*
|
|
13
|
+
* Renders a settings gear icon that opens a popover with
|
|
14
|
+
* terminal configuration options. Reads settings from
|
|
15
|
+
* `useTerminalSettings` — no prop drilling needed.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* // In action bar:
|
|
20
|
+
* <TerminalSettingsPopover />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function TerminalSettingsPopover(): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=TerminalSettingsPopover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoCH;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,4CA2MtC"}
|