@mekari/pixel3-popover 0.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-2ZUCITXI.mjs +8 -0
- package/dist/chunk-3VISLXE6.mjs +94 -0
- package/dist/chunk-6AOSFLZR.mjs +55 -0
- package/dist/chunk-7E4KFP32.mjs +10045 -0
- package/dist/chunk-E2N74NQW.mjs +29 -0
- package/dist/chunk-EOUKE4WB.mjs +308 -0
- package/dist/chunk-KRK533DP.mjs +25 -0
- package/dist/chunk-OBEDLACV.mjs +44 -0
- package/dist/chunk-QZ7VFGWC.mjs +6 -0
- package/dist/chunk-SMKHJPNG.mjs +55 -0
- package/dist/content.d.mts +8 -0
- package/dist/content.d.ts +8 -0
- package/dist/content.js +233 -0
- package/dist/content.mjs +10 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10607 -0
- package/dist/index.mjs +30 -0
- package/dist/list-item.d.mts +8 -0
- package/dist/list-item.d.ts +8 -0
- package/dist/list-item.js +10593 -0
- package/dist/list-item.mjs +15 -0
- package/dist/list.d.mts +5 -0
- package/dist/list.d.ts +5 -0
- package/dist/list.js +71 -0
- package/dist/list.mjs +9 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/modules/popover.context.d.mts +13 -0
- package/dist/modules/popover.context.d.ts +13 -0
- package/dist/modules/popover.context.js +33 -0
- package/dist/modules/popover.context.mjs +9 -0
- package/dist/modules/popover.hooks.d.mts +111 -0
- package/dist/modules/popover.hooks.d.ts +111 -0
- package/dist/modules/popover.hooks.js +337 -0
- package/dist/modules/popover.hooks.mjs +18 -0
- package/dist/modules/popover.props.d.mts +153 -0
- package/dist/modules/popover.props.d.ts +153 -0
- package/dist/modules/popover.props.js +121 -0
- package/dist/modules/popover.props.mjs +13 -0
- package/dist/popover.d.mts +126 -0
- package/dist/popover.d.ts +126 -0
- package/dist/popover.js +213 -0
- package/dist/popover.mjs +10 -0
- package/dist/singleton-popover.d.mts +135 -0
- package/dist/singleton-popover.d.ts +135 -0
- package/dist/singleton-popover.js +197 -0
- package/dist/singleton-popover.mjs +10 -0
- package/dist/trigger.d.mts +5 -0
- package/dist/trigger.d.ts +5 -0
- package/dist/trigger.js +115 -0
- package/dist/trigger.mjs +9 -0
- package/package.json +42 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// src/modules/popover.props.ts
|
|
2
|
+
var popoverProps = {
|
|
3
|
+
placement: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: "bottom-start"
|
|
6
|
+
},
|
|
7
|
+
id: {
|
|
8
|
+
type: String
|
|
9
|
+
},
|
|
10
|
+
trigger: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "click"
|
|
13
|
+
},
|
|
14
|
+
triggerId: {
|
|
15
|
+
type: String
|
|
16
|
+
},
|
|
17
|
+
defaultIsOpen: {
|
|
18
|
+
type: Boolean
|
|
19
|
+
},
|
|
20
|
+
isManual: {
|
|
21
|
+
type: Boolean
|
|
22
|
+
},
|
|
23
|
+
isOpen: {
|
|
24
|
+
type: Boolean
|
|
25
|
+
},
|
|
26
|
+
returnFocusOnClose: {
|
|
27
|
+
type: Boolean
|
|
28
|
+
},
|
|
29
|
+
initialFocusRef: {
|
|
30
|
+
type: Boolean
|
|
31
|
+
},
|
|
32
|
+
closeOnBlur: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true
|
|
35
|
+
},
|
|
36
|
+
closeOnEscape: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: true
|
|
39
|
+
},
|
|
40
|
+
closeOnSelect: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
usePortal: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
isKeepAlive: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true
|
|
51
|
+
},
|
|
52
|
+
isAdaptiveWidth: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var singletonPopoverProps = {
|
|
58
|
+
triggerNode: {
|
|
59
|
+
type: Object
|
|
60
|
+
},
|
|
61
|
+
...popoverProps
|
|
62
|
+
};
|
|
63
|
+
var popoverContentProps = {
|
|
64
|
+
isDark: {
|
|
65
|
+
type: Boolean
|
|
66
|
+
},
|
|
67
|
+
isUnstyled: {
|
|
68
|
+
type: Boolean
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var popoverListItemProps = {
|
|
72
|
+
as: {
|
|
73
|
+
type: String
|
|
74
|
+
},
|
|
75
|
+
role: {
|
|
76
|
+
type: String
|
|
77
|
+
},
|
|
78
|
+
isDisabled: {
|
|
79
|
+
type: Boolean
|
|
80
|
+
},
|
|
81
|
+
isActive: {
|
|
82
|
+
type: Boolean
|
|
83
|
+
},
|
|
84
|
+
isArrow: {
|
|
85
|
+
type: Boolean
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
popoverProps,
|
|
91
|
+
singletonPopoverProps,
|
|
92
|
+
popoverContentProps,
|
|
93
|
+
popoverListItemProps
|
|
94
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
singletonPopoverProps
|
|
3
|
+
} from "./chunk-3VISLXE6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useSingletonPopover
|
|
6
|
+
} from "./chunk-EOUKE4WB.mjs";
|
|
7
|
+
import {
|
|
8
|
+
PopoverProvider
|
|
9
|
+
} from "./chunk-2ZUCITXI.mjs";
|
|
10
|
+
|
|
11
|
+
// src/singleton-popover.tsx
|
|
12
|
+
import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
13
|
+
import { defineComponent, toRefs } from "vue";
|
|
14
|
+
var MpSingletonPopover = defineComponent({
|
|
15
|
+
name: "MpSingletonPopover",
|
|
16
|
+
inheritAttrs: false,
|
|
17
|
+
props: singletonPopoverProps,
|
|
18
|
+
emits: ["open", "close"],
|
|
19
|
+
setup(props, {
|
|
20
|
+
slots,
|
|
21
|
+
emit
|
|
22
|
+
}) {
|
|
23
|
+
const {
|
|
24
|
+
triggerNode,
|
|
25
|
+
contentNode,
|
|
26
|
+
floatingStyles,
|
|
27
|
+
isOpen,
|
|
28
|
+
onOpenPopover,
|
|
29
|
+
onClosePopover,
|
|
30
|
+
isHovering,
|
|
31
|
+
setHovering
|
|
32
|
+
} = useSingletonPopover(props, emit);
|
|
33
|
+
PopoverProvider({
|
|
34
|
+
isOpen,
|
|
35
|
+
onOpenPopover,
|
|
36
|
+
onClosePopover,
|
|
37
|
+
triggerNode,
|
|
38
|
+
contentNode,
|
|
39
|
+
floatingStyles,
|
|
40
|
+
isHovering,
|
|
41
|
+
setHovering,
|
|
42
|
+
rootProps: toRefs(props)
|
|
43
|
+
});
|
|
44
|
+
return () => {
|
|
45
|
+
return _createVNode(_Fragment, null, [slots.default({
|
|
46
|
+
isOpen,
|
|
47
|
+
onClosePopover
|
|
48
|
+
})]);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
MpSingletonPopover
|
|
55
|
+
};
|