@mantine-vue/core 1.1.3 → 1.1.4
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/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);
|