@kopexa/popover 4.1.0 → 5.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/dist/{chunk-XCWTKEVD.mjs → chunk-CVZNBNZ4.mjs} +3 -1
- package/dist/{chunk-J5PI7XN3.mjs → chunk-TDTYA2GD.mjs} +1 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +2 -2
- package/dist/namespace.js +3 -1
- package/dist/namespace.mjs +2 -2
- package/dist/popover.d.mts +1 -1
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +3 -1
- package/dist/popover.mjs +1 -1
- package/package.json +4 -4
|
@@ -49,6 +49,7 @@ function PopoverContent({
|
|
|
49
49
|
align = "center",
|
|
50
50
|
sideOffset = 4,
|
|
51
51
|
portalled = true,
|
|
52
|
+
children,
|
|
52
53
|
...props
|
|
53
54
|
}) {
|
|
54
55
|
const { open, styles } = usePopoverContext();
|
|
@@ -68,7 +69,8 @@ function PopoverContent({
|
|
|
68
69
|
animate: "enter",
|
|
69
70
|
exit: "exit",
|
|
70
71
|
initial: "initial",
|
|
71
|
-
variants: TRANSITION_VARIANTS.scaleSpringOpacity
|
|
72
|
+
variants: TRANSITION_VARIANTS.scaleSpringOpacity,
|
|
73
|
+
children
|
|
72
74
|
}
|
|
73
75
|
)
|
|
74
76
|
}
|
package/dist/index.js
CHANGED
|
@@ -87,6 +87,7 @@ function PopoverContent({
|
|
|
87
87
|
align = "center",
|
|
88
88
|
sideOffset = 4,
|
|
89
89
|
portalled = true,
|
|
90
|
+
children,
|
|
90
91
|
...props
|
|
91
92
|
}) {
|
|
92
93
|
const { open, styles } = usePopoverContext();
|
|
@@ -106,7 +107,8 @@ function PopoverContent({
|
|
|
106
107
|
animate: "enter",
|
|
107
108
|
exit: "exit",
|
|
108
109
|
initial: "initial",
|
|
109
|
-
variants: import_motion_utils.TRANSITION_VARIANTS.scaleSpringOpacity
|
|
110
|
+
variants: import_motion_utils.TRANSITION_VARIANTS.scaleSpringOpacity,
|
|
111
|
+
children
|
|
110
112
|
}
|
|
111
113
|
)
|
|
112
114
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
namespace_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TDTYA2GD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
PopoverAnchor,
|
|
7
7
|
PopoverContent,
|
|
8
8
|
PopoverRoot,
|
|
9
9
|
PopoverTrigger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CVZNBNZ4.mjs";
|
|
11
11
|
export {
|
|
12
12
|
namespace_exports as Popover,
|
|
13
13
|
PopoverAnchor,
|
package/dist/namespace.js
CHANGED
|
@@ -77,6 +77,7 @@ function PopoverContent({
|
|
|
77
77
|
align = "center",
|
|
78
78
|
sideOffset = 4,
|
|
79
79
|
portalled = true,
|
|
80
|
+
children,
|
|
80
81
|
...props
|
|
81
82
|
}) {
|
|
82
83
|
const { open, styles } = usePopoverContext();
|
|
@@ -96,7 +97,8 @@ function PopoverContent({
|
|
|
96
97
|
animate: "enter",
|
|
97
98
|
exit: "exit",
|
|
98
99
|
initial: "initial",
|
|
99
|
-
variants: import_motion_utils.TRANSITION_VARIANTS.scaleSpringOpacity
|
|
100
|
+
variants: import_motion_utils.TRANSITION_VARIANTS.scaleSpringOpacity,
|
|
101
|
+
children
|
|
100
102
|
}
|
|
101
103
|
)
|
|
102
104
|
}
|
package/dist/namespace.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-TDTYA2GD.mjs";
|
|
3
3
|
import {
|
|
4
4
|
PopoverAnchor,
|
|
5
5
|
PopoverContent,
|
|
6
6
|
PopoverRoot,
|
|
7
7
|
PopoverTrigger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CVZNBNZ4.mjs";
|
|
9
9
|
export {
|
|
10
10
|
PopoverAnchor as Anchor,
|
|
11
11
|
PopoverContent as Content,
|
package/dist/popover.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ type PopoverContentProps = ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
|
11
11
|
sideOffset?: number;
|
|
12
12
|
portalled?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare function PopoverContent({ className, align, sideOffset, portalled, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function PopoverContent({ className, align, sideOffset, portalled, children, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
15
15
|
type PopoverAnchorProps = ComponentProps<typeof PopoverPrimitive.Anchor>;
|
|
16
16
|
declare function PopoverAnchor({ ...props }: PopoverAnchorProps): react_jsx_runtime.JSX.Element;
|
|
17
17
|
|
package/dist/popover.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ type PopoverContentProps = ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
|
11
11
|
sideOffset?: number;
|
|
12
12
|
portalled?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare function PopoverContent({ className, align, sideOffset, portalled, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function PopoverContent({ className, align, sideOffset, portalled, children, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
15
15
|
type PopoverAnchorProps = ComponentProps<typeof PopoverPrimitive.Anchor>;
|
|
16
16
|
declare function PopoverAnchor({ ...props }: PopoverAnchorProps): react_jsx_runtime.JSX.Element;
|
|
17
17
|
|
package/dist/popover.js
CHANGED
|
@@ -75,6 +75,7 @@ function PopoverContent({
|
|
|
75
75
|
align = "center",
|
|
76
76
|
sideOffset = 4,
|
|
77
77
|
portalled = true,
|
|
78
|
+
children,
|
|
78
79
|
...props
|
|
79
80
|
}) {
|
|
80
81
|
const { open, styles } = usePopoverContext();
|
|
@@ -94,7 +95,8 @@ function PopoverContent({
|
|
|
94
95
|
animate: "enter",
|
|
95
96
|
exit: "exit",
|
|
96
97
|
initial: "initial",
|
|
97
|
-
variants: import_motion_utils.TRANSITION_VARIANTS.scaleSpringOpacity
|
|
98
|
+
variants: import_motion_utils.TRANSITION_VARIANTS.scaleSpringOpacity,
|
|
99
|
+
children
|
|
98
100
|
}
|
|
99
101
|
)
|
|
100
102
|
}
|
package/dist/popover.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/popover",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Displays rich content in a portal, triggered by a button.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"popover"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"motion": ">=12.23.6",
|
|
29
29
|
"react": ">=19.0.0-rc.0",
|
|
30
30
|
"react-dom": ">=19.0.0-rc.0",
|
|
31
|
-
"@kopexa/theme": "1.
|
|
31
|
+
"@kopexa/theme": "1.2.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-popover": "^1.1.14",
|
|
35
|
-
"@kopexa/react-utils": "2.0.0",
|
|
36
35
|
"@kopexa/use-controllable-state": "1.1.0",
|
|
36
|
+
"@kopexa/react-utils": "2.0.0",
|
|
37
37
|
"@kopexa/shared-utils": "1.1.0",
|
|
38
|
-
"@kopexa/motion-utils": "
|
|
38
|
+
"@kopexa/motion-utils": "5.0.0"
|
|
39
39
|
},
|
|
40
40
|
"clean-package": "../../../clean-package.config.json",
|
|
41
41
|
"module": "dist/index.mjs",
|