@s-ui/react-atom-input
Advanced tools
Comparing version 5.6.0 to 5.7.0
# CHANGELOG | ||
# 5.7.0 (2021-10-10) | ||
### Features | ||
* **components/atom/input:** add the shape prop ([8dd70ba](https://github.com/SUI-Components/sui-components/commit/8dd70ba2f7c3cc60004748ba6d911ed951b56eaa)) | ||
# 5.6.0 (2021-09-29) | ||
@@ -4,0 +13,0 @@ |
@@ -38,4 +38,5 @@ import cx from 'classnames'; | ||
errorState = _ref.errorState, | ||
state = _ref.state; | ||
return cx(BASE_CLASS, BASE_CLASS + "-" + size, charsSize && BASE_CLASS + "--size", hideInput && BASE_CLASS + "--hidden", noBorder && BASE_CLASS + "--noBorder", readOnly && BASE_CLASS + "--readOnly", errorState && BASE_CLASS + "--" + INPUT_STATES.ERROR, errorState === false && BASE_CLASS + "--" + INPUT_STATES.SUCCESS, state && BASE_CLASS + "--" + state); | ||
state = _ref.state, | ||
shape = _ref.shape; | ||
return cx(BASE_CLASS, BASE_CLASS + "-" + size, charsSize && BASE_CLASS + "--size", hideInput && BASE_CLASS + "--hidden", noBorder && BASE_CLASS + "--noBorder", readOnly && BASE_CLASS + "--readOnly", errorState && BASE_CLASS + "--" + INPUT_STATES.ERROR, errorState === false && BASE_CLASS + "--" + INPUT_STATES.SUCCESS, state && BASE_CLASS + "--" + state, shape && BASE_CLASS + "--" + shape); | ||
}; |
@@ -45,3 +45,5 @@ import { forwardRef } from 'react'; | ||
pattern = _ref.pattern, | ||
inputMode = _ref.inputMode; | ||
inputMode = _ref.inputMode, | ||
_ref$shape = _ref.shape, | ||
shape = _ref$shape === void 0 ? 'rounded' : _ref$shape; | ||
@@ -80,3 +82,4 @@ var changeHandler = function changeHandler(ev) { | ||
errorState: errorState, | ||
state: state | ||
state: state, | ||
shape: shape | ||
}); | ||
@@ -83,0 +86,0 @@ return /*#__PURE__*/_jsx("input", { |
{ | ||
"name": "@s-ui/react-atom-input", | ||
"version": "5.6.0", | ||
"version": "5.7.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
53319
411