@jetbrains/ring-ui 6.0.58 → 6.0.59

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.
@@ -1,8 +1,9 @@
1
1
  import classNames from 'classnames';
2
- import { Children, Fragment } from 'react';
2
+ import { Fragment } from 'react';
3
+ import flattenChildren from 'react-keyed-flatten-children';
3
4
  import styles from './breadcrumbs.css';
4
5
  export default function Breadcrumbs({ separatorClassName, children }) {
5
- return Children.toArray(children).map((child, index) => (
6
+ return flattenChildren(children).map((child, index) => (
6
7
  // eslint-disable-next-line react/no-array-index-key
7
8
  <Fragment key={index}>
8
9
  {index > 0 && <span className={classNames(styles.separator, separatorClassName)}>{'/'}</span>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "6.0.58",
3
+ "version": "6.0.59",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -234,6 +234,7 @@
234
234
  "postcss-modules-values-replace": "^4.2.0",
235
235
  "postcss-preset-env": "^9.6.0",
236
236
  "prop-types": "^15.8.1",
237
+ "react-keyed-flatten-children": "^3.0.2",
237
238
  "react-movable": "^3.3.1",
238
239
  "react-virtualized": "^9.22.5",
239
240
  "react-waypoint": "^10.3.0",