jfs-components 0.0.60 → 0.0.61
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/lib/commonjs/components/ListGroup/ListGroup.js +2 -1
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/ListGroup/ListGroup.js +2 -1
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/ListGroup/ListGroup.tsx +3 -2
- package/src/icons/registry.ts +1 -1
|
@@ -84,7 +84,8 @@ function ListGroup({
|
|
|
84
84
|
// propagate modes. Both props are interchangeable; when both are provided
|
|
85
85
|
// the slot items render first, followed by children.
|
|
86
86
|
const rawItems = [...(listGroupSlot ? (0, _reactUtils.flattenChildren)(listGroupSlot) : []), ...(children ? (0, _reactUtils.flattenChildren)(children) : [])];
|
|
87
|
-
const
|
|
87
|
+
const keyedItems = _react.default.Children.toArray(rawItems);
|
|
88
|
+
const processedSlot = keyedItems.length > 0 ? (0, _reactUtils.cloneChildrenWithModes)(keyedItems, modes) : null;
|
|
88
89
|
|
|
89
90
|
// Use provided accessibilityLabel or fall back to label
|
|
90
91
|
const defaultAccessibilityLabel = accessibilityLabel || label || "List group";
|