@expandorg/components
Advanced tools
Comparing version 0.2.35 to 0.2.36
@@ -19,2 +19,3 @@ // @flow | ||
} from './src/components/DateTime'; | ||
import { Dialog, setAppElement, DialogForm } from './src/components/Dialog'; | ||
@@ -33,2 +34,3 @@ import Draggable from './src/components/Draggable'; | ||
import Panel from './src/components/Panel'; | ||
import Progress from './src/components/Progress'; | ||
@@ -42,2 +44,3 @@ import { | ||
import Slider from './src/components/Slider'; | ||
import Switch from './src/components/Switch'; | ||
@@ -80,2 +83,4 @@ | ||
Panel, | ||
Progress, | ||
Slider, | ||
ServiceProvider, | ||
@@ -82,0 +87,0 @@ ServicesContext, |
{ | ||
"name": "@expandorg/components", | ||
"version": "0.2.35", | ||
"version": "0.2.36", | ||
"description": "expand UI components library", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@expandorg/uikit": "^0.2.12", | ||
"@expandorg/uikit": "^0.2.13", | ||
"clipboard": "^2.0.4", | ||
@@ -36,3 +36,3 @@ "date-fns": "^1.30.1", | ||
}, | ||
"gitHead": "0717b1a4566c60c5a3b4a6218731548f59702568" | ||
"gitHead": "efa885f92d94d72e8afebe40f27f7c072704d82b" | ||
} |
@@ -15,2 +15,3 @@ import React, { Component } from 'react'; | ||
]), | ||
maxSize: PropTypes.number, | ||
accept: PropTypes.string, | ||
@@ -27,2 +28,3 @@ multiple: PropTypes.bool, | ||
multiple: false, | ||
maxSize: undefined, | ||
className: null, | ||
@@ -59,2 +61,3 @@ accept: 'image/jpeg, image/png, image/gif', | ||
multiple, | ||
maxSize, | ||
} = this.props; | ||
@@ -65,2 +68,3 @@ | ||
accept={accept} | ||
maxSize={maxSize} | ||
multiple={multiple} | ||
@@ -67,0 +71,0 @@ disabled={isUploading} |
@@ -9,2 +9,3 @@ import React, { Component } from 'react'; | ||
className: PropTypes.string, | ||
style: PropTypes.object, //eslint-disable-line | ||
onDrag: PropTypes.func.isRequired, | ||
@@ -17,2 +18,3 @@ onDragStart: PropTypes.func, | ||
className: null, | ||
style: undefined, | ||
onDragStart: Function.prototype, | ||
@@ -37,3 +39,3 @@ onDragEnd: Function.prototype, | ||
this.setState({ pressed: true, x, y }); | ||
onDragStart(); | ||
onDragStart(event); | ||
@@ -52,3 +54,3 @@ stopEvt(event); | ||
const dy = y - oldY; | ||
this.setState({ x, y }, () => onDrag(dx, dy)); | ||
this.setState({ x, y }, () => onDrag(dx, dy, event)); | ||
} | ||
@@ -55,0 +57,0 @@ }; |
159018
165
3195
Updated@expandorg/uikit@^0.2.13