@plasmicpkgs/antd5 0.0.208 → 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
@@ -8411,8 +8411,10 @@ const AntdTabItem = ({ children }) => {
8411
8411
  return /* @__PURE__ */ React.createElement("div", null, children);
8412
8412
  };
8413
8413
  function getTabItems(items) {
8414
- var _a;
8415
- return ((_a = items == null ? void 0 : items.type) == null ? void 0 : _a.name) == AntdTabItem.name ? [items] : items == null ? void 0 : items.props.children;
8414
+ var _a, _b, _c;
8415
+ if (!React.isValidElement(items) && Array.isArray(items))
8416
+ return [...items];
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) {
8418
8420
  const keys = [];
@@ -8462,13 +8464,12 @@ 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
+ var _a2;
8469
8470
  return __spreadProps$3(__spreadValues$3({}, currentItem.props), {
8470
8471
  key: currentItem.key,
8471
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, currentItem.props.children)
8472
+ children: /* @__PURE__ */ React.createElement(React.Fragment, null, (_a2 = currentItem.props) == null ? void 0 : _a2.children)
8472
8473
  });
8473
8474
  }).filter((i) => i != null);
8474
8475
  }, [itemsRaw]);