@mantine-vue/core 1.1.3 → 2.0.0

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/esm/index.mjs CHANGED
@@ -5994,6 +5994,9 @@ var varsResolver$62 = createVarsResolver((_, { separatorMargin }) => ({ root: {
5994
5994
  function renderContent$10(content) {
5995
5995
  return typeof content === "function" ? content() : content;
5996
5996
  }
5997
+ function flattenChildren$2(children) {
5998
+ return children.flatMap((child) => child.type === Fragment && Array.isArray(child.children) ? flattenChildren$2(child.children) : child.type === Comment ? [] : [child]);
5999
+ }
5997
6000
  var Breadcrumbs = withBoxProps(defineComponent({
5998
6001
  name: "Breadcrumbs",
5999
6002
  inheritAttrs: false,
@@ -6040,7 +6043,7 @@ var Breadcrumbs = withBoxProps(defineComponent({
6040
6043
  unstyled: props.unstyled
6041
6044
  });
6042
6045
  return () => {
6043
- const children = slots.default?.() ?? [];
6046
+ const children = flattenChildren$2(slots.default?.() ?? []);
6044
6047
  const items = children.reduce((acc, child, index) => {
6045
6048
  const item = child.type === Text$1 ? h("div", getStyles("breadcrumb"), child.children) : cloneVNode(child, getStyles("breadcrumb", { className: child.props?.class }));
6046
6049
  acc.push(item);