@plasmicpkgs/antd5 0.0.209 → 0.0.210

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/dist/antd.esm.js CHANGED
@@ -8412,6 +8412,8 @@ const AntdTabItem = ({ children }) => {
8412
8412
  };
8413
8413
  function getTabItems(items) {
8414
8414
  var _a, _b, _c;
8415
+ if (!React.isValidElement(items) && Array.isArray(items))
8416
+ return [...items];
8415
8417
  return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : (_c = (_b = items == null ? void 0 : items.props) == null ? void 0 : _b.children) == null ? void 0 : _c.flat(1);
8416
8418
  }
8417
8419
  function getTabItemKeys(items) {
@@ -8462,8 +8464,6 @@ function AntdTabs(props) {
8462
8464
  [animateTabBar, animateTabContent, animated]
8463
8465
  );
8464
8466
  const items = useMemo(() => {
8465
- if (!React.isValidElement(itemsRaw))
8466
- return [];
8467
8467
  const tabItems = getTabItems(itemsRaw);
8468
8468
  return tabItems.map((currentItem) => {
8469
8469
  var _a2;