@opentui/core 0.1.8 → 0.1.9
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/Renderable.d.ts +1 -3
- package/buffer.d.ts +1 -0
- package/index.js +256 -196
- package/index.js.map +14 -13
- package/lib/TrackedNode.d.ts +1 -0
- package/package.json +7 -7
- package/renderables/Box.d.ts +4 -1
- package/renderables/Input.d.ts +2 -0
- package/renderables/TabSelect.d.ts +32 -21
- package/renderer.d.ts +1 -0
- package/singleton.d.ts +5 -0
package/lib/TrackedNode.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.9",
|
|
8
8
|
"description": "OpenTUI is a TypeScript library for building terminal user interfaces (TUIs)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"bun-webgpu": "0.1.3",
|
|
39
39
|
"planck": "^1.4.2",
|
|
40
40
|
"three": "0.177.0",
|
|
41
|
-
"@opentui/core-darwin-x64": "0.1.
|
|
42
|
-
"@opentui/core-darwin-arm64": "0.1.
|
|
43
|
-
"@opentui/core-linux-x64": "0.1.
|
|
44
|
-
"@opentui/core-linux-arm64": "0.1.
|
|
45
|
-
"@opentui/core-win32-x64": "0.1.
|
|
46
|
-
"@opentui/core-win32-arm64": "0.1.
|
|
41
|
+
"@opentui/core-darwin-x64": "0.1.9",
|
|
42
|
+
"@opentui/core-darwin-arm64": "0.1.9",
|
|
43
|
+
"@opentui/core-linux-x64": "0.1.9",
|
|
44
|
+
"@opentui/core-linux-arm64": "0.1.9",
|
|
45
|
+
"@opentui/core-win32-x64": "0.1.9",
|
|
46
|
+
"@opentui/core-win32-arm64": "0.1.9"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/renderables/Box.d.ts
CHANGED
|
@@ -19,12 +19,15 @@ export declare class BoxRenderable extends Renderable {
|
|
|
19
19
|
protected _borderStyle: BorderStyle;
|
|
20
20
|
protected _borderColor: RGBA;
|
|
21
21
|
protected _focusedBorderColor: RGBA;
|
|
22
|
-
|
|
22
|
+
private _customBorderCharsObj;
|
|
23
|
+
protected _customBorderChars?: Uint32Array;
|
|
23
24
|
protected borderSides: BorderSidesConfig;
|
|
24
25
|
shouldFill: boolean;
|
|
25
26
|
protected _title?: string;
|
|
26
27
|
protected _titleAlignment: "left" | "center" | "right";
|
|
27
28
|
constructor(id: string, options: BoxOptions);
|
|
29
|
+
get customBorderChars(): BorderCharacters | undefined;
|
|
30
|
+
set customBorderChars(value: BorderCharacters | undefined);
|
|
28
31
|
get backgroundColor(): RGBA;
|
|
29
32
|
set backgroundColor(value: RGBA | string | undefined);
|
|
30
33
|
get border(): boolean | BorderSides[];
|
package/renderables/Input.d.ts
CHANGED
|
@@ -51,5 +51,7 @@ export declare class InputRenderable extends Renderable {
|
|
|
51
51
|
set focusedTextColor(color: ColorInput);
|
|
52
52
|
set placeholderColor(color: ColorInput);
|
|
53
53
|
set cursorColor(color: ColorInput);
|
|
54
|
+
updateFromLayout(): void;
|
|
55
|
+
protected onResize(width: number, height: number): void;
|
|
54
56
|
protected destroySelf(): void;
|
|
55
57
|
}
|
|
@@ -29,22 +29,22 @@ export declare enum TabSelectRenderableEvents {
|
|
|
29
29
|
}
|
|
30
30
|
export declare class TabSelectRenderable extends Renderable {
|
|
31
31
|
protected focusable: boolean;
|
|
32
|
-
private
|
|
32
|
+
private _options;
|
|
33
33
|
private selectedIndex;
|
|
34
34
|
private scrollOffset;
|
|
35
|
-
private
|
|
35
|
+
private _tabWidth;
|
|
36
36
|
private maxVisibleTabs;
|
|
37
|
-
private
|
|
38
|
-
private
|
|
39
|
-
private
|
|
40
|
-
private
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
private
|
|
37
|
+
private _backgroundColor;
|
|
38
|
+
private _textColor;
|
|
39
|
+
private _focusedBackgroundColor;
|
|
40
|
+
private _focusedTextColor;
|
|
41
|
+
private _selectedBackgroundColor;
|
|
42
|
+
private _selectedTextColor;
|
|
43
|
+
private _selectedDescriptionColor;
|
|
44
|
+
private _showScrollArrows;
|
|
45
|
+
private _showDescription;
|
|
46
|
+
private _showUnderline;
|
|
47
|
+
private _wrapSelection;
|
|
48
48
|
constructor(id: string, options: TabSelectRenderableOptions);
|
|
49
49
|
private calculateDynamicHeight;
|
|
50
50
|
protected renderSelf(buffer: OptimizedBuffer, deltaTime: number): void;
|
|
@@ -63,12 +63,23 @@ export declare class TabSelectRenderable extends Renderable {
|
|
|
63
63
|
setTabWidth(tabWidth: number): void;
|
|
64
64
|
getTabWidth(): number;
|
|
65
65
|
handleKeyPress(key: ParsedKey | string): boolean;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
get options(): TabSelectOption[];
|
|
67
|
+
set options(options: TabSelectOption[]);
|
|
68
|
+
set backgroundColor(color: ColorInput);
|
|
69
|
+
set textColor(color: ColorInput);
|
|
70
|
+
set focusedBackgroundColor(color: ColorInput);
|
|
71
|
+
set focusedTextColor(color: ColorInput);
|
|
72
|
+
set selectedBackgroundColor(color: ColorInput);
|
|
73
|
+
set selectedTextColor(color: ColorInput);
|
|
74
|
+
set selectedDescriptionColor(color: ColorInput);
|
|
75
|
+
get showDescription(): boolean;
|
|
76
|
+
set showDescription(show: boolean);
|
|
77
|
+
get showUnderline(): boolean;
|
|
78
|
+
set showUnderline(show: boolean);
|
|
79
|
+
get showScrollArrows(): boolean;
|
|
80
|
+
set showScrollArrows(show: boolean);
|
|
81
|
+
get wrapSelection(): boolean;
|
|
82
|
+
set wrapSelection(wrap: boolean);
|
|
83
|
+
get tabWidth(): number;
|
|
84
|
+
set tabWidth(tabWidth: number);
|
|
74
85
|
}
|
package/renderer.d.ts
CHANGED