@s-ui/react-molecule-checkbox-field
Advanced tools
Comparing version
@@ -5,2 +5,16 @@ # Change Log | ||
# 2.4.0 (2020-05-05) | ||
### Bug Fixes | ||
* remove unnecessary CSS for fullWidth ([57cec03](https://github.com/SUI-Components/sui-components/commit/57cec03448d19f4ee07d33eeae14b9451ae25959)) | ||
### Features | ||
* add fullWidth prop ([c40d1d8](https://github.com/SUI-Components/sui-components/commit/c40d1d84414b305d0d747f25d31cf299afcf62e2)) | ||
# 2.3.0 (2020-03-20) | ||
@@ -7,0 +21,0 @@ |
@@ -12,2 +12,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
nodeLabel = _ref.nodeLabel, | ||
fullWidth = _ref.fullWidth, | ||
successText = _ref.successText, | ||
@@ -21,10 +22,11 @@ errorText = _ref.errorText, | ||
toggleIconOnChange = _ref$toggleIconOnChan === void 0 ? function () {} : _ref$toggleIconOnChan, | ||
props = _objectWithoutPropertiesLoose(_ref, ["id", "label", "nodeLabel", "successText", "errorText", "alertText", "helpText", "onChange", "toggleIcon", "toggleIconOnChange"]); | ||
props = _objectWithoutPropertiesLoose(_ref, ["id", "label", "nodeLabel", "fullWidth", "successText", "errorText", "alertText", "helpText", "onChange", "toggleIcon", "toggleIconOnChange"]); | ||
return React.createElement("div", { | ||
return /*#__PURE__*/React.createElement("div", { | ||
className: BASE_CLASS | ||
}, React.createElement(MoleculeField, { | ||
}, /*#__PURE__*/React.createElement(MoleculeField, { | ||
name: id, | ||
label: label, | ||
nodeLabel: nodeLabel, | ||
fullWidth: fullWidth, | ||
successText: successText, | ||
@@ -37,8 +39,8 @@ errorText: errorText, | ||
reverse: true | ||
}, React.createElement(AtomCheckbox, Object.assign({ | ||
}, /*#__PURE__*/React.createElement(AtomCheckbox, Object.assign({ | ||
id: id | ||
}, props)), ToggleIcon && React.createElement("span", { | ||
}, props)), ToggleIcon && /*#__PURE__*/React.createElement("span", { | ||
className: BASE_CLASS + "-toggleIcon", | ||
onClick: toggleIconOnChange | ||
}, React.createElement(ToggleIcon, null)))); | ||
}, /*#__PURE__*/React.createElement(ToggleIcon, null)))); | ||
}; | ||
@@ -45,0 +47,0 @@ |
{ | ||
"name": "@s-ui/react-molecule-checkbox-field", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
14167
3.47%42
5%