@opentui/solid 0.1.29 → 0.1.31

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/index.js CHANGED
@@ -594,6 +594,8 @@ var {
594
594
  if (prev) {
595
595
  node.off(InputRenderableEvents.ENTER, prev);
596
596
  }
597
+ } else {
598
+ node[name] = value;
597
599
  }
598
600
  break;
599
601
  case "onSelect":
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.29",
7
+ "version": "0.1.31",
8
8
  "description": "SolidJS renderer for OpenTUI",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@babel/core": "7.28.0",
29
29
  "@babel/preset-typescript": "7.27.1",
30
- "@opentui/core": "0.1.29",
30
+ "@opentui/core": "0.1.31",
31
31
  "babel-plugin-module-resolver": "5.0.2",
32
32
  "babel-preset-solid": "1.9.9",
33
33
  "s-js": "^0.4.9"
@@ -1,4 +1,4 @@
1
- import type { ASCIIFontOptions, ASCIIFontRenderable, BaseRenderable, BoxOptions, BoxRenderable, CodeOptions, CodeRenderable, InputRenderable, InputRenderableOptions, RenderableOptions, RenderContext, ScrollBoxOptions, ScrollBoxRenderable, SelectOption, SelectRenderable, SelectRenderableOptions, TabSelectOption, TabSelectRenderable, TabSelectRenderableOptions, TextNodeRenderable, TextOptions, TextRenderable } from "@opentui/core";
1
+ import type { ASCIIFontOptions, ASCIIFontRenderable, BaseRenderable, BoxOptions, BoxRenderable, CodeOptions, CodeRenderable, InputRenderable, InputRenderableOptions, RenderableOptions, RenderContext, ScrollBoxOptions, ScrollBoxRenderable, SelectOption, SelectRenderable, SelectRenderableOptions, TabSelectOption, TabSelectRenderable, TabSelectRenderableOptions, TextareaOptions, TextareaRenderable, TextNodeRenderable, TextOptions, TextRenderable } from "@opentui/core";
2
2
  import type { Ref } from "solid-js";
3
3
  import type { JSX } from "../../jsx-runtime";
4
4
  /** Properties that should not be included in the style prop */
@@ -38,6 +38,17 @@ export type InputProps = ComponentProps<InputRenderableOptions, InputRenderable>
38
38
  onChange?: (value: string) => void;
39
39
  onSubmit?: (value: string) => void;
40
40
  };
41
+ export type TextareaProps = ComponentProps<TextareaOptions, TextareaRenderable> & {
42
+ focused?: boolean;
43
+ onSubmit?: () => void;
44
+ onContentChange?: (value: string) => void;
45
+ onCursorChange?: (value: {
46
+ line: number;
47
+ visualColumn: number;
48
+ }) => void;
49
+ onKeyDown?: (event: KeyboardEvent) => void;
50
+ onKeyPress?: (event: KeyboardEvent) => void;
51
+ };
41
52
  export type SelectProps = ComponentProps<SelectRenderableOptions, SelectRenderable> & {
42
53
  focused?: boolean;
43
54
  onChange?: (index: number, option: SelectOption | null) => void;