@shopify/react-form-state
Advanced tools
Comparing version 0.1.7 to 0.1.9
@@ -1,2 +0,2 @@ | ||
import React, { InputHTMLAttributes } from 'react'; | ||
import * as React from 'react'; | ||
export interface Props { | ||
@@ -6,4 +6,4 @@ onChange?(value: string): void; | ||
} | ||
export default class Input extends React.PureComponent<Props & InputHTMLAttributes<any>, never> { | ||
export default class Input extends React.PureComponent<Props & React.InputHTMLAttributes<any>, never> { | ||
render(): JSX.Element; | ||
} |
@@ -29,7 +29,11 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var React = __importStar(require("react")); | ||
// eslint-disable-next-line react/prefer-stateless-function | ||
@@ -44,3 +48,3 @@ var Input = /** @class */ (function (_super) { | ||
onRender && onRender(); | ||
return (react_1.default.createElement("input", __assign({ | ||
return (React.createElement("input", __assign({ | ||
// eslint-disable-next-line react/jsx-no-bind | ||
@@ -53,3 +57,3 @@ onChange: function (_a) { | ||
return Input; | ||
}(react_1.default.PureComponent)); | ||
}(React.PureComponent)); | ||
exports.default = Input; |
@@ -1,2 +0,2 @@ | ||
import React, { InputHTMLAttributes } from 'react'; | ||
import * as React from 'react'; | ||
import { FieldState } from '../../types'; | ||
@@ -7,4 +7,4 @@ export interface Props { | ||
} | ||
export default class Input extends React.PureComponent<Props & InputHTMLAttributes<any>, never> { | ||
export default class Input extends React.PureComponent<Props & React.InputHTMLAttributes<any>, never> { | ||
render(): JSX.Element; | ||
} |
@@ -20,7 +20,11 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var React = __importStar(require("react")); | ||
// eslint-disable-next-line react/prefer-stateless-function | ||
@@ -35,6 +39,6 @@ var Input = /** @class */ (function (_super) { | ||
onRender && onRender(); | ||
return (react_1.default.createElement("input", __assign({}, field))); | ||
return (React.createElement("input", __assign({}, field))); | ||
}; | ||
return Input; | ||
}(react_1.default.PureComponent)); | ||
}(React.PureComponent)); | ||
exports.default = Input; |
{ | ||
"name": "@shopify/react-form-state", | ||
"version": "0.1.7", | ||
"version": "0.1.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Manage react forms tersely and type-safe with no magic.", |
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
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
133052
2723
1164