Comparing version 1.9.0 to 1.10.0
@@ -5,2 +5,3 @@ import React, { ChangeEventHandler, FocusEventHandler } from 'react'; | ||
value?: string; | ||
defaultValue?: string; | ||
onChange?: ChangeEventHandler<HTMLInputElement>; | ||
@@ -15,2 +16,3 @@ onBlur?: FocusEventHandler<HTMLInputElement>; | ||
isInvalid?: boolean; | ||
isDisabled?: boolean; | ||
} | ||
@@ -17,0 +19,0 @@ declare const Input: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>; |
@@ -12,9 +12,9 @@ "use strict"; | ||
var _b; | ||
var name = _a.name, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, placeholder = _a.placeholder, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.isInvalid, isInvalid = _d === void 0 ? false : _d, _e = _a.spellCheck, spellCheck = _e === void 0 ? false : _e, _f = _a.autoComplete, autoComplete = _f === void 0 ? false : _f, maxLength = _a.maxLength, className = _a.className; | ||
var name = _a.name, value = _a.value, defaultValue = _a.defaultValue, onChange = _a.onChange, onBlur = _a.onBlur, placeholder = _a.placeholder, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.isInvalid, isInvalid = _d === void 0 ? false : _d, _e = _a.spellCheck, spellCheck = _e === void 0 ? false : _e, _f = _a.autoComplete, autoComplete = _f === void 0 ? false : _f, _g = _a.isDisabled, isDisabled = _g === void 0 ? false : _g, maxLength = _a.maxLength, className = _a.className; | ||
var inputClassNames = classnames_1.default(css_reset_module_css_1.default.ventura, Input_module_css_1.default.input, (_b = {}, | ||
_b[Input_module_css_1.default.containsError] = Boolean(isInvalid), | ||
_b[Input_module_css_1.default.containsError] = isInvalid, | ||
_b), className); | ||
return (react_1.default.createElement("input", { name: name, value: value, onChange: onChange, placeholder: placeholder, type: type, spellCheck: spellCheck, autoComplete: autoComplete ? 'on' : 'off', maxLength: maxLength, ref: ref, className: inputClassNames, "data-testid": name && "input-" + name, onBlur: onBlur })); | ||
return (react_1.default.createElement("input", { name: name, value: value, defaultValue: defaultValue, onChange: onChange, placeholder: placeholder, type: type, spellCheck: spellCheck, autoComplete: autoComplete ? 'on' : 'off', maxLength: maxLength, ref: ref, className: inputClassNames, "data-testid": name && "input-" + name, onBlur: onBlur, disabled: isDisabled })); | ||
}); | ||
exports.default = Input; | ||
//# sourceMappingURL=Input.js.map |
{ | ||
"name": "ventura", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"repository": "git@github.com:kodiak-packages/ventura.git", | ||
@@ -29,3 +29,3 @@ "author": "Kodiak", | ||
"@semantic-release/git": "^9.0.0", | ||
"@testing-library/dom": "^7.21.7", | ||
"@testing-library/dom": "^7.26.3", | ||
"@testing-library/jest-dom": "^5.11.2", | ||
@@ -35,3 +35,3 @@ "@testing-library/react": "^10.4.8", | ||
"@types/classnames": "^2.2.10", | ||
"@types/jest": "^25.2.1", | ||
"@types/jest": "^26.0.15", | ||
"@types/react": "^16.9.46", | ||
@@ -52,3 +52,3 @@ "@types/react-dom": "^16.9.8", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-react": "^7.20.5", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-react-hooks": "^2.3.0", | ||
@@ -55,0 +55,0 @@ "eslint-plugin-simple-import-sort": "^5.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
85179
1294