@mekari/pixel3-dropzone 0.0.16-dev.0 → 0.0.16-dev.2

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.
@@ -116,7 +116,8 @@ var MpDropzone = defineComponent({
116
116
  })]), _createVNode("img", imageAttrs.value, null)]), !isLoading && !hasPreview.value && variant === "default" && _createVNode("div", boxAttrs.value, [_createVNode(MpIcon, {
117
117
  "name": "upload",
118
118
  "variant": "outline",
119
- "color": iconColor.value
119
+ "color": iconColor.value,
120
+ "style": "width: 80px; height: 80px;"
120
121
  }, null), _createVNode(MpText, {
121
122
  "weight": "semiBold"
122
123
  }, {
File without changes
@@ -1,4 +1,5 @@
1
1
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
2
+ import { DropzoneVariant, DropzoneOverlayVariant } from './modules/dropzone.types.mjs';
2
3
  import * as vue from 'vue';
3
4
 
4
5
  declare const MpDropzone: vue.DefineComponent<{
@@ -7,7 +8,7 @@ declare const MpDropzone: vue.DefineComponent<{
7
8
  default: string;
8
9
  };
9
10
  variant: {
10
- type: vue.PropType<"default" | "logo" | "product" | "avatar">;
11
+ type: vue.PropType<DropzoneVariant>;
11
12
  default: string;
12
13
  };
13
14
  accept: {
@@ -33,7 +34,7 @@ declare const MpDropzone: vue.DefineComponent<{
33
34
  default: string;
34
35
  };
35
36
  overlayVariant: {
36
- type: vue.PropType<"white" | "black">;
37
+ type: vue.PropType<DropzoneOverlayVariant>;
37
38
  default: string;
38
39
  };
39
40
  isShowPreview: {
@@ -82,7 +83,7 @@ declare const MpDropzone: vue.DefineComponent<{
82
83
  default: string;
83
84
  };
84
85
  variant: {
85
- type: vue.PropType<"default" | "logo" | "product" | "avatar">;
86
+ type: vue.PropType<DropzoneVariant>;
86
87
  default: string;
87
88
  };
88
89
  accept: {
@@ -108,7 +109,7 @@ declare const MpDropzone: vue.DefineComponent<{
108
109
  default: string;
109
110
  };
110
111
  overlayVariant: {
111
- type: vue.PropType<"white" | "black">;
112
+ type: vue.PropType<DropzoneOverlayVariant>;
112
113
  default: string;
113
114
  };
114
115
  isShowPreview: {
@@ -155,12 +156,12 @@ declare const MpDropzone: vue.DefineComponent<{
155
156
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
156
157
  }, {
157
158
  id: string;
158
- variant: "default" | "logo" | "product" | "avatar";
159
+ variant: DropzoneVariant;
159
160
  placeholder: string;
160
161
  description: string;
161
162
  loadingText: string;
162
163
  buttonText: string;
163
- overlayVariant: "white" | "black";
164
+ overlayVariant: DropzoneOverlayVariant;
164
165
  isShowPreview: boolean;
165
166
  isMultiple: boolean;
166
167
  isLoading: boolean;
@@ -1,4 +1,5 @@
1
1
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
2
+ import { DropzoneVariant, DropzoneOverlayVariant } from './modules/dropzone.types.js';
2
3
  import * as vue from 'vue';
3
4
 
4
5
  declare const MpDropzone: vue.DefineComponent<{
@@ -7,7 +8,7 @@ declare const MpDropzone: vue.DefineComponent<{
7
8
  default: string;
8
9
  };
9
10
  variant: {
10
- type: vue.PropType<"default" | "logo" | "product" | "avatar">;
11
+ type: vue.PropType<DropzoneVariant>;
11
12
  default: string;
12
13
  };
13
14
  accept: {
@@ -33,7 +34,7 @@ declare const MpDropzone: vue.DefineComponent<{
33
34
  default: string;
34
35
  };
35
36
  overlayVariant: {
36
- type: vue.PropType<"white" | "black">;
37
+ type: vue.PropType<DropzoneOverlayVariant>;
37
38
  default: string;
38
39
  };
39
40
  isShowPreview: {
@@ -82,7 +83,7 @@ declare const MpDropzone: vue.DefineComponent<{
82
83
  default: string;
83
84
  };
84
85
  variant: {
85
- type: vue.PropType<"default" | "logo" | "product" | "avatar">;
86
+ type: vue.PropType<DropzoneVariant>;
86
87
  default: string;
87
88
  };
88
89
  accept: {
@@ -108,7 +109,7 @@ declare const MpDropzone: vue.DefineComponent<{
108
109
  default: string;
109
110
  };
110
111
  overlayVariant: {
111
- type: vue.PropType<"white" | "black">;
112
+ type: vue.PropType<DropzoneOverlayVariant>;
112
113
  default: string;
113
114
  };
114
115
  isShowPreview: {
@@ -155,12 +156,12 @@ declare const MpDropzone: vue.DefineComponent<{
155
156
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
156
157
  }, {
157
158
  id: string;
158
- variant: "default" | "logo" | "product" | "avatar";
159
+ variant: DropzoneVariant;
159
160
  placeholder: string;
160
161
  description: string;
161
162
  loadingText: string;
162
163
  buttonText: string;
163
- overlayVariant: "white" | "black";
164
+ overlayVariant: DropzoneOverlayVariant;
164
165
  isShowPreview: boolean;
165
166
  isMultiple: boolean;
166
167
  isLoading: boolean;
package/dist/dropzone.js CHANGED
@@ -485,7 +485,8 @@ var MpDropzone = (0, import_vue3.defineComponent)({
485
485
  })]), (0, import_vue2.createVNode)("img", imageAttrs.value, null)]), !isLoading && !hasPreview.value && variant === "default" && (0, import_vue2.createVNode)("div", boxAttrs.value, [(0, import_vue2.createVNode)(import_pixel3_icon.MpIcon, {
486
486
  "name": "upload",
487
487
  "variant": "outline",
488
- "color": iconColor.value
488
+ "color": iconColor.value,
489
+ "style": "width: 80px; height: 80px;"
489
490
  }, null), (0, import_vue2.createVNode)(import_pixel3_text.MpText, {
490
491
  "weight": "semiBold"
491
492
  }, {
package/dist/dropzone.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MpDropzone
3
- } from "./chunk-5UURK6X5.mjs";
3
+ } from "./chunk-7XRYSQYV.mjs";
4
4
  import "./chunk-GWHWG6GP.mjs";
5
5
  import "./chunk-5JNHQ27U.mjs";
6
6
  import "./chunk-QZ7VFGWC.mjs";
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { MpDropzone } from './dropzone.mjs';
2
+ export { DropzoneOverlayVariant, DropzoneVariant } from './modules/dropzone.types.mjs';
2
3
  import 'vue/jsx-runtime';
3
4
  import 'vue';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { MpDropzone } from './dropzone.js';
2
+ export { DropzoneOverlayVariant, DropzoneVariant } from './modules/dropzone.types.js';
2
3
  import 'vue/jsx-runtime';
3
4
  import 'vue';
package/dist/index.js CHANGED
@@ -487,7 +487,8 @@ var MpDropzone = (0, import_vue3.defineComponent)({
487
487
  })]), (0, import_vue2.createVNode)("img", imageAttrs.value, null)]), !isLoading && !hasPreview.value && variant === "default" && (0, import_vue2.createVNode)("div", boxAttrs.value, [(0, import_vue2.createVNode)(import_pixel3_icon.MpIcon, {
488
488
  "name": "upload",
489
489
  "variant": "outline",
490
- "color": iconColor.value
490
+ "color": iconColor.value,
491
+ "style": "width: 80px; height: 80px;"
491
492
  }, null), (0, import_vue2.createVNode)(import_pixel3_text.MpText, {
492
493
  "weight": "semiBold"
493
494
  }, {
package/dist/index.mjs CHANGED
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  MpDropzone
3
- } from "./chunk-5UURK6X5.mjs";
3
+ } from "./chunk-7XRYSQYV.mjs";
4
4
  import "./chunk-GWHWG6GP.mjs";
5
5
  import "./chunk-5JNHQ27U.mjs";
6
6
  import "./chunk-QZ7VFGWC.mjs";
7
+ import "./chunk-VE4DE26L.mjs";
7
8
  export {
8
9
  MpDropzone
9
10
  };
@@ -1 +1 @@
1
- {"inputs":{"src/modules/dropzone.props.ts":{"bytes":2066,"imports":[],"format":"esm"},"src/modules/dropzone.hooks.ts":{"bytes":6446,"imports":[{"path":"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/dropzone.tsx":{"bytes":5947,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/dropzone.props.ts","kind":"import-statement","original":"./modules/dropzone.props"},{"path":"src/modules/dropzone.hooks.ts","kind":"import-statement","original":"./modules/dropzone.hooks"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":125,"imports":[{"path":"src/dropzone.tsx","kind":"import-statement","original":"./dropzone"}],"format":"esm"}},"outputs":{"dist/dropzone.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"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}],"exports":[],"entryPoint":"src/dropzone.tsx","inputs":{"src/dropzone.tsx":{"bytesInOutput":6812},"src/modules/dropzone.props.ts":{"bytesInOutput":1274},"src/modules/dropzone.hooks.ts":{"bytesInOutput":7139}},"bytes":16328},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"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}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":125},"src/dropzone.tsx":{"bytesInOutput":6672},"src/modules/dropzone.props.ts":{"bytesInOutput":1274},"src/modules/dropzone.hooks.ts":{"bytesInOutput":7139}},"bytes":16330},"dist/modules/dropzone.hooks.js":{"imports":[{"path":"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}],"exports":[],"entryPoint":"src/modules/dropzone.hooks.ts","inputs":{"src/modules/dropzone.hooks.ts":{"bytesInOutput":7299}},"bytes":8327},"dist/modules/dropzone.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/dropzone.props.ts","inputs":{"src/modules/dropzone.props.ts":{"bytesInOutput":1474}},"bytes":2430}}}
1
+ {"inputs":{"src/modules/dropzone.props.ts":{"bytes":2126,"imports":[],"format":"esm"},"src/modules/dropzone.hooks.ts":{"bytes":6446,"imports":[{"path":"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/dropzone.tsx":{"bytes":5994,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/dropzone.props.ts","kind":"import-statement","original":"./modules/dropzone.props"},{"path":"src/modules/dropzone.hooks.ts","kind":"import-statement","original":"./modules/dropzone.hooks"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/dropzone.types.ts":{"bytes":213,"imports":[],"format":"esm"},"src/index.ts":{"bytes":167,"imports":[{"path":"src/dropzone.tsx","kind":"import-statement","original":"./dropzone"},{"path":"src/modules/dropzone.types.ts","kind":"import-statement","original":"./modules/dropzone.types"}],"format":"esm"}},"outputs":{"dist/dropzone.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"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}],"exports":[],"entryPoint":"src/dropzone.tsx","inputs":{"src/dropzone.tsx":{"bytesInOutput":6859},"src/modules/dropzone.props.ts":{"bytesInOutput":1274},"src/modules/dropzone.hooks.ts":{"bytesInOutput":7139}},"bytes":16375},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true},{"path":"@mekari/pixel3-spinner","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"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}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":125},"src/dropzone.tsx":{"bytesInOutput":6719},"src/modules/dropzone.props.ts":{"bytesInOutput":1274},"src/modules/dropzone.hooks.ts":{"bytesInOutput":7139}},"bytes":16377},"dist/modules/dropzone.hooks.js":{"imports":[{"path":"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}],"exports":[],"entryPoint":"src/modules/dropzone.hooks.ts","inputs":{"src/modules/dropzone.hooks.ts":{"bytesInOutput":7299}},"bytes":8327},"dist/modules/dropzone.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/dropzone.props.ts","inputs":{"src/modules/dropzone.props.ts":{"bytesInOutput":1474}},"bytes":2430},"dist/modules/dropzone.types.js":{"imports":[],"exports":[],"entryPoint":"src/modules/dropzone.types.ts","inputs":{"src/modules/dropzone.types.ts":{"bytesInOutput":88}},"bytes":793}}}
@@ -1 +1 @@
1
- {"inputs":{"src/modules/dropzone.props.ts":{"bytes":2066,"imports":[],"format":"esm"},"src/modules/dropzone.hooks.ts":{"bytes":6446,"imports":[{"path":"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/dropzone.tsx":{"bytes":5947,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/dropzone.props.ts","kind":"import-statement","original":"./modules/dropzone.props"},{"path":"src/modules/dropzone.hooks.ts","kind":"import-statement","original":"./modules/dropzone.hooks"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":125,"imports":[{"path":"src/dropzone.tsx","kind":"import-statement","original":"./dropzone"}],"format":"esm"}},"outputs":{"dist/dropzone.mjs":{"imports":[{"path":"dist/chunk-5UURK6X5.mjs","kind":"import-statement"},{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-5JNHQ27U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDropzone"],"entryPoint":"src/dropzone.tsx","inputs":{},"bytes":171},"dist/index.mjs":{"imports":[{"path":"dist/chunk-5UURK6X5.mjs","kind":"import-statement"},{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-5JNHQ27U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDropzone"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":171},"dist/chunk-5UURK6X5.mjs":{"imports":[{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-5JNHQ27U.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-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpDropzone"],"inputs":{"src/dropzone.tsx":{"bytesInOutput":5754}},"bytes":5976},"dist/modules/dropzone.hooks.mjs":{"imports":[{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useDropzone"],"entryPoint":"src/modules/dropzone.hooks.ts","inputs":{},"bytes":113},"dist/chunk-GWHWG6GP.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"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}],"exports":["useDropzone"],"inputs":{"src/modules/dropzone.hooks.ts":{"bytesInOutput":6550}},"bytes":6660},"dist/modules/dropzone.props.mjs":{"imports":[{"path":"dist/chunk-5JNHQ27U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["dropzoneEmit","dropzoneProps"],"entryPoint":"src/modules/dropzone.props.ts","inputs":{},"bytes":149},"dist/chunk-5JNHQ27U.mjs":{"imports":[],"exports":["dropzoneEmit","dropzoneProps"],"inputs":{"src/modules/dropzone.props.ts":{"bytesInOutput":1274}},"bytes":1352},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
1
+ {"inputs":{"src/modules/dropzone.props.ts":{"bytes":2126,"imports":[],"format":"esm"},"src/modules/dropzone.hooks.ts":{"bytes":6446,"imports":[{"path":"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/dropzone.tsx":{"bytes":5994,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/dropzone.props.ts","kind":"import-statement","original":"./modules/dropzone.props"},{"path":"src/modules/dropzone.hooks.ts","kind":"import-statement","original":"./modules/dropzone.hooks"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/dropzone.types.ts":{"bytes":213,"imports":[],"format":"esm"},"src/index.ts":{"bytes":167,"imports":[{"path":"src/dropzone.tsx","kind":"import-statement","original":"./dropzone"},{"path":"src/modules/dropzone.types.ts","kind":"import-statement","original":"./modules/dropzone.types"}],"format":"esm"}},"outputs":{"dist/dropzone.mjs":{"imports":[{"path":"dist/chunk-7XRYSQYV.mjs","kind":"import-statement"},{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-5JNHQ27U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpDropzone"],"entryPoint":"src/dropzone.tsx","inputs":{},"bytes":171},"dist/index.mjs":{"imports":[{"path":"dist/chunk-7XRYSQYV.mjs","kind":"import-statement"},{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-5JNHQ27U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"dist/chunk-VE4DE26L.mjs","kind":"import-statement"}],"exports":["MpDropzone"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":202},"dist/chunk-7XRYSQYV.mjs":{"imports":[{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-5JNHQ27U.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-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"@mekari/pixel3-spinner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["MpDropzone"],"inputs":{"src/dropzone.tsx":{"bytesInOutput":5801}},"bytes":6023},"dist/modules/dropzone.hooks.mjs":{"imports":[{"path":"dist/chunk-GWHWG6GP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useDropzone"],"entryPoint":"src/modules/dropzone.hooks.ts","inputs":{},"bytes":113},"dist/chunk-GWHWG6GP.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"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}],"exports":["useDropzone"],"inputs":{"src/modules/dropzone.hooks.ts":{"bytesInOutput":6550}},"bytes":6660},"dist/modules/dropzone.props.mjs":{"imports":[{"path":"dist/chunk-5JNHQ27U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["dropzoneEmit","dropzoneProps"],"entryPoint":"src/modules/dropzone.props.ts","inputs":{},"bytes":149},"dist/chunk-5JNHQ27U.mjs":{"imports":[],"exports":["dropzoneEmit","dropzoneProps"],"inputs":{"src/modules/dropzone.props.ts":{"bytesInOutput":1274}},"bytes":1352},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151},"dist/modules/dropzone.types.mjs":{"imports":[{"path":"dist/chunk-VE4DE26L.mjs","kind":"import-statement"}],"exports":[],"entryPoint":"src/modules/dropzone.types.ts","inputs":{},"bytes":32},"dist/chunk-VE4DE26L.mjs":{"imports":[],"exports":[],"inputs":{"src/modules/dropzone.types.ts":{"bytesInOutput":0}},"bytes":0}}}
@@ -1,3 +1,4 @@
1
+ import { DropzoneVariant, DropzoneOverlayVariant } from './dropzone.types.mjs';
1
2
  import * as vue from 'vue';
2
3
  import { DropzoneProps, DropzoenEmits } from './dropzone.props.mjs';
3
4
 
@@ -14,7 +15,7 @@ declare function useDropzone(props: DropzoneProps, emit: DropzoenEmits): {
14
15
  wrapperAttrs: vue.ComputedRef<{
15
16
  'data-invalid': true | undefined;
16
17
  'data-disabled': true | undefined;
17
- 'data-variant': "default" | "logo" | "product" | "avatar";
18
+ 'data-variant': DropzoneVariant;
18
19
  tabindex: number;
19
20
  class: string;
20
21
  }>;
@@ -38,7 +39,7 @@ declare function useDropzone(props: DropzoneProps, emit: DropzoenEmits): {
38
39
  }>;
39
40
  overlayAttrs: vue.ComputedRef<{
40
41
  ref: vue.Ref<any>;
41
- 'data-overlay': "white" | "black";
42
+ 'data-overlay': DropzoneOverlayVariant;
42
43
  class: string;
43
44
  style: {
44
45
  display: string;
@@ -90,7 +91,7 @@ declare function useDropzone(props: DropzoneProps, emit: DropzoenEmits): {
90
91
  class: string;
91
92
  name: "minus-circular";
92
93
  variant: "fill";
93
- 'data-variant': "default" | "logo" | "product" | "avatar";
94
+ 'data-variant': DropzoneVariant;
94
95
  onClick: (e: Event) => void;
95
96
  }>;
96
97
  hasPreview: vue.ComputedRef<string | false>;
@@ -1,3 +1,4 @@
1
+ import { DropzoneVariant, DropzoneOverlayVariant } from './dropzone.types.js';
1
2
  import * as vue from 'vue';
2
3
  import { DropzoneProps, DropzoenEmits } from './dropzone.props.js';
3
4
 
@@ -14,7 +15,7 @@ declare function useDropzone(props: DropzoneProps, emit: DropzoenEmits): {
14
15
  wrapperAttrs: vue.ComputedRef<{
15
16
  'data-invalid': true | undefined;
16
17
  'data-disabled': true | undefined;
17
- 'data-variant': "default" | "logo" | "product" | "avatar";
18
+ 'data-variant': DropzoneVariant;
18
19
  tabindex: number;
19
20
  class: string;
20
21
  }>;
@@ -38,7 +39,7 @@ declare function useDropzone(props: DropzoneProps, emit: DropzoenEmits): {
38
39
  }>;
39
40
  overlayAttrs: vue.ComputedRef<{
40
41
  ref: vue.Ref<any>;
41
- 'data-overlay': "white" | "black";
42
+ 'data-overlay': DropzoneOverlayVariant;
42
43
  class: string;
43
44
  style: {
44
45
  display: string;
@@ -90,7 +91,7 @@ declare function useDropzone(props: DropzoneProps, emit: DropzoenEmits): {
90
91
  class: string;
91
92
  name: "minus-circular";
92
93
  variant: "fill";
93
- 'data-variant': "default" | "logo" | "product" | "avatar";
94
+ 'data-variant': DropzoneVariant;
94
95
  onClick: (e: Event) => void;
95
96
  }>;
96
97
  hasPreview: vue.ComputedRef<string | false>;
@@ -1,4 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
+ import { DropzoneVariant, DropzoneOverlayVariant } from './dropzone.types.mjs';
2
3
 
3
4
  declare const dropzoneProps: {
4
5
  id: {
@@ -6,7 +7,7 @@ declare const dropzoneProps: {
6
7
  default: string;
7
8
  };
8
9
  variant: {
9
- type: PropType<"default" | "logo" | "product" | "avatar">;
10
+ type: PropType<DropzoneVariant>;
10
11
  default: string;
11
12
  };
12
13
  accept: {
@@ -32,7 +33,7 @@ declare const dropzoneProps: {
32
33
  default: string;
33
34
  };
34
35
  overlayVariant: {
35
- type: PropType<"white" | "black">;
36
+ type: PropType<DropzoneOverlayVariant>;
36
37
  default: string;
37
38
  };
38
39
  isShowPreview: {
@@ -1,4 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
+ import { DropzoneVariant, DropzoneOverlayVariant } from './dropzone.types.js';
2
3
 
3
4
  declare const dropzoneProps: {
4
5
  id: {
@@ -6,7 +7,7 @@ declare const dropzoneProps: {
6
7
  default: string;
7
8
  };
8
9
  variant: {
9
- type: PropType<"default" | "logo" | "product" | "avatar">;
10
+ type: PropType<DropzoneVariant>;
10
11
  default: string;
11
12
  };
12
13
  accept: {
@@ -32,7 +33,7 @@ declare const dropzoneProps: {
32
33
  default: string;
33
34
  };
34
35
  overlayVariant: {
35
- type: PropType<"white" | "black">;
36
+ type: PropType<DropzoneOverlayVariant>;
36
37
  default: string;
37
38
  };
38
39
  isShowPreview: {
@@ -0,0 +1,4 @@
1
+ type DropzoneVariant = 'default' | 'logo' | 'product' | 'avatar';
2
+ type DropzoneOverlayVariant = 'white' | 'black';
3
+
4
+ export { DropzoneOverlayVariant, DropzoneVariant };
@@ -0,0 +1,4 @@
1
+ type DropzoneVariant = 'default' | 'logo' | 'product' | 'avatar';
2
+ type DropzoneOverlayVariant = 'white' | 'black';
3
+
4
+ export { DropzoneOverlayVariant, DropzoneVariant };
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/modules/dropzone.types.ts
17
+ var dropzone_types_exports = {};
18
+ module.exports = __toCommonJS(dropzone_types_exports);
@@ -0,0 +1 @@
1
+ import "../chunk-VE4DE26L.mjs";
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-dropzone",
3
3
  "description": "Dropzone component for mekari pixel 3",
4
- "version": "0.0.16-dev.0",
4
+ "version": "0.0.16-dev.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
10
  "dependencies": {
11
- "@mekari/pixel3-icon": "0.0.17-dev.0",
12
- "@mekari/pixel3-spinner": "0.0.17-dev.0",
13
- "@mekari/pixel3-styled-system": "0.1.2-dev.0",
14
- "@mekari/pixel3-text": "0.0.16-dev.0",
15
- "@mekari/pixel3-tooltip": "0.0.16-dev.0",
16
- "@mekari/pixel3-utils": "0.0.7-dev.0"
11
+ "@mekari/pixel3-icon": "0.0.17-dev.2",
12
+ "@mekari/pixel3-spinner": "0.0.17-dev.2",
13
+ "@mekari/pixel3-styled-system": "0.1.2-dev.1",
14
+ "@mekari/pixel3-text": "0.0.16-dev.1",
15
+ "@mekari/pixel3-tooltip": "0.0.16-dev.1",
16
+ "@mekari/pixel3-utils": "0.0.7-dev.1"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.4.9"
@@ -40,6 +40,7 @@
40
40
  "build:types": "tsup src --dts-only",
41
41
  "types:check": "tsc --noEmit",
42
42
  "replace-config": "clean-package",
43
- "restore-config": "clean-package restore"
43
+ "restore-config": "clean-package restore",
44
+ "types:vue": "vue-tsc --noEmit"
44
45
  }
45
46
  }