@jetbrains/ring-ui 6.0.59 → 6.0.60

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,9 +1,8 @@
1
1
  import classNames from 'classnames';
2
- import { Fragment } from 'react';
3
- import flattenChildren from 'react-keyed-flatten-children';
2
+ import { Children, Fragment } from 'react';
4
3
  import styles from './breadcrumbs.css';
5
4
  export default function Breadcrumbs({ separatorClassName, children }) {
6
- return flattenChildren(children).map((child, index) => (
5
+ return Children.toArray(children).map((child, index) => (
7
6
  // eslint-disable-next-line react/no-array-index-key
8
7
  <Fragment key={index}>
9
8
  {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.59",
3
+ "version": "6.0.60",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -234,7 +234,6 @@
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",
238
237
  "react-movable": "^3.3.1",
239
238
  "react-virtualized": "^9.22.5",
240
239
  "react-waypoint": "^10.3.0",