react-image-upload
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -24,5 +24,5 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var styles = {"container":"_1Lxpd","content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"}; | ||
var styles = {"content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"}; | ||
var ExampleComponent = function ExampleComponent(_ref) { | ||
var ImageUploader = function ImageUploader(_ref) { | ||
var onFileAdded = _ref.onFileAdded, | ||
@@ -57,4 +57,2 @@ onFileRemoved = _ref.onFileRemoved; | ||
return /*#__PURE__*/React__default.createElement("div", { | ||
className: styles.container | ||
}, /*#__PURE__*/React__default.createElement("div", { | ||
className: styles.content | ||
@@ -101,6 +99,6 @@ }, /*#__PURE__*/React__default.createElement("div", { | ||
loading: "lazy" | ||
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null)))); | ||
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null))); | ||
}; | ||
exports.ExampleComponent = ExampleComponent; | ||
module.exports = ImageUploader; | ||
//# sourceMappingURL=index.js.map |
@@ -21,5 +21,5 @@ import React, { useRef, useState } from 'react'; | ||
var styles = {"container":"_1Lxpd","content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"}; | ||
var styles = {"content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"}; | ||
var ExampleComponent = function ExampleComponent(_ref) { | ||
var ImageUploader = function ImageUploader(_ref) { | ||
var onFileAdded = _ref.onFileAdded, | ||
@@ -54,4 +54,2 @@ onFileRemoved = _ref.onFileRemoved; | ||
return /*#__PURE__*/React.createElement("div", { | ||
className: styles.container | ||
}, /*#__PURE__*/React.createElement("div", { | ||
className: styles.content | ||
@@ -98,6 +96,6 @@ }, /*#__PURE__*/React.createElement("div", { | ||
loading: "lazy" | ||
}) : /*#__PURE__*/React.createElement(React.Fragment, null)))); | ||
}) : /*#__PURE__*/React.createElement(React.Fragment, null))); | ||
}; | ||
export { ExampleComponent }; | ||
export default ImageUploader; | ||
//# sourceMappingURL=index.modern.js.map |
{ | ||
"name": "react-image-upload", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "react library for uploading images", | ||
@@ -14,2 +14,7 @@ "author": "chimdie", | ||
}, | ||
"keywords": [ | ||
"react", | ||
"image", | ||
"upload" | ||
], | ||
"scripts": { | ||
@@ -16,0 +21,0 @@ "build": "microbundle-crl --no-compress --format modern,cjs", |
# react-image-upload | ||
React package for uploading images. | ||
> Made with create-react-library | ||
@@ -16,11 +18,9 @@ | ||
```jsx | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import MyComponent from 'react-image-upload' | ||
import ImageUploader from 'react-image-upload' | ||
import 'react-image-upload/dist/index.css' | ||
class Example extends Component { | ||
render() { | ||
return <MyComponent /> | ||
} | ||
const App = () => { | ||
return <ImageUploader /> | ||
} | ||
@@ -27,0 +27,0 @@ ``` |
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
24517
241