@brighthr/component-file-selector
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -17,5 +17,5 @@ import React from 'react'; | ||
}; | ||
declare const FileInformation: ({ fileProblemDescription, uploadProgressPercentage, fileDescription, fileName, spinner, onRemoveFile, }: FileInformationProps) => JSX.Element; | ||
declare const FileInformation: ({ fileProblemDescription, uploadProgressPercentage, fileDescription, fileName, spinner, onRemoveFile, }: FileInformationProps) => React.JSX.Element; | ||
declare const FileSelector: ({ onFilesSelected, dropZoneOptions, text, ...props }: FileSelectorProps) => React.ReactElement; | ||
export { FileInformation, FileInformationProps, FileSelector, FileSelectorProps }; |
@@ -14,3 +14,2 @@ // src/index.tsx | ||
spinner = false, | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
onRemoveFile = void 0 | ||
@@ -17,0 +16,0 @@ }) => { |
{ | ||
"name": "@brighthr/component-file-selector", | ||
"version": "1.0.2", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"start": "tsup --watch", | ||
"build": "tsup" | ||
}, | ||
"eslintConfig": { | ||
"rules": { | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/*.test.tsx" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "^12.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.9.0" | ||
}, | ||
"dependencies": { | ||
"@brighthr/component-button": "^2.0.2", | ||
"@brighthr/component-icon": "^2.0.0", | ||
"@brighthr/component-spinner": "^1.0.0", | ||
"classnames": "^2.3.1", | ||
"react-dropzone": "^14.2.2" | ||
}, | ||
"gitHead": "f69140bfda7a929392dc0bf57aa7ab6ed5e062d1" | ||
"name": "@brighthr/component-file-selector", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"start": "tsup --watch", | ||
"build": "tsup" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.9.0" | ||
}, | ||
"dependencies": { | ||
"@brighthr/component-button": "^2.0.3", | ||
"@brighthr/component-icon": "^2.0.1", | ||
"@brighthr/component-spinner": "^1.0.1", | ||
"classnames": "^2.3.1", | ||
"react-dropzone": "^14.2.2" | ||
}, | ||
"gitHead": "bcc368c7b077e1087feecd6299cc53416f05ae25" | ||
} |
@@ -6,2 +6,3 @@ # File Selector | ||
To install, type the following into the command line at the root of your project: | ||
```javascript | ||
@@ -14,2 +15,3 @@ npm i @brighthr/component-file-selector | ||
Import into your file: | ||
```javascript | ||
@@ -21,3 +23,4 @@ import FileSelector from '@brighthr/component-file-selector'; | ||
Uses [React DropZone](https://react-dropzone.js.org/) - `dropZoneOptions` can be used to configure behavior, complete list here [https://react-dropzone.js.org/#src](https://react-dropzone.js.org/#src) | ||
Uses [React DropZone](https://react-dropzone.js.org/) - `dropZoneOptions` can be used to configure behavior, complete | ||
list here [https://react-dropzone.js.org/#src](https://react-dropzone.js.org/#src) | ||
@@ -29,3 +32,3 @@ For example - to only allow selection of one file.... | ||
return () => <FileSelector dropZoneOptions={{ multiple: false}}/>; | ||
return () => <FileSelector dropZoneOptions={{ multiple: false }} />; | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
31
28485
301