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/CheckboxGroupWithTitle/cjs/index.js +3 -2
- package/CheckboxGroupWithTitle/cjs/index.js.map +1 -1
- package/CheckboxGroupWithTitle/index.js +3 -2
- package/CheckboxGroupWithTitle/index.js.map +1 -1
- package/CheckboxWithController/cjs/index.js +3 -2
- package/CheckboxWithController/cjs/index.js.map +1 -1
- package/CheckboxWithController/index.js +3 -2
- package/CheckboxWithController/index.js.map +1 -1
- package/cjs/index.js +3 -2
- package/cjs/index.js.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
1614
|
-
|
|
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
|
} }));
|