@moontra/moonui-pro 2.25.3 → 2.25.5
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/dist/index.global.js +82 -82
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { format, addMonths, subMonths, startOfMonth, endOfMonth, eachDayOfInterv
|
|
|
12
12
|
import { motion, AnimatePresence, useAnimation, useMotionValue, animate, useSpring, useTransform, Reorder, useDragControls } from 'framer-motion';
|
|
13
13
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
14
|
import * as ReactDOM2 from 'react-dom';
|
|
15
|
-
import ReactDOM2__default from 'react-dom';
|
|
15
|
+
import ReactDOM2__default, { createPortal } from 'react-dom';
|
|
16
16
|
import { createSlot, createSlottable } from '@radix-ui/react-slot';
|
|
17
17
|
import { Command } from 'cmdk';
|
|
18
18
|
import Fuse from 'fuse.js';
|
|
@@ -73063,14 +73063,18 @@ function DataTableFilterDrawer({
|
|
|
73063
73063
|
}
|
|
73064
73064
|
onOpenChange(false);
|
|
73065
73065
|
};
|
|
73066
|
-
|
|
73066
|
+
if (typeof document === "undefined") {
|
|
73067
|
+
return null;
|
|
73068
|
+
}
|
|
73069
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
73067
73070
|
/* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsx(
|
|
73068
73071
|
motion.div,
|
|
73069
73072
|
{
|
|
73070
73073
|
initial: { opacity: 0 },
|
|
73071
73074
|
animate: { opacity: 1 },
|
|
73072
73075
|
exit: { opacity: 0 },
|
|
73073
|
-
className: "fixed inset-0 bg-black/20
|
|
73076
|
+
className: "fixed inset-0 bg-black/20",
|
|
73077
|
+
style: { zIndex: 9998 },
|
|
73074
73078
|
onClick: () => onOpenChange(false)
|
|
73075
73079
|
}
|
|
73076
73080
|
) }),
|
|
@@ -73082,10 +73086,10 @@ function DataTableFilterDrawer({
|
|
|
73082
73086
|
exit: { x: position === "right" ? "100%" : "-100%" },
|
|
73083
73087
|
transition: { type: "spring", damping: 30, stiffness: 300 },
|
|
73084
73088
|
className: cn(
|
|
73085
|
-
"fixed top-0 bottom-0
|
|
73089
|
+
"fixed top-0 bottom-0 bg-background border-l shadow-xl",
|
|
73086
73090
|
position === "right" ? "right-0" : "left-0"
|
|
73087
73091
|
),
|
|
73088
|
-
style: { width },
|
|
73092
|
+
style: { width, zIndex: 9999 },
|
|
73089
73093
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col h-full", children: [
|
|
73090
73094
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-4 border-b", children: [
|
|
73091
73095
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -73182,6 +73186,7 @@ function DataTableFilterDrawer({
|
|
|
73182
73186
|
}
|
|
73183
73187
|
) })
|
|
73184
73188
|
] });
|
|
73189
|
+
return createPortal(content, document.body);
|
|
73185
73190
|
}
|
|
73186
73191
|
function FilterConditionRow({
|
|
73187
73192
|
filter,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.5",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|