kui-complex 0.0.125 → 0.0.126

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/index.js CHANGED
@@ -1610,8 +1610,9 @@ var CheckboxWithController = forwardRef(function (props, ref) {
1610
1610
  }
1611
1611
  };
1612
1612
  return (jsx(Controller, { control: form.control, name: String(name), render: function (_a) {
1613
- var field = _a.field;
1614
- return (jsx(Checkbox, __assign({}, inputProps, field, { checked: field.value || "", onChange: function (e) {
1613
+ var _b;
1614
+ var field = _a.field, fieldState = _a.fieldState;
1615
+ return (jsx(Checkbox, __assign({}, inputProps, field, { error: (_b = fieldState.error) === null || _b === void 0 ? void 0 : _b.message, checked: field.value || "", onChange: function (e) {
1615
1616
  return handleChange(e, field);
1616
1617
  }, label: typeof label === "string" ? (jsx(Caption, __assign({}, labelProps, { children: label }))) : (label) })));
1617
1618
  } }));