@mks2508/mks-ui 0.6.8 → 0.8.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 (494) hide show
  1. package/dist/css/blocks-Sidebar-animations-tooltip.css +330 -0
  2. package/dist/css/primitives-DotMatrix-dot.css +364 -0
  3. package/dist/css/primitives-GooeyMorphingSurface-gooey.css +112 -0
  4. package/dist/css/ui-GooeyButton-gooey.css +43 -0
  5. package/dist/index.css +1113 -352
  6. package/dist/react-ui/blocks/BottomNavBar/MobileBottomNav.d.ts +64 -0
  7. package/dist/react-ui/blocks/BottomNavBar/MobileBottomNav.d.ts.map +1 -0
  8. package/dist/react-ui/blocks/BottomNavBar/MobileBottomNav.js +301 -0
  9. package/dist/react-ui/blocks/BottomNavBar/MobileBottomNav.styles.d.ts +94 -0
  10. package/dist/react-ui/blocks/BottomNavBar/MobileBottomNav.styles.d.ts.map +1 -0
  11. package/dist/react-ui/blocks/BottomNavBar/MobileBottomNav.styles.js +216 -0
  12. package/dist/react-ui/blocks/BottomNavBar/index.d.ts +10 -0
  13. package/dist/react-ui/blocks/BottomNavBar/index.d.ts.map +1 -0
  14. package/dist/react-ui/blocks/BottomNavBar/index.js +4 -0
  15. package/dist/react-ui/blocks/BottomNavBar/types.d.ts +362 -0
  16. package/dist/react-ui/blocks/BottomNavBar/types.d.ts.map +1 -0
  17. package/dist/react-ui/blocks/BottomNavBar/types.js +175 -0
  18. package/dist/react-ui/blocks/BottomNavBar/useIOSSafariFix.d.ts +73 -0
  19. package/dist/react-ui/blocks/BottomNavBar/useIOSSafariFix.d.ts.map +1 -0
  20. package/dist/react-ui/blocks/BottomNavBar/useIOSSafariFix.js +178 -0
  21. package/dist/react-ui/blocks/Sidebar/Sidebar.constants.d.ts +285 -0
  22. package/dist/react-ui/blocks/Sidebar/Sidebar.constants.d.ts.map +1 -0
  23. package/dist/react-ui/blocks/Sidebar/Sidebar.constants.js +208 -0
  24. package/dist/react-ui/blocks/Sidebar/Sidebar.d.ts +80 -0
  25. package/dist/react-ui/blocks/Sidebar/Sidebar.d.ts.map +1 -0
  26. package/dist/react-ui/blocks/Sidebar/Sidebar.js +114 -0
  27. package/dist/react-ui/blocks/Sidebar/Sidebar.styles.d.ts +77 -0
  28. package/dist/react-ui/blocks/Sidebar/Sidebar.styles.d.ts.map +1 -0
  29. package/dist/react-ui/blocks/Sidebar/Sidebar.styles.js +274 -0
  30. package/dist/react-ui/blocks/Sidebar/Sidebar.types.d.ts +546 -0
  31. package/dist/react-ui/blocks/Sidebar/Sidebar.types.d.ts.map +1 -0
  32. package/dist/react-ui/blocks/Sidebar/Sidebar.types.js +149 -0
  33. package/dist/react-ui/blocks/Sidebar/SidebarContent.d.ts +46 -0
  34. package/dist/react-ui/blocks/Sidebar/SidebarContent.d.ts.map +1 -0
  35. package/dist/react-ui/blocks/Sidebar/SidebarContent.js +86 -0
  36. package/dist/react-ui/blocks/Sidebar/SidebarContext.d.ts +85 -0
  37. package/dist/react-ui/blocks/Sidebar/SidebarContext.d.ts.map +1 -0
  38. package/dist/react-ui/blocks/Sidebar/SidebarContext.js +178 -0
  39. package/dist/react-ui/blocks/Sidebar/SidebarFluidIndicator.d.ts +31 -0
  40. package/dist/react-ui/blocks/Sidebar/SidebarFluidIndicator.d.ts.map +1 -0
  41. package/dist/react-ui/blocks/Sidebar/SidebarFluidIndicator.js +37 -0
  42. package/dist/react-ui/blocks/Sidebar/SidebarIndicator.d.ts +59 -0
  43. package/dist/react-ui/blocks/Sidebar/SidebarIndicator.d.ts.map +1 -0
  44. package/dist/react-ui/blocks/Sidebar/SidebarIndicator.js +106 -0
  45. package/dist/react-ui/blocks/Sidebar/SidebarItem.d.ts +82 -0
  46. package/dist/react-ui/blocks/Sidebar/SidebarItem.d.ts.map +1 -0
  47. package/dist/react-ui/blocks/Sidebar/SidebarItem.js +209 -0
  48. package/dist/react-ui/blocks/Sidebar/SidebarNav.d.ts +48 -0
  49. package/dist/react-ui/blocks/Sidebar/SidebarNav.d.ts.map +1 -0
  50. package/dist/react-ui/blocks/Sidebar/SidebarNav.js +317 -0
  51. package/dist/react-ui/blocks/Sidebar/SidebarSafeArea.d.ts +56 -0
  52. package/dist/react-ui/blocks/Sidebar/SidebarSafeArea.d.ts.map +1 -0
  53. package/dist/react-ui/blocks/Sidebar/SidebarSafeArea.js +105 -0
  54. package/dist/react-ui/blocks/Sidebar/SidebarSubContent.d.ts +27 -0
  55. package/dist/react-ui/blocks/Sidebar/SidebarSubContent.d.ts.map +1 -0
  56. package/dist/react-ui/blocks/Sidebar/SidebarSubContent.js +31 -0
  57. package/dist/react-ui/blocks/Sidebar/SidebarSubLink.d.ts +20 -0
  58. package/dist/react-ui/blocks/Sidebar/SidebarSubLink.d.ts.map +1 -0
  59. package/dist/react-ui/blocks/Sidebar/SidebarSubLink.js +44 -0
  60. package/dist/react-ui/blocks/Sidebar/SidebarToggle.d.ts +52 -0
  61. package/dist/react-ui/blocks/Sidebar/SidebarToggle.d.ts.map +1 -0
  62. package/dist/react-ui/blocks/Sidebar/SidebarToggle.js +119 -0
  63. package/dist/react-ui/blocks/Sidebar/SidebarTooltip.d.ts +15 -0
  64. package/dist/react-ui/blocks/Sidebar/SidebarTooltip.d.ts.map +1 -0
  65. package/dist/react-ui/blocks/Sidebar/SidebarTooltip.js +177 -0
  66. package/dist/react-ui/blocks/Sidebar/animations/tooltip-keyframes.js +0 -0
  67. package/dist/react-ui/blocks/Sidebar/animations/tooltip.css +330 -0
  68. package/dist/react-ui/blocks/Sidebar/components/FluidHoverIndicator.d.ts +28 -0
  69. package/dist/react-ui/blocks/Sidebar/components/FluidHoverIndicator.d.ts.map +1 -0
  70. package/dist/react-ui/blocks/Sidebar/components/FluidHoverIndicator.js +74 -0
  71. package/dist/react-ui/blocks/Sidebar/hooks/use-fluid-animation.d.ts +18 -0
  72. package/dist/react-ui/blocks/Sidebar/hooks/use-fluid-animation.d.ts.map +1 -0
  73. package/dist/react-ui/blocks/Sidebar/hooks/use-fluid-animation.js +166 -0
  74. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarContext.d.ts +48 -0
  75. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarContext.d.ts.map +1 -0
  76. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarContext.js +59 -0
  77. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarIndicator.d.ts +72 -0
  78. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarIndicator.d.ts.map +1 -0
  79. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarIndicator.js +159 -0
  80. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarKeyboard.d.ts +51 -0
  81. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarKeyboard.d.ts.map +1 -0
  82. package/dist/react-ui/blocks/Sidebar/hooks/useSidebarKeyboard.js +150 -0
  83. package/dist/react-ui/blocks/Sidebar/hooks/useSubContent.d.ts +42 -0
  84. package/dist/react-ui/blocks/Sidebar/hooks/useSubContent.d.ts.map +1 -0
  85. package/dist/react-ui/blocks/Sidebar/hooks/useSubContent.js +49 -0
  86. package/dist/react-ui/blocks/Sidebar/index.d.ts +163 -0
  87. package/dist/react-ui/blocks/Sidebar/index.d.ts.map +1 -0
  88. package/dist/react-ui/blocks/Sidebar/index.js +19 -0
  89. package/dist/react-ui/blocks/Terminal/Terminal.tokens.d.ts +219 -0
  90. package/dist/react-ui/blocks/Terminal/Terminal.tokens.d.ts.map +1 -0
  91. package/dist/react-ui/blocks/Terminal/Terminal.tokens.js +253 -0
  92. package/dist/react-ui/blocks/Terminal/Terminal.types.d.ts +2 -1
  93. package/dist/react-ui/blocks/Terminal/Terminal.types.d.ts.map +1 -1
  94. package/dist/react-ui/blocks/Terminal/TerminalDisplay.js +1 -1
  95. package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts +1 -1
  96. package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts.map +1 -1
  97. package/dist/react-ui/blocks/Terminal/chrome.js +2 -2
  98. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/LogLineBadges.styles.d.ts +15 -0
  99. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/LogLineBadges.styles.d.ts.map +1 -0
  100. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/LogLineBadges.styles.js +14 -0
  101. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/LogLineBadges.types.d.ts +106 -0
  102. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/LogLineBadges.types.d.ts.map +1 -0
  103. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/index.d.ts +89 -0
  104. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/index.d.ts.map +1 -0
  105. package/dist/react-ui/blocks/Terminal/components/LogLineBadges/index.js +136 -0
  106. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.d.ts +21 -7
  107. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.d.ts.map +1 -1
  108. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.js +81 -71
  109. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.styles.d.ts +33 -0
  110. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.styles.d.ts.map +1 -0
  111. package/dist/react-ui/blocks/Terminal/components/SyntaxHighlight.styles.js +51 -0
  112. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.styles.d.ts +13 -0
  113. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.styles.d.ts.map +1 -0
  114. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.styles.js +8 -0
  115. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.types.d.ts +29 -0
  116. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.types.d.ts.map +1 -0
  117. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/index.d.ts +26 -0
  118. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/index.d.ts.map +1 -0
  119. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/index.js +40 -0
  120. package/dist/react-ui/blocks/Terminal/components/index.js +5 -2
  121. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.styles.d.ts +12 -0
  122. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.styles.d.ts.map +1 -0
  123. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.styles.js +13 -0
  124. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.types.d.ts +35 -0
  125. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.types.d.ts.map +1 -0
  126. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/index.d.ts +75 -0
  127. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/index.d.ts.map +1 -0
  128. package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/index.js +115 -0
  129. package/dist/react-ui/blocks/Terminal/controls/TerminalAtoms.d.ts +122 -0
  130. package/dist/react-ui/blocks/Terminal/controls/TerminalAtoms.d.ts.map +1 -0
  131. package/dist/react-ui/blocks/Terminal/controls/TerminalAtoms.js +128 -0
  132. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.styles.d.ts +12 -0
  133. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.styles.d.ts.map +1 -0
  134. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.styles.js +12 -0
  135. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.types.d.ts +29 -0
  136. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.types.d.ts.map +1 -0
  137. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/index.d.ts +37 -0
  138. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/index.d.ts.map +1 -0
  139. package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/index.js +74 -0
  140. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.styles.d.ts +12 -0
  141. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.styles.d.ts.map +1 -0
  142. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.styles.js +16 -0
  143. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.types.d.ts +32 -0
  144. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.types.d.ts.map +1 -0
  145. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/index.d.ts +40 -0
  146. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/index.d.ts.map +1 -0
  147. package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/index.js +81 -0
  148. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.styles.d.ts +12 -0
  149. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.styles.d.ts.map +1 -0
  150. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.styles.js +13 -0
  151. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.types.d.ts +28 -0
  152. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.types.d.ts.map +1 -0
  153. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/index.d.ts +40 -0
  154. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/index.d.ts.map +1 -0
  155. package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/index.js +108 -0
  156. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.styles.d.ts +12 -0
  157. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.styles.d.ts.map +1 -0
  158. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.styles.js +12 -0
  159. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.types.d.ts +31 -0
  160. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.types.d.ts.map +1 -0
  161. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/index.d.ts +73 -0
  162. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/index.d.ts.map +1 -0
  163. package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/index.js +99 -0
  164. package/dist/react-ui/blocks/Terminal/controls/index.d.ts +16 -0
  165. package/dist/react-ui/blocks/Terminal/controls/index.d.ts.map +1 -0
  166. package/dist/react-ui/blocks/Terminal/controls/index.js +11 -0
  167. package/dist/react-ui/blocks/Terminal/display.d.ts +2 -2
  168. package/dist/react-ui/blocks/Terminal/display.d.ts.map +1 -1
  169. package/dist/react-ui/blocks/Terminal/display.js +4 -2
  170. package/dist/react-ui/blocks/Terminal/hooks/index.d.ts +9 -2
  171. package/dist/react-ui/blocks/Terminal/hooks/index.d.ts.map +1 -1
  172. package/dist/react-ui/blocks/Terminal/hooks/index.js +6 -0
  173. package/dist/react-ui/blocks/Terminal/hooks/useTerminal.d.ts +198 -0
  174. package/dist/react-ui/blocks/Terminal/hooks/useTerminal.d.ts.map +1 -0
  175. package/dist/react-ui/blocks/Terminal/hooks/useTerminal.js +198 -0
  176. package/dist/react-ui/blocks/Terminal/hooks/useTerminalConnection.d.ts +81 -0
  177. package/dist/react-ui/blocks/Terminal/hooks/useTerminalConnection.d.ts.map +1 -0
  178. package/dist/react-ui/blocks/Terminal/hooks/useTerminalConnection.js +115 -0
  179. package/dist/react-ui/blocks/Terminal/hooks/useTerminalDimensions.d.ts +54 -0
  180. package/dist/react-ui/blocks/Terminal/hooks/useTerminalDimensions.d.ts.map +1 -0
  181. package/dist/react-ui/blocks/Terminal/hooks/useTerminalDimensions.js +57 -0
  182. package/dist/react-ui/blocks/Terminal/hooks/useTerminalFontSize.d.ts +81 -0
  183. package/dist/react-ui/blocks/Terminal/hooks/useTerminalFontSize.d.ts.map +1 -0
  184. package/dist/react-ui/blocks/Terminal/hooks/useTerminalFontSize.js +102 -0
  185. package/dist/react-ui/blocks/Terminal/hooks/useTerminalKeyboardShortcuts.d.ts +78 -0
  186. package/dist/react-ui/blocks/Terminal/hooks/useTerminalKeyboardShortcuts.d.ts.map +1 -0
  187. package/dist/react-ui/blocks/Terminal/hooks/useTerminalKeyboardShortcuts.js +136 -0
  188. package/dist/react-ui/blocks/Terminal/hooks/useTerminalPaneManager.d.ts +88 -0
  189. package/dist/react-ui/blocks/Terminal/hooks/useTerminalPaneManager.d.ts.map +1 -0
  190. package/dist/react-ui/blocks/Terminal/hooks/useTerminalPaneManager.js +101 -0
  191. package/dist/react-ui/blocks/Terminal/index.d.ts +10 -6
  192. package/dist/react-ui/blocks/Terminal/index.d.ts.map +1 -1
  193. package/dist/react-ui/blocks/Terminal/index.js +43 -11
  194. package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.d.ts.map +1 -1
  195. package/dist/react-ui/blocks/Terminal/panel/LogLinesViewer.js +8 -13
  196. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/TerminalDebugPanel.styles.d.ts +13 -0
  197. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/TerminalDebugPanel.styles.d.ts.map +1 -0
  198. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/TerminalDebugPanel.styles.js +18 -0
  199. package/dist/react-ui/blocks/Terminal/panel/{TerminalDebugPanel.d.ts → TerminalDebugPanel/TerminalDebugPanel.types.d.ts} +19 -27
  200. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/TerminalDebugPanel.types.d.ts.map +1 -0
  201. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/index.d.ts +32 -0
  202. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/index.d.ts.map +1 -0
  203. package/dist/react-ui/blocks/Terminal/panel/{TerminalDebugPanel.js → TerminalDebugPanel/index.js} +59 -38
  204. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.styles.d.ts +13 -0
  205. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.styles.d.ts.map +1 -0
  206. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.styles.js +17 -0
  207. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.types.d.ts +34 -0
  208. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.types.d.ts.map +1 -0
  209. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/index.d.ts +34 -0
  210. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/index.d.ts.map +1 -0
  211. package/dist/react-ui/blocks/Terminal/panel/{TerminalFilterDropdown.js → TerminalFilterDropdown/index.js} +29 -31
  212. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/terminal-filter-dropdown.module.css +60 -0
  213. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/terminal-filter-dropdown.module.js +5 -0
  214. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/TerminalFilterTabs.styles.d.ts +13 -0
  215. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/TerminalFilterTabs.styles.d.ts.map +1 -0
  216. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/TerminalFilterTabs.types.d.ts +34 -0
  217. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/TerminalFilterTabs.types.d.ts.map +1 -0
  218. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/index.d.ts +34 -0
  219. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/index.d.ts.map +1 -0
  220. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.d.ts.map +1 -1
  221. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.js +5 -1
  222. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.d.ts +2 -1
  223. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanel.types.d.ts.map +1 -1
  224. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.d.ts +6 -3
  225. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.d.ts.map +1 -1
  226. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelRestty.js +43 -264
  227. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelWterm.d.ts +43 -0
  228. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelWterm.d.ts.map +1 -0
  229. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelWterm.js +248 -0
  230. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.d.ts +4 -2
  231. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.d.ts.map +1 -1
  232. package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelXterm.js +40 -150
  233. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.styles.d.ts +26 -0
  234. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.styles.d.ts.map +1 -0
  235. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.styles.js +30 -0
  236. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.types.d.ts +123 -0
  237. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.types.d.ts.map +1 -0
  238. package/dist/react-ui/blocks/Terminal/panel/{TerminalLogsPanel.d.ts → TerminalLogsPanel/index.d.ts} +10 -21
  239. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/index.d.ts.map +1 -0
  240. package/dist/react-ui/blocks/Terminal/panel/{TerminalLogsPanel.js → TerminalLogsPanel/index.js} +48 -81
  241. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.d.ts +6 -142
  242. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.types.d.ts.map +1 -1
  243. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts +1 -1
  244. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.d.ts.map +1 -1
  245. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.js +16 -16
  246. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.d.ts +1 -1
  247. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.js +1 -1
  248. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.styles.d.ts +21 -0
  249. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.styles.d.ts.map +1 -0
  250. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.styles.js +21 -0
  251. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.types.d.ts +40 -0
  252. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.types.d.ts.map +1 -0
  253. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/index.d.ts +37 -0
  254. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/index.d.ts.map +1 -0
  255. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/index.js +127 -0
  256. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.styles.d.ts +22 -0
  257. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.styles.d.ts.map +1 -0
  258. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.styles.js +24 -0
  259. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.types.d.ts +43 -0
  260. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.types.d.ts.map +1 -0
  261. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/index.d.ts +35 -0
  262. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/index.d.ts.map +1 -0
  263. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/index.js +129 -0
  264. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/TerminalPanelToolbar.styles.d.ts +20 -0
  265. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/TerminalPanelToolbar.styles.d.ts.map +1 -0
  266. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/TerminalPanelToolbar.types.d.ts +72 -0
  267. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/TerminalPanelToolbar.types.d.ts.map +1 -0
  268. package/dist/react-ui/blocks/Terminal/panel/{TerminalPanelToolbar.d.ts → TerminalPanelToolbar/index.d.ts} +10 -4
  269. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/index.d.ts.map +1 -0
  270. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/TerminalSessionControl.styles.d.ts +13 -0
  271. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/TerminalSessionControl.styles.d.ts.map +1 -0
  272. package/dist/react-ui/blocks/Terminal/panel/{TerminalSessionControl.d.ts → TerminalSessionControl/TerminalSessionControl.types.d.ts} +24 -30
  273. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/TerminalSessionControl.types.d.ts.map +1 -0
  274. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/index.d.ts +38 -0
  275. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/index.d.ts.map +1 -0
  276. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.styles.d.ts +23 -0
  277. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.styles.d.ts.map +1 -0
  278. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.styles.js +27 -0
  279. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.types.d.ts +56 -0
  280. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.types.d.ts.map +1 -0
  281. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/index.d.ts +40 -0
  282. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/index.d.ts.map +1 -0
  283. package/dist/react-ui/blocks/Terminal/panel/{TerminalSessionTabs.js → TerminalSessionTabs/index.js} +26 -31
  284. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/terminal-session-tabs.module.css +60 -0
  285. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/terminal-session-tabs.module.js +5 -0
  286. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.styles.d.ts +13 -0
  287. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.styles.d.ts.map +1 -0
  288. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.styles.js +19 -0
  289. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.types.d.ts +20 -0
  290. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.types.d.ts.map +1 -0
  291. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/index.d.ts +25 -0
  292. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/index.d.ts.map +1 -0
  293. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/index.js +217 -0
  294. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.styles.d.ts +13 -0
  295. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.styles.d.ts.map +1 -0
  296. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.styles.js +15 -0
  297. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.types.d.ts +28 -0
  298. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.types.d.ts.map +1 -0
  299. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/index.d.ts +30 -0
  300. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/index.d.ts.map +1 -0
  301. package/dist/react-ui/blocks/Terminal/panel/{TerminalThemeSelector.js → TerminalThemeSelector/index.js} +31 -46
  302. package/dist/react-ui/blocks/Terminal/restty/ResttyContext.d.ts +38 -0
  303. package/dist/react-ui/blocks/Terminal/restty/ResttyContext.d.ts.map +1 -0
  304. package/dist/react-ui/blocks/Terminal/restty/ResttyContext.js +47 -0
  305. package/dist/react-ui/blocks/Terminal/restty/ResttySessionProvider.d.ts +50 -0
  306. package/dist/react-ui/blocks/Terminal/restty/ResttySessionProvider.d.ts.map +1 -0
  307. package/dist/react-ui/blocks/Terminal/restty/ResttySessionProvider.js +60 -0
  308. package/dist/react-ui/blocks/Terminal/restty/ResttyTerminal.d.ts +32 -0
  309. package/dist/react-ui/blocks/Terminal/restty/ResttyTerminal.d.ts.map +1 -0
  310. package/dist/react-ui/blocks/Terminal/restty/ResttyTerminal.js +278 -0
  311. package/dist/react-ui/blocks/Terminal/restty/ResttyTerminal.types.d.ts +166 -0
  312. package/dist/react-ui/blocks/Terminal/restty/ResttyTerminal.types.d.ts.map +1 -0
  313. package/dist/react-ui/blocks/Terminal/restty/index.d.ts +20 -0
  314. package/dist/react-ui/blocks/Terminal/restty/index.d.ts.map +1 -0
  315. package/dist/react-ui/blocks/Terminal/restty/index.js +7 -0
  316. package/dist/react-ui/blocks/Terminal/restty/useResttyPane.d.ts +51 -0
  317. package/dist/react-ui/blocks/Terminal/restty/useResttyPane.d.ts.map +1 -0
  318. package/dist/react-ui/blocks/Terminal/restty/useResttyPane.js +61 -0
  319. package/dist/react-ui/blocks/Terminal/restty/useResttyPanes.d.ts +39 -0
  320. package/dist/react-ui/blocks/Terminal/restty/useResttyPanes.d.ts.map +1 -0
  321. package/dist/react-ui/blocks/Terminal/restty/useResttyPanes.js +48 -0
  322. package/dist/react-ui/blocks/Terminal/restty/useResttyPlugins.d.ts +29 -0
  323. package/dist/react-ui/blocks/Terminal/restty/useResttyPlugins.d.ts.map +1 -0
  324. package/dist/react-ui/blocks/Terminal/restty/useResttyPlugins.js +33 -0
  325. package/dist/react-ui/blocks/Terminal/restty/useResttyVisibility.d.ts +32 -0
  326. package/dist/react-ui/blocks/Terminal/restty/useResttyVisibility.d.ts.map +1 -0
  327. package/dist/react-ui/blocks/Terminal/restty/useResttyVisibility.js +67 -0
  328. package/dist/react-ui/blocks/Terminal/wterm/WtermJsonTransport.d.ts +83 -0
  329. package/dist/react-ui/blocks/Terminal/wterm/WtermJsonTransport.d.ts.map +1 -0
  330. package/dist/react-ui/blocks/Terminal/wterm/WtermJsonTransport.js +191 -0
  331. package/dist/react-ui/blocks/index.d.ts +2 -0
  332. package/dist/react-ui/blocks/index.d.ts.map +1 -1
  333. package/dist/react-ui/components/MorphingPopover/MorphingPopover.types.d.ts +8 -3
  334. package/dist/react-ui/components/MorphingPopover/MorphingPopover.types.d.ts.map +1 -1
  335. package/dist/react-ui/components/MorphingPopover/morphing-popover.module.css +154 -0
  336. package/dist/react-ui/icons/lucide-animated/terminal.d.ts +45 -13
  337. package/dist/react-ui/icons/lucide-animated/terminal.d.ts.map +1 -1
  338. package/dist/react-ui/icons/lucide-animated/terminal.js +118 -28
  339. package/dist/react-ui/index.d.ts +4 -0
  340. package/dist/react-ui/index.d.ts.map +1 -1
  341. package/dist/react-ui/index.js +63 -1
  342. package/dist/react-ui/primitives/DotMatrix/DotMatrix.types.d.ts +109 -0
  343. package/dist/react-ui/primitives/DotMatrix/DotMatrix.types.d.ts.map +1 -0
  344. package/dist/react-ui/primitives/DotMatrix/dot-matrix.js +0 -0
  345. package/dist/react-ui/primitives/DotMatrix/dot.css +364 -0
  346. package/dist/react-ui/primitives/DotMatrix/index.d.ts +7 -0
  347. package/dist/react-ui/primitives/DotMatrix/index.d.ts.map +1 -0
  348. package/dist/react-ui/primitives/DotMatrix/index.js +185 -0
  349. package/dist/react-ui/primitives/DotMatrix/patterns.d.ts +32 -0
  350. package/dist/react-ui/primitives/DotMatrix/patterns.d.ts.map +1 -0
  351. package/dist/react-ui/primitives/DotMatrix/patterns.js +175 -0
  352. package/dist/react-ui/primitives/GooeyMorphingSurface/GooeyMorphingSurface.types.d.ts +100 -0
  353. package/dist/react-ui/primitives/GooeyMorphingSurface/GooeyMorphingSurface.types.d.ts.map +1 -0
  354. package/dist/react-ui/primitives/GooeyMorphingSurface/GooeyMorphingSurface.types.js +20 -0
  355. package/dist/react-ui/primitives/GooeyMorphingSurface/gooey-morphing-surface.js +0 -0
  356. package/dist/react-ui/primitives/GooeyMorphingSurface/gooey-morphing.css +112 -0
  357. package/dist/react-ui/primitives/GooeyMorphingSurface/index.d.ts +36 -0
  358. package/dist/react-ui/primitives/GooeyMorphingSurface/index.d.ts.map +1 -0
  359. package/dist/react-ui/primitives/GooeyMorphingSurface/index.js +141 -0
  360. package/dist/react-ui/primitives/index.d.ts +2 -0
  361. package/dist/react-ui/primitives/index.d.ts.map +1 -1
  362. package/dist/react-ui/primitives/index.js +4 -0
  363. package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.module.css +20 -0
  364. package/dist/react-ui/ui/Badge/Badge.styles.d.ts +1 -1
  365. package/dist/react-ui/ui/Button/Button.styles.d.ts +2 -2
  366. package/dist/react-ui/ui/Button/Button.styles.d.ts.map +1 -1
  367. package/dist/react-ui/ui/Button/Button.styles.js +4 -2
  368. package/dist/react-ui/ui/Button/Button.types.d.ts +2 -2
  369. package/dist/react-ui/ui/Button/Button.types.d.ts.map +1 -1
  370. package/dist/react-ui/ui/DataCard/DataCard.styles.d.ts +1 -1
  371. package/dist/react-ui/ui/DynamicToggle/DynamicToggle.css +369 -0
  372. package/dist/react-ui/ui/FileIcon/FileIcon.styles.d.ts +25 -0
  373. package/dist/react-ui/ui/FileIcon/FileIcon.styles.d.ts.map +1 -0
  374. package/dist/react-ui/ui/FileIcon/FileIcon.styles.js +31 -0
  375. package/dist/react-ui/ui/FileIcon/FileIcon.types.d.ts +89 -0
  376. package/dist/react-ui/ui/FileIcon/FileIcon.types.d.ts.map +1 -0
  377. package/dist/react-ui/ui/FileIcon/index.d.ts +46 -0
  378. package/dist/react-ui/ui/FileIcon/index.d.ts.map +1 -0
  379. package/dist/react-ui/ui/FileIcon/index.js +138 -0
  380. package/dist/react-ui/ui/FileItem/FileItem.styles.d.ts +47 -0
  381. package/dist/react-ui/ui/FileItem/FileItem.styles.d.ts.map +1 -0
  382. package/dist/react-ui/ui/FileItem/FileItem.styles.js +60 -0
  383. package/dist/react-ui/ui/FileItem/FileItem.types.d.ts +84 -0
  384. package/dist/react-ui/ui/FileItem/FileItem.types.d.ts.map +1 -0
  385. package/dist/react-ui/ui/FileItem/index.d.ts +48 -0
  386. package/dist/react-ui/ui/FileItem/index.d.ts.map +1 -0
  387. package/dist/react-ui/ui/FileItem/index.js +124 -0
  388. package/dist/react-ui/ui/FilePanel/FilePanel.styles.d.ts +34 -0
  389. package/dist/react-ui/ui/FilePanel/FilePanel.styles.d.ts.map +1 -0
  390. package/dist/react-ui/ui/FilePanel/FilePanel.styles.js +57 -0
  391. package/dist/react-ui/ui/FilePanel/FilePanel.types.d.ts +55 -0
  392. package/dist/react-ui/ui/FilePanel/FilePanel.types.d.ts.map +1 -0
  393. package/dist/react-ui/ui/FilePanel/index.d.ts +55 -0
  394. package/dist/react-ui/ui/FilePanel/index.d.ts.map +1 -0
  395. package/dist/react-ui/ui/FilePanel/index.js +107 -0
  396. package/dist/react-ui/ui/FileTree/FileTree.styles.d.ts +31 -0
  397. package/dist/react-ui/ui/FileTree/FileTree.styles.d.ts.map +1 -0
  398. package/dist/react-ui/ui/FileTree/FileTree.styles.js +45 -0
  399. package/dist/react-ui/ui/FileTree/FileTree.types.d.ts +95 -0
  400. package/dist/react-ui/ui/FileTree/FileTree.types.d.ts.map +1 -0
  401. package/dist/react-ui/ui/FileTree/index.d.ts +60 -0
  402. package/dist/react-ui/ui/FileTree/index.d.ts.map +1 -0
  403. package/dist/react-ui/ui/FileTree/index.js +226 -0
  404. package/dist/react-ui/ui/GooeyButton/GooeyButton.types.d.ts +35 -0
  405. package/dist/react-ui/ui/GooeyButton/GooeyButton.types.d.ts.map +1 -0
  406. package/dist/react-ui/ui/GooeyButton/gooey-button.js +0 -0
  407. package/dist/react-ui/ui/GooeyButton/gooey.css +43 -0
  408. package/dist/react-ui/ui/GooeyButton/index.d.ts +26 -0
  409. package/dist/react-ui/ui/GooeyButton/index.d.ts.map +1 -0
  410. package/dist/react-ui/ui/GooeyButton/index.js +109 -0
  411. package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.styles.d.ts +23 -0
  412. package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.styles.d.ts.map +1 -0
  413. package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.styles.js +32 -0
  414. package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.types.d.ts +43 -0
  415. package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.types.d.ts.map +1 -0
  416. package/dist/react-ui/ui/MiddleTruncatePath/index.d.ts +33 -0
  417. package/dist/react-ui/ui/MiddleTruncatePath/index.d.ts.map +1 -0
  418. package/dist/react-ui/ui/MiddleTruncatePath/index.js +60 -0
  419. package/dist/react-ui/ui/OperationCard/OperationCard.context.d.ts +17 -0
  420. package/dist/react-ui/ui/OperationCard/OperationCard.context.d.ts.map +1 -0
  421. package/dist/react-ui/ui/OperationCard/OperationCard.context.js +27 -0
  422. package/dist/react-ui/ui/OperationCard/OperationCard.styles.d.ts +19 -0
  423. package/dist/react-ui/ui/OperationCard/OperationCard.styles.d.ts.map +1 -0
  424. package/dist/react-ui/ui/OperationCard/OperationCard.styles.js +39 -0
  425. package/dist/react-ui/ui/OperationCard/OperationCard.types.d.ts +188 -0
  426. package/dist/react-ui/ui/OperationCard/OperationCard.types.d.ts.map +1 -0
  427. package/dist/react-ui/ui/OperationCard/index.d.ts +45 -0
  428. package/dist/react-ui/ui/OperationCard/index.d.ts.map +1 -0
  429. package/dist/react-ui/ui/OperationCard/index.js +118 -0
  430. package/dist/react-ui/ui/OperationCard/parts/OperationCardActions.d.ts +3 -0
  431. package/dist/react-ui/ui/OperationCard/parts/OperationCardActions.d.ts.map +1 -0
  432. package/dist/react-ui/ui/OperationCard/parts/OperationCardActions.js +86 -0
  433. package/dist/react-ui/ui/OperationCard/parts/OperationCardHeader.d.ts +14 -0
  434. package/dist/react-ui/ui/OperationCard/parts/OperationCardHeader.d.ts.map +1 -0
  435. package/dist/react-ui/ui/OperationCard/parts/OperationCardHeader.js +62 -0
  436. package/dist/react-ui/ui/OperationCard/parts/OperationCardProgress.d.ts +3 -0
  437. package/dist/react-ui/ui/OperationCard/parts/OperationCardProgress.d.ts.map +1 -0
  438. package/dist/react-ui/ui/OperationCard/parts/OperationCardProgress.js +37 -0
  439. package/dist/react-ui/ui/OperationCard/parts/OperationCardStats.d.ts +3 -0
  440. package/dist/react-ui/ui/OperationCard/parts/OperationCardStats.d.ts.map +1 -0
  441. package/dist/react-ui/ui/OperationCard/parts/OperationCardStats.js +42 -0
  442. package/dist/react-ui/ui/OperationCard/parts/OperationCardVisualizer.d.ts +3 -0
  443. package/dist/react-ui/ui/OperationCard/parts/OperationCardVisualizer.d.ts.map +1 -0
  444. package/dist/react-ui/ui/OperationCard/parts/OperationCardVisualizer.js +53 -0
  445. package/dist/react-ui/ui/Tabs/Tabs.css +38 -0
  446. package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts +3 -3
  447. package/dist/react-ui/ui/index.d.ts +7 -0
  448. package/dist/react-ui/ui/index.d.ts.map +1 -1
  449. package/dist/react-ui/ui/index.js +19 -0
  450. package/package.json +20 -7
  451. package/dist/react-ui/blocks/Terminal/ResttyAdapter.d.ts +0 -146
  452. package/dist/react-ui/blocks/Terminal/ResttyAdapter.d.ts.map +0 -1
  453. package/dist/react-ui/blocks/Terminal/ResttyAdapter.js +0 -213
  454. package/dist/react-ui/blocks/Terminal/Terminal.adapter.d.ts +0 -55
  455. package/dist/react-ui/blocks/Terminal/Terminal.adapter.d.ts.map +0 -1
  456. package/dist/react-ui/blocks/Terminal/Terminal.adapter.js +0 -68
  457. package/dist/react-ui/blocks/Terminal/TerminalRestty.d.ts +0 -111
  458. package/dist/react-ui/blocks/Terminal/TerminalRestty.d.ts.map +0 -1
  459. package/dist/react-ui/blocks/Terminal/TerminalRestty.js +0 -185
  460. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts +0 -160
  461. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.d.ts.map +0 -1
  462. package/dist/react-ui/blocks/Terminal/components/LogLineBadges.js +0 -185
  463. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.d.ts +0 -36
  464. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.d.ts.map +0 -1
  465. package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge.js +0 -52
  466. package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel.d.ts.map +0 -1
  467. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.d.ts +0 -42
  468. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown.d.ts.map +0 -1
  469. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs.d.ts +0 -43
  470. package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs.d.ts.map +0 -1
  471. package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel.d.ts.map +0 -1
  472. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.d.ts +0 -30
  473. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.d.ts.map +0 -1
  474. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter.js +0 -126
  475. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.d.ts +0 -31
  476. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.d.ts.map +0 -1
  477. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader.js +0 -149
  478. package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar.d.ts.map +0 -1
  479. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl.d.ts.map +0 -1
  480. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.d.ts +0 -63
  481. package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs.d.ts.map +0 -1
  482. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.d.ts +0 -24
  483. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.d.ts.map +0 -1
  484. package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover.js +0 -225
  485. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.d.ts +0 -35
  486. package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector.d.ts.map +0 -1
  487. package/dist/react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module.js +0 -5
  488. package/dist/react-ui/blocks/Terminal/panel/terminal-session-tabs.module.js +0 -5
  489. /package/dist/{react-ui/blocks/Terminal/panel/terminal-filter-dropdown.module-p4Aks9qK.css → css/blocks-Terminal-panel-TerminalFilterDropdown-terminal-filter-dropdown.module.css} +0 -0
  490. /package/dist/{react-ui/blocks/Terminal/panel/terminal-session-tabs.module-D7g8zk0W.css → css/blocks-Terminal-panel-TerminalSessionTabs-terminal-session-tabs.module.css} +0 -0
  491. /package/dist/{react-ui/components/MorphingPopover/morphing-popover.module-s63snw7C.css → css/components-MorphingPopover-morphing-popover.module.css} +0 -0
  492. /package/dist/{react-ui/primitives/waapi/Morph/techniques/useViewTransitions.module-7y-To7On.css → css/primitives-waapi-Morph-techniques-useViewTransitions.module.css} +0 -0
  493. /package/dist/{react-ui/ui/DynamicToggle/DynamicToggle-C3rJw_PQ.css → css/ui-DynamicToggle-DynamicToggle.css} +0 -0
  494. /package/dist/{react-ui/ui/Tabs/Tabs-DKe-TP8j.css → css/ui-Tabs-Tabs.css} +0 -0
