@yamada-ui/popover 0.3.23 → 0.3.24
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-HGCXNISI.mjs → chunk-76QRAAB5.mjs} +1 -1
- package/dist/{chunk-WMEMUEJ2.mjs → chunk-7MZWFYSJ.mjs} +1 -1
- package/dist/{chunk-Z5SS7LLL.mjs → chunk-M6E4QYI2.mjs} +25 -14
- package/dist/{chunk-QZZNOTYI.mjs → chunk-N5L7GDJG.mjs} +1 -1
- package/dist/{chunk-6CMNB3NC.mjs → chunk-NQ4D4B5B.mjs} +3 -6
- package/dist/{chunk-QEQLVQMN.mjs → chunk-O5F2XTFT.mjs} +2 -5
- package/dist/{chunk-U7EL4ITR.mjs → chunk-PPWA7LOG.mjs} +1 -1
- package/dist/{chunk-AZMTGSD5.mjs → chunk-WFJD64H4.mjs} +2 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -2
- package/dist/index.mjs +12 -10
- package/dist/popover-anchor.js +20 -0
- package/dist/popover-anchor.mjs +2 -2
- package/dist/popover-body.js +20 -0
- package/dist/popover-body.mjs +2 -2
- package/dist/popover-close-button.js +20 -0
- package/dist/popover-close-button.mjs +2 -2
- package/dist/popover-content.js +20 -0
- package/dist/popover-content.mjs +8 -8
- package/dist/popover-footer.js +20 -0
- package/dist/popover-footer.mjs +2 -2
- package/dist/popover-header.js +20 -0
- package/dist/popover-header.mjs +2 -2
- package/dist/popover-trigger.js +20 -0
- package/dist/popover-trigger.mjs +2 -2
- package/dist/popover.d.mts +2 -1
- package/dist/popover.d.ts +2 -1
- package/dist/popover.js +22 -0
- package/dist/popover.mjs +3 -1
- package/package.json +8 -8
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
// src/popover.tsx
|
|
4
|
-
import {
|
|
5
|
-
useMultiComponentStyle,
|
|
6
|
-
omitThemeProps
|
|
7
|
-
} from "@yamada-ui/core";
|
|
4
|
+
import { useMultiComponentStyle, omitThemeProps } from "@yamada-ui/core";
|
|
8
5
|
import { useAnimationObserver } from "@yamada-ui/use-animation";
|
|
9
|
-
import {
|
|
10
|
-
useDisclosure,
|
|
11
|
-
useLazyDisclosure
|
|
12
|
-
} from "@yamada-ui/use-disclosure";
|
|
6
|
+
import { useDisclosure, useLazyDisclosure } from "@yamada-ui/use-disclosure";
|
|
13
7
|
import {
|
|
14
8
|
useFocusOnHide,
|
|
15
9
|
useFocusOnShow,
|
|
16
10
|
useFocusOnPointerDown
|
|
17
11
|
} from "@yamada-ui/use-focus";
|
|
18
|
-
import { usePopper } from "@yamada-ui/use-popper";
|
|
12
|
+
import { usePopper, popperProperties } from "@yamada-ui/use-popper";
|
|
19
13
|
import {
|
|
20
14
|
createContext,
|
|
21
15
|
getEventRelatedTarget,
|
|
@@ -24,12 +18,28 @@ import {
|
|
|
24
18
|
mergeRefs,
|
|
25
19
|
runIfFunc
|
|
26
20
|
} from "@yamada-ui/utils";
|
|
27
|
-
import {
|
|
28
|
-
useCallback,
|
|
29
|
-
useEffect,
|
|
30
|
-
useRef
|
|
31
|
-
} from "react";
|
|
21
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
32
22
|
import { jsx } from "react/jsx-runtime";
|
|
23
|
+
var popoverProperties = [
|
|
24
|
+
...popperProperties,
|
|
25
|
+
"isOpen",
|
|
26
|
+
"defaultIsOpen",
|
|
27
|
+
"onOpen",
|
|
28
|
+
"onClose",
|
|
29
|
+
"initialFocusRef",
|
|
30
|
+
"restoreFocus",
|
|
31
|
+
"autoFocus",
|
|
32
|
+
"closeOnBlur",
|
|
33
|
+
"closeOnEsc",
|
|
34
|
+
"closeOnButton",
|
|
35
|
+
"trigger",
|
|
36
|
+
"openDelay",
|
|
37
|
+
"closeDelay",
|
|
38
|
+
"isLazy",
|
|
39
|
+
"lazyBehavior",
|
|
40
|
+
"animation",
|
|
41
|
+
"duration"
|
|
42
|
+
];
|
|
33
43
|
var [PopoverProvider, usePopover] = createContext({
|
|
34
44
|
strict: false,
|
|
35
45
|
name: "PopoverContext"
|
|
@@ -250,6 +260,7 @@ var Popover = (props) => {
|
|
|
250
260
|
};
|
|
251
261
|
|
|
252
262
|
export {
|
|
263
|
+
popoverProperties,
|
|
253
264
|
usePopover,
|
|
254
265
|
Popover
|
|
255
266
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
PopoverCloseButton
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7MZWFYSJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
usePopover
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M6E4QYI2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/popover-content.tsx
|
|
10
|
-
import {
|
|
11
|
-
ui,
|
|
12
|
-
forwardRef
|
|
13
|
-
} from "@yamada-ui/core";
|
|
10
|
+
import { ui, forwardRef } from "@yamada-ui/core";
|
|
14
11
|
import { motion } from "@yamada-ui/motion";
|
|
15
12
|
import { scaleFadeProps, slideFadeProps } from "@yamada-ui/transitions";
|
|
16
13
|
import {
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
usePopover
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M6E4QYI2.mjs";
|
|
5
5
|
|
|
6
6
|
// src/popover-trigger.tsx
|
|
7
|
-
import {
|
|
8
|
-
Children,
|
|
9
|
-
cloneElement
|
|
10
|
-
} from "react";
|
|
7
|
+
import { Children, cloneElement } from "react";
|
|
11
8
|
var PopoverTrigger = ({ children }) => {
|
|
12
9
|
const child = Children.only(children);
|
|
13
10
|
const { getTriggerProps } = usePopover();
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
usePopover
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M6E4QYI2.mjs";
|
|
5
5
|
|
|
6
6
|
// src/popover-anchor.tsx
|
|
7
|
-
import {
|
|
8
|
-
Children,
|
|
9
|
-
cloneElement
|
|
10
|
-
} from "react";
|
|
7
|
+
import { Children, cloneElement } from "react";
|
|
11
8
|
var PopoverAnchor = ({ children }) => {
|
|
12
9
|
const child = Children.only(children);
|
|
13
10
|
const { getAnchorProps } = usePopover();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Popover, PopoverProps } from './popover.mjs';
|
|
1
|
+
export { Popover, PopoverProps, popoverProperties } from './popover.mjs';
|
|
2
2
|
export { PopoverTrigger } from './popover-trigger.mjs';
|
|
3
3
|
export { PopoverAnchor } from './popover-anchor.mjs';
|
|
4
4
|
export { PopoverCloseButton, PopoverCloseButtonProps } from './popover-close-button.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Popover, PopoverProps } from './popover.js';
|
|
1
|
+
export { Popover, PopoverProps, popoverProperties } from './popover.js';
|
|
2
2
|
export { PopoverTrigger } from './popover-trigger.js';
|
|
3
3
|
export { PopoverAnchor } from './popover-anchor.js';
|
|
4
4
|
export { PopoverCloseButton, PopoverCloseButtonProps } from './popover-close-button.js';
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,8 @@ __export(src_exports, {
|
|
|
28
28
|
PopoverContent: () => PopoverContent,
|
|
29
29
|
PopoverFooter: () => PopoverFooter,
|
|
30
30
|
PopoverHeader: () => PopoverHeader,
|
|
31
|
-
PopoverTrigger: () => PopoverTrigger
|
|
31
|
+
PopoverTrigger: () => PopoverTrigger,
|
|
32
|
+
popoverProperties: () => popoverProperties
|
|
32
33
|
});
|
|
33
34
|
module.exports = __toCommonJS(src_exports);
|
|
34
35
|
|
|
@@ -41,6 +42,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
41
42
|
var import_utils = require("@yamada-ui/utils");
|
|
42
43
|
var import_react = require("react");
|
|
43
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
var popoverProperties = [
|
|
46
|
+
...import_use_popper.popperProperties,
|
|
47
|
+
"isOpen",
|
|
48
|
+
"defaultIsOpen",
|
|
49
|
+
"onOpen",
|
|
50
|
+
"onClose",
|
|
51
|
+
"initialFocusRef",
|
|
52
|
+
"restoreFocus",
|
|
53
|
+
"autoFocus",
|
|
54
|
+
"closeOnBlur",
|
|
55
|
+
"closeOnEsc",
|
|
56
|
+
"closeOnButton",
|
|
57
|
+
"trigger",
|
|
58
|
+
"openDelay",
|
|
59
|
+
"closeDelay",
|
|
60
|
+
"isLazy",
|
|
61
|
+
"lazyBehavior",
|
|
62
|
+
"animation",
|
|
63
|
+
"duration"
|
|
64
|
+
];
|
|
44
65
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
45
66
|
strict: false,
|
|
46
67
|
name: "PopoverContext"
|
|
@@ -513,5 +534,6 @@ var PopoverFooter = (0, import_core6.forwardRef)(
|
|
|
513
534
|
PopoverContent,
|
|
514
535
|
PopoverFooter,
|
|
515
536
|
PopoverHeader,
|
|
516
|
-
PopoverTrigger
|
|
537
|
+
PopoverTrigger,
|
|
538
|
+
popoverProperties
|
|
517
539
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
PopoverContent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NQ4D4B5B.mjs";
|
|
5
5
|
import {
|
|
6
6
|
PopoverAnchor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WFJD64H4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PopoverBody
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PPWA7LOG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
PopoverCloseButton
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7MZWFYSJ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
PopoverFooter
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-76QRAAB5.mjs";
|
|
17
17
|
import {
|
|
18
18
|
PopoverHeader
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N5L7GDJG.mjs";
|
|
20
20
|
import {
|
|
21
21
|
PopoverTrigger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O5F2XTFT.mjs";
|
|
23
23
|
import {
|
|
24
|
-
Popover
|
|
25
|
-
|
|
24
|
+
Popover,
|
|
25
|
+
popoverProperties
|
|
26
|
+
} from "./chunk-M6E4QYI2.mjs";
|
|
26
27
|
export {
|
|
27
28
|
Popover,
|
|
28
29
|
PopoverAnchor,
|
|
@@ -31,5 +32,6 @@ export {
|
|
|
31
32
|
PopoverContent,
|
|
32
33
|
PopoverFooter,
|
|
33
34
|
PopoverHeader,
|
|
34
|
-
PopoverTrigger
|
|
35
|
+
PopoverTrigger,
|
|
36
|
+
popoverProperties
|
|
35
37
|
};
|
package/dist/popover-anchor.js
CHANGED
|
@@ -35,6 +35,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
35
35
|
var import_utils = require("@yamada-ui/utils");
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var popoverProperties = [
|
|
39
|
+
...import_use_popper.popperProperties,
|
|
40
|
+
"isOpen",
|
|
41
|
+
"defaultIsOpen",
|
|
42
|
+
"onOpen",
|
|
43
|
+
"onClose",
|
|
44
|
+
"initialFocusRef",
|
|
45
|
+
"restoreFocus",
|
|
46
|
+
"autoFocus",
|
|
47
|
+
"closeOnBlur",
|
|
48
|
+
"closeOnEsc",
|
|
49
|
+
"closeOnButton",
|
|
50
|
+
"trigger",
|
|
51
|
+
"openDelay",
|
|
52
|
+
"closeDelay",
|
|
53
|
+
"isLazy",
|
|
54
|
+
"lazyBehavior",
|
|
55
|
+
"animation",
|
|
56
|
+
"duration"
|
|
57
|
+
];
|
|
38
58
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
39
59
|
strict: false,
|
|
40
60
|
name: "PopoverContext"
|
package/dist/popover-anchor.mjs
CHANGED
package/dist/popover-body.js
CHANGED
|
@@ -36,6 +36,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
36
36
|
var import_utils = require("@yamada-ui/utils");
|
|
37
37
|
var import_react = require("react");
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
+
var popoverProperties = [
|
|
40
|
+
...import_use_popper.popperProperties,
|
|
41
|
+
"isOpen",
|
|
42
|
+
"defaultIsOpen",
|
|
43
|
+
"onOpen",
|
|
44
|
+
"onClose",
|
|
45
|
+
"initialFocusRef",
|
|
46
|
+
"restoreFocus",
|
|
47
|
+
"autoFocus",
|
|
48
|
+
"closeOnBlur",
|
|
49
|
+
"closeOnEsc",
|
|
50
|
+
"closeOnButton",
|
|
51
|
+
"trigger",
|
|
52
|
+
"openDelay",
|
|
53
|
+
"closeDelay",
|
|
54
|
+
"isLazy",
|
|
55
|
+
"lazyBehavior",
|
|
56
|
+
"animation",
|
|
57
|
+
"duration"
|
|
58
|
+
];
|
|
39
59
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
40
60
|
strict: false,
|
|
41
61
|
name: "PopoverContext"
|
package/dist/popover-body.mjs
CHANGED
|
@@ -37,6 +37,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
37
37
|
var import_utils = require("@yamada-ui/utils");
|
|
38
38
|
var import_react = require("react");
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
+
var popoverProperties = [
|
|
41
|
+
...import_use_popper.popperProperties,
|
|
42
|
+
"isOpen",
|
|
43
|
+
"defaultIsOpen",
|
|
44
|
+
"onOpen",
|
|
45
|
+
"onClose",
|
|
46
|
+
"initialFocusRef",
|
|
47
|
+
"restoreFocus",
|
|
48
|
+
"autoFocus",
|
|
49
|
+
"closeOnBlur",
|
|
50
|
+
"closeOnEsc",
|
|
51
|
+
"closeOnButton",
|
|
52
|
+
"trigger",
|
|
53
|
+
"openDelay",
|
|
54
|
+
"closeDelay",
|
|
55
|
+
"isLazy",
|
|
56
|
+
"lazyBehavior",
|
|
57
|
+
"animation",
|
|
58
|
+
"duration"
|
|
59
|
+
];
|
|
40
60
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
41
61
|
strict: false,
|
|
42
62
|
name: "PopoverContext"
|
package/dist/popover-content.js
CHANGED
|
@@ -38,6 +38,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
38
38
|
var import_utils = require("@yamada-ui/utils");
|
|
39
39
|
var import_react = require("react");
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
var popoverProperties = [
|
|
42
|
+
...import_use_popper.popperProperties,
|
|
43
|
+
"isOpen",
|
|
44
|
+
"defaultIsOpen",
|
|
45
|
+
"onOpen",
|
|
46
|
+
"onClose",
|
|
47
|
+
"initialFocusRef",
|
|
48
|
+
"restoreFocus",
|
|
49
|
+
"autoFocus",
|
|
50
|
+
"closeOnBlur",
|
|
51
|
+
"closeOnEsc",
|
|
52
|
+
"closeOnButton",
|
|
53
|
+
"trigger",
|
|
54
|
+
"openDelay",
|
|
55
|
+
"closeDelay",
|
|
56
|
+
"isLazy",
|
|
57
|
+
"lazyBehavior",
|
|
58
|
+
"animation",
|
|
59
|
+
"duration"
|
|
60
|
+
];
|
|
41
61
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
42
62
|
strict: false,
|
|
43
63
|
name: "PopoverContext"
|
package/dist/popover-content.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
PopoverContent
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-NQ4D4B5B.mjs";
|
|
5
|
+
import "./chunk-WFJD64H4.mjs";
|
|
6
|
+
import "./chunk-PPWA7LOG.mjs";
|
|
7
|
+
import "./chunk-7MZWFYSJ.mjs";
|
|
8
|
+
import "./chunk-76QRAAB5.mjs";
|
|
9
|
+
import "./chunk-N5L7GDJG.mjs";
|
|
10
|
+
import "./chunk-O5F2XTFT.mjs";
|
|
11
|
+
import "./chunk-M6E4QYI2.mjs";
|
|
12
12
|
export {
|
|
13
13
|
PopoverContent
|
|
14
14
|
};
|
package/dist/popover-footer.js
CHANGED
|
@@ -36,6 +36,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
36
36
|
var import_utils = require("@yamada-ui/utils");
|
|
37
37
|
var import_react = require("react");
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
+
var popoverProperties = [
|
|
40
|
+
...import_use_popper.popperProperties,
|
|
41
|
+
"isOpen",
|
|
42
|
+
"defaultIsOpen",
|
|
43
|
+
"onOpen",
|
|
44
|
+
"onClose",
|
|
45
|
+
"initialFocusRef",
|
|
46
|
+
"restoreFocus",
|
|
47
|
+
"autoFocus",
|
|
48
|
+
"closeOnBlur",
|
|
49
|
+
"closeOnEsc",
|
|
50
|
+
"closeOnButton",
|
|
51
|
+
"trigger",
|
|
52
|
+
"openDelay",
|
|
53
|
+
"closeDelay",
|
|
54
|
+
"isLazy",
|
|
55
|
+
"lazyBehavior",
|
|
56
|
+
"animation",
|
|
57
|
+
"duration"
|
|
58
|
+
];
|
|
39
59
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
40
60
|
strict: false,
|
|
41
61
|
name: "PopoverContext"
|
package/dist/popover-footer.mjs
CHANGED
package/dist/popover-header.js
CHANGED
|
@@ -36,6 +36,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
36
36
|
var import_utils = require("@yamada-ui/utils");
|
|
37
37
|
var import_react = require("react");
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
+
var popoverProperties = [
|
|
40
|
+
...import_use_popper.popperProperties,
|
|
41
|
+
"isOpen",
|
|
42
|
+
"defaultIsOpen",
|
|
43
|
+
"onOpen",
|
|
44
|
+
"onClose",
|
|
45
|
+
"initialFocusRef",
|
|
46
|
+
"restoreFocus",
|
|
47
|
+
"autoFocus",
|
|
48
|
+
"closeOnBlur",
|
|
49
|
+
"closeOnEsc",
|
|
50
|
+
"closeOnButton",
|
|
51
|
+
"trigger",
|
|
52
|
+
"openDelay",
|
|
53
|
+
"closeDelay",
|
|
54
|
+
"isLazy",
|
|
55
|
+
"lazyBehavior",
|
|
56
|
+
"animation",
|
|
57
|
+
"duration"
|
|
58
|
+
];
|
|
39
59
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
40
60
|
strict: false,
|
|
41
61
|
name: "PopoverContext"
|
package/dist/popover-header.mjs
CHANGED
package/dist/popover-trigger.js
CHANGED
|
@@ -35,6 +35,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
35
35
|
var import_utils = require("@yamada-ui/utils");
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var popoverProperties = [
|
|
39
|
+
...import_use_popper.popperProperties,
|
|
40
|
+
"isOpen",
|
|
41
|
+
"defaultIsOpen",
|
|
42
|
+
"onOpen",
|
|
43
|
+
"onClose",
|
|
44
|
+
"initialFocusRef",
|
|
45
|
+
"restoreFocus",
|
|
46
|
+
"autoFocus",
|
|
47
|
+
"closeOnBlur",
|
|
48
|
+
"closeOnEsc",
|
|
49
|
+
"closeOnButton",
|
|
50
|
+
"trigger",
|
|
51
|
+
"openDelay",
|
|
52
|
+
"closeDelay",
|
|
53
|
+
"isLazy",
|
|
54
|
+
"lazyBehavior",
|
|
55
|
+
"animation",
|
|
56
|
+
"duration"
|
|
57
|
+
];
|
|
38
58
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
39
59
|
strict: false,
|
|
40
60
|
name: "PopoverContext"
|
package/dist/popover-trigger.mjs
CHANGED
package/dist/popover.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import { UsePopperProps } from '@yamada-ui/use-popper';
|
|
|
5
5
|
import { PropGetter } from '@yamada-ui/utils';
|
|
6
6
|
import { PropsWithChildren, FC, RefObject } from 'react';
|
|
7
7
|
|
|
8
|
+
declare const popoverProperties: any[];
|
|
8
9
|
type PopoverOptions = {
|
|
9
10
|
/**
|
|
10
11
|
* If `true`, the popover will be opened.
|
|
@@ -119,4 +120,4 @@ declare const usePopover: () => PopoverContext;
|
|
|
119
120
|
|
|
120
121
|
declare const Popover: FC<PopoverProps>;
|
|
121
122
|
|
|
122
|
-
export { Popover, PopoverProps, usePopover };
|
|
123
|
+
export { Popover, PopoverProps, popoverProperties, usePopover };
|
package/dist/popover.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { UsePopperProps } from '@yamada-ui/use-popper';
|
|
|
5
5
|
import { PropGetter } from '@yamada-ui/utils';
|
|
6
6
|
import { PropsWithChildren, FC, RefObject } from 'react';
|
|
7
7
|
|
|
8
|
+
declare const popoverProperties: any[];
|
|
8
9
|
type PopoverOptions = {
|
|
9
10
|
/**
|
|
10
11
|
* If `true`, the popover will be opened.
|
|
@@ -119,4 +120,4 @@ declare const usePopover: () => PopoverContext;
|
|
|
119
120
|
|
|
120
121
|
declare const Popover: FC<PopoverProps>;
|
|
121
122
|
|
|
122
|
-
export { Popover, PopoverProps, usePopover };
|
|
123
|
+
export { Popover, PopoverProps, popoverProperties, usePopover };
|
package/dist/popover.js
CHANGED
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var popover_exports = {};
|
|
23
23
|
__export(popover_exports, {
|
|
24
24
|
Popover: () => Popover,
|
|
25
|
+
popoverProperties: () => popoverProperties,
|
|
25
26
|
usePopover: () => usePopover
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(popover_exports);
|
|
@@ -33,6 +34,26 @@ var import_use_popper = require("@yamada-ui/use-popper");
|
|
|
33
34
|
var import_utils = require("@yamada-ui/utils");
|
|
34
35
|
var import_react = require("react");
|
|
35
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var popoverProperties = [
|
|
38
|
+
...import_use_popper.popperProperties,
|
|
39
|
+
"isOpen",
|
|
40
|
+
"defaultIsOpen",
|
|
41
|
+
"onOpen",
|
|
42
|
+
"onClose",
|
|
43
|
+
"initialFocusRef",
|
|
44
|
+
"restoreFocus",
|
|
45
|
+
"autoFocus",
|
|
46
|
+
"closeOnBlur",
|
|
47
|
+
"closeOnEsc",
|
|
48
|
+
"closeOnButton",
|
|
49
|
+
"trigger",
|
|
50
|
+
"openDelay",
|
|
51
|
+
"closeDelay",
|
|
52
|
+
"isLazy",
|
|
53
|
+
"lazyBehavior",
|
|
54
|
+
"animation",
|
|
55
|
+
"duration"
|
|
56
|
+
];
|
|
36
57
|
var [PopoverProvider, usePopover] = (0, import_utils.createContext)({
|
|
37
58
|
strict: false,
|
|
38
59
|
name: "PopoverContext"
|
|
@@ -254,5 +275,6 @@ var Popover = (props) => {
|
|
|
254
275
|
// Annotate the CommonJS export names for ESM import in node:
|
|
255
276
|
0 && (module.exports = {
|
|
256
277
|
Popover,
|
|
278
|
+
popoverProperties,
|
|
257
279
|
usePopover
|
|
258
280
|
});
|
package/dist/popover.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/popover",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24",
|
|
4
4
|
"description": "Yamada UI popover component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.12.
|
|
38
|
+
"@yamada-ui/core": "0.12.7",
|
|
39
39
|
"@yamada-ui/utils": "0.3.3",
|
|
40
|
-
"@yamada-ui/close-button": "0.3.
|
|
41
|
-
"@yamada-ui/transitions": "0.3.
|
|
42
|
-
"@yamada-ui/motion": "0.4.
|
|
43
|
-
"@yamada-ui/use-popper": "0.4.
|
|
40
|
+
"@yamada-ui/close-button": "0.3.18",
|
|
41
|
+
"@yamada-ui/transitions": "0.3.19",
|
|
42
|
+
"@yamada-ui/motion": "0.4.17",
|
|
43
|
+
"@yamada-ui/use-popper": "0.4.17",
|
|
44
44
|
"@yamada-ui/use-disclosure": "0.4.3",
|
|
45
|
-
"@yamada-ui/use-focus": "0.2.
|
|
46
|
-
"@yamada-ui/use-animation": "0.4.
|
|
45
|
+
"@yamada-ui/use-focus": "0.2.6",
|
|
46
|
+
"@yamada-ui/use-animation": "0.4.6"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"react": "^18.0.0",
|