@frui.ts/htmlcontrols
Advanced tools
Comparing version 0.16.0-beta.2 to 0.16.0-beta.3
import { BindingProperty } from "@frui.ts/helpers"; | ||
import { IBindingProps } from "@frui.ts/views"; | ||
import React from "react"; | ||
declare type TextboxProps<TTarget, TProperty extends BindingProperty<TTarget>> = IBindingProps<TTarget, TProperty> & React.InputHTMLAttributes<HTMLInputElement>; | ||
declare type TextboxProps<TTarget, TProperty extends BindingProperty<TTarget>> = IBindingProps<TTarget, TProperty, string> & React.InputHTMLAttributes<HTMLInputElement>; | ||
declare function textbox<TTarget, TProperty extends BindingProperty<TTarget>>(props: TextboxProps<TTarget, TProperty>): JSX.Element; | ||
declare const Textbox: typeof textbox; | ||
export default Textbox; |
@@ -26,3 +26,3 @@ "use strict"; | ||
function textbox(props) { | ||
var _a = __read(views_1.useBinding(props.target, props.property), 2), value = _a[0], setValue = _a[1]; | ||
var _a = __read(views_1.useBinding(props), 2), value = _a[0], setValue = _a[1]; | ||
var handleValueChanged = function (e) { return setValue(e.target.value); }; | ||
@@ -29,0 +29,0 @@ return react_1.default.createElement("input", { type: "text", value: value || "", onChange: handleValueChanged }); |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.16.0-beta.2", | ||
"version": "0.16.0-beta.3", | ||
"description": "Plain HTML controls ready for Frui.ts integration", | ||
@@ -42,4 +42,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@frui.ts/helpers": "^0.16.0-beta.2", | ||
"@frui.ts/views": "^0.16.0-beta.2", | ||
"@frui.ts/helpers": "^0.16.0-beta.3", | ||
"@frui.ts/views": "^0.16.0-beta.3", | ||
"mobx-react-lite": "^1.5.2" | ||
@@ -50,3 +50,3 @@ }, | ||
}, | ||
"gitHead": "769c12e8d1bb8625dc1482fbae7185f6b5e123b1" | ||
"gitHead": "467e9c7dae871601a3451aa26091703433d2d8cb" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18992