@s-ui/react-atom-checkbox
Advanced tools
Comparing version 2.16.0 to 2.17.0
# CHANGELOG | ||
# 2.17.0 (2022-04-05) | ||
### Bug Fixes | ||
* **components/atom/checkbox:** resolve linting errors ([0b4d331](https://github.com/SUI-Components/sui-components/commit/0b4d3311706e9cb5b76cdf4717ebfd8edf0775d6)) | ||
# 2.16.0 (2021-10-19) | ||
@@ -4,0 +13,0 @@ |
@@ -7,14 +7,5 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import cx from 'classnames'; | ||
import { BASE_CLASS, CHECKBOX_STATUS, CHECKBOX_SIZES } from './config.js'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { jsxs as _jsxs } from "react/jsx-runtime"; | ||
var BASE_CLASS = 'sui-AtomCheckbox'; | ||
var CHECKBOX_STATUS = { | ||
ERROR: 'error', | ||
SUCCESS: 'success', | ||
ALERT: 'alert' | ||
}; | ||
var CHECKBOX_SIZES = { | ||
SMALL: 'small', | ||
MEDIUM: 'medium' | ||
}; | ||
@@ -35,4 +26,3 @@ var AtomCheckbox = function AtomCheckbox(_ref) { | ||
name = _ref.name, | ||
_ref$onChange = _ref.onChange, | ||
onChangeFromProps = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
onChangeFromProps = _ref.onChange, | ||
status = _ref.status, | ||
@@ -60,3 +50,3 @@ _ref$size = _ref.size, | ||
name = _ev$target.name; | ||
if (!disabled) onChangeFromProps(ev, { | ||
if (!disabled && typeof onChangeFromProps === 'function') onChangeFromProps(ev, { | ||
name: name, | ||
@@ -63,0 +53,0 @@ value: checked |
{ | ||
"name": "@s-ui/react-atom-checkbox", | ||
"version": "2.16.0", | ||
"version": "2.17.0", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"prepare": "npm run build:js && npm run build:styles", | ||
"prepare": "rimraf ./lib && npm run build:js && npm run build:styles", | ||
"build:js": "babel --presets sui ./src --out-dir ./lib", | ||
@@ -9,0 +9,0 @@ "build:styles": "cpx './src/**/*.scss' ./lib" |
Sorry, the diff of this file is not supported yet
24378
9
76