@parallelworks/ui 0.24.0 → 0.24.1

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.
@@ -76,7 +76,11 @@ function ListRow({ href, onActivate, items, goTo, openMenu, pinnedActions, selec
76
76
  const { active: menuActive, openMenu: openRowMenu } = useRowMenuActive(openMenu);
77
77
  const { show: showActions, always: alwaysShowActions, columnClasses, columnStacks } = useContext(RowActionsContext);
78
78
  const cells = Children.toArray(children);
79
- const stacked = cells.flatMap((child, i) => i > 0 && columnStacks[i] && isValidElement(child) ? [child.props.children] : []);
79
+ const stacked = cells.flatMap((child, i) => {
80
+ if (i === 0 || !columnStacks[i] || !isValidElement(child)) return [];
81
+ const content = child.props.children;
82
+ return Children.toArray(content).length > 0 ? [content] : [];
83
+ });
80
84
  const styledCells = cells.map((child, i) => {
81
85
  const cls = columnClasses[i];
82
86
  if (!isValidElement(child) || !cls && !(i === 0 && stacked.length > 0)) return child;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/ui",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "React UI components: a theme contract, icons, primitives, lists, forms, a job graph, a code editor, a log viewer, a file explorer and an AI chat, each on its own subpath",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {