@yeshwanthyk/open-tui 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +17 -15
- package/dist/app.jsx.map +1 -0
- package/dist/components/badge.js +60 -24
- package/dist/components/{badge.js.map → badge.jsx.map} +1 -1
- package/dist/components/code-block.js +110 -17
- package/dist/components/code-block.jsx.map +1 -0
- package/dist/components/dialog.js +86 -10
- package/dist/components/dialog.jsx.map +1 -0
- package/dist/components/diff.js +79 -13
- package/dist/components/diff.jsx.map +1 -0
- package/dist/components/divider.js +44 -11
- package/dist/components/divider.jsx.map +1 -0
- package/dist/components/editor.js +174 -127
- package/dist/components/{editor.js.map → editor.jsx.map} +1 -1
- package/dist/components/image.js +292 -228
- package/dist/components/{image.js.map → image.jsx.map} +1 -1
- package/dist/components/loader.js +50 -6
- package/dist/components/loader.jsx.map +1 -0
- package/dist/components/markdown.js +35 -18
- package/dist/components/markdown.jsx.map +1 -0
- package/dist/components/panel.js +86 -42
- package/dist/components/{panel.js.map → panel.jsx.map} +1 -1
- package/dist/components/select-list.js +193 -103
- package/dist/components/select-list.jsx.map +1 -0
- package/dist/components/spacer.js +17 -12
- package/dist/components/spacer.jsx.map +1 -0
- package/dist/components/toast.js +115 -34
- package/dist/components/toast.jsx.map +1 -0
- package/dist/context/terminal.js +1 -2
- package/dist/context/terminal.jsx.map +1 -0
- package/dist/context/theme.js +779 -555
- package/dist/context/theme.jsx.map +1 -0
- package/package.json +4 -4
- package/dist/app.js.map +0 -1
- package/dist/components/code-block.js.map +0 -1
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/diff.js.map +0 -1
- package/dist/components/divider.js.map +0 -1
- package/dist/components/loader.js.map +0 -1
- package/dist/components/markdown.js.map +0 -1
- package/dist/components/select-list.js.map +0 -1
- package/dist/components/spacer.js.map +0 -1
- package/dist/components/toast.js.map +0 -1
- package/dist/context/terminal.js.map +0 -1
- package/dist/context/theme.js.map +0 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createComponent as _$createComponent } from "@opentui/solid";
|
|
2
|
+
import { insertNode as _$insertNode } from "@opentui/solid";
|
|
3
|
+
import { use as _$use } from "@opentui/solid";
|
|
4
|
+
import { spread as _$spread } from "@opentui/solid";
|
|
5
|
+
import { createElement as _$createElement } from "@opentui/solid";
|
|
2
6
|
/**
|
|
3
7
|
* Editor component - wrapper around OpenTUI's TextareaRenderable
|
|
4
8
|
*
|
|
@@ -9,137 +13,180 @@ import { TextareaRenderable } from "@opentui/core";
|
|
|
9
13
|
import { createEffect } from "solid-js";
|
|
10
14
|
import { useTheme } from "../context/theme.js";
|
|
11
15
|
// Default keybindings for the textarea
|
|
12
|
-
const defaultKeybindings = [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
const defaultKeybindings = [{
|
|
17
|
+
name: "left",
|
|
18
|
+
action: "move-left"
|
|
19
|
+
}, {
|
|
20
|
+
name: "right",
|
|
21
|
+
action: "move-right"
|
|
22
|
+
}, {
|
|
23
|
+
name: "up",
|
|
24
|
+
action: "move-up"
|
|
25
|
+
}, {
|
|
26
|
+
name: "down",
|
|
27
|
+
action: "move-down"
|
|
28
|
+
}, {
|
|
29
|
+
name: "home",
|
|
30
|
+
action: "buffer-home"
|
|
31
|
+
}, {
|
|
32
|
+
name: "end",
|
|
33
|
+
action: "buffer-end"
|
|
34
|
+
}, {
|
|
35
|
+
name: "a",
|
|
36
|
+
ctrl: true,
|
|
37
|
+
action: "line-home"
|
|
38
|
+
}, {
|
|
39
|
+
name: "e",
|
|
40
|
+
ctrl: true,
|
|
41
|
+
action: "line-end"
|
|
42
|
+
}, {
|
|
43
|
+
name: "backspace",
|
|
44
|
+
action: "backspace"
|
|
45
|
+
}, {
|
|
46
|
+
name: "delete",
|
|
47
|
+
action: "delete"
|
|
48
|
+
}, {
|
|
49
|
+
name: "w",
|
|
50
|
+
ctrl: true,
|
|
51
|
+
action: "delete-word-backward"
|
|
52
|
+
}, {
|
|
53
|
+
name: "k",
|
|
54
|
+
ctrl: true,
|
|
55
|
+
action: "delete-to-line-end"
|
|
56
|
+
}, {
|
|
57
|
+
name: "u",
|
|
58
|
+
ctrl: true,
|
|
59
|
+
action: "delete-to-line-start"
|
|
60
|
+
}, {
|
|
61
|
+
name: "return",
|
|
62
|
+
shift: true,
|
|
63
|
+
action: "newline"
|
|
64
|
+
}, {
|
|
65
|
+
name: "return",
|
|
66
|
+
ctrl: true,
|
|
67
|
+
action: "newline"
|
|
68
|
+
}, {
|
|
69
|
+
name: "return",
|
|
70
|
+
meta: true,
|
|
71
|
+
action: "newline"
|
|
72
|
+
}, {
|
|
73
|
+
name: "return",
|
|
74
|
+
action: "submit"
|
|
75
|
+
}, {
|
|
76
|
+
name: "z",
|
|
77
|
+
super: true,
|
|
78
|
+
action: "undo"
|
|
79
|
+
}, {
|
|
80
|
+
name: "z",
|
|
81
|
+
super: true,
|
|
82
|
+
shift: true,
|
|
83
|
+
action: "redo"
|
|
84
|
+
}];
|
|
33
85
|
/**
|
|
34
86
|
* Editor component for multi-line text input
|
|
35
87
|
*/
|
|
36
88
|
export function Editor(props) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (e.name === "escape") {
|
|
65
|
-
props.onEscape?.();
|
|
66
|
-
e.preventDefault();
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const handleSubmit = () => {
|
|
70
|
-
if (props.disabled)
|
|
71
|
-
return;
|
|
72
|
-
const text = textareaRef?.plainText?.trim() ?? "";
|
|
73
|
-
if (!text)
|
|
74
|
-
return;
|
|
75
|
-
props.onSubmit?.(text);
|
|
76
|
-
};
|
|
77
|
-
const handleContentChange = () => {
|
|
78
|
-
props.onChange?.(textareaRef?.plainText ?? "");
|
|
79
|
-
};
|
|
80
|
-
const borderColor = () => (props.focused ? theme().borderActive : theme().border);
|
|
81
|
-
const textareaProps = {
|
|
82
|
-
minHeight: props.minHeight ?? 1,
|
|
83
|
-
maxHeight: props.maxHeight ?? 10,
|
|
84
|
-
backgroundColor: theme().background,
|
|
85
|
-
focusedBackgroundColor: theme().background,
|
|
86
|
-
textColor: theme().text,
|
|
87
|
-
focusedTextColor: theme().text,
|
|
88
|
-
cursorColor: theme().cursor,
|
|
89
|
-
keyBindings: defaultKeybindings,
|
|
90
|
-
onKeyDown: handleKeyDown,
|
|
91
|
-
onSubmit: handleSubmit,
|
|
92
|
-
onContentChange: handleContentChange,
|
|
93
|
-
};
|
|
94
|
-
if (props.initialValue !== undefined) {
|
|
95
|
-
textareaProps["initialValue"] = props.initialValue;
|
|
89
|
+
const {
|
|
90
|
+
theme: globalTheme
|
|
91
|
+
} = useTheme();
|
|
92
|
+
let textareaRef;
|
|
93
|
+
const theme = () => ({
|
|
94
|
+
border: props.theme?.border ?? globalTheme.border,
|
|
95
|
+
borderActive: props.theme?.borderActive ?? globalTheme.borderActive,
|
|
96
|
+
text: props.theme?.text ?? globalTheme.text,
|
|
97
|
+
cursor: props.theme?.cursor ?? globalTheme.text,
|
|
98
|
+
placeholder: props.theme?.placeholder ?? globalTheme.textMuted,
|
|
99
|
+
background: props.theme?.background ?? globalTheme.backgroundPanel
|
|
100
|
+
});
|
|
101
|
+
const editorRef = {
|
|
102
|
+
getText: () => textareaRef?.plainText ?? "",
|
|
103
|
+
setText: text => textareaRef?.setText(text),
|
|
104
|
+
clear: () => textareaRef?.clear(),
|
|
105
|
+
focus: () => textareaRef?.focus(),
|
|
106
|
+
blur: () => textareaRef?.blur(),
|
|
107
|
+
getTextarea: () => textareaRef
|
|
108
|
+
};
|
|
109
|
+
createEffect(() => {
|
|
110
|
+
if (props.ref && textareaRef) props.ref(editorRef);
|
|
111
|
+
});
|
|
112
|
+
const handleKeyDown = e => {
|
|
113
|
+
if (props.disabled) {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
return;
|
|
96
116
|
}
|
|
97
|
-
if (
|
|
98
|
-
|
|
117
|
+
if (e.name === "escape") {
|
|
118
|
+
props.onEscape?.();
|
|
119
|
+
e.preventDefault();
|
|
99
120
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
};
|
|
122
|
+
const handleSubmit = () => {
|
|
123
|
+
if (props.disabled) return;
|
|
124
|
+
const text = textareaRef?.plainText?.trim() ?? "";
|
|
125
|
+
if (!text) return;
|
|
126
|
+
props.onSubmit?.(text);
|
|
127
|
+
};
|
|
128
|
+
const handleContentChange = () => {
|
|
129
|
+
props.onChange?.(textareaRef?.plainText ?? "");
|
|
130
|
+
};
|
|
131
|
+
const borderColor = () => props.focused ? theme().borderActive : theme().border;
|
|
132
|
+
const textareaProps = {
|
|
133
|
+
minHeight: props.minHeight ?? 1,
|
|
134
|
+
maxHeight: props.maxHeight ?? 10,
|
|
135
|
+
backgroundColor: theme().background,
|
|
136
|
+
focusedBackgroundColor: theme().background,
|
|
137
|
+
textColor: theme().text,
|
|
138
|
+
focusedTextColor: theme().text,
|
|
139
|
+
cursorColor: theme().cursor,
|
|
140
|
+
keyBindings: defaultKeybindings,
|
|
141
|
+
onKeyDown: handleKeyDown,
|
|
142
|
+
onSubmit: handleSubmit,
|
|
143
|
+
onContentChange: handleContentChange
|
|
144
|
+
};
|
|
145
|
+
if (props.initialValue !== undefined) {
|
|
146
|
+
textareaProps["initialValue"] = props.initialValue;
|
|
147
|
+
}
|
|
148
|
+
if (props.placeholder) {
|
|
149
|
+
textareaProps["placeholder"] = props.placeholder;
|
|
150
|
+
}
|
|
151
|
+
if (props.focused !== undefined) {
|
|
152
|
+
textareaProps["focused"] = props.focused;
|
|
153
|
+
}
|
|
154
|
+
const boxProps = {
|
|
155
|
+
flexDirection: "column",
|
|
156
|
+
border: true,
|
|
157
|
+
borderColor: borderColor(),
|
|
158
|
+
backgroundColor: theme().background,
|
|
159
|
+
paddingLeft: 1,
|
|
160
|
+
paddingRight: 1
|
|
161
|
+
};
|
|
162
|
+
if (props.width !== undefined) boxProps["width"] = props.width;
|
|
163
|
+
if (props.maxWidth !== undefined) boxProps["maxWidth"] = props.maxWidth;
|
|
164
|
+
return (() => {
|
|
165
|
+
var _el$ = _$createElement("box"),
|
|
166
|
+
_el$2 = _$createElement("textarea");
|
|
167
|
+
_$insertNode(_el$, _el$2);
|
|
168
|
+
_$spread(_el$, boxProps, true);
|
|
169
|
+
_$use(r => {
|
|
170
|
+
textareaRef = r;
|
|
171
|
+
props.ref?.(editorRef);
|
|
172
|
+
}, _el$2);
|
|
173
|
+
_$spread(_el$2, textareaProps, false);
|
|
174
|
+
return _el$;
|
|
175
|
+
})();
|
|
119
176
|
}
|
|
120
177
|
export function Input(props) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
editorProps.onSubmit = props.onSubmit;
|
|
137
|
-
if (props.onEscape !== undefined)
|
|
138
|
-
editorProps.onEscape = props.onEscape;
|
|
139
|
-
if (props.width !== undefined)
|
|
140
|
-
editorProps.width = props.width;
|
|
141
|
-
if (props.maxWidth !== undefined)
|
|
142
|
-
editorProps.maxWidth = props.maxWidth;
|
|
143
|
-
return _jsx(Editor, { ...editorProps });
|
|
144
|
-
}
|
|
145
|
-
//# sourceMappingURL=editor.js.map
|
|
178
|
+
const editorProps = {
|
|
179
|
+
minHeight: 1,
|
|
180
|
+
maxHeight: 1
|
|
181
|
+
};
|
|
182
|
+
if (props.value !== undefined) editorProps.initialValue = props.value;
|
|
183
|
+
if (props.placeholder !== undefined) editorProps.placeholder = props.placeholder;
|
|
184
|
+
if (props.focused !== undefined) editorProps.focused = props.focused;
|
|
185
|
+
if (props.theme !== undefined) editorProps.theme = props.theme;
|
|
186
|
+
if (props.onChange !== undefined) editorProps.onChange = props.onChange;
|
|
187
|
+
if (props.onSubmit !== undefined) editorProps.onSubmit = props.onSubmit;
|
|
188
|
+
if (props.onEscape !== undefined) editorProps.onEscape = props.onEscape;
|
|
189
|
+
if (props.width !== undefined) editorProps.width = props.width;
|
|
190
|
+
if (props.maxWidth !== undefined) editorProps.maxWidth = props.maxWidth;
|
|
191
|
+
return _$createComponent(Editor, editorProps);
|
|
192
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.
|
|
1
|
+
{"version":3,"file":"editor.jsx","sourceRoot":"","sources":["../../src/components/editor.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,kBAAkB,EAAiB,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAa,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAuDzD,uCAAuC;AACvC,MAAM,kBA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