@algolia/satellite 1.1.1 → 1.1.2

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.
@@ -79,6 +79,7 @@ var RadioGroupItem = exports.RadioGroupItem = function RadioGroupItem(_ref) {
79
79
  function applyChildIndexRecursively(children) {
80
80
  return _react.Children.map(children, function (child, index) {
81
81
  var _child$props;
82
+ if (! /*#__PURE__*/(0, _react.isValidElement)(child)) return child;
82
83
  if (child.type === RadioGroupItem) {
83
84
  return /*#__PURE__*/(0, _react.cloneElement)(child, {
84
85
  childIndex: index
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
4
4
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
5
5
  var _excluded = ["value", "disabled", "required", "children"];
6
6
  import cx from "clsx";
7
- import { Children, cloneElement, forwardRef, useMemo, useState } from "react";
7
+ import { Children, cloneElement, forwardRef, isValidElement, useMemo, useState } from "react";
8
8
  import { Card } from "../../Layout";
9
9
  import stl from "../../styles/helpers/satellitePrefixer";
10
10
  import { uniqueId } from "../../utils/uniqueId";
@@ -73,6 +73,7 @@ export var RadioGroupItem = function RadioGroupItem(_ref) {
73
73
  function applyChildIndexRecursively(children) {
74
74
  return Children.map(children, function (child, index) {
75
75
  var _child$props;
76
+ if (! /*#__PURE__*/isValidElement(child)) return child;
76
77
  if (child.type === RadioGroupItem) {
77
78
  return /*#__PURE__*/cloneElement(child, {
78
79
  childIndex: index
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Algolia design system React components",
5
5
  "sideEffects": false,
6
6
  "scripts": {