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