@yamada-ui/dropzone 0.1.10 → 0.2.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.
Files changed (2) hide show
  1. package/dist/dropzone.d.ts +23 -0
  2. package/package.json +5 -5
@@ -7,12 +7,35 @@ import { FC, PropsWithChildren, ForwardedRef } from 'react';
7
7
  import { DropzoneOptions as DropzoneOptions$1, Accept } from 'react-dropzone';
8
8
 
9
9
  type DropzoneOptions = {
10
+ /**
11
+ * The border color when the input is focused.
12
+ */
10
13
  focusBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
14
+ /**
15
+ * The border color when the input is invalid.
16
+ */
11
17
  errorBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
18
+ /**
19
+ * If `true`, display the dropzone loading icon.
20
+ *
21
+ * @default false
22
+ */
12
23
  isLoading?: boolean;
24
+ /**
25
+ * Props for dropzone overlay element.
26
+ */
13
27
  overlayProps?: FadeProps;
28
+ /**
29
+ * Props for dropzone loading icon element.
30
+ */
14
31
  loadingProps?: LoadingProps;
32
+ /**
33
+ * File types to accept.
34
+ */
15
35
  accept?: Accept | string[];
36
+ /**
37
+ * Ref to a open function.
38
+ */
16
39
  openRef?: ForwardedRef<() => void | undefined>;
17
40
  };
18
41
  type DropzoneProps = Omit<HTMLUIProps<'div'>, 'onDrop'> & ThemeProps<'Dropzone'> & DropzoneOptions & FormControlOptions & Omit<DropzoneOptions$1, 'accept'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/dropzone",
3
- "version": "0.1.10",
3
+ "version": "0.2.0",
4
4
  "description": "Yamada UI dropzone component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -36,11 +36,11 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "react-dropzone": "14.2.3",
39
- "@yamada-ui/core": "0.2.3",
39
+ "@yamada-ui/core": "0.3.1",
40
40
  "@yamada-ui/utils": "0.1.1",
41
- "@yamada-ui/form-control": "0.1.10",
42
- "@yamada-ui/transitions": "0.1.10",
43
- "@yamada-ui/loading": "0.2.7"
41
+ "@yamada-ui/form-control": "0.2.0",
42
+ "@yamada-ui/transitions": "0.2.0",
43
+ "@yamada-ui/loading": "0.3.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "react": "^18.0.0",