@wistia/ui 0.26.1-beta.ed043a6e.cf3f5c5 → 0.26.2

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.26.1-beta.ed043a6e.cf3f5c5
3
+ * @license @wistia/ui v0.26.2
4
4
  *
5
5
  * Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14894,7 +14894,7 @@ const isLabelChild = (child) => isValidElement(child) && child.type === SidebarG
14894
14894
  const SidebarGroup = ({ children }) => {
14895
14895
  const childArray = Children.toArray(children);
14896
14896
  const labels = childArray.filter(isLabelChild);
14897
- const items = childArray.filter((child) => !isLabelChild(child));
14897
+ const items = childArray.filter((child) => isValidElement(child) && !isLabelChild(child));
14898
14898
  return /* @__PURE__ */ jsxs(StyledSidebarGroup, {
14899
14899
  "data-wui-sidebar-group": true,
14900
14900
  children: [labels, items.length > 0 && /* @__PURE__ */ jsx(StyledSidebarGroupList, { children: items.map((child, index) => {