@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.
Files changed (325) hide show
  1. package/dist/react-ui/blocks/Terminal/ResttyAdapter.d.ts +146 -0
  2. package/dist/react-ui/blocks/Terminal/ResttyAdapter.d.ts.map +1 -0
  3. package/dist/react-ui/blocks/Terminal/ResttyAdapter.js +213 -0
  4. package/dist/react-ui/blocks/Terminal/Terminal.adapter.d.ts +55 -0
  5. package/dist/react-ui/blocks/Terminal/Terminal.adapter.d.ts.map +1 -0
  6. package/dist/react-ui/blocks/Terminal/Terminal.adapter.js +68 -0
  7. package/dist/react-ui/blocks/Terminal/Terminal.theme.d.ts +43 -0
  8. package/dist/react-ui/blocks/Terminal/Terminal.theme.d.ts.map +1 -0
  9. package/dist/react-ui/blocks/Terminal/Terminal.theme.js +59 -0
  10. package/dist/react-ui/blocks/Terminal/Terminal.theme.restty.d.ts +63 -0
  11. package/dist/react-ui/blocks/Terminal/Terminal.theme.restty.d.ts.map +1 -0
  12. package/dist/react-ui/blocks/Terminal/Terminal.theme.restty.js +109 -0
  13. package/dist/react-ui/blocks/Terminal/Terminal.types.d.ts +351 -0
  14. package/dist/react-ui/blocks/Terminal/Terminal.types.d.ts.map +1 -0
  15. package/dist/react-ui/blocks/Terminal/TerminalPanel.d.ts +60 -0
  16. package/dist/react-ui/blocks/Terminal/TerminalPanel.d.ts.map +1 -0
  17. package/dist/react-ui/blocks/Terminal/TerminalPanel.js +183 -0
  18. package/dist/react-ui/blocks/Terminal/TerminalRestty.d.ts +111 -0
  19. package/dist/react-ui/blocks/Terminal/TerminalRestty.d.ts.map +1 -0
  20. package/dist/react-ui/blocks/Terminal/TerminalRestty.js +185 -0
  21. package/dist/react-ui/blocks/Terminal/TerminalXterm.d.ts +58 -0
  22. package/dist/react-ui/blocks/Terminal/TerminalXterm.d.ts.map +1 -0
  23. package/dist/react-ui/blocks/Terminal/TerminalXterm.js +143 -0
  24. package/dist/react-ui/blocks/Terminal/XTermAdapter.d.ts +87 -0
  25. package/dist/react-ui/blocks/Terminal/XTermAdapter.d.ts.map +1 -0
  26. package/dist/react-ui/blocks/Terminal/XTermAdapter.js +135 -0
  27. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts +160 -0
  28. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts.map +1 -0
  29. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.js +185 -0
  30. package/dist/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.d.ts +48 -0
  31. package/dist/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.d.ts.map +1 -0
  32. package/dist/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.js +139 -0
  33. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.d.ts +60 -0
  34. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.d.ts.map +1 -0
  35. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.js +352 -0
  36. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.d.ts +36 -0
  37. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.d.ts.map +1 -0
  38. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.js +52 -0
  39. package/dist/react-ui/blocks/Terminal/components/index.d.ts +10 -0
  40. package/dist/react-ui/blocks/Terminal/components/index.d.ts.map +1 -0
  41. package/dist/react-ui/blocks/Terminal/components/index.js +4 -0
  42. package/dist/react-ui/blocks/Terminal/hooks/index.d.ts +11 -0
  43. package/dist/react-ui/blocks/Terminal/hooks/index.d.ts.map +1 -0
  44. package/dist/react-ui/blocks/Terminal/hooks/index.js +2 -0
  45. package/dist/react-ui/blocks/Terminal/hooks/useTerminalSettings.d.ts +69 -0
  46. package/dist/react-ui/blocks/Terminal/hooks/useTerminalSettings.d.ts.map +1 -0
  47. package/dist/react-ui/blocks/Terminal/hooks/useTerminalSettings.js +162 -0
  48. package/dist/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.d.ts +104 -0
  49. package/dist/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.d.ts.map +1 -0
  50. package/dist/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.js +180 -0
  51. package/dist/react-ui/blocks/Terminal/index.d.ts +39 -0
  52. package/dist/react-ui/blocks/Terminal/index.d.ts.map +1 -0
  53. package/dist/react-ui/blocks/Terminal/index.js +38 -0
  54. package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.d.ts +58 -0
  55. package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.d.ts.map +1 -0
  56. package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.js +222 -0
  57. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.d.ts +74 -0
  58. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.d.ts.map +1 -0
  59. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.js +168 -0
  60. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.d.ts +42 -0
  61. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.d.ts.map +1 -0
  62. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.js +175 -0
  63. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs.d.ts +43 -0
  64. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs.d.ts.map +1 -0
  65. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.d.ts +38 -0
  66. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.d.ts.map +1 -0
  67. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.js +62 -0
  68. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.d.ts +67 -0
  69. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.d.ts.map +1 -0
  70. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.d.ts +32 -0
  71. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.d.ts.map +1 -0
  72. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.js +326 -0
  73. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.d.ts +36 -0
  74. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.d.ts.map +1 -0
  75. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.js +371 -0
  76. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.d.ts +67 -0
  77. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.d.ts.map +1 -0
  78. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.js +417 -0
  79. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.d.ts +197 -0
  80. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.d.ts.map +1 -0
  81. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts +54 -0
  82. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts.map +1 -0
  83. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.js +193 -0
  84. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts +57 -0
  85. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts.map +1 -0
  86. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.d.ts +30 -0
  87. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.d.ts.map +1 -0
  88. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.js +126 -0
  89. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.d.ts +31 -0
  90. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.d.ts.map +1 -0
  91. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.js +149 -0
  92. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.d.ts +35 -0
  93. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.d.ts.map +1 -0
  94. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl.d.ts +58 -0
  95. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl.d.ts.map +1 -0
  96. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.d.ts +63 -0
  97. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.d.ts.map +1 -0
  98. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.js +245 -0
  99. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.d.ts +24 -0
  100. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.d.ts.map +1 -0
  101. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.js +225 -0
  102. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.d.ts +35 -0
  103. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.d.ts.map +1 -0
  104. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.js +187 -0
  105. package/dist/react-ui/blocks/Terminal/panel/index.d.ts +30 -0
  106. package/dist/react-ui/blocks/Terminal/panel/index.d.ts.map +1 -0
  107. package/dist/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module-Bovc57nm.css +60 -0
  108. package/dist/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module.js +5 -0
  109. package/dist/react-ui/blocks/Terminal/panel/terminal-session-tabs.module-QyxHO7cN.css +60 -0
  110. package/dist/react-ui/blocks/Terminal/panel/terminal-session-tabs.module.js +5 -0
  111. package/dist/react-ui/blocks/Terminal/parsing/BadgeFormatter.d.ts +73 -0
  112. package/dist/react-ui/blocks/Terminal/parsing/BadgeFormatter.d.ts.map +1 -0
  113. package/dist/react-ui/blocks/Terminal/parsing/BadgeFormatter.js +136 -0
  114. package/dist/react-ui/blocks/Terminal/parsing/HttpLogParser.d.ts +117 -0
  115. package/dist/react-ui/blocks/Terminal/parsing/HttpLogParser.d.ts.map +1 -0
  116. package/dist/react-ui/blocks/Terminal/parsing/HttpLogParser.js +174 -0
  117. package/dist/react-ui/blocks/Terminal/parsing/LogParser.types.d.ts +221 -0
  118. package/dist/react-ui/blocks/Terminal/parsing/LogParser.types.d.ts.map +1 -0
  119. package/dist/react-ui/blocks/Terminal/parsing/LogParserService.d.ts +184 -0
  120. package/dist/react-ui/blocks/Terminal/parsing/LogParserService.d.ts.map +1 -0
  121. package/dist/react-ui/blocks/Terminal/parsing/LogParserService.js +478 -0
  122. package/dist/react-ui/blocks/Terminal/parsing/MultilineAggregator.d.ts +173 -0
  123. package/dist/react-ui/blocks/Terminal/parsing/MultilineAggregator.d.ts.map +1 -0
  124. package/dist/react-ui/blocks/Terminal/parsing/MultilineAggregator.js +313 -0
  125. package/dist/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.d.ts +181 -0
  126. package/dist/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.d.ts.map +1 -0
  127. package/dist/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.js +221 -0
  128. package/dist/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.d.ts +69 -0
  129. package/dist/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.d.ts.map +1 -0
  130. package/dist/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.js +142 -0
  131. package/dist/react-ui/blocks/Terminal/parsing/TableParser.d.ts +125 -0
  132. package/dist/react-ui/blocks/Terminal/parsing/TableParser.d.ts.map +1 -0
  133. package/dist/react-ui/blocks/Terminal/parsing/TableParser.js +245 -0
  134. package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.d.ts +165 -0
  135. package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.d.ts.map +1 -0
  136. package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.js +225 -0
  137. package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.d.ts +164 -0
  138. package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.d.ts.map +1 -0
  139. package/dist/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.js +285 -0
  140. package/dist/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.d.ts +188 -0
  141. package/dist/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.d.ts.map +1 -0
  142. package/dist/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.js +178 -0
  143. package/dist/react-ui/blocks/Terminal/parsing/ansi/index.d.ts +12 -0
  144. package/dist/react-ui/blocks/Terminal/parsing/ansi/index.d.ts.map +1 -0
  145. package/dist/react-ui/blocks/Terminal/parsing/index.d.ts +24 -0
  146. package/dist/react-ui/blocks/Terminal/parsing/index.d.ts.map +1 -0
  147. package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevel.types.d.ts +56 -0
  148. package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevel.types.d.ts.map +1 -0
  149. package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.d.ts +140 -0
  150. package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.d.ts.map +1 -0
  151. package/dist/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.js +325 -0
  152. package/dist/react-ui/blocks/Terminal/parsing/levels/index.d.ts +10 -0
  153. package/dist/react-ui/blocks/Terminal/parsing/levels/index.d.ts.map +1 -0
  154. package/dist/react-ui/blocks/index.d.ts +11 -0
  155. package/dist/react-ui/blocks/index.d.ts.map +1 -0
  156. package/dist/react-ui/icons/lucide-animated/activity.js +1 -1
  157. package/dist/react-ui/icons/lucide-animated/bell-electric.js +1 -1
  158. package/dist/react-ui/icons/lucide-animated/bell.js +1 -1
  159. package/dist/react-ui/icons/lucide-animated/bot.js +1 -1
  160. package/dist/react-ui/icons/lucide-animated/box.js +1 -1
  161. package/dist/react-ui/icons/lucide-animated/circle-check.js +1 -1
  162. package/dist/react-ui/icons/lucide-animated/delete.js +1 -1
  163. package/dist/react-ui/icons/lucide-animated/download.js +1 -1
  164. package/dist/react-ui/icons/lucide-animated/home.js +1 -1
  165. package/dist/react-ui/icons/lucide-animated/layout-panel-top.js +1 -1
  166. package/dist/react-ui/icons/lucide-animated/plus.js +1 -1
  167. package/dist/react-ui/icons/lucide-animated/search.js +1 -1
  168. package/dist/react-ui/icons/lucide-animated/settings.js +1 -1
  169. package/dist/react-ui/icons/lucide-animated/trending-down.js +1 -1
  170. package/dist/react-ui/icons/lucide-animated/trending-up.js +1 -1
  171. package/dist/react-ui/icons/lucide-animated/x.js +1 -1
  172. package/dist/react-ui/index.js +4 -1
  173. package/dist/react-ui/lib/icon-wrapper.d.ts +37 -0
  174. package/dist/react-ui/lib/icon-wrapper.d.ts.map +1 -0
  175. package/dist/react-ui/lib/icon-wrapper.js +55 -0
  176. package/dist/react-ui/lib/index.d.ts +1 -0
  177. package/dist/react-ui/lib/index.d.ts.map +1 -1
  178. package/dist/react-ui/lib/index.js +1 -0
  179. package/dist/react-ui/primitives/AutoHeight/index.d.ts +1 -1
  180. package/dist/react-ui/primitives/CountingNumber/index.d.ts +1 -1
  181. package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.d.ts +1 -1
  182. package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.styles.d.ts +1 -1
  183. package/dist/react-ui/ui/Accordion/Accordion.styles.d.ts +1 -1
  184. package/dist/react-ui/ui/Accordion/Accordion.types.d.ts +1 -1
  185. package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.d.ts +1 -1
  186. package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts +1 -1
  187. package/dist/react-ui/ui/Badge/Badge.styles.d.ts +1 -1
  188. package/dist/react-ui/ui/Badge/Badge.types.d.ts +1 -1
  189. package/dist/react-ui/ui/Button/Button.styles.d.ts +2 -2
  190. package/dist/react-ui/ui/Button/Button.types.d.ts +1 -1
  191. package/dist/react-ui/ui/Card/Card.styles.d.ts +1 -1
  192. package/dist/react-ui/ui/Card/Card.types.d.ts +1 -1
  193. package/dist/react-ui/ui/Checkbox/Checkbox.styles.d.ts +1 -1
  194. package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts +1 -1
  195. package/dist/react-ui/ui/Combobox/Combobox.styles.d.ts +1 -1
  196. package/dist/react-ui/ui/Combobox/Combobox.types.d.ts +1 -1
  197. package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts +2 -2
  198. package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.js +1 -1
  199. package/dist/react-ui/ui/CornerBracket/CornerBracket.types.d.ts +1 -1
  200. package/dist/react-ui/ui/DataCard/DataCard.styles.d.ts +1 -1
  201. package/dist/react-ui/ui/DataCard/DataCard.types.d.ts +1 -1
  202. package/dist/react-ui/ui/DataCard/index.d.ts +1 -1
  203. package/dist/react-ui/ui/Dialog/Dialog.styles.d.ts +1 -1
  204. package/dist/react-ui/ui/Dialog/Dialog.types.d.ts +1 -1
  205. package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.d.ts +1 -1
  206. package/dist/react-ui/ui/DropdownMenu/DropdownMenu.types.d.ts +1 -1
  207. package/dist/react-ui/ui/Field/Field.styles.d.ts +1 -1
  208. package/dist/react-ui/ui/Field/Field.types.d.ts +1 -1
  209. package/dist/react-ui/ui/Input/Input.styles.d.ts +1 -1
  210. package/dist/react-ui/ui/Input/Input.types.d.ts +1 -1
  211. package/dist/react-ui/ui/InputGroup/InputGroup.styles.d.ts +1 -1
  212. package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts +1 -1
  213. package/dist/react-ui/ui/Label/Label.styles.d.ts +1 -1
  214. package/dist/react-ui/ui/Label/Label.types.d.ts +1 -1
  215. package/dist/react-ui/ui/Menu/Menu.styles.d.ts +1 -1
  216. package/dist/react-ui/ui/Menu/Menu.types.d.ts +2 -2
  217. package/dist/react-ui/ui/Popover/Popover.styles.d.ts +1 -1
  218. package/dist/react-ui/ui/Popover/Popover.types.d.ts +1 -1
  219. package/dist/react-ui/ui/Progress/Progress.styles.d.ts +1 -1
  220. package/dist/react-ui/ui/Progress/Progress.types.d.ts +2 -2
  221. package/dist/react-ui/ui/Select/Select.styles.d.ts +1 -1
  222. package/dist/react-ui/ui/Select/Select.types.d.ts +1 -1
  223. package/dist/react-ui/ui/Separator/Separator.styles.d.ts +1 -1
  224. package/dist/react-ui/ui/Separator/Separator.types.d.ts +1 -1
  225. package/dist/react-ui/ui/Switch/Switch.styles.d.ts +1 -1
  226. package/dist/react-ui/ui/Switch/Switch.types.d.ts +1 -1
  227. package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts +43 -25
  228. package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts.map +1 -1
  229. package/dist/react-ui/ui/Tabs/Tabs.styles.js +105 -13
  230. package/dist/react-ui/ui/Tabs/Tabs.types.d.ts +9 -6
  231. package/dist/react-ui/ui/Tabs/Tabs.types.d.ts.map +1 -1
  232. package/dist/react-ui/ui/Tabs/index.d.ts +18 -9
  233. package/dist/react-ui/ui/Tabs/index.d.ts.map +1 -1
  234. package/dist/react-ui/ui/Tabs/index.js +99 -27
  235. package/dist/react-ui/ui/TextFlow/TextFlow.styles.d.ts +1 -1
  236. package/dist/react-ui/ui/Textarea/Textarea.styles.d.ts +1 -1
  237. package/dist/react-ui/ui/Textarea/Textarea.types.d.ts +1 -1
  238. package/dist/react-ui/ui/Tooltip/Tooltip.styles.d.ts +1 -1
  239. package/dist/react-ui/ui/Tooltip/Tooltip.types.d.ts +1 -1
  240. package/dist/react-ui/ui/index.d.ts +1 -0
  241. package/dist/react-ui/ui/index.d.ts.map +1 -1
  242. package/dist/react-ui/ui/index.js +2 -0
  243. package/package.json +54 -6
  244. package/src/react-ui/blocks/Terminal/ResttyAdapter.ts +278 -0
  245. package/src/react-ui/blocks/Terminal/Terminal.adapter.ts +97 -0
  246. package/src/react-ui/blocks/Terminal/Terminal.theme.restty.ts +155 -0
  247. package/src/react-ui/blocks/Terminal/Terminal.theme.ts +80 -0
  248. package/src/react-ui/blocks/Terminal/Terminal.types.ts +438 -0
  249. package/src/react-ui/blocks/Terminal/TerminalPanel.tsx +269 -0
  250. package/src/react-ui/blocks/Terminal/TerminalRestty.tsx +326 -0
  251. package/src/react-ui/blocks/Terminal/TerminalXterm.tsx +230 -0
  252. package/src/react-ui/blocks/Terminal/XTermAdapter.ts +163 -0
  253. package/src/react-ui/blocks/Terminal/components/LogLineBadges.tsx +316 -0
  254. package/src/react-ui/blocks/Terminal/components/SpecializedSyntaxHighlighter.tsx +218 -0
  255. package/src/react-ui/blocks/Terminal/components/SyntaxHighlight.tsx +386 -0
  256. package/src/react-ui/blocks/Terminal/components/TerminalLogBadge.tsx +67 -0
  257. package/src/react-ui/blocks/Terminal/components/index.ts +10 -0
  258. package/src/react-ui/blocks/Terminal/hooks/index.ts +22 -0
  259. package/src/react-ui/blocks/Terminal/hooks/useTerminalSettings.ts +229 -0
  260. package/src/react-ui/blocks/Terminal/hooks/useTerminalWebSocket.ts +292 -0
  261. package/src/react-ui/blocks/Terminal/index.ts +103 -0
  262. package/src/react-ui/blocks/Terminal/panel/LogLinesViewer.tsx +330 -0
  263. package/src/react-ui/blocks/Terminal/panel/TerminalDebugPanel.tsx +242 -0
  264. package/src/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.tsx +202 -0
  265. package/src/react-ui/blocks/Terminal/panel/TerminalFilterTabs.tsx +140 -0
  266. package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.tsx +68 -0
  267. package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.ts +85 -0
  268. package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.tsx +383 -0
  269. package/src/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.tsx +439 -0
  270. package/src/react-ui/blocks/Terminal/panel/TerminalLogsPanel.tsx +550 -0
  271. package/src/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.ts +259 -0
  272. package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.tsx +237 -0
  273. package/src/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.ts +76 -0
  274. package/src/react-ui/blocks/Terminal/panel/TerminalPanelFooter.tsx +112 -0
  275. package/src/react-ui/blocks/Terminal/panel/TerminalPanelHeader.tsx +178 -0
  276. package/src/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.tsx +203 -0
  277. package/src/react-ui/blocks/Terminal/panel/TerminalSessionControl.tsx +252 -0
  278. package/src/react-ui/blocks/Terminal/panel/TerminalSessionTabs.tsx +334 -0
  279. package/src/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.tsx +261 -0
  280. package/src/react-ui/blocks/Terminal/panel/TerminalThemeSelector.tsx +248 -0
  281. package/src/react-ui/blocks/Terminal/panel/index.ts +72 -0
  282. package/src/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module.css +59 -0
  283. package/src/react-ui/blocks/Terminal/panel/terminal-session-tabs.module.css +59 -0
  284. package/src/react-ui/blocks/Terminal/parsing/BadgeFormatter.ts +180 -0
  285. package/src/react-ui/blocks/Terminal/parsing/HttpLogParser.ts +248 -0
  286. package/src/react-ui/blocks/Terminal/parsing/LogParser.types.ts +283 -0
  287. package/src/react-ui/blocks/Terminal/parsing/LogParserService.ts +686 -0
  288. package/src/react-ui/blocks/Terminal/parsing/MultilineAggregator.ts +466 -0
  289. package/src/react-ui/blocks/Terminal/parsing/PersistentLogBuffer.ts +343 -0
  290. package/src/react-ui/blocks/Terminal/parsing/SyntaxHighlighter.ts +167 -0
  291. package/src/react-ui/blocks/Terminal/parsing/TableParser.ts +348 -0
  292. package/src/react-ui/blocks/Terminal/parsing/ansi/AnsiColorMapper.ts +251 -0
  293. package/src/react-ui/blocks/Terminal/parsing/ansi/AnsiParser.ts +390 -0
  294. package/src/react-ui/blocks/Terminal/parsing/ansi/ansi.constants.ts +320 -0
  295. package/src/react-ui/blocks/Terminal/parsing/ansi/index.ts +20 -0
  296. package/src/react-ui/blocks/Terminal/parsing/index.ts +69 -0
  297. package/src/react-ui/blocks/Terminal/parsing/levels/LogLevel.types.ts +68 -0
  298. package/src/react-ui/blocks/Terminal/parsing/levels/LogLevelDetector.ts +436 -0
  299. package/src/react-ui/blocks/Terminal/parsing/levels/index.ts +14 -0
  300. package/src/react-ui/blocks/index.ts +11 -0
  301. package/src/react-ui/icons/lucide-animated/activity.tsx +2 -2
  302. package/src/react-ui/icons/lucide-animated/bell-electric.tsx +1 -1
  303. package/src/react-ui/icons/lucide-animated/bell.tsx +2 -2
  304. package/src/react-ui/icons/lucide-animated/bot.tsx +1 -1
  305. package/src/react-ui/icons/lucide-animated/box.tsx +2 -2
  306. package/src/react-ui/icons/lucide-animated/circle-check.tsx +2 -2
  307. package/src/react-ui/icons/lucide-animated/delete.tsx +2 -2
  308. package/src/react-ui/icons/lucide-animated/download.tsx +2 -2
  309. package/src/react-ui/icons/lucide-animated/home.tsx +2 -2
  310. package/src/react-ui/icons/lucide-animated/layout-panel-top.tsx +1 -1
  311. package/src/react-ui/icons/lucide-animated/plus.tsx +1 -1
  312. package/src/react-ui/icons/lucide-animated/search.tsx +1 -1
  313. package/src/react-ui/icons/lucide-animated/settings.tsx +1 -1
  314. package/src/react-ui/icons/lucide-animated/trending-down.tsx +2 -2
  315. package/src/react-ui/icons/lucide-animated/trending-up.tsx +2 -2
  316. package/src/react-ui/icons/lucide-animated/x.tsx +2 -2
  317. package/src/react-ui/lib/icon-wrapper.tsx +70 -0
  318. package/src/react-ui/lib/index.ts +1 -0
  319. package/src/react-ui/ui/CornerBracket/CornerBracket.styles.ts +1 -1
  320. package/src/react-ui/ui/Tabs/Tabs.css +39 -0
  321. package/src/react-ui/ui/Tabs/Tabs.styles.ts +119 -31
  322. package/src/react-ui/ui/Tabs/Tabs.types.ts +8 -3
  323. package/src/react-ui/ui/Tabs/index.tsx +135 -27
  324. package/src/react-ui/ui/index.ts +1 -0
  325. 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"}