@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 +4 -1
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +4 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/Anchor/Anchor.d.ts +5 -3
- package/lib/components/Badge/Badge.d.ts +5 -4
- package/lib/components/Button/Button.d.ts +9 -9
- package/lib/components/CloseButton/CloseButton.d.ts +4 -3
- package/lib/components/PinInput/PinInput.d.ts +10 -8
- package/lib/components/Table/Table.d.ts +7 -7
- package/lib/components/Text/Text.d.ts +5 -5
- package/lib/components/ThemeIcon/ThemeIcon.d.ts +5 -4
- package/lib/core/factory/with-box-props.d.ts +7 -7
- package/lib/core/types.d.ts +1 -0
- package/package.json +3 -3
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);
|