@appquality/unguess-design-system 2.10.11 → 2.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v2.10.12 (Thu May 05 2022)
2
+
3
+ #### ⚠️ Pushed to `master`
4
+
5
+ - fix(checkbox-card): fix toggle callback ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ ---
12
+
1
13
  # v2.10.11 (Thu May 05 2022)
2
14
 
3
15
  #### ⚠️ Pushed to `master`
package/build/index.js CHANGED
@@ -1154,7 +1154,7 @@ var CheckboxCard = function (props) {
1154
1154
  var _a = React.useState(props.defaultChecked || false), checked = _a[0], setChecked = _a[1];
1155
1155
  var handleToggle = function () {
1156
1156
  setChecked(!checked);
1157
- props.onToggle && props.onToggle(checked);
1157
+ props.onToggle && props.onToggle(!checked);
1158
1158
  };
1159
1159
  return (jsxRuntime.jsxs(StyledCard$1, __assign({}, props.card, props, props && !props.disabled && { onClick: handleToggle }, { className: checked ? "card-active" : "" }, { children: [jsxRuntime.jsx(IconWrapper$1, { children: (props.iconActive && checked) ? props.iconActive : props.icon }), jsxRuntime.jsx(LabelWrapper, { children: props.label }), jsxRuntime.jsx(Checkbox, __assign({}, props, { checked: checked, value: checked ? 1 : 0, onClick: function (e) { return e.stopPropagation(); } }, { children: jsxRuntime.jsx(StyledLabel, __assign({ hidden: true }, { children: props.label })) }))] })));
1160
1160
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.10.11",
3
+ "version": "2.10.12",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
6
  "@zendeskgarden/react-accordions": "^8.49.0",