@ranker/raxflow 2.0.4 → 2.1.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 (152) hide show
  1. package/dist/hub/components/ChatInput.d.ts +14 -0
  2. package/dist/hub/components/ChatInput.d.ts.map +1 -0
  3. package/dist/hub/components/ChatInput.js +14 -0
  4. package/dist/hub/components/ChatInput.js.map +1 -0
  5. package/dist/hub/components/ChatMessage.d.ts +14 -0
  6. package/dist/hub/components/ChatMessage.d.ts.map +1 -0
  7. package/dist/hub/components/ChatMessage.js +23 -0
  8. package/dist/hub/components/ChatMessage.js.map +1 -0
  9. package/dist/hub/components/HubHeader.d.ts +12 -0
  10. package/dist/hub/components/HubHeader.d.ts.map +1 -0
  11. package/dist/hub/components/HubHeader.js +12 -0
  12. package/dist/hub/components/HubHeader.js.map +1 -0
  13. package/dist/hub/components/index.d.ts +7 -0
  14. package/dist/hub/components/index.d.ts.map +1 -0
  15. package/dist/hub/components/index.js +7 -0
  16. package/dist/hub/components/index.js.map +1 -0
  17. package/dist/tui/App.d.ts.map +1 -1
  18. package/dist/tui/App.js +7 -6
  19. package/dist/tui/App.js.map +1 -1
  20. package/dist/tui/components/ChatPanel.d.ts +1 -1
  21. package/dist/tui/components/ChatPanel.d.ts.map +1 -1
  22. package/dist/tui/components/ChatPanel.js +37 -26
  23. package/dist/tui/components/ChatPanel.js.map +1 -1
  24. package/dist/tui/components/DAGPanel.d.ts +3 -4
  25. package/dist/tui/components/DAGPanel.d.ts.map +1 -1
  26. package/dist/tui/components/DAGPanel.js +44 -36
  27. package/dist/tui/components/DAGPanel.js.map +1 -1
  28. package/dist/tui/components/Header.d.ts.map +1 -1
  29. package/dist/tui/components/Header.js +54 -36
  30. package/dist/tui/components/Header.js.map +1 -1
  31. package/dist/tui/components/HelpOverlay.d.ts.map +1 -1
  32. package/dist/tui/components/HelpOverlay.js +7 -5
  33. package/dist/tui/components/HelpOverlay.js.map +1 -1
  34. package/dist/tui/components/InputBar.d.ts.map +1 -1
  35. package/dist/tui/components/InputBar.js +25 -13
  36. package/dist/tui/components/InputBar.js.map +1 -1
  37. package/dist/tui/components/LogsPanel.d.ts.map +1 -1
  38. package/dist/tui/components/LogsPanel.js +23 -17
  39. package/dist/tui/components/LogsPanel.js.map +1 -1
  40. package/dist/tui/components/MemoryPanel.d.ts +1 -1
  41. package/dist/tui/components/MemoryPanel.d.ts.map +1 -1
  42. package/dist/tui/components/MemoryPanel.js +24 -31
  43. package/dist/tui/components/MemoryPanel.js.map +1 -1
  44. package/dist/tui/components/MetricsPanel.d.ts +1 -1
  45. package/dist/tui/components/MetricsPanel.d.ts.map +1 -1
  46. package/dist/tui/components/MetricsPanel.js +10 -13
  47. package/dist/tui/components/MetricsPanel.js.map +1 -1
  48. package/dist/tui/components/SelectMenu.d.ts +20 -0
  49. package/dist/tui/components/SelectMenu.d.ts.map +1 -0
  50. package/dist/tui/components/SelectMenu.js +19 -0
  51. package/dist/tui/components/SelectMenu.js.map +1 -0
  52. package/dist/tui/components/StatusPanel.d.ts +1 -1
  53. package/dist/tui/components/StatusPanel.d.ts.map +1 -1
  54. package/dist/tui/components/StatusPanel.js +26 -18
  55. package/dist/tui/components/StatusPanel.js.map +1 -1
  56. package/dist/tui/components/animations/ProgressBar.d.ts +8 -1
  57. package/dist/tui/components/animations/ProgressBar.d.ts.map +1 -1
  58. package/dist/tui/components/animations/ProgressBar.js +52 -26
  59. package/dist/tui/components/animations/ProgressBar.js.map +1 -1
  60. package/dist/tui/components/animations/Pulse.d.ts +11 -3
  61. package/dist/tui/components/animations/Pulse.d.ts.map +1 -1
  62. package/dist/tui/components/animations/Pulse.js +23 -14
  63. package/dist/tui/components/animations/Pulse.js.map +1 -1
  64. package/dist/tui/components/animations/Spinner.d.ts +2 -1
  65. package/dist/tui/components/animations/Spinner.d.ts.map +1 -1
  66. package/dist/tui/components/animations/Spinner.js +31 -16
  67. package/dist/tui/components/animations/Spinner.js.map +1 -1
  68. package/dist/tui/components/animations/StatusAnimator.d.ts +3 -0
  69. package/dist/tui/components/animations/StatusAnimator.d.ts.map +1 -1
  70. package/dist/tui/components/animations/StatusAnimator.js +43 -28
  71. package/dist/tui/components/animations/StatusAnimator.js.map +1 -1
  72. package/dist/tui/components/animations/TypingEffect.d.ts +1 -0
  73. package/dist/tui/components/animations/TypingEffect.d.ts.map +1 -1
  74. package/dist/tui/components/animations/TypingEffect.js +13 -7
  75. package/dist/tui/components/animations/TypingEffect.js.map +1 -1
  76. package/dist/tui/components/animations/index.d.ts +3 -2
  77. package/dist/tui/components/animations/index.d.ts.map +1 -1
  78. package/dist/tui/components/animations/index.js +2 -2
  79. package/dist/tui/components/animations/index.js.map +1 -1
  80. package/dist/tui/components/composed/Button.d.ts +18 -0
  81. package/dist/tui/components/composed/Button.d.ts.map +1 -0
  82. package/dist/tui/components/composed/Button.js +22 -0
  83. package/dist/tui/components/composed/Button.js.map +1 -0
  84. package/dist/tui/components/composed/Divider.d.ts +13 -0
  85. package/dist/tui/components/composed/Divider.d.ts.map +1 -0
  86. package/dist/tui/components/composed/Divider.js +18 -0
  87. package/dist/tui/components/composed/Divider.js.map +1 -0
  88. package/dist/tui/components/composed/StatusBadge.d.ts +14 -0
  89. package/dist/tui/components/composed/StatusBadge.d.ts.map +1 -0
  90. package/dist/tui/components/composed/StatusBadge.js +28 -0
  91. package/dist/tui/components/composed/StatusBadge.js.map +1 -0
  92. package/dist/tui/components/composed/index.d.ts +7 -0
  93. package/dist/tui/components/composed/index.d.ts.map +1 -0
  94. package/dist/tui/components/composed/index.js +7 -0
  95. package/dist/tui/components/composed/index.js.map +1 -0
  96. package/dist/tui/components/layouts/Container.d.ts +14 -0
  97. package/dist/tui/components/layouts/Container.d.ts.map +1 -0
  98. package/dist/tui/components/layouts/Container.js +10 -0
  99. package/dist/tui/components/layouts/Container.js.map +1 -0
  100. package/dist/tui/components/layouts/Grid.d.ts +14 -0
  101. package/dist/tui/components/layouts/Grid.d.ts.map +1 -0
  102. package/dist/tui/components/layouts/Grid.js +13 -0
  103. package/dist/tui/components/layouts/Grid.js.map +1 -0
  104. package/dist/tui/components/layouts/Stack.d.ts +32 -0
  105. package/dist/tui/components/layouts/Stack.d.ts.map +1 -0
  106. package/dist/tui/components/layouts/Stack.js +17 -0
  107. package/dist/tui/components/layouts/Stack.js.map +1 -0
  108. package/dist/tui/components/layouts/index.d.ts +7 -0
  109. package/dist/tui/components/layouts/index.d.ts.map +1 -0
  110. package/dist/tui/components/layouts/index.js +7 -0
  111. package/dist/tui/components/layouts/index.js.map +1 -0
  112. package/dist/tui/components/primitives/Box.d.ts +28 -0
  113. package/dist/tui/components/primitives/Box.d.ts.map +1 -0
  114. package/dist/tui/components/primitives/Box.js +38 -0
  115. package/dist/tui/components/primitives/Box.js.map +1 -0
  116. package/dist/tui/components/primitives/Panel.d.ts +17 -0
  117. package/dist/tui/components/primitives/Panel.d.ts.map +1 -0
  118. package/dist/tui/components/primitives/Panel.js +12 -0
  119. package/dist/tui/components/primitives/Panel.js.map +1 -0
  120. package/dist/tui/components/primitives/Text.d.ts +18 -0
  121. package/dist/tui/components/primitives/Text.d.ts.map +1 -0
  122. package/dist/tui/components/primitives/Text.js +21 -0
  123. package/dist/tui/components/primitives/Text.js.map +1 -0
  124. package/dist/tui/components/primitives/index.d.ts +7 -0
  125. package/dist/tui/components/primitives/index.d.ts.map +1 -0
  126. package/dist/tui/components/primitives/index.js +7 -0
  127. package/dist/tui/components/primitives/index.js.map +1 -0
  128. package/dist/tui/hooks/useTerminalSize.d.ts +3 -0
  129. package/dist/tui/hooks/useTerminalSize.d.ts.map +1 -1
  130. package/dist/tui/hooks/useTerminalSize.js +36 -10
  131. package/dist/tui/hooks/useTerminalSize.js.map +1 -1
  132. package/dist/tui/styles/colors.d.ts +4 -0
  133. package/dist/tui/styles/colors.d.ts.map +1 -1
  134. package/dist/tui/styles/colors.js +54 -14
  135. package/dist/tui/styles/colors.js.map +1 -1
  136. package/dist/tui/styles/design-system.d.ts +107 -0
  137. package/dist/tui/styles/design-system.d.ts.map +1 -0
  138. package/dist/tui/styles/design-system.js +140 -0
  139. package/dist/tui/styles/design-system.js.map +1 -0
  140. package/dist/tui/styles/index.d.ts +4 -2
  141. package/dist/tui/styles/index.d.ts.map +1 -1
  142. package/dist/tui/styles/index.js +3 -2
  143. package/dist/tui/styles/index.js.map +1 -1
  144. package/dist/tui/styles/themes.d.ts +10 -0
  145. package/dist/tui/styles/themes.d.ts.map +1 -1
  146. package/dist/tui/styles/themes.js +137 -47
  147. package/dist/tui/styles/themes.js.map +1 -1
  148. package/dist/tui/styles/tokens.d.ts +262 -0
  149. package/dist/tui/styles/tokens.d.ts.map +1 -0
  150. package/dist/tui/styles/tokens.js +230 -0
  151. package/dist/tui/styles/tokens.js.map +1 -0
  152. package/package.json +1 -1
