@mks2508/mks-ui 0.3.1 → 0.4.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/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/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/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 +39 -0
- package/dist/react-ui/blocks/Terminal/index.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/index.js +38 -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 +54 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts.map +1 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.js +193 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts +57 -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-Bovc57nm.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-QyxHO7cN.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 +4 -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/AutoHeight/index.d.ts +1 -1
- package/dist/react-ui/primitives/CountingNumber/index.d.ts +1 -1
- package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.d.ts +1 -1
- package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.styles.d.ts +1 -1
- package/dist/react-ui/ui/Accordion/Accordion.styles.d.ts +1 -1
- package/dist/react-ui/ui/Accordion/Accordion.types.d.ts +1 -1
- package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.d.ts +1 -1
- package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/react-ui/ui/Badge/Badge.styles.d.ts +1 -1
- package/dist/react-ui/ui/Badge/Badge.types.d.ts +1 -1
- package/dist/react-ui/ui/Button/Button.styles.d.ts +2 -2
- package/dist/react-ui/ui/Button/Button.types.d.ts +1 -1
- package/dist/react-ui/ui/Card/Card.styles.d.ts +1 -1
- package/dist/react-ui/ui/Card/Card.types.d.ts +1 -1
- package/dist/react-ui/ui/Checkbox/Checkbox.styles.d.ts +1 -1
- package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/react-ui/ui/Combobox/Combobox.styles.d.ts +1 -1
- package/dist/react-ui/ui/Combobox/Combobox.types.d.ts +1 -1
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts +2 -2
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.js +1 -1
- package/dist/react-ui/ui/CornerBracket/CornerBracket.types.d.ts +1 -1
- package/dist/react-ui/ui/DataCard/DataCard.styles.d.ts +1 -1
- package/dist/react-ui/ui/DataCard/DataCard.types.d.ts +1 -1
- package/dist/react-ui/ui/DataCard/index.d.ts +1 -1
- package/dist/react-ui/ui/Dialog/Dialog.styles.d.ts +1 -1
- package/dist/react-ui/ui/Dialog/Dialog.types.d.ts +1 -1
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.d.ts +1 -1
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.types.d.ts +1 -1
- package/dist/react-ui/ui/Field/Field.styles.d.ts +1 -1
- package/dist/react-ui/ui/Field/Field.types.d.ts +1 -1
- package/dist/react-ui/ui/Input/Input.styles.d.ts +1 -1
- package/dist/react-ui/ui/Input/Input.types.d.ts +1 -1
- package/dist/react-ui/ui/InputGroup/InputGroup.styles.d.ts +1 -1
- package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts +1 -1
- package/dist/react-ui/ui/Label/Label.styles.d.ts +1 -1
- package/dist/react-ui/ui/Label/Label.types.d.ts +1 -1
- package/dist/react-ui/ui/Menu/Menu.styles.d.ts +1 -1
- package/dist/react-ui/ui/Menu/Menu.types.d.ts +2 -2
- package/dist/react-ui/ui/Popover/Popover.styles.d.ts +1 -1
- package/dist/react-ui/ui/Popover/Popover.types.d.ts +1 -1
- package/dist/react-ui/ui/Progress/Progress.styles.d.ts +1 -1
- package/dist/react-ui/ui/Progress/Progress.types.d.ts +2 -2
- package/dist/react-ui/ui/Select/Select.styles.d.ts +1 -1
- package/dist/react-ui/ui/Select/Select.types.d.ts +1 -1
- package/dist/react-ui/ui/Separator/Separator.styles.d.ts +1 -1
- package/dist/react-ui/ui/Separator/Separator.types.d.ts +1 -1
- package/dist/react-ui/ui/Switch/Switch.styles.d.ts +1 -1
- package/dist/react-ui/ui/Switch/Switch.types.d.ts +1 -1
- 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 +9 -6
- 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/TextFlow/TextFlow.styles.d.ts +1 -1
- package/dist/react-ui/ui/Textarea/Textarea.styles.d.ts +1 -1
- package/dist/react-ui/ui/Textarea/Textarea.types.d.ts +1 -1
- package/dist/react-ui/ui/Tooltip/Tooltip.styles.d.ts +1 -1
- package/dist/react-ui/ui/Tooltip/Tooltip.types.d.ts +1 -1
- package/dist/react-ui/ui/index.d.ts +1 -0
- package/dist/react-ui/ui/index.d.ts.map +1 -1
- package/dist/react-ui/ui/index.js +2 -0
- package/package.json +54 -6
- 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/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/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/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 +103 -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.tsx +237 -0
- package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.ts +76 -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/ui/CornerBracket/CornerBracket.styles.ts +1 -1
- 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
- package/src/react-ui/ui/index.ts +1 -0
- package/dist/index.css +0 -129
|
@@ -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"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { Popover, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverTrigger } from "../../../ui/Popover/index.js";
|
|
5
|
+
import { Separator } from "../../../ui/Separator/index.js";
|
|
6
|
+
import { SettingsIcon } from "../../../icons/lucide-animated/settings.js";
|
|
7
|
+
import "../../../icons/lucide-animated/index.js";
|
|
8
|
+
import { useTerminalSettings } from "../hooks/useTerminalSettings.js";
|
|
9
|
+
import { TerminalThemeSelector } from "./TerminalThemeSelector.js";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
|
|
12
|
+
//#region src/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.tsx
|
|
13
|
+
/**
|
|
14
|
+
* TerminalSettingsPopover Component.
|
|
15
|
+
*
|
|
16
|
+
* Gear icon popover for global terminal settings:
|
|
17
|
+
* renderer (xterm/restty), theme (458 built-in), PTY backend,
|
|
18
|
+
* and font size. Reads and writes via useTerminalSettings hook.
|
|
19
|
+
*
|
|
20
|
+
* @module components/devenv/terminal/panel/TerminalSettingsPopover
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Action button base styles for the trigger icon.
|
|
24
|
+
*/
|
|
25
|
+
const triggerBtnStyles = "h-8 w-8 rounded-md transition-all hover:bg-muted/20 active:bg-muted/30 flex items-center justify-center text-muted-foreground hover:text-foreground flex-shrink-0";
|
|
26
|
+
/**
|
|
27
|
+
* Segmented control button styles.
|
|
28
|
+
*/
|
|
29
|
+
const segmentedBase = "flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium transition-all";
|
|
30
|
+
const segmentedInactive = "text-muted-foreground hover:text-foreground hover:bg-white/5 hover:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.1)]";
|
|
31
|
+
const segmentedActive = "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)]";
|
|
32
|
+
/**
|
|
33
|
+
* Min/max font size bounds.
|
|
34
|
+
*/
|
|
35
|
+
const MIN_FONT_SIZE = 10;
|
|
36
|
+
const MAX_FONT_SIZE = 24;
|
|
37
|
+
/**
|
|
38
|
+
* Small control button for font size +/-.
|
|
39
|
+
*/
|
|
40
|
+
const fontBtnStyles = "h-7 w-7 rounded-md transition-all hover:bg-muted/20 active:bg-muted/30 flex items-center justify-center text-muted-foreground hover:text-foreground disabled:opacity-30 disabled:pointer-events-none";
|
|
41
|
+
/**
|
|
42
|
+
* TerminalSettingsPopover Component.
|
|
43
|
+
*
|
|
44
|
+
* Renders a settings gear icon that opens a popover with
|
|
45
|
+
* terminal configuration options. Reads settings from
|
|
46
|
+
* `useTerminalSettings` — no prop drilling needed.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* // In action bar:
|
|
51
|
+
* <TerminalSettingsPopover />
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
function TerminalSettingsPopover() {
|
|
55
|
+
const { settings, setRenderer, setPtyBackend, setResttyThemeName, setFontSize, setCrtEffect, setDebugPanel, resetToDefaults } = useTerminalSettings();
|
|
56
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(PopoverTrigger, { children: /* @__PURE__ */ jsx("button", {
|
|
57
|
+
type: "button",
|
|
58
|
+
className: triggerBtnStyles,
|
|
59
|
+
title: "Terminal settings",
|
|
60
|
+
children: /* @__PURE__ */ jsx(SettingsIcon, { size: 16 })
|
|
61
|
+
}) }), /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsx(PopoverPositioner, {
|
|
62
|
+
align: "end",
|
|
63
|
+
sideOffset: 6,
|
|
64
|
+
children: /* @__PURE__ */ jsxs(PopoverPopup, {
|
|
65
|
+
className: "w-72 p-0 glass-subtle",
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ jsxs("div", {
|
|
68
|
+
className: "flex items-center gap-2 px-4 py-3",
|
|
69
|
+
children: [/* @__PURE__ */ jsx(SettingsIcon, {
|
|
70
|
+
size: 14,
|
|
71
|
+
className: "text-muted-foreground"
|
|
72
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: "text-sm font-medium text-foreground",
|
|
74
|
+
children: "Terminal Settings"
|
|
75
|
+
})]
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }),
|
|
78
|
+
/* @__PURE__ */ jsxs("div", {
|
|
79
|
+
className: "px-4 py-3 space-y-2",
|
|
80
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
81
|
+
className: "text-[10px] font-mono text-muted-foreground uppercase tracking-wider",
|
|
82
|
+
children: "Renderer"
|
|
83
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
84
|
+
className: "flex items-center gap-1 bg-muted/10 rounded-lg p-0.5",
|
|
85
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
86
|
+
type: "button",
|
|
87
|
+
onClick: () => setRenderer("xterm"),
|
|
88
|
+
className: cn(segmentedBase, settings.renderer === "xterm" ? segmentedActive : segmentedInactive, "flex-1 justify-center"),
|
|
89
|
+
children: "xterm"
|
|
90
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
91
|
+
type: "button",
|
|
92
|
+
onClick: () => setRenderer("restty"),
|
|
93
|
+
className: cn(segmentedBase, settings.renderer === "restty" ? segmentedActive : segmentedInactive, "flex-1 justify-center"),
|
|
94
|
+
children: "restty"
|
|
95
|
+
})]
|
|
96
|
+
})]
|
|
97
|
+
}),
|
|
98
|
+
settings.renderer === "restty" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }), /* @__PURE__ */ jsxs("div", {
|
|
99
|
+
className: "px-4 py-3 space-y-2",
|
|
100
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
101
|
+
className: "text-[10px] font-mono text-muted-foreground uppercase tracking-wider",
|
|
102
|
+
children: "Theme"
|
|
103
|
+
}), /* @__PURE__ */ jsx(TerminalThemeSelector, {
|
|
104
|
+
currentTheme: settings.resttyThemeName,
|
|
105
|
+
onThemeChange: setResttyThemeName
|
|
106
|
+
})]
|
|
107
|
+
})] }),
|
|
108
|
+
/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }),
|
|
109
|
+
/* @__PURE__ */ jsxs("div", {
|
|
110
|
+
className: "px-4 py-3 space-y-2",
|
|
111
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
112
|
+
className: "text-[10px] font-mono text-muted-foreground uppercase tracking-wider",
|
|
113
|
+
children: "PTY Backend"
|
|
114
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
115
|
+
className: "flex items-center gap-1 bg-muted/10 rounded-lg p-0.5",
|
|
116
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
117
|
+
type: "button",
|
|
118
|
+
onClick: () => setPtyBackend("nodepty"),
|
|
119
|
+
className: cn(segmentedBase, settings.ptyBackend === "nodepty" ? segmentedActive : segmentedInactive, "flex-1 justify-center"),
|
|
120
|
+
children: "nodepty"
|
|
121
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
122
|
+
type: "button",
|
|
123
|
+
onClick: () => setPtyBackend("webcontainer"),
|
|
124
|
+
className: cn(segmentedBase, settings.ptyBackend === "webcontainer" ? segmentedActive : segmentedInactive, "flex-1 justify-center"),
|
|
125
|
+
children: "webcontainer"
|
|
126
|
+
})]
|
|
127
|
+
})]
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }),
|
|
130
|
+
/* @__PURE__ */ jsxs("div", {
|
|
131
|
+
className: "px-4 py-3 space-y-2",
|
|
132
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
133
|
+
className: "text-[10px] font-mono text-muted-foreground uppercase tracking-wider",
|
|
134
|
+
children: "Font Size"
|
|
135
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
136
|
+
className: "flex items-center gap-2",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ jsx("button", {
|
|
139
|
+
type: "button",
|
|
140
|
+
onClick: () => setFontSize(settings.fontSize - 1),
|
|
141
|
+
className: fontBtnStyles,
|
|
142
|
+
disabled: settings.fontSize <= MIN_FONT_SIZE,
|
|
143
|
+
title: "Decrease font size",
|
|
144
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
145
|
+
className: "text-sm font-bold",
|
|
146
|
+
children: "−"
|
|
147
|
+
})
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ jsx("span", {
|
|
150
|
+
className: "text-sm font-mono text-foreground w-8 text-center",
|
|
151
|
+
children: settings.fontSize
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ jsx("button", {
|
|
154
|
+
type: "button",
|
|
155
|
+
onClick: () => setFontSize(settings.fontSize + 1),
|
|
156
|
+
className: fontBtnStyles,
|
|
157
|
+
disabled: settings.fontSize >= MAX_FONT_SIZE,
|
|
158
|
+
title: "Increase font size",
|
|
159
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
160
|
+
className: "text-sm font-bold",
|
|
161
|
+
children: "+"
|
|
162
|
+
})
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ jsx("span", {
|
|
165
|
+
className: "text-[10px] font-mono text-muted-foreground/50 ml-auto",
|
|
166
|
+
children: "px"
|
|
167
|
+
})
|
|
168
|
+
]
|
|
169
|
+
})]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }),
|
|
172
|
+
/* @__PURE__ */ jsxs("div", {
|
|
173
|
+
className: "px-4 py-3 space-y-2",
|
|
174
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
175
|
+
className: "text-[10px] font-mono text-muted-foreground uppercase tracking-wider",
|
|
176
|
+
children: "CRT Effect"
|
|
177
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
178
|
+
className: "flex items-center justify-between",
|
|
179
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
180
|
+
className: "text-xs text-muted-foreground",
|
|
181
|
+
children: "Scanlines, bloom & vignette"
|
|
182
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
183
|
+
type: "button",
|
|
184
|
+
onClick: () => setCrtEffect(!settings.crtEffect),
|
|
185
|
+
className: cn("relative w-9 h-5 rounded-full transition-colors", settings.crtEffect ? "bg-primary/60 shadow-[0_0_8px_hsla(330,85%,43%,0.3)]" : "bg-muted/30"),
|
|
186
|
+
children: /* @__PURE__ */ jsx("span", { className: cn("absolute top-0.5 h-4 w-4 rounded-full bg-foreground transition-all", settings.crtEffect ? "left-[18px]" : "left-0.5") })
|
|
187
|
+
})]
|
|
188
|
+
})]
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }),
|
|
191
|
+
/* @__PURE__ */ jsxs("div", {
|
|
192
|
+
className: "px-4 py-3 space-y-2",
|
|
193
|
+
children: [/* @__PURE__ */ jsx("label", {
|
|
194
|
+
className: "text-[10px] font-mono text-muted-foreground uppercase tracking-wider",
|
|
195
|
+
children: "Debug Panel"
|
|
196
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
197
|
+
className: "flex items-center justify-between",
|
|
198
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
199
|
+
className: "text-xs text-muted-foreground",
|
|
200
|
+
children: "GPU, FPS, grid & connection info"
|
|
201
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
202
|
+
type: "button",
|
|
203
|
+
onClick: () => setDebugPanel(!settings.debugPanel),
|
|
204
|
+
className: cn("relative w-9 h-5 rounded-full transition-colors", settings.debugPanel ? "bg-primary/60 shadow-[0_0_8px_hsla(330,85%,43%,0.3)]" : "bg-muted/30"),
|
|
205
|
+
children: /* @__PURE__ */ jsx("span", { className: cn("absolute top-0.5 h-4 w-4 rounded-full bg-foreground transition-all", settings.debugPanel ? "left-[18px]" : "left-0.5") })
|
|
206
|
+
})]
|
|
207
|
+
})]
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ jsx(Separator, { className: "bg-border/30" }),
|
|
210
|
+
/* @__PURE__ */ jsx("div", {
|
|
211
|
+
className: "px-4 py-3",
|
|
212
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
213
|
+
type: "button",
|
|
214
|
+
onClick: resetToDefaults,
|
|
215
|
+
className: "w-full h-8 rounded-md text-xs font-mono text-muted-foreground hover:text-foreground hover:bg-muted/20 transition-colors",
|
|
216
|
+
children: "Reset to Defaults"
|
|
217
|
+
})
|
|
218
|
+
})
|
|
219
|
+
]
|
|
220
|
+
})
|
|
221
|
+
}) })] });
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
//#endregion
|
|
225
|
+
export { TerminalSettingsPopover };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalThemeSelector Component.
|
|
3
|
+
*
|
|
4
|
+
* Searchable dropdown for restty's 458 built-in terminal themes.
|
|
5
|
+
* Uses Popover for the dropdown UI with glassmorphism styling
|
|
6
|
+
* matching the existing TerminalFilterDropdown pattern.
|
|
7
|
+
*
|
|
8
|
+
* @module components/devenv/terminal/panel/TerminalThemeSelector
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Props for the TerminalThemeSelector component.
|
|
12
|
+
*/
|
|
13
|
+
export interface ITerminalThemeSelectorProps {
|
|
14
|
+
/** Currently active theme name */
|
|
15
|
+
currentTheme: string;
|
|
16
|
+
/** Callback when user selects a new theme */
|
|
17
|
+
onThemeChange: (themeName: string) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* TerminalThemeSelector Component.
|
|
21
|
+
*
|
|
22
|
+
* Searchable dropdown for restty's built-in theme catalog.
|
|
23
|
+
* Favorites are pinned to the top, followed by alphabetically
|
|
24
|
+
* sorted themes. Search filters by case-insensitive substring.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <TerminalThemeSelector
|
|
29
|
+
* currentTheme="Synthwave Alpha"
|
|
30
|
+
* onThemeChange={(name) => setResttyThemeName(name)}
|
|
31
|
+
* />
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function TerminalThemeSelector({ currentTheme, onThemeChange }: ITerminalThemeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=TerminalThemeSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalThemeSelector.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/panel/TerminalThemeSelector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kCAAkC;IAClC,YAAY,EAAE,MAAM,CAAC;IAErB,6CAA6C;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAsBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,YAAY,EAAE,aAAa,EAAE,EAAE,2BAA2B,2CAyJjG"}
|