@yamada-ui/dropzone 0.3.18 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,16 @@
1
1
  declare const ACCEPT_TYPES: {
2
+ readonly txt: "text/plain";
3
+ readonly html: "text/html";
4
+ readonly csv: "text/csv";
2
5
  readonly png: "image/png";
3
6
  readonly gif: "image/gif";
4
7
  readonly jpeg: "image/jpeg";
5
8
  readonly svg: "image/svg+xml";
6
9
  readonly webp: "image/webp";
10
+ readonly mp3: "audio/mpeg";
11
+ readonly mpeg: "video/mpeg";
7
12
  readonly mp4: "video/mp4";
8
13
  readonly zip: "application/zip";
9
- readonly csv: "text/csv";
10
14
  readonly pdf: "application/pdf";
11
15
  readonly doc: "application/msword";
12
16
  readonly docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
@@ -20,7 +24,7 @@ declare const IMAGE_ACCEPT_TYPE: ("image/png" | "image/gif" | "image/jpeg" | "im
20
24
  declare const PDF_ACCEPT_TYPE: "application/pdf"[];
21
25
  declare const MS_WORD_ACCEPT_TYPE: ("application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document")[];
22
26
  declare const MS_EXCEL_ACCEPT_TYPE: ("application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")[];
23
- declare const MS_POWERPOINT_ACCEPT_TYPE: ("application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation")[];
27
+ declare const MS_POWER_POINT_ACCEPT_TYPE: ("application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation")[];
24
28
  declare const EXE_ACCEPT_TYPE: "application/vnd.microsoft.portable-executable"[];
25
29
 
26
- export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWERPOINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE };
30
+ export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWER_POINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE };
@@ -1,12 +1,16 @@
1
1
  declare const ACCEPT_TYPES: {
2
+ readonly txt: "text/plain";
3
+ readonly html: "text/html";
4
+ readonly csv: "text/csv";
2
5
  readonly png: "image/png";
3
6
  readonly gif: "image/gif";
4
7
  readonly jpeg: "image/jpeg";
5
8
  readonly svg: "image/svg+xml";
6
9
  readonly webp: "image/webp";
10
+ readonly mp3: "audio/mpeg";
11
+ readonly mpeg: "video/mpeg";
7
12
  readonly mp4: "video/mp4";
8
13
  readonly zip: "application/zip";
9
- readonly csv: "text/csv";
10
14
  readonly pdf: "application/pdf";
11
15
  readonly doc: "application/msword";
12
16
  readonly docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
@@ -20,7 +24,7 @@ declare const IMAGE_ACCEPT_TYPE: ("image/png" | "image/gif" | "image/jpeg" | "im
20
24
  declare const PDF_ACCEPT_TYPE: "application/pdf"[];
21
25
  declare const MS_WORD_ACCEPT_TYPE: ("application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document")[];
22
26
  declare const MS_EXCEL_ACCEPT_TYPE: ("application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")[];
23
- declare const MS_POWERPOINT_ACCEPT_TYPE: ("application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation")[];
27
+ declare const MS_POWER_POINT_ACCEPT_TYPE: ("application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation")[];
24
28
  declare const EXE_ACCEPT_TYPE: "application/vnd.microsoft.portable-executable"[];
25
29
 
26
- export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWERPOINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE };
30
+ export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWER_POINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE };
@@ -25,20 +25,24 @@ __export(accept_types_exports, {
25
25
  EXE_ACCEPT_TYPE: () => EXE_ACCEPT_TYPE,
26
26
  IMAGE_ACCEPT_TYPE: () => IMAGE_ACCEPT_TYPE,
27
27
  MS_EXCEL_ACCEPT_TYPE: () => MS_EXCEL_ACCEPT_TYPE,
28
- MS_POWERPOINT_ACCEPT_TYPE: () => MS_POWERPOINT_ACCEPT_TYPE,
28
+ MS_POWER_POINT_ACCEPT_TYPE: () => MS_POWER_POINT_ACCEPT_TYPE,
29
29
  MS_WORD_ACCEPT_TYPE: () => MS_WORD_ACCEPT_TYPE,
30
30
  PDF_ACCEPT_TYPE: () => PDF_ACCEPT_TYPE
31
31
  });
32
32
  module.exports = __toCommonJS(accept_types_exports);