@@ -6,14 +6,18 @@ export declare const tuiColors: {
6
6
  readonly surface: string;
7
7
  readonly primary: string;
8
8
  readonly secondary: string;
9
+ readonly accent: string;
9
10
  readonly textPrimary: string;
10
11
  readonly textSecondary: string;
11
12
  readonly textTertiary: string;
12
13
  readonly textQuaternary: string;
14
+ readonly textMuted: string;
13
15
  readonly success: string;
14
16
  readonly warning: string;
15
17
  readonly error: string;
18
+ readonly info: string;
16
19
  readonly border: string;
20
+ readonly borderActive: string;
17
21
  readonly mutation: string;
18
22
  readonly checkpoint: string;
19
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIjE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAE9C;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAerB,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AAC5B,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIjE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAE9C;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAuDrB,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AAC5B,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC"}
@@ -7,20 +7,60 @@ export function getCurrentTheme() {
7
7
  return currentTheme;
8
8
  }
9
9
  export const tuiColors = {
10
- get background() { return currentTheme.colors.background; },
11
- get surface() { return currentTheme.colors.background; },
12
- get primary() { return currentTheme.colors.primary; },
13
- get secondary() { return currentTheme.colors.secondary; },
14
- get textPrimary() { return currentTheme.colors.textPrimary; },
15
- get textSecondary() { return currentTheme.colors.textSecondary; },
16
- get textTertiary() { return currentTheme.colors.textTertiary; },
17
- get textQuaternary() { return currentTheme.colors.textQuaternary; },
18
- get success() { return currentTheme.colors.success; },
19
- get warning() { return currentTheme.colors.warning; },
20
- get error() { return currentTheme.colors.error; },
21
- get border() { return currentTheme.colors.border; },
22
- get mutation() { return currentTheme.colors.warning; },
23
- get checkpoint() { return currentTheme.colors.primary; },
10
+ get background() {
11
+ return currentTheme.colors.background;
12
+ },
13
+ get surface() {
14
+ return currentTheme.colors.surface;
15
+ },
16
+ get primary() {
17
+ return currentTheme.colors.primary;
18
+ },
19
+ get secondary() {
20
+ return currentTheme.colors.secondary;
21
+ },
22
+ get accent() {
23
+ return currentTheme.colors.accent;
24
+ },
25
+ get textPrimary() {
26
+ return currentTheme.colors.textPrimary;
27
+ },
28
+ get textSecondary() {
29
+ return currentTheme.colors.textSecondary;
30
+ },
31
+ get textTertiary() {
32
+ return currentTheme.colors.textTertiary;
33
+ },
34
+ get textQuaternary() {
35
+ return currentTheme.colors.textQuaternary;
36
+ },
37
+ get textMuted() {
38
+ return currentTheme.colors.textMuted;
39
+ },
40
+ get success() {
41
+ return currentTheme.colors.success;
42
+ },
43
+ get warning() {
44
+ return currentTheme.colors.warning;
45
+ },
46
+ get error() {
47
+ return currentTheme.colors.error;
48
+ },
49
+ get info() {
50
+ return currentTheme.colors.info;
51
+ },
52
+ get border() {
53
+ return currentTheme.colors.border;
54
+ },
55
+ get borderActive() {
56
+ return currentTheme.colors.borderActive;
57
+ },
58
+ get mutation() {
59
+ return currentTheme.colors.warning;
60
+ },
61
+ get checkpoint() {
62
+ return currentTheme.colors.primary;
63
+ },
24
64
  };
25
65
  export { themes, getTheme };
26
66
  //# sourceMappingURL=colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/tui/styles/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjE,IAAI,YAAY,GAAU,MAAM,CAAC,OAAO,CAAC;AAEzC,MAAM,UAAU,QAAQ,CAAC,IAAe;IACtC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,UAAU,KAAK,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3D,IAAI,OAAO,KAAK,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IACxD,IAAI,OAAO,KAAK,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,IAAI,SAAS,KAAK,OAAO,YAAY,CA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,YAAY,CAAC;IAC1C,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;IACrC,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;IACrC,CAAC;CACF,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,107 @@
1
+ import { Theme, ThemeName } from "./themes.js";
2
+ import { spacing, borders, animations, typography, indicators, dimensions, zIndex, shadows, BorderStyle, SpacingKey, AnimationType } from "./tokens.js";
3
+ declare class DesignSystem {
4
+ private currentTheme;
5
+ constructor();
6
+ setTheme(themeName: ThemeName): void;
7
+ getTheme(): Theme;
8
+ get isDark(): boolean;
9
+ color(colorKey: keyof Theme["colors"]): string;
10
+ space(key: SpacingKey): number;
11
+ spacePx(key: SpacingKey): string;
12
+ border(style?: BorderStyle): (typeof borders)[BorderStyle];
13
+ animation(type: AnimationType): {
14
+ readonly duration: 150;
15
+ readonly easing: "ease-in";
16
+ } | {
17
+ readonly duration: 100;
18
+ readonly easing: "ease-out";
19
+ } | {
20
+ readonly duration: 200;
21
+ readonly easing: "ease-out";
22
+ } | {
23
+ readonly duration: 200;
24
+ readonly easing: "ease-out";
25
+ } | {
26
+ readonly duration: 800;
27
+ readonly easing: "ease-in-out";
28
+ } | {
29
+ readonly duration: 1200;
30
+ readonly easing: "ease-in-out";
31
+ } | {
32
+ readonly duration: 40;
33
+ } | {
34
+ readonly duration: 300;
35
+ readonly easing: "ease-out";
36
+ } | {
37
+ readonly duration: 80;
38
+ } | {
39
+ readonly duration: 150;
40
+ };
41
+ indicator(key: keyof typeof indicators): string;
42
+ themeIndicator(key: keyof Theme["indicators"]): string;
43
+ minTerminalWidth(): number;
44
+ minTerminalHeight(): number;
45
+ getBreakpoint(width: number): "tiny" | "small" | "medium" | "large" | "xlarge";
46
+ isCompact(width: number): boolean;
47
+ isMinimal(width: number): boolean;
48
+ zIndex(level: keyof typeof zIndex): number;
49
+ shadow(level: keyof typeof shadows): string;
50
+ typoSize(key: keyof typeof typography.sizes): number;
51
+ styled(text: string, options: {
52
+ color?: string;
53
+ bgColor?: string;
54
+ bold?: boolean;
55
+ dim?: boolean;
56
+ italic?: boolean;
57
+ underline?: boolean;
58
+ strikethrough?: boolean;
59
+ }): string;
60
+ }
61
+ export declare const designSystem: DesignSystem;
62
+ export { spacing, borders, animations, typography, indicators, dimensions, zIndex, shadows, };
63
+ export type { SpacingKey, BorderStyle, AnimationType, };
64
+ export declare const componentStyles: {
65
+ panel: (theme: Theme, active?: boolean) => {
66
+ borderColor: string;
67
+ textColor: string;
68
+ padding: 3;
69
+ };
70
+ header: (theme: Theme) => {
71
+ textColor: string;
72
+ accentColor: string;
73
+ borderColor: string;
74
+ };
75
+ input: (theme: Theme, focused?: boolean) => {
76
+ borderColor: string;
77
+ textColor: string;
78
+ placeholderColor: string;
79
+ accentColor: string;
80
+ };
81
+ interactive: (theme: Theme, active?: boolean) => {
82
+ textColor: string;
83
+ bgColor: string;
84
+ borderColor: string;
85
+ bold: boolean;
86
+ };
87
+ status: (theme: Theme, type: "success" | "error" | "warning" | "info") => {
88
+ color: string;
89
+ bold: boolean;
90
+ };
91
+ hover: (theme: Theme) => {
92
+ bgColor: string;
93
+ textColor: string;
94
+ };
95
+ disabled: (theme: Theme) => {
96
+ textColor: string;
97
+ bgColor: string;
98
+ };
99
+ accent: (theme: Theme) => {
100
+ color: string;
101
+ bold: boolean;
102
+ };
103
+ message: (theme: Theme, type: "user" | "agent" | "system" | "error" | "success") => {
104
+ color: string;
105
+ };
106
+ };
107
+ //# sourceMappingURL=design-system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-system.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/design-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AACzD,OAAO,EACL,OAAO,EACP,OAAO,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MAAM,EAAE,OAAO,EAAE;QAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,GAAG,CAAC,EAAE,OAAO,CAAC;QACd,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,MAAM;CASX;AAED,eAAO,MAAM,YAAY,cAAqB,CAAC;AAE/C,OAAO,EACL,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,MAAM,EACN,OAAO,GACR,CAAC;AAEF,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,GACd,CAAC;AAEF,eAAO,MAAM,eAAe;mBACX,KAAK;;;;;oBAMJ,KAAK;;;;;mBAMN,KAAK;;;;;;yBAOC,KAAK;;;;;;oBAOV,KAAK,QAAQ,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM;;;;mBAKtD,KAAK;;;;sBAKF,KAAK;;;;oBAKP,KAAK;;;;qBAKJ,KAAK,QAAQ,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS;;;CAUhF,CAAC"}
@@ -0,0 +1,140 @@
1
+ import { getTheme } from "./themes.js";
2
+ import { spacing, borders, animations, typography, indicators, dimensions, zIndex, shadows, } from "./tokens.js";
3
+ class DesignSystem {
4
+ currentTheme;
5
+ constructor() {
6
+ this.currentTheme = getTheme("default");
7
+ }
8
+ setTheme(themeName) {
9
+ this.currentTheme = getTheme(themeName);
10
+ }
11
+ getTheme() {
12
+ return this.currentTheme;
13
+ }
14
+ get isDark() {
15
+ return this.currentTheme.isDark;
16
+ }
17
+ color(colorKey) {
18
+ return this.currentTheme.colors[colorKey] || "#ffffff";
19
+ }
20
+ space(key) {
21
+ return spacing[key];
22
+ }
23
+ spacePx(key) {
24
+ return String(spacing[key]);
25
+ }
26
+ border(style = "thin") {
27
+ return borders[style];
28
+ }
29
+ animation(type) {
30
+ return animations.types[type];
31
+ }
32
+ indicator(key) {
33
+ const ind = indicators[key];
34
+ if (typeof ind === "string")
35
+ return ind;
36
+ return "";
37
+ }
38
+ themeIndicator(key) {
39
+ return this.currentTheme.indicators[key];
40
+ }
41
+ minTerminalWidth() {
42
+ return dimensions.minTerminalWidth;
43
+ }
44
+ minTerminalHeight() {
45
+ return dimensions.minTerminalHeight;
46
+ }
47
+ getBreakpoint(width) {
48
+ if (width < dimensions.breakpoints.small)
49
+ return "tiny";
50
+ if (width < dimensions.breakpoints.medium)
51
+ return "small";
52
+ if (width < dimensions.breakpoints.large)
53
+ return "medium";
54
+ if (width < dimensions.breakpoints.xlarge)
55
+ return "large";
56
+ return "xlarge";
57
+ }
58
+ isCompact(width) {
59
+ return width < dimensions.breakpoints.medium;
60
+ }
61
+ isMinimal(width) {
62
+ return width < dimensions.breakpoints.small;
63
+ }
64
+ zIndex(level) {
65
+ return zIndex[level];
66
+ }
67
+ shadow(level) {
68
+ return shadows[level];
69
+ }
70
+ typoSize(key) {
71
+ return typography.sizes[key];
72
+ }
73
+ styled(text, options) {
74
+ let result = text;
75
+ if (options.bold)
76
+ result = `\x1B[1m${result}\x1B[22m`;
77
+ if (options.dim)
78
+ result = `\x1B[2m${result}\x1B[22m`;
79
+ if (options.italic)
80
+ result = `\x1B[3m${result}\x1B[23m`;
81
+ if (options.underline)
82
+ result = `\x1B[4m${result}\x1B[24m`;
83
+ if (options.strikethrough)
84
+ result = `\x1B[9m${result}\x1B[29m`;
85
+ return result;
86
+ }
87
+ }
88
+ export const designSystem = new DesignSystem();
89
+ export { spacing, borders, animations, typography, indicators, dimensions, zIndex, shadows, };
90
+ export const componentStyles = {
91
+ panel: (theme, active = false) => ({
92
+ borderColor: active ? theme.colors.borderActive : theme.colors.border,
93
+ textColor: theme.colors.textPrimary,
94
+ padding: spacing.md,
95
+ }),
96
+ header: (theme) => ({
97
+ textColor: theme.colors.textPrimary,
98
+ accentColor: theme.colors.primary,
99
+ borderColor: theme.colors.border,
100
+ }),
101
+ input: (theme, focused = false) => ({
102
+ borderColor: focused ? theme.colors.borderActive : theme.colors.border,
103
+ textColor: theme.colors.textPrimary,
104
+ placeholderColor: theme.colors.textTertiary,
105
+ accentColor: theme.colors.primary,
106
+ }),
107
+ interactive: (theme, active = false) => ({
108
+ textColor: active ? theme.colors.background : theme.colors.primary,
109
+ bgColor: active ? theme.colors.primary : "transparent",
110
+ borderColor: active ? theme.colors.primary : theme.colors.border,
111
+ bold: active,
112
+ }),
113
+ status: (theme, type) => ({
114
+ color: theme.colors[type],
115
+ bold: true,
116
+ }),
117
+ hover: (theme) => ({
118
+ bgColor: theme.colors.surfaceHighlight,
119
+ textColor: theme.colors.textPrimary,
120
+ }),
121
+ disabled: (theme) => ({
122
+ textColor: theme.colors.textMuted,
123
+ bgColor: "transparent",
124
+ }),
125
+ accent: (theme) => ({
126
+ color: theme.colors.primary,
127
+ bold: true,
128
+ }),
129
+ message: (theme, type) => {
130
+ const colors = {
131
+ user: theme.colors.textPrimary,
132
+ agent: theme.colors.primary,
133
+ system: theme.colors.textTertiary,
134
+ error: theme.colors.error,
135
+ success: theme.colors.success,
136
+ };
137
+ return { color: colors[type] || theme.colors.textPrimary };
138
+ },
139
+ };
140
+ //# sourceMappingURL=design-system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-system.js","sourceRoot":"","sources":["../../../src/tui/styles/design-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EACL,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,MAAM,EACN,OAAO,GAIR,MAAM,aAAa,CAAC;AAErB,MAAM,YAAY;IACR,YAAY,CAAQ;IAE5B;QACE,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IA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AAI,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;IAC7D,CAAC;CACF,CAAC"}
@@ -1,7 +1,9 @@
1
1
  export { tuiColors, themes, getTheme, setTheme, getCurrentTheme } from "./colors.js";
2
2
  export type { Theme, ThemeName } from "./colors.js";
3
- export { borders, doubleBorders, treeChars, drawTopBorder, drawBottomBorder, drawSeparator } from "./borders.js";
4
- export { statusIndicators, getStatusIndicator, spinnerFrames, getSpinnerFrame, dotsSpinnerFrames, circleSpinnerFrames, pulseFrames, breathFrames, progressMarkerFrames, progressGlowFrames, getPulseFrame, getBreathFrame, getProgressMarker, getProgressGlow } from "./indicators.js";
3
+ export { borders, treeChars, drawTopBorder, drawBottomBorder, drawSeparator } from "./borders.js";
4
+ export { statusIndicators, getStatusIndicator, spinnerFrames, getSpinnerFrame, dotsSpinnerFrames, circleSpinnerFrames, pulseFrames, breathFrames, progressMarkerFrames, progressGlowFrames, getPulseFrame, getBreathFrame, getProgressMarker, getProgressGlow, } from "./indicators.js";
5
5
  export { providerTags, getProviderTag, logStatusTags } from "./providers.js";
6
6
  export { layout, formatTimestamp, formatTimestampMs, padRight, truncate } from "./layout.js";
7
+ export { designSystem, componentStyles, spacing, borders as borderStyles, animations, typography, indicators as indicatorSymbols, dimensions, zIndex, shadows, } from "./design-system.js";
8
+ export type { SpacingKey, BorderStyle, AnimationType } from "./design-system.js";
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACrF,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,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AAU,IAAI,gBAAgB,EAC9B,UAAU,EACV,MAAM,EACN,OAAO,GACR,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export { tuiColors, themes, getTheme, setTheme, getCurrentTheme } from "./colors.js";
2
- export { borders, doubleBorders, treeChars, drawTopBorder, drawBottomBorder, drawSeparator } from "./borders.js";
3
- export { statusIndicators, getStatusIndicator, spinnerFrames, getSpinnerFrame, dotsSpinnerFrames, circleSpinnerFrames, pulseFrames, breathFrames, progressMarkerFrames, progressGlowFrames, getPulseFrame, getBreathFrame, getProgressMarker, getProgressGlow } from "./indicators.js";
2
+ export { borders, treeChars, drawTopBorder, drawBottomBorder, drawSeparator } from "./borders.js";
3
+ export { statusIndicators, getStatusIndicator, spinnerFrames, getSpinnerFrame, dotsSpinnerFrames, circleSpinnerFrames, pulseFrames, breathFrames, progressMarkerFrames, progressGlowFrames, getPulseFrame, getBreathFrame, getProgressMarker, getProgressGlow, } from "./indicators.js";
4
4
  export { providerTags, getProviderTag, logStatusTags } from "./providers.js";
5
5
  export { layout, formatTimestamp, formatTimestampMs, padRight, truncate } from "./layout.js";
6
+ export { designSystem, componentStyles, spacing, borders as borderStyles, animations, typography, indicators as indicatorSymbols, dimensions, zIndex, shadows, } from "./design-system.js";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tui/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAErF,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACjH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tui/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAErF,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7F,OAAO,EACL,YAAY,EACZ,eAAe,EACf,OAAO,EACP,OAAO,IAAI,YAAY,EACvB,UAAU,EACV,UAAU,EACV,UAAU,IAAI,gBAAgB,EAC9B,UAAU,EACV,MAAM,EACN,OAAO,GACR,MAAM,oBAAoB,CAAC"}
@@ -5,6 +5,7 @@ export interface Theme {
5
5
  colors: {
6
6
  primary: string;
7
7
  secondary: string;
8
+ accent: string;
8
9
  success: string;
9
10
  warning: string;
10
11
  error: string;
@@ -13,15 +14,24 @@ export interface Theme {
13
14
  textSecondary: string;
14
15
  textTertiary: string;
15
16
  textQuaternary: string;
17
+ textMuted: string;
16
18
  border: string;
19
+ borderActive: string;
17
20
  background: string;
21
+ surface: string;
22
+ surfaceHighlight: string;
18
23
  };
19
24
  indicators: {
20
25
  online: string;
21
26
  running: string;
22
27
  error: string;
23
28
  idle: string;
29
+ progress: string;
30
+ bullet: string;
31
+ arrow: string;
32
+ marker: string;
24
33
  };
34
+ isDark: boolean;
25
35
  }
26
36
  export declare const themes: Record<ThemeName, Theme>;
27
37
  export declare function getTheme(name: ThemeName): Theme;
@@ -1 +1 @@
1
- {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/themes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAErI,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC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