@macive/ui 0.0.20 → 0.0.21

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.
@@ -16,7 +16,9 @@ function Section({ section, hasMultipleSections, isFirst, actionRole, onActionAn
16
16
  }
17
17
  };
18
18
  };
19
- const actionMarkup = section.items.map(({ content, helpText, onAction, ...item }, index) => {
19
+ //@ts-expect-error key prop
20
+ const actionMarkup = section.items.map(({ content, helpText, onAction, key, ...item }, index) => {
21
+ // Explicitly exclude `key` from being spread into Item
20
22
  return ((0, jsx_runtime_1.jsx)("li", { role: actionRole === 'menuitem' ? 'presentation' : undefined, children: (0, jsx_runtime_1.jsx)(Item_1.Item, { content: content, helpText: helpText, role: actionRole, onAction: handleAction(onAction), ...item }) }, `${content}-${index}`));
21
23
  });
22
24
  let titleMarkup = null;