33
33
  var ACCEPT_TYPES = {
34
+ txt: "text/plain",
35
+ html: "text/html",
36
+ csv: "text/csv",
34
37
  png: "image/png",
35
38
  gif: "image/gif",
36
39
  jpeg: "image/jpeg",
37
40
  svg: "image/svg+xml",
38
41
  webp: "image/webp",
42
+ mp3: "audio/mpeg",
43
+ mpeg: "video/mpeg",
39
44
  mp4: "video/mp4",
40
45
  zip: "application/zip",
41
- csv: "text/csv",
42
46
  pdf: "application/pdf",
43
47
  doc: "application/msword",
44
48
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
@@ -58,7 +62,7 @@ var IMAGE_ACCEPT_TYPE = [
58
62
  var PDF_ACCEPT_TYPE = [ACCEPT_TYPES.pdf];
59
63
  var MS_WORD_ACCEPT_TYPE = [ACCEPT_TYPES.doc, ACCEPT_TYPES.docx];
60
64
  var MS_EXCEL_ACCEPT_TYPE = [ACCEPT_TYPES.xls, ACCEPT_TYPES.xlsx];
61
- var MS_POWERPOINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
65
+ var MS_POWER_POINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
62
66
  var EXE_ACCEPT_TYPE = [ACCEPT_TYPES.exe];
63
67
  // Annotate the CommonJS export names for ESM import in node:
64
68
  0 && (module.exports = {
@@ -66,7 +70,7 @@ var EXE_ACCEPT_TYPE = [ACCEPT_TYPES.exe];
66
70
  EXE_ACCEPT_TYPE,
67
71
  IMAGE_ACCEPT_TYPE,
68
72
  MS_EXCEL_ACCEPT_TYPE,
69
- MS_POWERPOINT_ACCEPT_TYPE,
73
+ MS_POWER_POINT_ACCEPT_TYPE,
70
74
  MS_WORD_ACCEPT_TYPE,
71
75
  PDF_ACCEPT_TYPE
72
76
  });
@@ -4,16 +4,16 @@ import {
4
4
  EXE_ACCEPT_TYPE,
5
5
  IMAGE_ACCEPT_TYPE,
6
6
  MS_EXCEL_ACCEPT_TYPE,
7
- MS_POWERPOINT_ACCEPT_TYPE,
7
+ MS_POWER_POINT_ACCEPT_TYPE,
8
8
  MS_WORD_ACCEPT_TYPE,
9
9
  PDF_ACCEPT_TYPE
10
- } from "./chunk-LQ4UAZS6.mjs";
10
+ } from "./chunk-335KKEZQ.mjs";
11
11
  export {
12
12
  ACCEPT_TYPES,
13
13
  EXE_ACCEPT_TYPE,
14
14
  IMAGE_ACCEPT_TYPE,
15
15
  MS_EXCEL_ACCEPT_TYPE,
16
- MS_POWERPOINT_ACCEPT_TYPE,
16
+ MS_POWER_POINT_ACCEPT_TYPE,
17
17
  MS_WORD_ACCEPT_TYPE,
18
18
  PDF_ACCEPT_TYPE
19
19
  };
@@ -2,14 +2,18 @@
2
2
 
3
3
  // src/accept-types.ts
4
4
  var ACCEPT_TYPES = {
5
+ txt: "text/plain",
6
+ html: "text/html",
7
+ csv: "text/csv",
5
8
  png: "image/png",
6
9
  gif: "image/gif",
7
10
  jpeg: "image/jpeg",
8
11
  svg: "image/svg+xml",
9
12
  webp: "image/webp",
13
+ mp3: "audio/mpeg",
14
+ mpeg: "video/mpeg",
10
15
  mp4: "video/mp4",
11
16
  zip: "application/zip",
12
- csv: "text/csv",
13
17
  pdf: "application/pdf",
14
18
  doc: "application/msword",
15
19
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
@@ -29,7 +33,7 @@ var IMAGE_ACCEPT_TYPE = [
29
33
  var PDF_ACCEPT_TYPE = [ACCEPT_TYPES.pdf];
30
34
  var MS_WORD_ACCEPT_TYPE = [ACCEPT_TYPES.doc, ACCEPT_TYPES.docx];
31
35
  var MS_EXCEL_ACCEPT_TYPE = [ACCEPT_TYPES.xls, ACCEPT_TYPES.xlsx];
32
- var MS_POWERPOINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
36
+ var MS_POWER_POINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
33
37
  var EXE_ACCEPT_TYPE = [ACCEPT_TYPES.exe];
34
38
 
35
39
  export {
@@ -38,6 +42,6 @@ export {
38
42
  PDF_ACCEPT_TYPE,
39
43
  MS_WORD_ACCEPT_TYPE,
40
44
  MS_EXCEL_ACCEPT_TYPE,
41
- MS_POWERPOINT_ACCEPT_TYPE,
45
+ MS_POWER_POINT_ACCEPT_TYPE,
42
46
  EXE_ACCEPT_TYPE
43
47
  };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Dropzone, DropzoneAccept, DropzoneIdle, DropzoneProps, DropzoneReject } from './dropzone.mjs';
2
- export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWERPOINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE } from './accept-types.mjs';
2
+ export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWER_POINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE } from './accept-types.mjs';
3
3
  import '@yamada-ui/core';
4
4
  import '@yamada-ui/form-control';
5
5
  import '@yamada-ui/loading';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Dropzone, DropzoneAccept, DropzoneIdle, DropzoneProps, DropzoneReject } from './dropzone.js';
2
- export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWERPOINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE } from './accept-types.js';
2
+ export { ACCEPT_TYPES, EXE_ACCEPT_TYPE, IMAGE_ACCEPT_TYPE, MS_EXCEL_ACCEPT_TYPE, MS_POWER_POINT_ACCEPT_TYPE, MS_WORD_ACCEPT_TYPE, PDF_ACCEPT_TYPE } from './accept-types.js';
3
3
  import '@yamada-ui/core';
