@react-magma/dropzone 1.0.0-next.1 → 1.0.2-next.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-magma/dropzone",
3
- "version": "1.0.0-next.1",
3
+ "version": "1.0.2-next.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  "@emotion/styled": "^10.0.27",
31
31
  "react": "^15.0.0 || ^16.0.0 || ^17.0.0",
32
32
  "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0",
33
- "react-magma-dom": "^3.0.0-next.0",
33
+ "react-magma-dom": "^3.1.1-next.0",
34
34
  "react-magma-icons": "^2.3.1"
35
35
  },
36
36
  "dependencies": {
@@ -42,7 +42,7 @@
42
42
  "@emotion/styled": "^10.0.27",
43
43
  "react": "^16.10.0",
44
44
  "react-dom": "^16.10.0",
45
- "react-magma-dom": "^3.0.0-next.0",
45
+ "react-magma-dom": "^3.1.1-next.0",
46
46
  "react-magma-icons": "^2.3.1"
47
47
  }
48
48
  }
@@ -48,6 +48,8 @@ type DragState =
48
48
  | 'dragReject'
49
49
  | 'dragActive'
50
50
  | 'default';
51
+
52
+ // NOTE: These props are manually copied to dropzone.mdx
51
53
  export interface DropzoneProps
52
54
  extends Omit<FormFieldContainerBaseProps, 'fieldId' | 'errorMessage'> {
53
55
  /**
@@ -116,6 +118,9 @@ export interface DropzoneProps
116
118
  * @default false
117
119
  */
118
120
  sendFiles?: boolean;
121
+ /**
122
+ * @internal
123
+ */
119
124
  testId?: string;
120
125
  /**
121
126
  * Show thumbnails for images in lieu of the file icon.
@@ -39,6 +39,9 @@ export interface PreviewProps extends Omit<FlexProps, 'behavior'> {
39
39
  minSize?: number;
40
40
  onDeleteFile?: (file: FilePreview) => void;
41
41
  onRemoveFile?: (file: FilePreview) => void;
42
+ /**
43
+ * @internal
44
+ */
42
45
  testId?: string;
43
46
  thumbnails: boolean;
44
47
  }
@@ -73,7 +76,7 @@ const IconStyles = {
73
76
  };
74
77
 
75
78
  const Errors = styled.div`
76
- border-top: 1px solid ${({ theme }) => theme.colors.neutral06};
79
+ border-top: 1px solid ${({ theme }) => theme.colors.neutral300};
77
80
  padding: 16px;
78
81
  font-size: ${({ theme }) => theme.typeScale.size02.fontSize};
79
82
  line-height: ${({ theme }) => theme.typeScale.size02.lineHeight};
@@ -102,9 +105,9 @@ const StyledCard = styled(Card)<{ file: FilePreview; isInverse: boolean }>`
102
105
  border-color: ${({ file, theme, isInverse }) =>
103
106
  file.errors
104
107
  ? isInverse
105
- ? theme.colors.dangerInverse
108
+ ? theme.colors.danger200
106
109
  : theme.colors.danger
107
- : theme.colors.neutral06};
110
+ : theme.colors.neutral300};
108
111
  border-width: 1px;
109
112
  margin: 10px 0;
110
113
  `;