@@ -0,0 +1,136 @@
1
+ 'use client';
2
+
3
+ import { cn } from "../../../../lib/utils.js";
4
+ import { CONTENT_TYPE_STYLES, LOG_LEVEL_STYLES } from "../../Terminal.tokens.js";
5
+ import { logLineBadgesStyles } from "./LogLineBadges.styles.js";
6
+ import { memo } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+
9
+ //#region src/react-ui/blocks/Terminal/components/LogLineBadges/index.tsx
10
+ /**
11
+ * LogLineBadges — React badge components for log lines.
12
+ *
13
+ * Styled badge components using centralized Terminal tokens for
14
+ * consistent log-level coloring across the terminal UI.
15
+ * All badge components are memoized for optimal performance.
16
+ *
17
+ * @module @mks2508/mks-ui/react/blocks/Terminal/components/LogLineBadges
18
+ */
19
+ /**
20
+ * Level badge component (memoized).
21
+ *
22
+ * Displays a colored badge with the log level label.
23
+ * Uses centralized LOG_LEVEL_STYLES from Terminal tokens.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <LevelBadge level="info" />
28
+ * // Renders: [INFO] with blue background
29
+ * ```
30
+ */
31
+ const LevelBadge = memo(function LevelBadge({ level, className }) {
32
+ const levelStyle = LOG_LEVEL_STYLES[level];
33
+ return /* @__PURE__ */ jsx("span", {
34
+ className: cn(logLineBadgesStyles.levelBadge, levelStyle.badge, levelStyle.glow, className),
35
+ children: level.toUpperCase()
36
+ });
37
+ });
38
+ /**
39
+ * Timestamp badge component (memoized).
40
+ *
41
+ * Displays a timestamp with muted styling and tabular numbers.
42
+ *
43
+ * @example
44
+ * ```tsx
45
+ * <TimestampBadge timestamp="22:41:03" />
46
+ * ```
47
+ */
48
+ const TimestampBadge = memo(function TimestampBadge({ timestamp, className }) {
49
+ const timeOnly = timestamp.includes(".") ? timestamp.split(".")[0] : timestamp;
50
+ return /* @__PURE__ */ jsx("span", {
51
+ className: cn(logLineBadgesStyles.timestampBadge, className),
52
+ children: timeOnly
53
+ });
54
+ });
55
+ /**
56
+ * Tag badge component (memoized).
57
+ *
58
+ * Displays a component tag (e.g., "API", "ROUTES").
59
+ * Truncates long tags to 12 characters.
60
+ *
61
+ * @example
62
+ * ```tsx
63
+ * <TagBadge tag="WORKSPACEMANAGER" />
64
+ * ```
65
+ */
66
+ const TagBadge = memo(function TagBadge({ tag, className }) {
67
+ const displayTag = tag.length > 12 ? tag.slice(0, 9) + "..." : tag;
68
+ return /* @__PURE__ */ jsx("span", {
69
+ className: cn(logLineBadgesStyles.tagBadge, className),
70
+ children: displayTag
71
+ });
72
+ });
73
+ /**
74
+ * Tag badges container component (memoized).
75
+ *
76
+ * Displays multiple tag badges with consistent spacing.
77
+ *
78
+ * @example
79
+ * ```tsx
80
+ * <TagBadges tags={['API', 'ROUTES']} />
81
+ * ```
82
+ */
83
+ const TagBadges = memo(function TagBadges({ tags, className }) {
84
+ if (!tags || tags.length === 0) return null;
85
+ return /* @__PURE__ */ jsx("span", {
86
+ className: cn("flex items-center gap-1", className),
87
+ children: tags.map((tag) => /* @__PURE__ */ jsx(TagBadge, { tag }, tag))
88
+ });
89
+ });
90
+ /**
91
+ * Content type badge component (memoized).
92
+ *
93
+ * Displays a colored badge indicating the content type of a log entry.
94
+ * HTTP entries show the actual method (GET, POST, etc.).
95
+ * Returns null for 'plain' content type.
96
+ *
97
+ * @example
98
+ * ```tsx
99
+ * <ContentTypeBadge contentType="http" httpMethod="GET" />
100
+ * <ContentTypeBadge contentType="json" />
101
+ * ```
102
+ */
103
+ const ContentTypeBadge = memo(function ContentTypeBadge({ contentType, httpMethod, className }) {
104
+ if (contentType === "plain" || !contentType) return null;
105
+ const style = CONTENT_TYPE_STYLES[contentType];
106
+ if (!style) return null;
107
+ const label = contentType === "http" && httpMethod ? httpMethod.toUpperCase() : style.label;
108
+ return /* @__PURE__ */ jsx("span", {
109
+ className: cn(logLineBadgesStyles.contentTypeBadge, style.className, className),
110
+ children: label
111
+ });
112
+ });
113
+ /**
114
+ * Log line container component.
115
+ *
116
+ * Provides consistent styling and structure for log lines.
117
+ *
118
+ * @example
119
+ * ```tsx
120
+ * <LogLineContainer level="info" lineNumber={42}>
121
+ * <LevelBadge level="info" />
122
+ * <span>Log message here</span>
123
+ * </LogLineContainer>
124
+ * ```
125
+ */
126
+ function LogLineContainer({ level, lineNumber, isContinuation = false, className, children }) {
127
+ const levelStyle = LOG_LEVEL_STYLES[level];
128
+ return /* @__PURE__ */ jsx("div", {
129
+ className: cn(logLineBadgesStyles.lineContainer, isContinuation && "ml-6", `hover:${levelStyle.border}`, className),
130
+ title: `Line ${lineNumber}`,
131
+ children
132
+ });
133
+ }
134
+
135
+ //#endregion
136
+ export { ContentTypeBadge, LevelBadge, LogLineContainer, TagBadge, TagBadges, TimestampBadge };
@@ -2,15 +2,18 @@
2
2
  * Syntax highlighting for log messages (React spans).
