@mekari/pixel3-drawer 0.0.1

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.
Files changed (53) hide show
  1. package/dist/body.d.mts +6 -0
  2. package/dist/body.d.ts +6 -0
  3. package/dist/body.js +46 -0
  4. package/dist/body.mjs +7 -0
  5. package/dist/chunk-4UTOYOXC.mjs +47 -0
  6. package/dist/chunk-54CTPMF7.mjs +8 -0
  7. package/dist/chunk-7CKFUGSM.mjs +84 -0
  8. package/dist/chunk-CMAJDRDT.mjs +18 -0
  9. package/dist/chunk-O5HQLNZJ.mjs +22 -0
  10. package/dist/chunk-PSZMVXVP.mjs +44 -0
  11. package/dist/chunk-PZOVPODZ.mjs +18 -0
  12. package/dist/chunk-QZ7VFGWC.mjs +6 -0
  13. package/dist/chunk-V64M33JD.mjs +22 -0
  14. package/dist/chunk-ZTWQO5OZ.mjs +22 -0
  15. package/dist/close-button.d.mts +6 -0
  16. package/dist/close-button.d.ts +6 -0
  17. package/dist/close-button.js +42 -0
  18. package/dist/close-button.mjs +7 -0
  19. package/dist/content.d.mts +6 -0
  20. package/dist/content.d.ts +6 -0
  21. package/dist/content.js +108 -0
  22. package/dist/content.mjs +8 -0
  23. package/dist/drawer.d.mts +94 -0
  24. package/dist/drawer.d.ts +94 -0
  25. package/dist/drawer.js +109 -0
  26. package/dist/drawer.mjs +9 -0
  27. package/dist/footer.d.mts +6 -0
  28. package/dist/footer.d.ts +6 -0
  29. package/dist/footer.js +46 -0
  30. package/dist/footer.mjs +7 -0
  31. package/dist/header.d.mts +6 -0
  32. package/dist/header.d.ts +6 -0
  33. package/dist/header.js +46 -0
  34. package/dist/header.mjs +7 -0
  35. package/dist/index.d.mts +10 -0
  36. package/dist/index.d.ts +10 -0
  37. package/dist/index.js +285 -0
  38. package/dist/index.mjs +33 -0
  39. package/dist/metafile-cjs.json +1 -0
  40. package/dist/metafile-esm.json +1 -0
  41. package/dist/modules/drawer.context.d.mts +11 -0
  42. package/dist/modules/drawer.context.d.ts +11 -0
  43. package/dist/modules/drawer.context.js +33 -0
  44. package/dist/modules/drawer.context.mjs +9 -0
  45. package/dist/modules/drawer.props.d.mts +47 -0
  46. package/dist/modules/drawer.props.d.ts +47 -0
  47. package/dist/modules/drawer.props.js +72 -0
  48. package/dist/modules/drawer.props.mjs +9 -0
  49. package/dist/overlay.d.mts +6 -0
  50. package/dist/overlay.d.ts +6 -0
  51. package/dist/overlay.js +42 -0
  52. package/dist/overlay.mjs +7 -0
  53. package/package.json +44 -0
