@mekari/pixel3-popover 0.0.7-dev.3 → 0.0.7
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-5LOKC2YN.mjs → chunk-CFQWNGPO.mjs} +0 -1
- package/dist/chunk-QM43AUFZ.mjs +33 -0
- package/dist/index.js +6 -3
- package/dist/index.mjs +2 -2
- package/dist/list.js +0 -1
- package/dist/list.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/trigger.js +6 -2
- package/dist/trigger.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-VN53X7QU.mjs +0 -29
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usePopoverTrigger
|
|
3
|
+
} from "./chunk-MPDM4USP.mjs";
|
|
4
|
+
|
|
5
|
+
// src/trigger.tsx
|
|
6
|
+
import { Fragment as _Fragment, createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
|
|
7
|
+
import { defineComponent, cloneVNode } from "vue";
|
|
8
|
+
import { isPixelTagComponent } from "@mekari/pixel3-utils";
|
|
9
|
+
var MpPopoverTrigger = defineComponent({
|
|
10
|
+
name: "MpPopoverTrigger",
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
setup(_, {
|
|
13
|
+
slots
|
|
14
|
+
}) {
|
|
15
|
+
const {
|
|
16
|
+
rootAttrs
|
|
17
|
+
} = usePopoverTrigger();
|
|
18
|
+
return () => {
|
|
19
|
+
if (slots.default && slots.default().length > 1) {
|
|
20
|
+
console.error("[MpPopoverTrigger] Only 1 node allowed");
|
|
21
|
+
}
|
|
22
|
+
const children = slots.default()[0];
|
|
23
|
+
const isPixelTag = isPixelTagComponent(children.type.name);
|
|
24
|
+
const cloned = cloneVNode(children, isPixelTag ? {} : rootAttrs.value);
|
|
25
|
+
const triggerNode = isPixelTag ? _createVNode("div", rootAttrs.value, [_createTextVNode(" "), cloned, _createTextVNode(" ")]) : cloned;
|
|
26
|
+
return _createVNode(_Fragment, null, [triggerNode]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
MpPopoverTrigger
|
|
33
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -473,6 +473,7 @@ var MpPopover = (0, import_vue4.defineComponent)({
|
|
|
473
473
|
// src/trigger.tsx
|
|
474
474
|
var import_vue5 = require("vue");
|
|
475
475
|
var import_vue6 = require("vue");
|
|
476
|
+
var import_pixel3_utils3 = require("@mekari/pixel3-utils");
|
|
476
477
|
var MpPopoverTrigger = (0, import_vue6.defineComponent)({
|
|
477
478
|
name: "MpPopoverTrigger",
|
|
478
479
|
inheritAttrs: false,
|
|
@@ -486,8 +487,11 @@ var MpPopoverTrigger = (0, import_vue6.defineComponent)({
|
|
|
486
487
|
if (slots.default && slots.default().length > 1) {
|
|
487
488
|
console.error("[MpPopoverTrigger] Only 1 node allowed");
|
|
488
489
|
}
|
|
489
|
-
const
|
|
490
|
-
|
|
490
|
+
const children = slots.default()[0];
|
|
491
|
+
const isPixelTag = (0, import_pixel3_utils3.isPixelTagComponent)(children.type.name);
|
|
492
|
+
const cloned = (0, import_vue6.cloneVNode)(children, isPixelTag ? {} : rootAttrs.value);
|
|
493
|
+
const triggerNode = isPixelTag ? (0, import_vue5.createVNode)("div", rootAttrs.value, [(0, import_vue5.createTextVNode)(" "), cloned, (0, import_vue5.createTextVNode)(" ")]) : cloned;
|
|
494
|
+
return (0, import_vue5.createVNode)(import_vue5.Fragment, null, [triggerNode]);
|
|
491
495
|
};
|
|
492
496
|
}
|
|
493
497
|
});
|
|
@@ -531,7 +535,6 @@ var import_vue9 = require("vue");
|
|
|
531
535
|
var import_vue10 = require("vue");
|
|
532
536
|
var MpPopoverList = (0, import_vue10.defineComponent)({
|
|
533
537
|
name: "MpPopoverList",
|
|
534
|
-
inheritAttrs: false,
|
|
535
538
|
setup(_, {
|
|
536
539
|
slots
|
|
537
540
|
}) {
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-HXE2PLZA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
MpPopoverList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CFQWNGPO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
MpPopover
|
|
12
12
|
} from "./chunk-52BTWLDY.mjs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import "./chunk-ACYTEMPK.mjs";
|
|
17
17
|
import {
|
|
18
18
|
MpPopoverTrigger
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QM43AUFZ.mjs";
|
|
20
20
|
import "./chunk-MPDM4USP.mjs";
|
|
21
21
|
import "./chunk-2ZUCITXI.mjs";
|
|
22
22
|
import "./chunk-QZ7VFGWC.mjs";
|
package/dist/list.js
CHANGED
package/dist/list.mjs
CHANGED
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/popover.context.ts":{"bytes":490,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./popover.props","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.hooks.ts":{"bytes":7730,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@floating-ui/vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./popover.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.props.ts":{"bytes":2648,"imports":[],"format":"esm"},"src/content.tsx":{"bytes":1309,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"}],"format":"esm"},"src/popover.tsx":{"bytes":1117,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/trigger.tsx":{"bytes":746,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"}],"format":"esm"},"src/list.tsx":{"bytes":510,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"}],"format":"esm"},"src/list-item.tsx":{"bytes":1011,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"format":"esm"},"src/singleton-popover.tsx":{"bytes":1195,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/index.ts":{"bytes":430,"imports":[{"path":"src/popover.tsx","kind":"import-statement","original":"./popover"},{"path":"src/trigger.tsx","kind":"import-statement","original":"./trigger"},{"path":"src/content.tsx","kind":"import-statement","original":"./content"},{"path":"src/list.tsx","kind":"import-statement","original":"./list"},{"path":"src/list-item.tsx","kind":"import-statement","original":"./list-item"},{"path":"src/singleton-popover.tsx","kind":"import-statement","original":"./singleton-popover"}],"format":"esm"}},"outputs":{"dist/content.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/content.tsx","inputs":{"src/content.tsx":{"bytesInOutput":1182},"src/modules/popover.hooks.ts":{"bytesInOutput":2667},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":933}},"bytes":6123},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":343},"src/popover.tsx":{"bytesInOutput":860},"src/modules/popover.hooks.ts":{"bytesInOutput":8156},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":1138},"src/trigger.tsx":{"bytesInOutput":594},"src/content.tsx":{"bytesInOutput":1033},"src/list.tsx":{"bytesInOutput":371},"src/list-item.tsx":{"bytesInOutput":695},"src/singleton-popover.tsx":{"bytesInOutput":902}},"bytes":15652},"dist/list-item.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/list-item.tsx","inputs":{"src/list-item.tsx":{"bytesInOutput":846},"src/modules/popover.props.ts":{"bytesInOutput":1034},"src/modules/popover.hooks.ts":{"bytesInOutput":1330},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":4556},"dist/list.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/list.tsx","inputs":{"src/list.tsx":{"bytesInOutput":503},"src/modules/popover.hooks.ts":{"bytesInOutput":507},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":2309},"dist/popover.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/popover.tsx","inputs":{"src/popover.tsx":{"bytesInOutput":995},"src/modules/popover.hooks.ts":{"bytesInOutput":1897},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":829}},"bytes":5055},"dist/singleton-popover.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/singleton-popover.tsx","inputs":{"src/singleton-popover.tsx":{"bytesInOutput":1079},"src/modules/popover.hooks.ts":{"bytesInOutput":1611},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":829}},"bytes":4882},"dist/trigger.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/trigger.tsx","inputs":{"src/trigger.tsx":{"bytesInOutput":743},"src/modules/popover.hooks.ts":{"bytesInOutput":1552},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":3603},"dist/modules/popover.context.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/popover.context.ts","inputs":{"src/modules/popover.context.ts":{"bytesInOutput":385}},"bytes":1349},"dist/modules/popover.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/popover.hooks.ts","inputs":{"src/modules/popover.hooks.ts":{"bytesInOutput":8520},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":9887},"dist/modules/popover.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/popover.props.ts","inputs":{"src/modules/popover.props.ts":{"bytesInOutput":1453}},"bytes":2463}}}
|
|
1
|
+
{"inputs":{"src/modules/popover.context.ts":{"bytes":490,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./popover.props","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.hooks.ts":{"bytes":7730,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@floating-ui/vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./popover.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.props.ts":{"bytes":2648,"imports":[],"format":"esm"},"src/content.tsx":{"bytes":1309,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"}],"format":"esm"},"src/popover.tsx":{"bytes":1117,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/trigger.tsx":{"bytes":1146,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/list.tsx":{"bytes":487,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"}],"format":"esm"},"src/list-item.tsx":{"bytes":1011,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"format":"esm"},"src/singleton-popover.tsx":{"bytes":1195,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/index.ts":{"bytes":430,"imports":[{"path":"src/popover.tsx","kind":"import-statement","original":"./popover"},{"path":"src/trigger.tsx","kind":"import-statement","original":"./trigger"},{"path":"src/content.tsx","kind":"import-statement","original":"./content"},{"path":"src/list.tsx","kind":"import-statement","original":"./list"},{"path":"src/list-item.tsx","kind":"import-statement","original":"./list-item"},{"path":"src/singleton-popover.tsx","kind":"import-statement","original":"./singleton-popover"}],"format":"esm"}},"outputs":{"dist/content.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/content.tsx","inputs":{"src/content.tsx":{"bytesInOutput":1182},"src/modules/popover.hooks.ts":{"bytesInOutput":2667},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":933}},"bytes":6123},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":343},"src/popover.tsx":{"bytesInOutput":860},"src/modules/popover.hooks.ts":{"bytesInOutput":8156},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":1138},"src/trigger.tsx":{"bytesInOutput":994},"src/content.tsx":{"bytesInOutput":1033},"src/list.tsx":{"bytesInOutput":348},"src/list-item.tsx":{"bytesInOutput":695},"src/singleton-popover.tsx":{"bytesInOutput":902}},"bytes":16029},"dist/list-item.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/list-item.tsx","inputs":{"src/list-item.tsx":{"bytesInOutput":846},"src/modules/popover.props.ts":{"bytesInOutput":1034},"src/modules/popover.hooks.ts":{"bytesInOutput":1330},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":4556},"dist/list.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/list.tsx","inputs":{"src/list.tsx":{"bytesInOutput":480},"src/modules/popover.hooks.ts":{"bytesInOutput":507},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":2286},"dist/popover.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/popover.tsx","inputs":{"src/popover.tsx":{"bytesInOutput":995},"src/modules/popover.hooks.ts":{"bytesInOutput":1897},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":829}},"bytes":5055},"dist/singleton-popover.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/singleton-popover.tsx","inputs":{"src/singleton-popover.tsx":{"bytesInOutput":1079},"src/modules/popover.hooks.ts":{"bytesInOutput":1611},"src/modules/popover.context.ts":{"bytesInOutput":168},"src/modules/popover.props.ts":{"bytesInOutput":829}},"bytes":4882},"dist/trigger.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/trigger.tsx","inputs":{"src/trigger.tsx":{"bytesInOutput":1143},"src/modules/popover.hooks.ts":{"bytesInOutput":1552},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":4003},"dist/modules/popover.context.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/popover.context.ts","inputs":{"src/modules/popover.context.ts":{"bytesInOutput":385}},"bytes":1349},"dist/modules/popover.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@floating-ui/vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/popover.hooks.ts","inputs":{"src/modules/popover.hooks.ts":{"bytesInOutput":8520},"src/modules/popover.context.ts":{"bytesInOutput":168}},"bytes":9887},"dist/modules/popover.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/popover.props.ts","inputs":{"src/modules/popover.props.ts":{"bytesInOutput":1453}},"bytes":2463}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/popover.context.ts":{"bytes":490,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./popover.props","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.hooks.ts":{"bytes":7730,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@floating-ui/vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./popover.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.props.ts":{"bytes":2648,"imports":[],"format":"esm"},"src/content.tsx":{"bytes":1309,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"}],"format":"esm"},"src/popover.tsx":{"bytes":1117,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/trigger.tsx":{"bytes":746,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"}],"format":"esm"},"src/list.tsx":{"bytes":510,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"}],"format":"esm"},"src/list-item.tsx":{"bytes":1011,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"format":"esm"},"src/singleton-popover.tsx":{"bytes":1195,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/index.ts":{"bytes":430,"imports":[{"path":"src/popover.tsx","kind":"import-statement","original":"./popover"},{"path":"src/trigger.tsx","kind":"import-statement","original":"./trigger"},{"path":"src/content.tsx","kind":"import-statement","original":"./content"},{"path":"src/list.tsx","kind":"import-statement","original":"./list"},{"path":"src/list-item.tsx","kind":"import-statement","original":"./list-item"},{"path":"src/singleton-popover.tsx","kind":"import-statement","original":"./singleton-popover"}],"format":"esm"}},"outputs":{"dist/modules/popover.hooks.mjs":{"imports":[{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["usePopover","usePopoverContent","usePopoverList","usePopoverListItem","usePopoverTrigger","useSingletonPopover"],"entryPoint":"src/modules/popover.hooks.ts","inputs":{},"bytes":353},"dist/modules/popover.props.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["popoverContentProps","popoverListItemProps","popoverProps","singletonPopoverProps"],"entryPoint":"src/modules/popover.props.ts","inputs":{},"bytes":259},"dist/content.mjs":{"imports":[{"path":"dist/chunk-WBFSONWB.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverContent"],"entryPoint":"src/content.tsx","inputs":{},"bytes":214},"dist/index.mjs":{"imports":[{"path":"dist/chunk-WBFSONWB.mjs","kind":"import-statement"},{"path":"dist/chunk-HXE2PLZA.mjs","kind":"import-statement"},{"path":"dist/chunk-5LOKC2YN.mjs","kind":"import-statement"},{"path":"dist/chunk-52BTWLDY.mjs","kind":"import-statement"},{"path":"dist/chunk-YFYQ7S3B.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-VN53X7QU.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopover","MpPopoverContent","MpPopoverList","MpPopoverListItem","MpPopoverTrigger","MpSingletonPopover"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":595},"dist/chunk-WBFSONWB.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopoverContent"],"inputs":{"src/content.tsx":{"bytesInOutput":1000}},"bytes":1174},"dist/list-item.mjs":{"imports":[{"path":"dist/chunk-HXE2PLZA.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverListItem"],"entryPoint":"src/list-item.tsx","inputs":{},"bytes":216},"dist/chunk-HXE2PLZA.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"exports":["MpPopoverListItem"],"inputs":{"src/list-item.tsx":{"bytesInOutput":616}},"bytes":795},"dist/list.mjs":{"imports":[{"path":"dist/chunk-5LOKC2YN.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverList"],"entryPoint":"src/list.tsx","inputs":{},"bytes":177},"dist/chunk-5LOKC2YN.mjs":{"imports":[{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopoverList"],"inputs":{"src/list.tsx":{"bytesInOutput":358}},"bytes":461},"dist/popover.mjs":{"imports":[{"path":"dist/chunk-52BTWLDY.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopover"],"entryPoint":"src/popover.tsx","inputs":{},"bytes":200},"dist/chunk-52BTWLDY.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopover"],"inputs":{"src/popover.tsx":{"bytesInOutput":852}},"bytes":1063},"dist/singleton-popover.mjs":{"imports":[{"path":"dist/chunk-YFYQ7S3B.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpSingletonPopover"],"entryPoint":"src/singleton-popover.tsx","inputs":{},"bytes":218},"dist/chunk-YFYQ7S3B.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpSingletonPopover"],"inputs":{"src/singleton-popover.tsx":{"bytesInOutput":888}},"bytes":1136},"dist/chunk-ACYTEMPK.mjs":{"imports":[],"exports":["popoverContentProps","popoverListItemProps","popoverProps","singletonPopoverProps"],"inputs":{"src/modules/popover.props.ts":{"bytesInOutput":1138}},"bytes":1270},"dist/trigger.mjs":{"imports":[{"path":"dist/chunk-VN53X7QU.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverTrigger"],"entryPoint":"src/trigger.tsx","inputs":{},"bytes":183},"dist/chunk-VN53X7QU.mjs":{"imports":[{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopoverTrigger"],"inputs":{"src/trigger.tsx":{"bytesInOutput":590}},"bytes":702},"dist/chunk-MPDM4USP.mjs":{"imports":[{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@floating-ui/vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true}],"exports":["usePopover","usePopoverContent","usePopoverList","usePopoverListItem","usePopoverTrigger","useSingletonPopover"],"inputs":{"src/modules/popover.hooks.ts":{"bytesInOutput":7549}},"bytes":7822},"dist/modules/popover.context.mjs":{"imports":[{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["PopoverProvider","usePopoverContext"],"entryPoint":"src/modules/popover.context.ts","inputs":{},"bytes":163},"dist/chunk-2ZUCITXI.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["PopoverProvider","usePopoverContext"],"inputs":{"src/modules/popover.context.ts":{"bytesInOutput":146}},"bytes":232},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
1
|
+
{"inputs":{"src/modules/popover.context.ts":{"bytes":490,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./popover.props","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.hooks.ts":{"bytes":7730,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@floating-ui/vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./popover.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/popover.props.ts":{"bytes":2648,"imports":[],"format":"esm"},"src/content.tsx":{"bytes":1309,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"}],"format":"esm"},"src/popover.tsx":{"bytes":1117,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/trigger.tsx":{"bytes":1146,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/list.tsx":{"bytes":487,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"}],"format":"esm"},"src/list-item.tsx":{"bytes":1011,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"format":"esm"},"src/singleton-popover.tsx":{"bytes":1195,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/popover.hooks.ts","kind":"import-statement","original":"./modules/popover.hooks"},{"path":"src/modules/popover.props.ts","kind":"import-statement","original":"./modules/popover.props"},{"path":"src/modules/popover.context.ts","kind":"import-statement","original":"./modules/popover.context"}],"format":"esm"},"src/index.ts":{"bytes":430,"imports":[{"path":"src/popover.tsx","kind":"import-statement","original":"./popover"},{"path":"src/trigger.tsx","kind":"import-statement","original":"./trigger"},{"path":"src/content.tsx","kind":"import-statement","original":"./content"},{"path":"src/list.tsx","kind":"import-statement","original":"./list"},{"path":"src/list-item.tsx","kind":"import-statement","original":"./list-item"},{"path":"src/singleton-popover.tsx","kind":"import-statement","original":"./singleton-popover"}],"format":"esm"}},"outputs":{"dist/modules/popover.hooks.mjs":{"imports":[{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["usePopover","usePopoverContent","usePopoverList","usePopoverListItem","usePopoverTrigger","useSingletonPopover"],"entryPoint":"src/modules/popover.hooks.ts","inputs":{},"bytes":353},"dist/modules/popover.props.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["popoverContentProps","popoverListItemProps","popoverProps","singletonPopoverProps"],"entryPoint":"src/modules/popover.props.ts","inputs":{},"bytes":259},"dist/content.mjs":{"imports":[{"path":"dist/chunk-WBFSONWB.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverContent"],"entryPoint":"src/content.tsx","inputs":{},"bytes":214},"dist/index.mjs":{"imports":[{"path":"dist/chunk-WBFSONWB.mjs","kind":"import-statement"},{"path":"dist/chunk-HXE2PLZA.mjs","kind":"import-statement"},{"path":"dist/chunk-CFQWNGPO.mjs","kind":"import-statement"},{"path":"dist/chunk-52BTWLDY.mjs","kind":"import-statement"},{"path":"dist/chunk-YFYQ7S3B.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-QM43AUFZ.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopover","MpPopoverContent","MpPopoverList","MpPopoverListItem","MpPopoverTrigger","MpSingletonPopover"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":595},"dist/chunk-WBFSONWB.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopoverContent"],"inputs":{"src/content.tsx":{"bytesInOutput":1000}},"bytes":1174},"dist/list-item.mjs":{"imports":[{"path":"dist/chunk-HXE2PLZA.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverListItem"],"entryPoint":"src/list-item.tsx","inputs":{},"bytes":216},"dist/chunk-HXE2PLZA.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"exports":["MpPopoverListItem"],"inputs":{"src/list-item.tsx":{"bytesInOutput":616}},"bytes":795},"dist/list.mjs":{"imports":[{"path":"dist/chunk-CFQWNGPO.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverList"],"entryPoint":"src/list.tsx","inputs":{},"bytes":177},"dist/chunk-CFQWNGPO.mjs":{"imports":[{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopoverList"],"inputs":{"src/list.tsx":{"bytesInOutput":335}},"bytes":438},"dist/popover.mjs":{"imports":[{"path":"dist/chunk-52BTWLDY.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopover"],"entryPoint":"src/popover.tsx","inputs":{},"bytes":200},"dist/chunk-52BTWLDY.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpPopover"],"inputs":{"src/popover.tsx":{"bytesInOutput":852}},"bytes":1063},"dist/singleton-popover.mjs":{"imports":[{"path":"dist/chunk-YFYQ7S3B.mjs","kind":"import-statement"},{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpSingletonPopover"],"entryPoint":"src/singleton-popover.tsx","inputs":{},"bytes":218},"dist/chunk-YFYQ7S3B.mjs":{"imports":[{"path":"dist/chunk-ACYTEMPK.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpSingletonPopover"],"inputs":{"src/singleton-popover.tsx":{"bytesInOutput":888}},"bytes":1136},"dist/chunk-ACYTEMPK.mjs":{"imports":[],"exports":["popoverContentProps","popoverListItemProps","popoverProps","singletonPopoverProps"],"inputs":{"src/modules/popover.props.ts":{"bytesInOutput":1138}},"bytes":1270},"dist/trigger.mjs":{"imports":[{"path":"dist/chunk-QM43AUFZ.mjs","kind":"import-statement"},{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpPopoverTrigger"],"entryPoint":"src/trigger.tsx","inputs":{},"bytes":183},"dist/chunk-QM43AUFZ.mjs":{"imports":[{"path":"dist/chunk-MPDM4USP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpPopoverTrigger"],"inputs":{"src/trigger.tsx":{"bytesInOutput":953}},"bytes":1065},"dist/chunk-MPDM4USP.mjs":{"imports":[{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@floating-ui/vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/patterns","kind":"import-statement","external":true}],"exports":["usePopover","usePopoverContent","usePopoverList","usePopoverListItem","usePopoverTrigger","useSingletonPopover"],"inputs":{"src/modules/popover.hooks.ts":{"bytesInOutput":7549}},"bytes":7822},"dist/modules/popover.context.mjs":{"imports":[{"path":"dist/chunk-2ZUCITXI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["PopoverProvider","usePopoverContext"],"entryPoint":"src/modules/popover.context.ts","inputs":{},"bytes":163},"dist/chunk-2ZUCITXI.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["PopoverProvider","usePopoverContext"],"inputs":{"src/modules/popover.context.ts":{"bytesInOutput":146}},"bytes":232},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
package/dist/trigger.js
CHANGED
|
@@ -91,6 +91,7 @@ function usePopoverTrigger() {
|
|
|
91
91
|
__name(usePopoverTrigger, "usePopoverTrigger");
|
|
92
92
|
|
|
93
93
|
// src/trigger.tsx
|
|
94
|
+
var import_pixel3_utils3 = require("@mekari/pixel3-utils");
|
|
94
95
|
var MpPopoverTrigger = (0, import_vue4.defineComponent)({
|
|
95
96
|
name: "MpPopoverTrigger",
|
|
96
97
|
inheritAttrs: false,
|
|
@@ -104,8 +105,11 @@ var MpPopoverTrigger = (0, import_vue4.defineComponent)({
|
|
|
104
105
|
if (slots.default && slots.default().length > 1) {
|
|
105
106
|
console.error("[MpPopoverTrigger] Only 1 node allowed");
|
|
106
107
|
}
|
|
107
|
-
const
|
|
108
|
-
|
|
108
|
+
const children = slots.default()[0];
|
|
109
|
+
const isPixelTag = (0, import_pixel3_utils3.isPixelTagComponent)(children.type.name);
|
|
110
|
+
const cloned = (0, import_vue4.cloneVNode)(children, isPixelTag ? {} : rootAttrs.value);
|
|
111
|
+
const triggerNode = isPixelTag ? (0, import_vue3.createVNode)("div", rootAttrs.value, [(0, import_vue3.createTextVNode)(" "), cloned, (0, import_vue3.createTextVNode)(" ")]) : cloned;
|
|
112
|
+
return (0, import_vue3.createVNode)(import_vue3.Fragment, null, [triggerNode]);
|
|
109
113
|
};
|
|
110
114
|
}
|
|
111
115
|
});
|
package/dist/trigger.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-popover",
|
|
3
3
|
"description": "Popover component for mekari pixel 3",
|
|
4
|
-
"version": "0.0.7
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@floating-ui/vue": "^1.0.
|
|
12
|
-
"@mekari/pixel3-icon": "0.0.7
|
|
13
|
-
"@mekari/pixel3-styled-system": "0.0.5
|
|
14
|
-
"@mekari/pixel3-utils": "0.0.5
|
|
11
|
+
"@floating-ui/vue": "^1.0.6",
|
|
12
|
+
"@mekari/pixel3-icon": "0.0.7",
|
|
13
|
+
"@mekari/pixel3-styled-system": "0.0.5",
|
|
14
|
+
"@mekari/pixel3-utils": "0.0.5"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"vue": "^3.4.9"
|
package/dist/chunk-VN53X7QU.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
usePopoverTrigger
|
|
3
|
-
} from "./chunk-MPDM4USP.mjs";
|
|
4
|
-
|
|
5
|
-
// src/trigger.tsx
|
|
6
|
-
import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
7
|
-
import { defineComponent, cloneVNode } from "vue";
|
|
8
|
-
var MpPopoverTrigger = defineComponent({
|
|
9
|
-
name: "MpPopoverTrigger",
|
|
10
|
-
inheritAttrs: false,
|
|
11
|
-
setup(_, {
|
|
12
|
-
slots
|
|
13
|
-
}) {
|
|
14
|
-
const {
|
|
15
|
-
rootAttrs
|
|
16
|
-
} = usePopoverTrigger();
|
|
17
|
-
return () => {
|
|
18
|
-
if (slots.default && slots.default().length > 1) {
|
|
19
|
-
console.error("[MpPopoverTrigger] Only 1 node allowed");
|
|
20
|
-
}
|
|
21
|
-
const clone = cloneVNode(slots.default()[0], rootAttrs.value);
|
|
22
|
-
return _createVNode(_Fragment, null, [clone]);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
MpPopoverTrigger
|
|
29
|
-
};
|