@tenon-io/tenon-ui
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## [1.0.1] 2018-11-20 | ||
### Bugfix | ||
- Fixed issue where adding a user onChange handler caused the bindings to break. | ||
## [1.0.0] 2018-11-12 | ||
### Release | ||
- Created initial component library release. |
@@ -243,2 +243,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
* props to configure the input. | ||
* @param {SyntheticEvent} onChange - Custome user onChange | ||
* event handler. | ||
* | ||
@@ -469,6 +471,3 @@ * @returns {object} | ||
this.getBaseInputProps = function (_ref2) { | ||
var onChange = _ref2.onChange, | ||
props = _objectWithoutProperties(_ref2, ['onChange']); | ||
this.getBaseInputProps = function (props, onChange) { | ||
var _props7 = _this2.props, | ||
@@ -494,3 +493,7 @@ name = _props7.name, | ||
this.getInputProps = function () { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var onChange = _ref2.onChange, | ||
props = _objectWithoutProperties(_ref2, ['onChange']); | ||
var _props8 = _this2.props, | ||
@@ -501,3 +504,3 @@ name = _props8.name, | ||
return _extends({}, _this2.getBaseInputProps(props), { | ||
return _extends({}, _this2.getBaseInputProps(props, onChange), { | ||
'aria-readonly': props['readOnly'] ? 'true' : null, | ||
@@ -530,3 +533,7 @@ type: 'text', | ||
this.getCheckboxProps = function () { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var onChange = _ref3.onChange, | ||
props = _objectWithoutProperties(_ref3, ['onChange']); | ||
var _props9 = _this2.props, | ||
@@ -537,3 +544,3 @@ name = _props9.name, | ||
return _extends({}, _this2.getBaseInputProps(props), { | ||
return _extends({}, _this2.getBaseInputProps(props, onChange), { | ||
type: 'checkbox', | ||
@@ -544,7 +551,7 @@ checked: getControlValue(name) | ||
this.getGroupCheckboxProps = function (_ref3) { | ||
var onChange = _ref3.onChange, | ||
name = _ref3.name, | ||
focusElement = _ref3.focusElement, | ||
props = _objectWithoutProperties(_ref3, ['onChange', 'name', 'focusElement']); | ||
this.getGroupCheckboxProps = function (_ref4) { | ||
var onChange = _ref4.onChange, | ||
name = _ref4.name, | ||
focusElement = _ref4.focusElement, | ||
props = _objectWithoutProperties(_ref4, ['onChange', 'name', 'focusElement']); | ||
@@ -565,7 +572,7 @@ var _props10 = _this2.props, | ||
this.getRadioButtonProps = function (_ref4) { | ||
var value = _ref4.value, | ||
onChange = _ref4.onChange, | ||
focusElement = _ref4.focusElement, | ||
props = _objectWithoutProperties(_ref4, ['value', 'onChange', 'focusElement']); | ||
this.getRadioButtonProps = function (_ref5) { | ||
var value = _ref5.value, | ||
onChange = _ref5.onChange, | ||
focusElement = _ref5.focusElement, | ||
props = _objectWithoutProperties(_ref5, ['value', 'onChange', 'focusElement']); | ||
@@ -572,0 +579,0 @@ var _props11 = _this2.props, |
@@ -265,2 +265,4 @@ 'use strict'; | ||
* props to configure the input. | ||
* @param {SyntheticEvent} onChange - Custome user onChange | ||
* event handler. | ||
* | ||
@@ -491,6 +493,3 @@ * @returns {object} | ||
this.getBaseInputProps = function (_ref2) { | ||
var onChange = _ref2.onChange, | ||
props = _objectWithoutProperties(_ref2, ['onChange']); | ||
this.getBaseInputProps = function (props, onChange) { | ||
var _props7 = _this2.props, | ||
@@ -516,3 +515,7 @@ name = _props7.name, | ||
this.getInputProps = function () { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var onChange = _ref2.onChange, | ||
props = _objectWithoutProperties(_ref2, ['onChange']); | ||
var _props8 = _this2.props, | ||
@@ -523,3 +526,3 @@ name = _props8.name, | ||
return _extends({}, _this2.getBaseInputProps(props), { | ||
return _extends({}, _this2.getBaseInputProps(props, onChange), { | ||
'aria-readonly': props['readOnly'] ? 'true' : null, | ||
@@ -552,3 +555,7 @@ type: 'text', | ||
this.getCheckboxProps = function () { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var onChange = _ref3.onChange, | ||
props = _objectWithoutProperties(_ref3, ['onChange']); | ||
var _props9 = _this2.props, | ||
@@ -559,3 +566,3 @@ name = _props9.name, | ||
return _extends({}, _this2.getBaseInputProps(props), { | ||
return _extends({}, _this2.getBaseInputProps(props, onChange), { | ||
type: 'checkbox', | ||
@@ -566,7 +573,7 @@ checked: getControlValue(name) | ||
this.getGroupCheckboxProps = function (_ref3) { | ||
var onChange = _ref3.onChange, | ||
name = _ref3.name, | ||
focusElement = _ref3.focusElement, | ||
props = _objectWithoutProperties(_ref3, ['onChange', 'name', 'focusElement']); | ||
this.getGroupCheckboxProps = function (_ref4) { | ||
var onChange = _ref4.onChange, | ||
name = _ref4.name, | ||
focusElement = _ref4.focusElement, | ||
props = _objectWithoutProperties(_ref4, ['onChange', 'name', 'focusElement']); | ||
@@ -587,7 +594,7 @@ var _props10 = _this2.props, | ||
this.getRadioButtonProps = function (_ref4) { | ||
var value = _ref4.value, | ||
onChange = _ref4.onChange, | ||
focusElement = _ref4.focusElement, | ||
props = _objectWithoutProperties(_ref4, ['value', 'onChange', 'focusElement']); | ||
this.getRadioButtonProps = function (_ref5) { | ||
var value = _ref5.value, | ||
onChange = _ref5.onChange, | ||
focusElement = _ref5.focusElement, | ||
props = _objectWithoutProperties(_ref5, ['value', 'onChange', 'focusElement']); | ||
@@ -594,0 +601,0 @@ var _props11 = _this2.props, |
{ | ||
"name": "@tenon-io/tenon-ui", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Tenon-ui components library", | ||
@@ -39,3 +39,3 @@ "contributors": [ | ||
"format-demo": "prettier --write demo/**/*.js !demo/dist/**", | ||
"format-www": "prettier --write www/**/*.js !www/.cache/** !www/public/**", | ||
"format-www": "prettier --write www/**/*.{js,mdx} !www/.cache/** !www/public/**", | ||
"format": "npm-run-all format-src format-demo format-www", | ||
@@ -76,6 +76,6 @@ "lint": "eslint *.js src", | ||
"nwb": "0.22.0", | ||
"prettier": "1.14.2", | ||
"prettier": "1.15.2", | ||
"prop-types": "15.6.2", | ||
"react": "16.6.0", | ||
"react-dom": "16.6.0", | ||
"react": "16.6.3", | ||
"react-dom": "16.6.3", | ||
"react-i18next": "7.10.1", | ||
@@ -82,0 +82,0 @@ "react-loadable": "5.5.0", |
@@ -1,3 +0,3 @@ | ||
<p align="center"> | ||
<a href="https://ui.tenon.io/"> | ||
<p> | ||
<a href="https://www.tenon-ui.info"> | ||
<img alt="Tenon-UI" src="./logo.png" style="width: 11em;"> | ||
@@ -14,3 +14,3 @@ </a> | ||
This is the home of [https://www.tenon.io](Tenon.io)'s the accessible React component library. | ||
This is the home of [Tenon.io](https://www.tenon.io)'s accessible React component library. | ||
@@ -17,0 +17,0 @@ ## Documentation |
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
382840
9305