@sigx/terminal 0.4.4 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -24
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
SignalX Terminal — a TUI framework with TSX support. Build interactive terminal applications using the same component model and reactive signals as SignalX.
|
|
4
4
|
|
|
5
|
+
## 📚 Documentation
|
|
6
|
+
|
|
7
|
+
Full guides, API reference and live examples → **<https://sigx.dev/terminal/>**
|
|
8
|
+
|
|
5
9
|
## Install
|
|
6
10
|
|
|
7
11
|
```bash
|
|
8
12
|
npm install @sigx/terminal
|
|
9
13
|
```
|
|
10
14
|
|
|
11
|
-
##
|
|
15
|
+
## Quick taste
|
|
12
16
|
|
|
13
17
|
```tsx
|
|
14
18
|
/** @jsxImportSource @sigx/terminal */
|
|
@@ -31,31 +35,15 @@ const App = component(() => {
|
|
|
31
35
|
defineApp(<App />).mount({ clearConsole: true });
|
|
32
36
|
```
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- `<text>` — Text with ANSI color support
|
|
38
|
-
- `<br>` — Line break
|
|
39
|
-
|
|
40
|
-
## Components
|
|
41
|
-
|
|
42
|
-
| Component | Description |
|
|
43
|
-
|---|---|
|
|
44
|
-
| `Input` | Text input with model binding |
|
|
45
|
-
| `Button` | Clickable button |
|
|
46
|
-
| `Select` | Option list with keyboard navigation |
|
|
47
|
-
| `Checkbox` | Toggle checkbox |
|
|
48
|
-
| `ProgressBar` | Visual progress indicator |
|
|
49
|
-
|
|
50
|
-
## Utilities
|
|
51
|
-
|
|
52
|
-
- `onKey(handler)` — Subscribe to keyboard events
|
|
53
|
-
- `focusNext()` / `focusPrev()` — Programmatic focus management
|
|
38
|
+
Built-in elements (`<box>`, `<text>`, `<br>`), components (`Input`, `Button`,
|
|
39
|
+
`Select`, `Checkbox`, `ProgressBar`) and focus/keyboard utilities are documented
|
|
40
|
+
in full on the docs site → <https://sigx.dev/terminal/>.
|
|
54
41
|
|
|
55
|
-
##
|
|
42
|
+
## Part of SignalX
|
|
56
43
|
|
|
57
|
-
|
|
44
|
+
- [`sigx`](https://sigx.dev/core/) — reactivity, runtime-core, DOM renderer, SSR, Vite plugin.
|
|
45
|
+
- [`@sigx/cli`](https://sigx.dev/cli/) — the `sigx` CLI and `create-sigx` scaffolder.
|
|
58
46
|
|
|
59
47
|
## License
|
|
60
48
|
|
|
61
|
-
[MIT](https://github.com/signalxjs/
|
|
49
|
+
[MIT](https://github.com/signalxjs/terminal/blob/main/LICENSE)
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Heading as e, Text as t } from "@sigx/terminal-zero";
|
|
1
2
|
export * from "@sigx/reactivity";
|
|
2
3
|
export * from "@sigx/runtime-core";
|
|
3
4
|
export * from "@sigx/runtime-terminal";
|
|
5
|
+
export * from "@sigx/terminal-zero";
|
|
6
|
+
export * from "@sigx/terminal-ui";
|
|
7
|
+
export { e as Heading, t as Text };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigx/terminal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "SignalX Terminal - TUI framework with TSX support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,14 +39,16 @@
|
|
|
39
39
|
"url": "git+https://github.com/signalxjs/terminal.git",
|
|
40
40
|
"directory": "packages/terminal"
|
|
41
41
|
},
|
|
42
|
-
"homepage": "https://
|
|
42
|
+
"homepage": "https://sigx.dev/terminal/",
|
|
43
43
|
"bugs": {
|
|
44
44
|
"url": "https://github.com/signalxjs/terminal/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@sigx/reactivity": "^0.4.
|
|
48
|
-
"@sigx/runtime-core": "^0.4.
|
|
49
|
-
"@sigx/runtime-terminal": "^0.
|
|
47
|
+
"@sigx/reactivity": "^0.4.9",
|
|
48
|
+
"@sigx/runtime-core": "^0.4.9",
|
|
49
|
+
"@sigx/runtime-terminal": "^0.5.1",
|
|
50
|
+
"@sigx/terminal-zero": "^0.5.1",
|
|
51
|
+
"@sigx/terminal-ui": "^0.5.1"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"@sigx/vite": "^0.4.7",
|