polyfire-js
Advanced tools
Comparing version 0.2.36 to 0.2.37
@@ -122,3 +122,3 @@ "use strict"; | ||
var _this = this; | ||
var _a = props.completionColor, completionColor = _a === void 0 ? "grey" : _a, inputProps = __rest(props, ["completionColor"]); | ||
var _a = props.completionColor, completionColor = _a === void 0 ? "grey" : _a, containerClassName = props.containerClassName, containerStyleProps = props.containerStyle, inputProps = __rest(props, ["completionColor", "containerClassName", "containerStyle"]); | ||
var _b = (0, hooks_1.usePolyfire)(), status = _b.auth.status, generate = _b.models.generate; | ||
@@ -210,3 +210,3 @@ var _c = (0, react_1.useState)(""), prompt = _c[0], setPrompt = _c[1]; | ||
}, [completion]); | ||
return (react_1.default.createElement("div", { style: __assign(__assign({}, containerStyle), props.containerStyle), className: props.containerClassName }, | ||
return (react_1.default.createElement("div", { style: __assign(__assign({}, containerStyle), containerStyleProps), className: containerClassName }, | ||
react_1.default.createElement("input", __assign({}, inputProps, { ref: inputRef, value: prompt, onChange: onChange, onKeyDown: onKeyDown, style: __assign(__assign({}, inputStyle), props.style), className: props.className })), | ||
@@ -213,0 +213,0 @@ react_1.default.createElement("span", { ref: hiddenSizerRef, style: hiddenSizerStyle }), |
{ | ||
"name": "polyfire-js", | ||
"version": "0.2.36", | ||
"version": "0.2.37", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
270374