react-magma-dom 4.10.0-next.3 → 4.10.0-next.4
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/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/react-magma-dom.cjs.development.js +5 -2
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -5666,7 +5666,7 @@ var IndeterminateCheckboxStatus;
|
|
|
5666
5666
|
IndeterminateCheckboxStatus["indeterminate"] = "indeterminate";
|
|
5667
5667
|
IndeterminateCheckboxStatus["unchecked"] = "unchecked";
|
|
5668
5668
|
})(IndeterminateCheckboxStatus || (IndeterminateCheckboxStatus = {}));
|
|
5669
|
-
var IndeterminateCheckbox = /*#__PURE__*/forwardRef(function (props,
|
|
5669
|
+
var IndeterminateCheckbox = /*#__PURE__*/forwardRef(function (props, _ref) {
|
|
5670
5670
|
var _React$useState = useState(props.status === 'indeterminate' ? false : Boolean(props.status === 'checked')),
|
|
5671
5671
|
isChecked = _React$useState[0],
|
|
5672
5672
|
updateIsChecked = _React$useState[1];
|
|
@@ -5723,7 +5723,10 @@ var IndeterminateCheckbox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5723
5723
|
"data-testid": testId,
|
|
5724
5724
|
disabled: disabled,
|
|
5725
5725
|
id: id,
|
|
5726
|
-
ref: ref
|
|
5726
|
+
ref: function ref(el) {
|
|
5727
|
+
if (el) el.indeterminate = isIndeterminate;
|
|
5728
|
+
if (typeof _ref === 'function') _ref(el);else if (_ref) _ref.current = el;
|
|
5729
|
+
},
|
|
5727
5730
|
type: "checkbox",
|
|
5728
5731
|
onChange: handleChange
|
|
5729
5732
|
})), createElement(StyledLabel$1, {
|