@@ -0,0 +1 @@
1
+ {"inputs":{"src/body.tsx":{"bytes":532,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/close-button.tsx":{"bytes":481,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/modules/drawer.context.ts":{"bytes":401,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/content.tsx":{"bytes":1809,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true},{"path":"src/modules/drawer.context.ts","kind":"import-statement","original":"./modules/drawer.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/drawer.props.ts":{"bytes":1127,"imports":[],"format":"esm"},"src/drawer.tsx":{"bytes":1077,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true},{"path":"src/modules/drawer.props.ts","kind":"import-statement","original":"./modules/drawer.props"},{"path":"src/modules/drawer.context.ts","kind":"import-statement","original":"./modules/drawer.context"}],"format":"esm"},"src/footer.tsx":{"bytes":542,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/header.tsx":{"bytes":542,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/overlay.tsx":{"bytes":461,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":272,"imports":[{"path":"src/drawer.tsx","kind":"import-statement","original":"./drawer"},{"path":"src/overlay.tsx","kind":"import-statement","original":"./overlay"},{"path":"src/content.tsx","kind":"import-statement","original":"./content"},{"path":"src/body.tsx","kind":"import-statement","original":"./body"},{"path":"src/header.tsx","kind":"import-statement","original":"./header"},{"path":"src/footer.tsx","kind":"import-statement","original":"./footer"},{"path":"src/close-button.tsx","kind":"import-statement","original":"./close-button"}],"format":"esm"}},"outputs":{"dist/body.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/body.tsx","inputs":{"src/body.tsx":{"bytesInOutput":607}},"bytes":1529},"dist/close-button.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/close-button.tsx","inputs":{"src/close-button.tsx":{"bytesInOutput":587}},"bytes":1524},"dist/content.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/content.tsx","inputs":{"src/content.tsx":{"bytesInOutput":1819},"src/modules/drawer.context.ts":{"bytesInOutput":165}},"bytes":3056},"dist/drawer.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/drawer.tsx","inputs":{"src/drawer.tsx":{"bytesInOutput":1037},"src/modules/drawer.props.ts":{"bytesInOutput":614},"src/modules/drawer.context.ts":{"bytesInOutput":165}},"bytes":2821},"dist/footer.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/footer.tsx","inputs":{"src/footer.tsx":{"bytesInOutput":625}},"bytes":1551},"dist/header.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/header.tsx","inputs":{"src/header.tsx":{"bytesInOutput":625}},"bytes":1551},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","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-modal","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":371},"src/drawer.tsx":{"bytesInOutput":907},"src/modules/drawer.props.ts":{"bytesInOutput":614},"src/modules/drawer.context.ts":{"bytesInOutput":165},"src/overlay.tsx":{"bytesInOutput":405},"src/content.tsx":{"bytesInOutput":1678},"src/body.tsx":{"bytesInOutput":479},"src/header.tsx":{"bytesInOutput":489},"src/footer.tsx":{"bytesInOutput":491},"src/close-button.tsx":{"bytesInOutput":425}},"bytes":7369},"dist/overlay.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-modal","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/overlay.tsx","inputs":{"src/overlay.tsx":{"bytesInOutput":548}},"bytes":1476},"dist/modules/drawer.context.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/drawer.context.ts","inputs":{"src/modules/drawer.context.ts":{"bytesInOutput":375}},"bytes":1336},"dist/modules/drawer.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/drawer.props.ts","inputs":{"src/modules/drawer.props.ts":{"bytesInOutput":802}},"bytes":1753}}}
@@ -0,0 +1 @@
1
+ {"inputs":{"src/body.tsx":{"bytes":532,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/close-button.tsx":{"bytes":481,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/modules/drawer.context.ts":{"bytes":401,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/content.tsx":{"bytes":1809,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true},{"path":"src/modules/drawer.context.ts","kind":"import-statement","original":"./modules/drawer.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/drawer.props.ts":{"bytes":1127,"imports":[],"format":"esm"},"src/drawer.tsx":{"bytes":1077,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true},{"path":"src/modules/drawer.props.ts","kind":"import-statement","original":"./modules/drawer.props"},{"path":"src/modules/drawer.context.ts","kind":"import-statement","original":"./modules/drawer.context"}],"format":"esm"},"src/footer.tsx":{"bytes":542,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/header.tsx":{"bytes":542,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/overlay.tsx":{"bytes":461,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":272,"imports":[{"path":"src/drawer.tsx","kind":"import-statement","original":"./drawer"},{"path":"src/overlay.tsx","kind":"import-statement","original":"./overlay"},{"path":"src/content.tsx","kind":"import-statement","original":"./content"},{"path":"src/body.tsx","kind":"import-statement","original":"./body"},{"path":"src/header.tsx","kind":"import-statement","original":"./header"},{"path":"src/footer.tsx","kind":"import-statement","original":"./footer"},{"path":"src/close-button.tsx","kind":"import-statement","original":"./close-button"}],"format":"esm"}},"outputs":{"dist/modules/drawer.context.mjs":{"imports":[{"path":"dist/chunk-54CTPMF7.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["DrawerProvider","useDrawerContext"],"entryPoint":"src/modules/drawer.context.ts","inputs":{},"bytes":159},"dist/modules/drawer.props.mjs":{"imports":[{"path":"dist/chunk-4UTOYOXC.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["drawerEmits","drawerProps"],"entryPoint":"src/modules/drawer.props.ts","inputs":{},"bytes":143},"dist/body.mjs":{"imports":[{"path":"dist/chunk-ZTWQO5OZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawerBody"],"entryPoint":"src/body.tsx","inputs":{},"bytes":113},"dist/close-button.mjs":{"imports":[{"path":"dist/chunk-CMAJDRDT.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawerCloseButton"],"entryPoint":"src/close-button.tsx","inputs":{},"bytes":127},"dist/content.mjs":{"imports":[{"path":"dist/chunk-7CKFUGSM.mjs","kind":"import-statement"},{"path":"dist/chunk-54CTPMF7.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawerContent"],"entryPoint":"src/content.tsx","inputs":{},"bytes":150},"dist/drawer.mjs":{"imports":[{"path":"dist/chunk-PSZMVXVP.mjs","kind":"import-statement"},{"path":"dist/chunk-4UTOYOXC.mjs","kind":"import-statement"},{"path":"dist/chunk-54CTPMF7.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawer"],"entryPoint":"src/drawer.tsx","inputs":{},"bytes":167},"dist/footer.mjs":{"imports":[{"path":"dist/chunk-V64M33JD.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawerFooter"],"entryPoint":"src/footer.tsx","inputs":{},"bytes":117},"dist/header.mjs":{"imports":[{"path":"dist/chunk-O5HQLNZJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawerHeader"],"entryPoint":"src/header.tsx","inputs":{},"bytes":117},"dist/index.mjs":{"imports":[{"path":"dist/chunk-ZTWQO5OZ.mjs","kind":"import-statement"},{"path":"dist/chunk-CMAJDRDT.mjs","kind":"import-statement"},{"path":"dist/chunk-7CKFUGSM.mjs","kind":"import-statement"},{"path":"dist/chunk-PSZMVXVP.mjs","kind":"import-statement"},{"path":"dist/chunk-4UTOYOXC.mjs","kind":"import-statement"},{"path":"dist/chunk-54CTPMF7.mjs","kind":"import-statement"},{"path":"dist/chunk-V64M33JD.mjs","kind":"import-statement"},{"path":"dist/chunk-O5HQLNZJ.mjs","kind":"import-statement"},{"path":"dist/chunk-PZOVPODZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawer","MpDrawerBody","MpDrawerCloseButton","MpDrawerContent","MpDrawerFooter","MpDrawerHeader","MpDrawerOverlay"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":627},"dist/chunk-ZTWQO5OZ.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawerBody"],"inputs":{"src/body.tsx":{"bytesInOutput":439}},"bytes":483},"dist/chunk-CMAJDRDT.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawerCloseButton"],"inputs":{"src/close-button.tsx":{"bytesInOutput":388}},"bytes":447},"dist/chunk-7CKFUGSM.mjs":{"imports":[{"path":"dist/chunk-54CTPMF7.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawerContent"],"inputs":{"src/content.tsx":{"bytesInOutput":1632}},"bytes":1791},"dist/chunk-PSZMVXVP.mjs":{"imports":[{"path":"dist/chunk-4UTOYOXC.mjs","kind":"import-statement"},{"path":"dist/chunk-54CTPMF7.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawer"],"inputs":{"src/drawer.tsx":{"bytesInOutput":858}},"bytes":1027},"dist/chunk-4UTOYOXC.mjs":{"imports":[],"exports":["drawerEmits","drawerProps"],"inputs":{"src/modules/drawer.props.ts":{"bytesInOutput":614}},"bytes":687},"dist/chunk-54CTPMF7.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["DrawerProvider","useDrawerContext"],"inputs":{"src/modules/drawer.context.ts":{"bytesInOutput":143}},"bytes":226},"dist/chunk-V64M33JD.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawerFooter"],"inputs":{"src/footer.tsx":{"bytesInOutput":449}},"bytes":497},"dist/chunk-O5HQLNZJ.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawerHeader"],"inputs":{"src/header.tsx":{"bytesInOutput":449}},"bytes":497},"dist/overlay.mjs":{"imports":[{"path":"dist/chunk-PZOVPODZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDrawerOverlay"],"entryPoint":"src/overlay.tsx","inputs":{},"bytes":119},"dist/chunk-PZOVPODZ.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-modal","kind":"import-statement","external":true}],"exports":["MpDrawerOverlay"],"inputs":{"src/overlay.tsx":{"bytesInOutput":368}},"bytes":418},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
@@ -0,0 +1,11 @@
1
+ import { ToRefs } from 'vue';
2
+ import { DrawerProps } from './drawer.props.mjs';
3
+ import '@mekari/pixel3-modal';
4
+
5
+ interface UseDrawerContext {
6
+ props: ToRefs<DrawerProps>;
7
+ }
8
+ declare const DrawerProvider: (opts: UseDrawerContext) => void;
9
+ declare const useDrawerContext: (fallback?: UseDrawerContext | undefined) => UseDrawerContext;
10
+
11
+ export { DrawerProvider, useDrawerContext };
@@ -0,0 +1,11 @@
1
+ import { ToRefs } from 'vue';
2
+ import { DrawerProps } from './drawer.props.js';
3
+ import '@mekari/pixel3-modal';
4
+
5
+ interface UseDrawerContext {
6
+ props: ToRefs<DrawerProps>;
7
+ }
8
+ declare const DrawerProvider: (opts: UseDrawerContext) => void;
9
+ declare const useDrawerContext: (fallback?: UseDrawerContext | undefined) => UseDrawerContext;
10
+
11
+ export { DrawerProvider, useDrawerContext };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/modules/drawer.context.ts
21
+ var drawer_context_exports = {};
22
+ __export(drawer_context_exports, {
23
+ DrawerProvider: () => DrawerProvider,
24
+ useDrawerContext: () => useDrawerContext
25
+ });
26
+ module.exports = __toCommonJS(drawer_context_exports);
27
+ var import_pixel3_utils = require("@mekari/pixel3-utils");
28
+ var [DrawerProvider, useDrawerContext] = (0, import_pixel3_utils.usePixelCreateContext)("DrawerContext");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ DrawerProvider,
32
+ useDrawerContext
33
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ DrawerProvider,
3
+ useDrawerContext
4
+ } from "../chunk-54CTPMF7.mjs";
5
+ import "../chunk-QZ7VFGWC.mjs";
6
+ export {
7
+ DrawerProvider,
8
+ useDrawerContext
9
+ };
@@ -0,0 +1,47 @@
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
+ import { Placement, BaseSize } from '@mekari/pixel3-modal';
3
+
4
+ declare const drawerProps: {
5
+ id: {
6
+ type: PropType<string>;
7
+ };
8
+ isOpen: {
9
+ type: PropType<boolean>;
10
+ default: boolean;
11
+ };
12
+ isBlockScrollOnMount: {
13
+ type: PropType<boolean>;
14
+ default: boolean;
15
+ };
16
+ isCloseOnEsc: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ isCloseOnOverlayClick: {
21
+ type: PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ isKeepAlive: {
25
+ type: PropType<boolean>;
26
+ default: boolean;
27
+ };
28
+ isFullHeight: {
29
+ type: PropType<boolean>;
30
+ default: boolean;
31
+ };
32
+ placement: {
33
+ type: PropType<Placement>;
34
+ default: string;
35
+ };
36
+ size: {
37
+ type: PropType<BaseSize>;
38
+ default: string;
39
+ };
40
+ };
41
+ declare const drawerEmits: {
42
+ open: (value: boolean) => boolean;
43
+ close: (value: boolean) => boolean;
44
+ };
45
+ type DrawerProps = ExtractPropTypes<typeof drawerProps>;
46
+
47
+ export { DrawerProps, drawerEmits, drawerProps };
@@ -0,0 +1,47 @@
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
+ import { Placement, BaseSize } from '@mekari/pixel3-modal';
3
+
4
+ declare const drawerProps: {
5
+ id: {
6
+ type: PropType<string>;
7
+ };
8
+ isOpen: {
9
+ type: PropType<boolean>;
10
+ default: boolean;
11
+ };
12
+ isBlockScrollOnMount: {
13
+ type: PropType<boolean>;
14
+ default: boolean;
15
+ };
16
+ isCloseOnEsc: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ isCloseOnOverlayClick: {
21
+ type: PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ isKeepAlive: {
25
+ type: PropType<boolean>;
26
+ default: boolean;
27
+ };
28
+ isFullHeight: {
29
+ type: PropType<boolean>;
30
+ default: boolean;
31
+ };
32
+ placement: {
33
+ type: PropType<Placement>;
34
+ default: string;
35
+ };
36
+ size: {
37
+ type: PropType<BaseSize>;
38
+ default: string;
39
+ };
40
+ };
41
+ declare const drawerEmits: {
42
+ open: (value: boolean) => boolean;
43
+ close: (value: boolean) => boolean;
44
+ };
45
+ type DrawerProps = ExtractPropTypes<typeof drawerProps>;
46
+
47
+ export { DrawerProps, drawerEmits, drawerProps };
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/modules/drawer.props.ts
21
+ var drawer_props_exports = {};
22
+ __export(drawer_props_exports, {
23
+ drawerEmits: () => drawerEmits,
24
+ drawerProps: () => drawerProps
25
+ });
26
+ module.exports = __toCommonJS(drawer_props_exports);
27
+ var drawerProps = {
28
+ id: {
29
+ type: String
30
+ },
31
+ isOpen: {
32
+ type: Boolean,
33
+ default: false
34
+ },
35
+ isBlockScrollOnMount: {
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ isCloseOnEsc: {
40
+ type: Boolean,
41
+ default: true
42
+ },
43
+ isCloseOnOverlayClick: {
44
+ type: Boolean,
45
+ default: true
46
+ },
47
+ isKeepAlive: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ isFullHeight: {
52
+ type: Boolean,
53
+ default: true
54
+ },
55
+ placement: {
56
+ type: String,
57
+ default: "right"
58
+ },
59
+ size: {
60
+ type: String,
61
+ default: "md"
62
+ }
63
+ };
64
+ var drawerEmits = {
65
+ "open": (value) => value,
66
+ "close": (value) => value
67
+ };
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ drawerEmits,
71
+ drawerProps
72
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ drawerEmits,
3
+ drawerProps
4
+ } from "../chunk-4UTOYOXC.mjs";
5
+ import "../chunk-QZ7VFGWC.mjs";
6
+ export {
7
+ drawerEmits,
8
+ drawerProps
9
+ };
@@ -0,0 +1,6 @@
1
+ import * as vue from 'vue';
2
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
3
+
4
+ declare const MpDrawerOverlay: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
5
+
6
+ export { MpDrawerOverlay };
@@ -0,0 +1,6 @@
1
+ import * as vue from 'vue';
2
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
3
+
4
+ declare const MpDrawerOverlay: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
5
+
6
+ export { MpDrawerOverlay };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/overlay.tsx
21
+ var overlay_exports = {};
22
+ __export(overlay_exports, {
23
+ MpDrawerOverlay: () => MpDrawerOverlay
24
+ });
25
+ module.exports = __toCommonJS(overlay_exports);
26
+ var import_vue = require("vue");
27
+ var import_vue2 = require("vue");
28
+ var import_pixel3_modal = require("@mekari/pixel3-modal");
29
+ var MpDrawerOverlay = (0, import_vue2.defineComponent)({
30
+ name: "MpDrawerOverlay",
31
+ setup() {
32
+ return () => {
33
+ return (0, import_vue.createVNode)(import_pixel3_modal.MpModalOverlay, {
34
+ "data-pixel-component": "MpDrawerOverlay"
35
+ }, null);
36
+ };
37
+ }
38
+ });
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ MpDrawerOverlay
42
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ MpDrawerOverlay
3
+ } from "./chunk-PZOVPODZ.mjs";
4
+ import "./chunk-QZ7VFGWC.mjs";
5
+ export {
6
+ MpDrawerOverlay
7
+ };
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@mekari/pixel3-drawer",
3
+ "description": "Drawer component for mekari pixel 3",
4
+ "version": "0.0.1",
5
+ "main": "dist/index.js",
6
+ "license": "MIT",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "dependencies": {
11
+ "animejs": "^3.2.2",
12
+ "@mekari/pixel3-modal": "0.0.1",
13
+ "@mekari/pixel3-styled-system": "0.0.1",
14
+ "@mekari/pixel3-utils": "0.0.2"
15
+ },
16
+ "peerDependencies": {
17
+ "vue": "^3.3.7"
18
+ },
19
+ "devDependencies": {
20
+ "vue": "^3.4.3"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "module": "dist/index.mjs",
26
+ "types": "dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "require": "./dist/index.js",
31
+ "default": "./dist/index.mjs"
32
+ }
33
+ },
34
+ "scripts": {
35
+ "clean": "rimraf dist .turbo",
36
+ "build": "tsup && pnpm build:types",
37
+ "build:fast": "tsup",
38
+ "build:types": "tsup src --dts-only",
39
+ "build:external": "tsup src/index.tsx --external @acme-org/styled-system",
40
+ "types:check": "tsc --noEmit",
41
+ "replace-config": "clean-package",
42
+ "restore-config": "clean-package restore"
43
+ }
44
+ }