Gathering detailed insights and metrics for @devloops/material-ui-dropzone
Gathering detailed insights and metrics for @devloops/material-ui-dropzone
npm install @devloops/material-ui-dropzone
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
8 Commits
2 Watching
36 Branches
1 Contributors
Updated on 28 Jan 2023
Minified
Minified + Gzipped
JavaScript (96.95%)
HTML (2.76%)
CSS (0.29%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-50%
2
Compared to previous week
Last month
0%
34
Compared to previous month
Last year
-14.7%
371
Compared to previous year
3
45
1npm install --save @devloops/material-ui-dropzone 2#or 3yarn add @devloops/material-ui-dropzone
1import React, { Component } from "react"; 2 3import { DropzoneArea } from "@devloops/material-ui-dropzone"; 4 5const DropzoneAreaExample = () => { 6 return <DropzoneArea BannerComponent={DefaultBannerComponent /* or Default Comp*/} />; 7}; 8 9const DefaultBannerComponent = ({ uploadIcon, bannerStyle, openFileDialog, bannerText }) => { 10 const styles = makeStyles(DropzoneAreaStyle)(); 11 return ( 12 <div className={[styles.dropzone_banner, bannerStyle].join(" ")}> 13 <Typography variant="h6">{bannerText}</Typography> 14 <IconButton color="primary" className={styles.dropzone_iconBtn} onClick={openFileDialog}> 15 <Icon className={styles.dropzone_icon}>{uploadIcon}</Icon> 16 </IconButton> 17 </div> 18 ); 19};
1const defultProps = {
2 BannerComponent: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
3 PreviewComponent: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
4 bannerStyle: PropTypes.string,
5 bannerText: PropTypes.string,
6 getProcessedData: PropTypes.func,
7 inside: PropTypes.bool,
8 limit: PropTypes.number,
9 onChange: PropTypes.func,
10 preview: PropTypes.bool,
11 snackBarMessage: PropTypes.object,
12 type: PropTypes.string,
13 uploadIcon: PropTypes.string,
14 wrapperProps: PropTypes.object,
15 wrapperStyle: PropTypes.string
16};
1import React, { Component } from "react"; 2 3import { DropzoneCard } from "@devloops/material-ui-dropzone"; 4 5const DropzoneCardExample = () => { 6 return <DropzoneCard BannerComponent={DefaultBannerComponent /* or Default Comp*/} />; 7}; 8 9const DefaultBannerComponent = ({ uploadIcon, bannerStyle, openFileDialog, bannerText }) => { 10 const styles = makeStyles(DropzoneAreaStyle)(); 11 return ( 12 <div className={[styles.dropzone_banner, bannerStyle].join(" ")}> 13 <Typography variant="h6">{bannerText}</Typography> 14 <IconButton color="primary" className={styles.dropzone_iconBtn} onClick={openFileDialog}> 15 <Icon className={styles.dropzone_icon}>{uploadIcon}</Icon> 16 </IconButton> 17 </div> 18 ); 19};
1const defultProps = {
2 BannerComponent: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
3 bannerStyle: PropTypes.string,
4 bannerText: PropTypes.string,
5 getProcessedData: PropTypes.func,
6 onChange: PropTypes.func,
7 snackBarMessage: PropTypes.object,
8 type: PropTypes.string,
9 uploadIcon: PropTypes.string,
10 wrapperProps: PropTypes.object,
11 wrapperStyle: PropTypes.string
12};
1import React, { Component } from "react"; 2 3import { FileButton } from "@devloops/material-ui-dropzone"; 4 5const FileButtonExample = () => { 6 return <FileButton {...anyProps} />; 7};
1const defultProps = {
2 ButtonComponent: PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.elementType]),
3 fabIcon: PropTypes.string,
4 fabProps: PropTypes.object,
5 onChange: PropTypes.func,
6 onError: PropTypes.func,
7 fabText: PropTypes.string,
8 inputProps: PropTypes.object
9};
MIT © meftunca
This hook is created using create-react-hook.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
116 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More