4
4
  import '@yamada-ui/form-control';
5
5
  import '@yamada-ui/loading';
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ __export(src_exports, {
29
29
  EXE_ACCEPT_TYPE: () => EXE_ACCEPT_TYPE,
30
30
  IMAGE_ACCEPT_TYPE: () => IMAGE_ACCEPT_TYPE,
31
31
  MS_EXCEL_ACCEPT_TYPE: () => MS_EXCEL_ACCEPT_TYPE,
32
- MS_POWERPOINT_ACCEPT_TYPE: () => MS_POWERPOINT_ACCEPT_TYPE,
32
+ MS_POWER_POINT_ACCEPT_TYPE: () => MS_POWER_POINT_ACCEPT_TYPE,
33
33
  MS_WORD_ACCEPT_TYPE: () => MS_WORD_ACCEPT_TYPE,
34
34
  PDF_ACCEPT_TYPE: () => PDF_ACCEPT_TYPE
35
35
  });
@@ -194,14 +194,18 @@ var DropzoneIdle = ({ children }) => {
194
194
 
195
195
  // src/accept-types.ts
196
196
  var ACCEPT_TYPES = {
197
+ txt: "text/plain",
198
+ html: "text/html",
199
+ csv: "text/csv",
197
200
  png: "image/png",
198
201
  gif: "image/gif",
199
202
  jpeg: "image/jpeg",
200
203
  svg: "image/svg+xml",
201
204
  webp: "image/webp",
205
+ mp3: "audio/mpeg",
206
+ mpeg: "video/mpeg",
202
207
  mp4: "video/mp4",
203
208
  zip: "application/zip",
204
- csv: "text/csv",
205
209
  pdf: "application/pdf",
206
210
  doc: "application/msword",
207
211
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
@@ -221,7 +225,7 @@ var IMAGE_ACCEPT_TYPE = [
221
225
  var PDF_ACCEPT_TYPE = [ACCEPT_TYPES.pdf];
222
226
  var MS_WORD_ACCEPT_TYPE = [ACCEPT_TYPES.doc, ACCEPT_TYPES.docx];
223
227
  var MS_EXCEL_ACCEPT_TYPE = [ACCEPT_TYPES.xls, ACCEPT_TYPES.xlsx];
224
- var MS_POWERPOINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
228
+ var MS_POWER_POINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
225
229
  var EXE_ACCEPT_TYPE = [ACCEPT_TYPES.exe];
226
230
  // Annotate the CommonJS export names for ESM import in node:
227
231
  0 && (module.exports = {
@@ -233,7 +237,7 @@ var EXE_ACCEPT_TYPE = [ACCEPT_TYPES.exe];
233
237
  EXE_ACCEPT_TYPE,
234
238
  IMAGE_ACCEPT_TYPE,
235
239
  MS_EXCEL_ACCEPT_TYPE,
236
- MS_POWERPOINT_ACCEPT_TYPE,
240
+ MS_POWER_POINT_ACCEPT_TYPE,
237
241
  MS_WORD_ACCEPT_TYPE,
238
242
  PDF_ACCEPT_TYPE
239
243
  });
package/dist/index.mjs CHANGED
@@ -4,10 +4,10 @@ import {
4
4
  EXE_ACCEPT_TYPE,
5
5
  IMAGE_ACCEPT_TYPE,
6
6
  MS_EXCEL_ACCEPT_TYPE,
7
- MS_POWERPOINT_ACCEPT_TYPE,
7
+ MS_POWER_POINT_ACCEPT_TYPE,
8
8
  MS_WORD_ACCEPT_TYPE,
9
9
  PDF_ACCEPT_TYPE
10
- } from "./chunk-LQ4UAZS6.mjs";
10
+ } from "./chunk-335KKEZQ.mjs";
11
11
  import {
12
12
  Dropzone,
13
13
  DropzoneAccept,
@@ -23,7 +23,7 @@ export {
23
23
  EXE_ACCEPT_TYPE,
24
24
  IMAGE_ACCEPT_TYPE,
25
25
  MS_EXCEL_ACCEPT_TYPE,
26
- MS_POWERPOINT_ACCEPT_TYPE,
26
+ MS_POWER_POINT_ACCEPT_TYPE,
27
27
  MS_WORD_ACCEPT_TYPE,
28
28
  PDF_ACCEPT_TYPE
29
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/dropzone",
3
- "version": "0.3.18",
3
+ "version": "0.4.0",
4
4
  "description": "Yamada UI dropzone component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -39,7 +39,7 @@
39
39
  "@yamada-ui/core": "0.12.5",
40
40
  "@yamada-ui/utils": "0.3.3",
41
41
  "@yamada-ui/form-control": "0.3.18",
42
- "@yamada-ui/transitions": "0.3.15",
42
+ "@yamada-ui/transitions": "0.3.16",
43
43
  "@yamada-ui/loading": "0.5.2"
44
44
  },
45
45
  "devDependencies": {