@m3cms/react
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -580,2 +580,4 @@ "use strict"; | ||
}) => { | ||
if (!items) | ||
return children; | ||
const orderedChildren = import_react6.default.Children.toArray(children).sort((a, b) => { | ||
@@ -582,0 +584,0 @@ if (!import_react6.default.isValidElement(a) || a.type !== Slot) |
@@ -100,5 +100,5 @@ import * as zustand from 'zustand'; | ||
active: boolean; | ||
})[]; | ||
})[] | undefined; | ||
} | ||
declare const OrderableSlot: ({ children, items, }: PropsWithChildren<OrderableSlotProps>) => React.JSX.Element; | ||
declare const OrderableSlot: ({ children, items, }: PropsWithChildren<OrderableSlotProps>) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; | ||
@@ -105,0 +105,0 @@ type WithRequired<T, K extends keyof T> = T & { |
@@ -580,2 +580,4 @@ "use strict"; | ||
}) => { | ||
if (!items) | ||
return children; | ||
const orderedChildren = import_react6.default.Children.toArray(children).sort((a, b) => { | ||
@@ -582,0 +584,0 @@ if (!import_react6.default.isValidElement(a) || a.type !== Slot) |
{ | ||
"name": "@m3cms/react", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
101462
2567