3
3
  *
4
4
  * Applies color highlighting to specific elements within log messages
5
- * using React span elements with Tailwind CSS classes.
5
+ * using React span elements with Tailwind CSS classes from a configurable
6
+ * syntax theme.
6
7
  *
7
8
  * IMPORTANT: Only highlights plain text - skips lines with existing ANSI codes
8
9
  * to prevent mixing codes and creating visual artifacts.
9
10
  *
10
11
  * Features LRU cache to avoid re-parsing identical text.
11
12
  *
12
- * @module components/devenv/terminal/SyntaxHighlight
13
+ * @module @mks2508/mks-ui/react/blocks/Terminal/components/SyntaxHighlight
13
14
  */
15
+ import { type SyntaxThemeOverrides } from './SyntaxHighlight.styles';
16
+ export { DEFAULT_SYNTAX_THEME, type SyntaxThemeOverrides, type SyntaxTokenType } from './SyntaxHighlight.styles';
14
17
  /**
15
18
  * Clear the highlight cache (useful for memory management).
16
19
  */
@@ -21,28 +24,38 @@ export declare function clearHighlightCache(): void;
21
24
  export interface ISyntaxHighlightedTextProps {
22
25
  /** Text to highlight */
23
26
  text: string;
27
+ /** Optional syntax theme overrides */
28
+ syntaxTheme?: SyntaxThemeOverrides;
24
29
  /** Optional custom class name */
25
30
  className?: string;
26
31
  }
27
32
  /**
28
33
  * Syntax highlighted text component.
29
34
  *
30
- * Applies syntax highlighting to plain text messages.
31
- * Strips ANSI codes before highlighting to prevent visual artifacts
32
- * from mixed escape sequences.
35
+ * Applies syntax highlighting to plain text messages using a configurable
36
+ * theme. Strips ANSI codes before highlighting.
33
37
  *
34
38
  * @example
35
39
  * ```tsx
40
+ * // Default theme
36
41
  * <SyntaxHighlightedText text="GET /api/workspaces { filter: {} }" />
42
+ *
43
+ * // Custom theme overrides
44
+ * <SyntaxHighlightedText
45
+ * text="GET /api/users"
46
+ * syntaxTheme={{ httpMethod: 'text-primary font-bold', urlPath: 'text-accent' }}
47
+ * />
37
48
  * ```
38
49
  */
39
- export declare function SyntaxHighlightedText({ text, className }: ISyntaxHighlightedTextProps): React.JSX.Element;
50
+ export declare function SyntaxHighlightedText({ text, syntaxTheme, className }: ISyntaxHighlightedTextProps): React.JSX.Element;
40
51
  /**
41
52
  * Props for HighlightedJson component.
42
53
  */
43
54
  export interface IHighlightedJsonProps {
44
55
  /** JSON object to highlight */
45
56
  json: Record<string, unknown>;
57
+ /** Optional syntax theme overrides */
58
+ syntaxTheme?: SyntaxThemeOverrides;
46
59
  /** Optional custom class name */
47
60
  className?: string;
48
61
  }
@@ -50,11 +63,12 @@ export interface IHighlightedJsonProps {
50
63
  * Highlighted JSON component.
51
64
  *
52
65
  * Displays JSON with syntax highlighting and proper indentation.
66
+ * Uses the configurable syntax theme for all token colors.
53
67
  *
54
68
  * @example
55
69
  * ```tsx
56
70
  * <HighlightedJson json={{ filter: {}, name: "test" }} />
57
71
  * ```
58
72
  */
59
- export declare function HighlightedJson({ json, className }: IHighlightedJsonProps): React.JSX.Element;
73
+ export declare function HighlightedJson({ json, syntaxTheme, className }: IHighlightedJsonProps): React.JSX.Element;
60
74
  //# sourceMappingURL=SyntaxHighlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SyntaxHighlight.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/components/SyntaxHighlight.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAiDH;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAiBD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,2BAA2B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAezG;AA0ID;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAmB7F"}
1
+ {"version":3,"file":"SyntaxHighlight.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/components/SyntaxHighlight.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAG3F,OAAO,EAAE,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AA6CjH;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AASD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,2BAA2B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CActH;AA8ED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,sCAAsC;IACtC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoB1G"}
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../../lib/utils.js";
4
+ import { DEFAULT_SYNTAX_THEME } from "./SyntaxHighlight.styles.js";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
 
6
7
  //#region src/react-ui/blocks/Terminal/components/SyntaxHighlight.tsx
@@ -8,14 +9,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
8
9
  * Syntax highlighting for log messages (React spans).
9
10
  *
10
11
  * Applies color highlighting to specific elements within log messages
11
- * using React span elements with Tailwind CSS classes.
12
+ * using React span elements with Tailwind CSS classes from a configurable
13
+ * syntax theme.
12
14
  *
13
15
  * IMPORTANT: Only highlights plain text - skips lines with existing ANSI codes
14
16
  * to prevent mixing codes and creating visual artifacts.
15
17
  *
16
18
  * Features LRU cache to avoid re-parsing identical text.
17
19
  *
18
- * @module components/devenv/terminal/SyntaxHighlight
20
+ * @module @mks2508/mks-ui/react/blocks/Terminal/components/SyntaxHighlight
19
21
  */
20
22
  /**
21
23
  * LRU cache for syntax highlighting results.
@@ -35,14 +37,17 @@ function stripAnsiCodes(text) {
35
37
  /**
36
38
  * Get cached highlighted text or compute and cache it.
37
39
  */
38
- function getCachedHighlight(text) {
39
- if (highlightCache.has(text)) return highlightCache.get(text);
40
- const result = highlightText(text);
41
- if (highlightCache.size >= MAX_CACHE_SIZE) {
42
- const firstKey = highlightCache.keys().next().value;
43
- if (firstKey) highlightCache.delete(firstKey);
40
+ function getCachedHighlight(text, theme) {
41
+ const useCache = theme === DEFAULT_SYNTAX_THEME;
42
+ if (useCache && highlightCache.has(text)) return highlightCache.get(text);
43
+ const result = highlightText(text, theme);
44
+ if (useCache) {
45
+ if (highlightCache.size >= MAX_CACHE_SIZE) {
46
+ const firstKey = highlightCache.keys().next().value;
47
+ if (firstKey) highlightCache.delete(firstKey);
48
+ }
49
+ highlightCache.set(text, result);
44
50
  }
45
- highlightCache.set(text, result);
46
51
  return result;
47
52
  }
48
53
  /**
@@ -53,11 +58,6 @@ function clearHighlightCache() {
53
58
  }
54
59
  /**
55
60
  * Check if text contains ANSI escape codes.
56
- *
57
- * Detects all types of ANSI escape sequences:
58
- * - CSI (Control Sequence Introducer): \x1b[... (parameters)
59
- * - OSC (Operating System Command): \x1b]...
60
- * - General escape sequences: \x1b...
61
61
  */
62
62
  function hasAnsiCodes(text) {
63
63
  return /\x1b\[/.test(text) || /\x1b\]/.test(text) || /\x1b/.test(text);
@@ -65,115 +65,122 @@ function hasAnsiCodes(text) {
65
65
  /**
66
66
  * Syntax highlighted text component.
67
67
  *
68
- * Applies syntax highlighting to plain text messages.
69
- * Strips ANSI codes before highlighting to prevent visual artifacts
70
- * from mixed escape sequences.
68
+ * Applies syntax highlighting to plain text messages using a configurable
69
+ * theme. Strips ANSI codes before highlighting.
71
70
  *
72
71
  * @example
73
72
  * ```tsx
73
+ * // Default theme
74
74
  * <SyntaxHighlightedText text="GET /api/workspaces { filter: {} }" />
75
+ *
76
+ * // Custom theme overrides
77
+ * <SyntaxHighlightedText
78
+ * text="GET /api/users"
79
+ * syntaxTheme={{ httpMethod: 'text-primary font-bold', urlPath: 'text-accent' }}
80
+ * />
75
81
  * ```
76
82
  */
77
- function SyntaxHighlightedText({ text, className }) {
83
+ function SyntaxHighlightedText({ text, syntaxTheme, className }) {
78
84
  if (!text || text.length === 0) return /* @__PURE__ */ jsx("span", {
79
85
  className,
80
86
  children: text
81
87
  });
82
- const highlighted = getCachedHighlight(hasAnsiCodes(text) ? stripAnsiCodes(text) : text);
88
+ const theme = syntaxTheme ? {
89
+ ...DEFAULT_SYNTAX_THEME,
90
+ ...syntaxTheme
91
+ } : DEFAULT_SYNTAX_THEME;
92
+ const highlighted = getCachedHighlight(hasAnsiCodes(text) ? stripAnsiCodes(text) : text, theme);
83
93
  return /* @__PURE__ */ jsx("span", {
84
94
  className: cn("font-mono text-sm", className),
85
95
  children: highlighted
86
96
  });
87
97
  }
88
98
  /**
89
- * Apply syntax highlighting to text.
90
- *
91
- * Returns an array of React nodes with appropriate styling.
92
- * Patterns are applied in order (most specific first).
99
+ * Apply syntax highlighting to text using the provided theme.
93
100
  */
94
- function highlightText(text) {
101
+ function highlightText(text, theme) {
95
102
  let result = text;
96
103
  const tokens = [];
97
104
  result = extractTokens(result, tokens, [
98
105
  {
99
106
  pattern: /\b\d{1,2}:\d{2}:\d{2}(\.\d{1,3})?\b/g,
100
- className: "text-cyan-400/70"
107
+ className: theme.timestamp
101
108
  },
102
109
  {
103
110
  pattern: /\[([A-Z][A-Z0-9_]*)\]/g,
104
- className: "text-purple-400 bg-purple-500/10 px-1 rounded font-semibold"
111
+ className: theme.badge
105
112
  },
106
113
  {
107
114
  pattern: /\b([a-zA-Z0-9_-]+\.([a-zA-Z]{2,4}|[A-Z]{2})(?::\d+:\d+)?)\b/g,
108
- className: "text-orange-400 bg-orange-500/10 px-1 rounded text-xs"
115
+ className: theme.sourceLocation
109
116
  },
110
117
  {
111
118
  pattern: /\(([a-zA-Z0-9_-]+\.[a-zA-Z]{2,4}:\d+:\d+)\)/g,
112
- className: "text-orange-400/80"
119
+ className: theme.sourceLocationParen
113
120
  },
114
121
  {
115
122
  pattern: /\{([^}]+)\}/g,
116
- className: "text-yellow-400 bg-yellow-500/5 px-0.5 rounded"
123
+ className: theme.curlyBraces
117
124
  },
118
125
  {
119
126
  pattern: /\(([^)]+)\)/g,
120
- className: "text-purple-300/80"
127
+ className: theme.parentheses
121
128
  },
122
129
  {
123
130
  pattern: /\b<([^>]+)>/g,
124
- className: "text-cyan-300/80"
131
+ className: theme.angleBrackets
125
132
  },
126
133
  {
127
134
  pattern: /\bv?\d+\.\d+\.\d+(-[a-z0-9.]+)?\b/gi,
128
- className: "text-green-400 font-semibold"
135
+ className: theme.version
129
136
  },
130
137
  {
131
138
  pattern: /\b([a-zA-Z_][a-zA-Z0-9_-]*)\s*:/g,
132
- className: "text-green-500"
139
+ className: theme.propertyKey
133
140
  },
134
141
  {
135
142
  pattern: /\b(success|error|failed|warning|warn|info|debug|trace|fatal):/gi,
136
- className: "text-pink-400 font-semibold"
143
+ className: theme.keywordBadge
137
144
  },
138
145
  {
139
146
  pattern: /(['"])(.*?)\1/g,
140
- className: "text-green-400"
147
+ className: theme.string
141
148
  },
142
149
  {
143
150
  pattern: /(?<!\w)(-?\d+(?:\.\d+)?)(?!\w)/g,
144
- className: "text-yellow-400"
151
+ className: theme.number
145
152
  },
146
153
  {
147
154
  pattern: /\b(true|false)\b/gi,
148
- className: "text-blue-400"
155
+ className: theme.boolean
149
156
  },
150
157
  {
151
158
  pattern: /\b(null|undefined)\b/gi,
152
- className: "text-gray-500"
159
+ className: theme.nullish
153
160
  },
154
161
  {
155
162
  pattern: /\b(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|CONNECT|TRACE)\b/g,
156
- className: "text-pink-400 font-semibold"
163
+ className: theme.httpMethod
157
164
  },
158
165
  {
159
166
  pattern: /(^|[\s(])\/[a-zA-Z0-9_/-]+/g,
160
- className: "text-cyan-400"
167
+ className: theme.urlPath
161
168
  },
162
169
  {
163
170
  pattern: /\b\w+\.(js|ts|jsx|tsx|json|py|rs|go|java|c|cpp|h|cs|sh|bash|yml|yaml|toml|md|txt|log)\b/g,
164
- className: "text-orange-400"
171
+ className: theme.fileExtension
165
172
  },
166
173
  {
167
174
  pattern: /([{}[\]()])/g,
168
- className: "text-yellow-500"
175
+ className: theme.structuralBrace
169
176
  },
170
177
  {
171
178
  pattern: /\s*=\s*/g,
172
- className: "text-gray-400"
179
+ className: theme.equals
173
180
  },
174
181
  {
175
182
  pattern: /->|=>/g,
176
- className: "text-purple-400 font-semibold"
183
+ className: theme.arrow
177
184
  }
178
185
  ]);
179
186
  return tokens.map((token, index) => /* @__PURE__ */ jsx("span", {
@@ -183,8 +190,6 @@ function highlightText(text) {
183
190
  }
184
191
  /**
185
192
  * Extract tokens from text using patterns.
186
- *
187
- * Iteratively applies patterns and extracts matched tokens.
188
193
  */
189
194
  function extractTokens(text, tokens, patterns) {
190
195
  let result = text;
@@ -219,50 +224,55 @@ function extractTokens(text, tokens, patterns) {
219
224
  * Highlighted JSON component.
220
225
  *
221
226
  * Displays JSON with syntax highlighting and proper indentation.
227
+ * Uses the configurable syntax theme for all token colors.
222
228
  *
223
229
  * @example
224
230
  * ```tsx
225
231
  * <HighlightedJson json={{ filter: {}, name: "test" }} />
226
232
  * ```
227
233
  */
228
- function HighlightedJson({ json, className }) {
234
+ function HighlightedJson({ json, syntaxTheme, className }) {
235
+ const theme = syntaxTheme ? {
236
+ ...DEFAULT_SYNTAX_THEME,
237
+ ...syntaxTheme
238
+ } : DEFAULT_SYNTAX_THEME;
229
239
  const formatted = JSON.stringify(json, null, 2);
230
240
  try {
231
- const highlighted = highlightJson(JSON.parse(formatted));
241
+ const highlighted = highlightJson(JSON.parse(formatted), theme);
232
242
  return /* @__PURE__ */ jsx("pre", {
233
243
  className: cn("font-mono text-xs", className),
234
244
  children: highlighted
235
245
  });
236
246
  } catch {
237
247
  return /* @__PURE__ */ jsx("pre", {
238
- className: cn("font-mono text-xs text-gray-400", className),
248
+ className: cn("font-mono text-xs", theme.jsonFallback, className),
239
249
  children: formatted
240
250
  });
241
251
  }
242
252
  }
243
253
  /**
244
- * Recursively highlight JSON.
254
+ * Recursively highlight JSON using the provided theme.
245
255
  */
246
- function highlightJson(value, indent = 0) {
256
+ function highlightJson(value, theme, indent = 0) {
247
257
  const indentStr = " ".repeat(indent);
248
258
  if (value === null) return /* @__PURE__ */ jsx("span", {
249
- className: "text-gray-500",
259
+ className: theme.jsonNull,
250
260
  children: "null"
251
261
  });
252
262
  if (value === void 0) return /* @__PURE__ */ jsx("span", {
253
- className: "text-gray-500",
263
+ className: theme.jsonNull,
254
264
  children: "undefined"
255
265
  });
256
266
  if (typeof value === "boolean") return /* @__PURE__ */ jsx("span", {
257
- className: "text-blue-400",
267
+ className: theme.jsonBoolean,
258
268
  children: String(value)
259
269
  });
260
270
  if (typeof value === "number") return /* @__PURE__ */ jsx("span", {
261
- className: "text-yellow-400",
271
+ className: theme.jsonNumber,
262
272
  children: String(value)
263
273
  });
264
274
  if (typeof value === "string") return /* @__PURE__ */ jsxs("span", {
265
- className: "text-green-400",
275
+ className: theme.jsonString,
266
276
  children: [
267
277
  "\"",
268
278
  value,
@@ -271,30 +281,30 @@ function highlightJson(value, indent = 0) {
271
281
  });
272
282
  if (Array.isArray(value)) {
273
283
  if (value.length === 0) return /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("span", {
274
- className: "text-yellow-500",
284
+ className: theme.jsonBrace,
275
285
  children: "["
276
286
  }), /* @__PURE__ */ jsx("span", {
277
- className: "text-yellow-500",
287
+ className: theme.jsonBrace,
278
288
  children: "]"
279
289
  })] });
280
290
  return /* @__PURE__ */ jsxs("span", { children: [
281
291
  /* @__PURE__ */ jsx("span", {
282
- className: "text-yellow-500",
292
+ className: theme.jsonBrace,
283
293
  children: "["
284
294
  }),
285
295
  "\n",
286
296
  value.map((item, index) => /* @__PURE__ */ jsxs("span", { children: [
287
297
  indentStr + " ",
288
- highlightJson(item, indent + 1),
298
+ highlightJson(item, theme, indent + 1),
289
299
  index < value.length - 1 ? /* @__PURE__ */ jsx("span", {
290
- className: "text-gray-500",
300
+ className: theme.jsonComma,
291
301
  children: ","
292
302
  }) : null,
293
303
  "\n"
294
304
  ] }, index)),
295
305
  indentStr,
296
306
  /* @__PURE__ */ jsx("span", {
297
- className: "text-yellow-500",
307
+ className: theme.jsonBrace,
298
308
  children: "]"
299
309
  })
300
310
  ] });
@@ -302,22 +312,22 @@ function highlightJson(value, indent = 0) {
302
312
  if (typeof value === "object") {
303
313
  const entries = Object.entries(value);
304
314
  if (entries.length === 0) return /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("span", {
305
- className: "text-yellow-500",
315
+ className: theme.jsonBrace,
306
316
  children: "{"
307
317
  }), /* @__PURE__ */ jsx("span", {
308
- className: "text-yellow-500",
318
+ className: theme.jsonBrace,
309
319
  children: "}"
310
320
  })] });
311
321
  return /* @__PURE__ */ jsxs("span", { children: [
312
322
  /* @__PURE__ */ jsx("span", {
313
- className: "text-yellow-500",
323
+ className: theme.jsonBrace,
314
324
  children: "{"
315
325
  }),
316
326
  "\n",
317
327
  entries.map(([key, val], index) => /* @__PURE__ */ jsxs("span", { children: [
318
328
  indentStr + " ",
319
329
  /* @__PURE__ */ jsxs("span", {
320
- className: "text-green-500",
330
+ className: theme.jsonKey,
321
331
  children: [
322
332
  "\"",
323
333
  key,
@@ -325,25 +335,25 @@ function highlightJson(value, indent = 0) {
325
335
  ]
326
336
  }),
327
337
  /* @__PURE__ */ jsx("span", {
328
- className: "text-gray-500",
338
+ className: theme.jsonColon,
329
339
  children: ": "
330
340
  }),
331
- highlightJson(val, indent + 1),
341
+ highlightJson(val, theme, indent + 1),
332
342
  index < entries.length - 1 ? /* @__PURE__ */ jsx("span", {
333
- className: "text-gray-500",
343
+ className: theme.jsonComma,
334
344
  children: ","
335
345
  }) : null,
336
346
  "\n"
337
347
  ] }, key)),
338
348
  indentStr,
339
349
  /* @__PURE__ */ jsx("span", {
340
- className: "text-yellow-500",
350
+ className: theme.jsonBrace,
341
351
  children: "}"
342
352
  })
343
353
  ] });
344
354
  }
345
355
  return /* @__PURE__ */ jsx("span", {
346
- className: "text-gray-500",
356
+ className: theme.jsonFallback,
347
357
  children: String(value)
348
358
  });
349
359
  }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * SyntaxHighlight theme definitions.
3
+ *
4
+ * Configurable syntax theme for the terminal log viewer's React mode.
5
+ * Consumers can override individual token colors while keeping the rest
6
+ * as defaults.
7
+ *
8
+ * @module @mks2508/mks-ui/react/blocks/Terminal/components/SyntaxHighlight
9
+ */
10
+ /**
11
+ * Syntax token types used in log highlighting.
12
+ */
13
+ export type SyntaxTokenType = 'timestamp' | 'badge' | 'sourceLocation' | 'sourceLocationParen' | 'curlyBraces' | 'parentheses' | 'angleBrackets' | 'version' | 'propertyKey' | 'keywordBadge' | 'string' | 'number' | 'boolean' | 'nullish' | 'httpMethod' | 'urlPath' | 'fileExtension' | 'structuralBrace' | 'equals' | 'arrow' | 'jsonNull' | 'jsonBoolean' | 'jsonNumber' | 'jsonString' | 'jsonKey' | 'jsonBrace' | 'jsonComma' | 'jsonColon' | 'jsonFallback';
14
+ /**
15
+ * Default syntax highlighting theme.
16
+ *
17
+ * Maps each token type to Tailwind CSS classes. Consumers can override
18
+ * individual tokens while keeping the rest as defaults.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * // Custom theme with modified string color
23
+ * const myTheme = {
24
+ * ...DEFAULT_SYNTAX_THEME,
25
+ * string: 'text-emerald-400',
26
+ * number: 'text-orange-400',
27
+ * };
28
+ * ```
29
+ */
30
+ export declare const DEFAULT_SYNTAX_THEME: Record<SyntaxTokenType, string>;
31
+ /** Partial syntax theme for consumer overrides. */
32
+ export type SyntaxThemeOverrides = Partial<Record<SyntaxTokenType, string>>;
33
+ //# sourceMappingURL=SyntaxHighlight.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyntaxHighlight.styles.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/blocks/Terminal/components/SyntaxHighlight.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAEvB,WAAW,GACX,OAAO,GACP,gBAAgB,GAChB,qBAAqB,GACrB,aAAa,GACb,aAAa,GACb,eAAe,GACf,SAAS,GACT,aAAa,GACb,cAAc,GACd,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,GACZ,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,QAAQ,GACR,OAAO,GAEP,UAAU,GACV,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,cAAc,CAAC;AAEnB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAiChE,CAAC;AAEF,mDAAmD;AACnD,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC"}