react-ui-basics 0.0.160 → 0.0.161
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/Animated.js +8 -9
- package/AutocompleteSelect.js +49 -50
- package/Button.js +8 -9
- package/Checkbox.js +6 -7
- package/CircleProgress.js +4 -5
- package/CommonFields.js +3 -1
- package/DNDContainer.js +21 -22
- package/DNDDraggable.js +8 -9
- package/DNDDroppable.js +8 -9
- package/Dialog.js +15 -16
- package/DropFileInput.js +4 -5
- package/DroppableHorizontalList.js +11 -12
- package/DroppableList.js +11 -12
- package/Dropzone.js +10 -11
- package/FilteredList.js +29 -30
- package/FloatingActionButton.js +4 -5
- package/FormUploadProgress.js +7 -8
- package/ImageGallery.js +29 -30
- package/MaterialIcon.js +5 -6
- package/Modal.js +12 -13
- package/ModalMenu.js +7 -8
- package/ReactConstants.d.ts +2 -0
- package/ReactConstants.js +3 -7
- package/ReactCreateElement.js +2 -1
- package/ReadyListener.js +9 -10
- package/Scrollable.js +15 -16
- package/ScrollableTable.js +4 -5
- package/Size.js +3 -4
- package/Snackbar.js +7 -8
- package/SpinningProgress.js +5 -6
- package/Switch.js +13 -14
- package/Table.js +16 -17
- package/TextField.js +12 -13
- package/Tools.js +2 -1
- package/_virtual/_commonjsHelpers.js +2 -1
- package/_virtual/_react.js +2 -1
- package/_virtual/react-jsx-runtime.development.js +2 -1
- package/bundle.css +451 -451
- package/index.js +3 -3
- package/package.json +1 -1
- package/router/HistoryTools.js +2 -1
- package/router/Link.js +5 -6
- package/router/NavLink.js +5 -6
- package/router/Route.js +7 -8
- package/router/index.js +2 -3
- package/store/ProxyTools.js +2 -3
- package/store/Store.js +2 -3
package/DNDDroppable.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import 'react';
|
|
9
8
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
9
|
import { orNoop, classNames, preventDefault, stopPropagation, ref } from './Tools.js';
|
|
@@ -24,26 +23,26 @@ var Droppable = function (_PureComponent) {
|
|
|
24
23
|
_classCallCheck(this, Droppable);
|
|
25
24
|
_this = _super.call(this, properties);
|
|
26
25
|
var that = _assertThisInitialized(_this);
|
|
27
|
-
that[
|
|
26
|
+
that[ReactConstants[2]] = function (prevProps) {
|
|
28
27
|
if (prevProps[initializer] !== props(that)[initializer]) init(that);
|
|
29
28
|
};
|
|
30
|
-
that[
|
|
29
|
+
that[ReactConstants[0]] = function () {
|
|
31
30
|
init(that);
|
|
32
31
|
};
|
|
33
|
-
that[
|
|
32
|
+
that[ReactConstants[1]] = function () {
|
|
34
33
|
orNoop(that.onUnmount)();
|
|
35
34
|
};
|
|
36
|
-
that[
|
|
35
|
+
that[ReactConstants[3]] = function () {
|
|
37
36
|
var _props = props(that),
|
|
38
37
|
_state = state(that);
|
|
39
38
|
return ReactCreateElement("div", {
|
|
40
|
-
[
|
|
39
|
+
[ReactConstants[5]]: classNames('Droppable', _props[ReactConstants[5]], _state[hover] && hover, _state[allow] && allow),
|
|
41
40
|
onDragOver: function onDragOver(e) {
|
|
42
41
|
preventDefault(e);
|
|
43
42
|
stopPropagation(e);
|
|
44
43
|
},
|
|
45
44
|
ref: ref('element', that)
|
|
46
|
-
}, _props[
|
|
45
|
+
}, _props[ReactConstants[4]]);
|
|
47
46
|
};
|
|
48
47
|
return _this;
|
|
49
48
|
}
|
package/Dialog.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import { Component } from 'react';
|
|
9
8
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
9
|
import Button from './Button.js';
|
|
@@ -13,7 +12,7 @@ import { classNames, UNDEFINED, isUndefined, orNoop, createRef, preventDefault }
|
|
|
13
12
|
import { render, stateGSs, componentDidMount, PureComponent, propsGetter } from './ReactConstants.js';
|
|
14
13
|
import PropTypes from 'prop-types';
|
|
15
14
|
|
|
16
|
-
var _excluded = ["top",
|
|
15
|
+
var _excluded = ["top", [ReactConstants[5]]];
|
|
17
16
|
var Dialog = function (_PureComponent) {
|
|
18
17
|
_inherits(Dialog, _PureComponent);
|
|
19
18
|
var _super = _createSuper(Dialog);
|
|
@@ -21,23 +20,23 @@ var Dialog = function (_PureComponent) {
|
|
|
21
20
|
var _this;
|
|
22
21
|
_classCallCheck(this, Dialog);
|
|
23
22
|
_this = _super.call(this, properties);
|
|
24
|
-
_this[
|
|
25
|
-
var _this$props = _this
|
|
23
|
+
_this[ReactConstants[3]] = function () {
|
|
24
|
+
var _this$props = __props(_this),
|
|
26
25
|
title = _this$props.title,
|
|
27
26
|
description = _this$props.description,
|
|
28
27
|
accept = _this$props.accept,
|
|
29
28
|
cancel = _this$props.cancel,
|
|
30
29
|
onAccept = _this$props.onAccept,
|
|
31
30
|
onCancel = _this$props.onCancel,
|
|
32
|
-
children = _this$props[
|
|
31
|
+
children = _this$props[ReactConstants[4]];
|
|
33
32
|
return ReactCreateElement("div", {
|
|
34
|
-
[
|
|
33
|
+
[ReactConstants[5]]: "Dialog"
|
|
35
34
|
}, title && ReactCreateElement("div", {
|
|
36
|
-
[
|
|
35
|
+
[ReactConstants[5]]: "title"
|
|
37
36
|
}, title), description && ReactCreateElement("div", {
|
|
38
|
-
[
|
|
37
|
+
[ReactConstants[5]]: "description"
|
|
39
38
|
}, description), children, ReactCreateElement("div", {
|
|
40
|
-
[
|
|
39
|
+
[ReactConstants[5]]: "row right"
|
|
41
40
|
}, cancel && ReactCreateElement(Button, {
|
|
42
41
|
flat: true,
|
|
43
42
|
onClick: onCancel
|
|
@@ -87,14 +86,14 @@ var DialogWrapper = function (_Component) {
|
|
|
87
86
|
orNoop(props().onAccept || onAcceptState())();
|
|
88
87
|
closeRef()();
|
|
89
88
|
};
|
|
90
|
-
that[
|
|
89
|
+
that[ReactConstants[3]] = function () {
|
|
91
90
|
var _props2 = props(),
|
|
92
91
|
top = __top(_props2),
|
|
93
|
-
className = _props2[
|
|
92
|
+
className = _props2[ReactConstants[5]],
|
|
94
93
|
other = _objectWithoutProperties(_props2, _excluded);
|
|
95
94
|
return ReactCreateElement(Modal, {
|
|
96
95
|
top: top,
|
|
97
|
-
[
|
|
96
|
+
[ReactConstants[5]]: classNames('DialogModal', className),
|
|
98
97
|
open: openRef,
|
|
99
98
|
close: closeRef,
|
|
100
99
|
onClose: onCancel
|
|
@@ -142,7 +141,7 @@ var DialogWrapper = function (_Component) {
|
|
|
142
141
|
}
|
|
143
142
|
openRef()();
|
|
144
143
|
};
|
|
145
|
-
that[
|
|
144
|
+
that[ReactConstants[0]] = function () {
|
|
146
145
|
var _props = props();
|
|
147
146
|
orNoop(_props.open)(that.open);
|
|
148
147
|
orNoop(_props.close)(closeRef());
|
|
@@ -161,7 +160,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
161
160
|
cancel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
162
161
|
onAccept: PropTypes.func,
|
|
163
162
|
onCancel: PropTypes.func,
|
|
164
|
-
[
|
|
163
|
+
[ReactConstants[5]]: PropTypes.string,
|
|
165
164
|
top: PropTypes.number
|
|
166
165
|
};
|
|
167
166
|
}
|
package/DropFileInput.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import 'react';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
9
8
|
import Dropzone from './Dropzone.js';
|
|
10
9
|
import PropTypes from 'prop-types';
|
|
@@ -19,14 +18,14 @@ var DropFileInput = function DropFileInput(_ref) {
|
|
|
19
18
|
multiple = _ref.multiple,
|
|
20
19
|
accept = _ref.accept;
|
|
21
20
|
return ReactCreateElement("section", {
|
|
22
|
-
[
|
|
21
|
+
[ReactConstants[5]]: "DropFileInput"
|
|
23
22
|
}, ReactCreateElement(Dropzone, {
|
|
24
23
|
droppable: droppable,
|
|
25
24
|
onDrop: onDrop,
|
|
26
25
|
accept: accept,
|
|
27
26
|
multiple: multiple
|
|
28
27
|
}, ReactCreateElement(MaterialIcon, {
|
|
29
|
-
[
|
|
28
|
+
[ReactConstants[5]]: classNames("icon", label && 'withText'),
|
|
30
29
|
icon: icon
|
|
31
30
|
}), label && ReactCreateElement("div", null, label)));
|
|
32
31
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import React, { Component } from 'react';
|
|
9
8
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
9
|
import DNDDroppable from './DNDDroppable.js';
|
|
@@ -28,13 +27,13 @@ var DroppableHorizontalList = function (_Component) {
|
|
|
28
27
|
var list;
|
|
29
28
|
var init = function init() {
|
|
30
29
|
list = [];
|
|
31
|
-
React.Children.forEach(props$1()[
|
|
30
|
+
React.Children.forEach(props$1()[ReactConstants[4]], function (child) {
|
|
32
31
|
child && child.type === DNDDraggable && list.push(props(child).id);
|
|
33
32
|
});
|
|
34
33
|
};
|
|
35
34
|
init();
|
|
36
|
-
that[
|
|
37
|
-
if (prevProps[
|
|
35
|
+
that[ReactConstants[2]] = function (prevProps) {
|
|
36
|
+
if (prevProps[ReactConstants[4]] !== props$1()[ReactConstants[4]]) {
|
|
38
37
|
init();
|
|
39
38
|
}
|
|
40
39
|
};
|
|
@@ -42,7 +41,7 @@ var DroppableHorizontalList = function (_Component) {
|
|
|
42
41
|
var dragging;
|
|
43
42
|
var oldIndex;
|
|
44
43
|
var newIndex;
|
|
45
|
-
that[
|
|
44
|
+
that[ReactConstants[0]] = function () {
|
|
46
45
|
var inTransition = false;
|
|
47
46
|
orNoop(props$1().provideDraggableEnhancer)(function (initializer) {
|
|
48
47
|
return function (it) {
|
|
@@ -122,7 +121,7 @@ var DroppableHorizontalList = function (_Component) {
|
|
|
122
121
|
var reset = function reset(ignoredIndex, transition) {
|
|
123
122
|
list.forEach(function (id, i) {
|
|
124
123
|
if (i !== ignoredIndex) {
|
|
125
|
-
var s = draggables[id].
|
|
124
|
+
var s = draggables[id].element.style;
|
|
126
125
|
s.transform = '';
|
|
127
126
|
s.transition = transition;
|
|
128
127
|
}
|
|
@@ -153,18 +152,18 @@ var DroppableHorizontalList = function (_Component) {
|
|
|
153
152
|
orNoop(props$1().onDrop)(data, oldIndex, newIndex);
|
|
154
153
|
reset(newIndex, 'unset');
|
|
155
154
|
};
|
|
156
|
-
that[
|
|
155
|
+
that[ReactConstants[3]] = function () {
|
|
157
156
|
var _props = props$1();
|
|
158
|
-
var className = _props[
|
|
157
|
+
var className = _props[ReactConstants[5]],
|
|
159
158
|
initializer = _props.initializer;
|
|
160
159
|
return ReactCreateElement(DNDDroppable, {
|
|
161
|
-
[
|
|
160
|
+
[ReactConstants[5]]: classNames('DroppableList', className, resetting() && 'resetting'),
|
|
162
161
|
initializer: initializer,
|
|
163
162
|
onHover: onHover,
|
|
164
163
|
onDragStart: onDragStart,
|
|
165
164
|
onDragEnd: onDragEnd,
|
|
166
165
|
onDrop: onDrop
|
|
167
|
-
}, _props[
|
|
166
|
+
}, _props[ReactConstants[4]]);
|
|
168
167
|
};
|
|
169
168
|
return _this;
|
|
170
169
|
}
|
package/DroppableList.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import React, { Component } from 'react';
|
|
9
8
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
9
|
import DNDDroppable from './DNDDroppable.js';
|
|
@@ -28,13 +27,13 @@ var DroppableList = function (_Component) {
|
|
|
28
27
|
var list;
|
|
29
28
|
var init = function init() {
|
|
30
29
|
list = [];
|
|
31
|
-
React.Children.forEach(props$1()[
|
|
30
|
+
React.Children.forEach(props$1()[ReactConstants[4]], function (child) {
|
|
32
31
|
child && child.type === DNDDraggable && list.push(props(child).id);
|
|
33
32
|
});
|
|
34
33
|
};
|
|
35
34
|
init();
|
|
36
|
-
that[
|
|
37
|
-
if (prevProps[
|
|
35
|
+
that[ReactConstants[2]] = function (prevProps) {
|
|
36
|
+
if (prevProps[ReactConstants[4]] !== props$1()[ReactConstants[4]]) {
|
|
38
37
|
init();
|
|
39
38
|
}
|
|
40
39
|
};
|
|
@@ -42,7 +41,7 @@ var DroppableList = function (_Component) {
|
|
|
42
41
|
var dragging;
|
|
43
42
|
var oldIndex;
|
|
44
43
|
var newIndex;
|
|
45
|
-
that[
|
|
44
|
+
that[ReactConstants[0]] = function () {
|
|
46
45
|
var inTransition = false;
|
|
47
46
|
orNoop(props$1().provideDraggableEnhancer)(function (initializer) {
|
|
48
47
|
return function (it) {
|
|
@@ -128,7 +127,7 @@ var DroppableList = function (_Component) {
|
|
|
128
127
|
var reset = function reset(ignoredIndex, transition) {
|
|
129
128
|
list.forEach(function (id, i) {
|
|
130
129
|
if (i !== ignoredIndex) {
|
|
131
|
-
var s = draggables[id].
|
|
130
|
+
var s = draggables[id].element.style;
|
|
132
131
|
s.transform = '';
|
|
133
132
|
s.transition = transition;
|
|
134
133
|
}
|
|
@@ -159,18 +158,18 @@ var DroppableList = function (_Component) {
|
|
|
159
158
|
orNoop(props$1().onDrop)(data, oldIndex, newIndex);
|
|
160
159
|
reset(newIndex, 'unset');
|
|
161
160
|
};
|
|
162
|
-
that[
|
|
161
|
+
that[ReactConstants[3]] = function () {
|
|
163
162
|
var _props = props$1();
|
|
164
|
-
var className = _props[
|
|
163
|
+
var className = _props[ReactConstants[5]],
|
|
165
164
|
initializer = _props.initializer;
|
|
166
165
|
return ReactCreateElement(DNDDroppable, {
|
|
167
|
-
[
|
|
166
|
+
[ReactConstants[5]]: classNames('DroppableList', className, resetting() && 'resetting'),
|
|
168
167
|
initializer: initializer,
|
|
169
168
|
onHover: onHover,
|
|
170
169
|
onDragStart: onDragStart,
|
|
171
170
|
onDragEnd: onDragEnd,
|
|
172
171
|
onDrop: onDrop
|
|
173
|
-
}, _props[
|
|
172
|
+
}, _props[ReactConstants[4]]);
|
|
174
173
|
};
|
|
175
174
|
return _this;
|
|
176
175
|
}
|
package/Dropzone.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import 'react';
|
|
9
8
|
import PropTypes from 'prop-types';
|
|
10
9
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
@@ -73,10 +72,10 @@ var Dropzone = function (_PureComponent) {
|
|
|
73
72
|
prevent(e);
|
|
74
73
|
};
|
|
75
74
|
var inputRef = createRef();
|
|
76
|
-
that[
|
|
75
|
+
that[ReactConstants[3]] = function () {
|
|
77
76
|
var _props = props(),
|
|
78
|
-
children = _props[
|
|
79
|
-
className = _props[
|
|
77
|
+
children = _props[ReactConstants[4]],
|
|
78
|
+
className = _props[ReactConstants[5]],
|
|
80
79
|
disabled = _props.disabled,
|
|
81
80
|
clickable = _props.clickable,
|
|
82
81
|
multiple = _props.multiple,
|
|
@@ -84,17 +83,17 @@ var Dropzone = function (_PureComponent) {
|
|
|
84
83
|
overlayLabel = _props.overlayLabel,
|
|
85
84
|
accept = _props.accept;
|
|
86
85
|
return ReactCreateElement("div", {
|
|
87
|
-
[
|
|
86
|
+
[ReactConstants[5]]: classNames('Dropzone', className, isDragging() && 'dragging'),
|
|
88
87
|
onDragLeave: !disabled && droppable && onDragLeave || UNDEFINED,
|
|
89
88
|
onDragOver: !disabled && droppable && onDragOver || UNDEFINED,
|
|
90
89
|
onDragEnter: !disabled && droppable && onDragEnter || UNDEFINED,
|
|
91
90
|
onDrop: !disabled && droppable && onDrop || UNDEFINED
|
|
92
91
|
}, overlayLabel && ReactCreateElement("div", {
|
|
93
|
-
[
|
|
92
|
+
[ReactConstants[5]]: "overlay"
|
|
94
93
|
}, ReactCreateElement("div", {
|
|
95
|
-
[
|
|
94
|
+
[ReactConstants[5]]: 'drop'
|
|
96
95
|
}, overlayLabel)), !disabled && clickable && ReactCreateElement("input", {
|
|
97
|
-
[
|
|
96
|
+
[ReactConstants[5]]: 'file',
|
|
98
97
|
ref: inputRef,
|
|
99
98
|
type: "file",
|
|
100
99
|
accept: accept,
|
|
@@ -116,7 +115,7 @@ Dropzone.defaultProps = {
|
|
|
116
115
|
};
|
|
117
116
|
if (process.env.NODE_ENV !== 'production') {
|
|
118
117
|
Dropzone.propTypes = {
|
|
119
|
-
[
|
|
118
|
+
[ReactConstants[5]]: PropTypes.string,
|
|
120
119
|
overlayLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
121
120
|
clickable: PropTypes.bool,
|
|
122
121
|
droppable: PropTypes.bool,
|
package/FilteredList.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import React from 'react';
|
|
9
8
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
9
|
import Scrollable from './Scrollable.js';
|
|
@@ -23,7 +22,7 @@ var FilteredList = function (_PureComponent) {
|
|
|
23
22
|
_this = _super.call(this, _props);
|
|
24
23
|
_this.updateList = function (props) {
|
|
25
24
|
var data = __data(props);
|
|
26
|
-
var selected = _this.
|
|
25
|
+
var selected = __state(_this).selected;
|
|
27
26
|
_this.list = data || [];
|
|
28
27
|
if (!_this.list.includes(selected)) _this.setState({
|
|
29
28
|
selected: -1
|
|
@@ -33,11 +32,11 @@ var FilteredList = function (_PureComponent) {
|
|
|
33
32
|
_this.setState({
|
|
34
33
|
selected: id
|
|
35
34
|
});
|
|
36
|
-
_this.
|
|
35
|
+
__props(_this).onSelect(id);
|
|
37
36
|
};
|
|
38
37
|
_this.selected = function () {
|
|
39
|
-
var value = _this.
|
|
40
|
-
var selectSingle = _this.
|
|
38
|
+
var value = __state(_this).selected;
|
|
39
|
+
var selectSingle = __props(_this).selectSingle;
|
|
41
40
|
if (value === -1 || _this.hidden[value]) {
|
|
42
41
|
var filtered = _this.list.filter(function (id) {
|
|
43
42
|
return !_this.hidden[id];
|
|
@@ -50,7 +49,7 @@ var FilteredList = function (_PureComponent) {
|
|
|
50
49
|
};
|
|
51
50
|
_this.next = function () {
|
|
52
51
|
var list = _this.list;
|
|
53
|
-
var selected = _this.
|
|
52
|
+
var selected = __state(_this).selected;
|
|
54
53
|
var position = list.findIndex(function (id) {
|
|
55
54
|
return selected === id;
|
|
56
55
|
});
|
|
@@ -68,7 +67,7 @@ var FilteredList = function (_PureComponent) {
|
|
|
68
67
|
};
|
|
69
68
|
_this.prev = function () {
|
|
70
69
|
var list = _this.list;
|
|
71
|
-
var selected = _this.
|
|
70
|
+
var selected = __state(_this).selected;
|
|
72
71
|
var position = list.findIndex(function (id) {
|
|
73
72
|
return selected === id;
|
|
74
73
|
});
|
|
@@ -117,29 +116,29 @@ var FilteredList = function (_PureComponent) {
|
|
|
117
116
|
return _this;
|
|
118
117
|
}
|
|
119
118
|
_createClass(FilteredList, [{
|
|
120
|
-
key:
|
|
119
|
+
key: [ReactConstants[0]],
|
|
121
120
|
value: function componentDidMount() {
|
|
122
|
-
orNoop(this.
|
|
123
|
-
orNoop(this.
|
|
124
|
-
orNoop(this.
|
|
125
|
-
orNoop(this.
|
|
126
|
-
this.updateList(this
|
|
121
|
+
orNoop(__props(this).nextProvider)(this.next);
|
|
122
|
+
orNoop(__props(this).prevProvider)(this.prev);
|
|
123
|
+
orNoop(__props(this).selectedProvider)(this.selected);
|
|
124
|
+
orNoop(__props(this).resetProvider)(this.reset);
|
|
125
|
+
this.updateList(__props(this));
|
|
127
126
|
}
|
|
128
127
|
}, {
|
|
129
|
-
key:
|
|
128
|
+
key: [ReactConstants[2]],
|
|
130
129
|
value: function componentDidUpdate(prevProps, prevState, snapshot) {
|
|
131
|
-
if (this.
|
|
132
|
-
this.updateList(this
|
|
130
|
+
if (__props(this).data === __data(prevProps)) return;
|
|
131
|
+
this.updateList(__props(this));
|
|
133
132
|
}
|
|
134
133
|
}, {
|
|
135
|
-
key:
|
|
134
|
+
key: [ReactConstants[3]],
|
|
136
135
|
value: function render() {
|
|
137
136
|
var _this2 = this;
|
|
138
|
-
var _this$props = this
|
|
137
|
+
var _this$props = __props(this),
|
|
139
138
|
data = __data(_this$props),
|
|
140
139
|
labels = _this$props.labels,
|
|
141
140
|
filter = _this$props.filter,
|
|
142
|
-
className = _this$props[
|
|
141
|
+
className = _this$props[ReactConstants[5]],
|
|
143
142
|
selected = _this$props.selected,
|
|
144
143
|
inline = _this$props.inline,
|
|
145
144
|
childComponent = _this$props.childComponent,
|
|
@@ -147,7 +146,7 @@ var FilteredList = function (_PureComponent) {
|
|
|
147
146
|
style = __style(_this$props),
|
|
148
147
|
scroll = _this$props.scroll;
|
|
149
148
|
return ReactCreateElement(Scrollable, {
|
|
150
|
-
[
|
|
149
|
+
[ReactConstants[5]]: classNames('FilteredList', className, inline ? 'inline' : 'popup'),
|
|
151
150
|
ref: ref('el', this),
|
|
152
151
|
style: style,
|
|
153
152
|
scrollBarMode: scroll
|
|
@@ -173,11 +172,11 @@ var FilteredList = function (_PureComponent) {
|
|
|
173
172
|
});
|
|
174
173
|
},
|
|
175
174
|
onMouseLeave: function onMouseLeave(e) {
|
|
176
|
-
return id === _this2.
|
|
175
|
+
return id === __state(_this2).selected && _this2.setState({
|
|
177
176
|
selected: -1
|
|
178
177
|
});
|
|
179
178
|
},
|
|
180
|
-
[
|
|
179
|
+
[ReactConstants[5]]: classNames('child', __state(_this2).selected === id && 'active', selected === id || isObject(selected) && selected[id] && 'selected'),
|
|
181
180
|
classProvider: function classProvider(it) {
|
|
182
181
|
return (_this2.hidden[id] = !filter(it)) && 'hidden';
|
|
183
182
|
}
|
|
@@ -206,10 +205,10 @@ var ItemWrapper = function (_React$Component) {
|
|
|
206
205
|
return _super2.apply(this, arguments);
|
|
207
206
|
}
|
|
208
207
|
_createClass(ItemWrapper, [{
|
|
209
|
-
key:
|
|
208
|
+
key: [ReactConstants[3]],
|
|
210
209
|
value: function render() {
|
|
211
210
|
var _this3 = this;
|
|
212
|
-
var _this$props2 = this
|
|
211
|
+
var _this$props2 = __props(this),
|
|
213
212
|
id = _this$props2.id,
|
|
214
213
|
label = _this$props2.label,
|
|
215
214
|
onClick = _this$props2.onClick,
|
|
@@ -217,7 +216,7 @@ var ItemWrapper = function (_React$Component) {
|
|
|
217
216
|
onMouseEnter = _this$props2.onMouseEnter,
|
|
218
217
|
onMouseLeave = _this$props2.onMouseLeave,
|
|
219
218
|
classProvider = _this$props2.classProvider,
|
|
220
|
-
className = _this$props2[
|
|
219
|
+
className = _this$props2[ReactConstants[5]],
|
|
221
220
|
childComponent = _this$props2.childComponent,
|
|
222
221
|
childProps = _this$props2.childProps;
|
|
223
222
|
var child = React.createElement(childComponent, _objectSpread2(_objectSpread2({}, childProps), {}, {
|
|
@@ -229,7 +228,7 @@ var ItemWrapper = function (_React$Component) {
|
|
|
229
228
|
}));
|
|
230
229
|
var cssClass = orNoop(classProvider)(__data(this));
|
|
231
230
|
return ReactCreateElement("div", {
|
|
232
|
-
[
|
|
231
|
+
[ReactConstants[5]]: classNames('ItemWrapper', cssClass, className),
|
|
233
232
|
onMouseEnter: onMouseEnter,
|
|
234
233
|
onMouseLeave: onMouseLeave,
|
|
235
234
|
onMouseDown: onMouseDown,
|
|
@@ -238,9 +237,9 @@ var ItemWrapper = function (_React$Component) {
|
|
|
238
237
|
}, child);
|
|
239
238
|
}
|
|
240
239
|
}, {
|
|
241
|
-
key:
|
|
240
|
+
key: [ReactConstants[0]],
|
|
242
241
|
value: function componentDidMount() {
|
|
243
|
-
orNoop(this.
|
|
242
|
+
orNoop(__props(this).element)(this.el);
|
|
244
243
|
this.forceUpdate();
|
|
245
244
|
}
|
|
246
245
|
}]);
|
package/FloatingActionButton.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import 'react';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
9
8
|
import PropTypes from 'prop-types';
|
|
10
9
|
import Button from './Button.js';
|
|
@@ -15,12 +14,12 @@ var FloatingActionButton = function FloatingActionButton(_ref) {
|
|
|
15
14
|
var icon = _ref.icon,
|
|
16
15
|
onClick = _ref.onClick,
|
|
17
16
|
mini = _ref.mini,
|
|
18
|
-
className = _ref[
|
|
17
|
+
className = _ref[ReactConstants[5]],
|
|
19
18
|
hidden = _ref.hidden;
|
|
20
19
|
return ReactCreateElement(Button, {
|
|
21
20
|
onClick: onClick,
|
|
22
21
|
round: true,
|
|
23
|
-
[
|
|
22
|
+
[ReactConstants[5]]: classNames("FloatingActionButton", className, mini && 'mini', hidden && 'hidden')
|
|
24
23
|
}, ReactCreateElement(MaterialIcon, {
|
|
25
24
|
icon: icon
|
|
26
25
|
}));
|
package/FormUploadProgress.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants";
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
6
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {className as __className} from "./ReactConstants";
|
|
7
|
-
import {children as __children} from "./ReactConstants";
|
|
8
7
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
9
8
|
import Button from './Button.js';
|
|
10
9
|
import Animated from './Animated.js';
|
|
@@ -30,17 +29,17 @@ var FormUploadProgress = function FormUploadProgress(_ref) {
|
|
|
30
29
|
return ReactCreateElement(Animated, {
|
|
31
30
|
value: total > 0
|
|
32
31
|
}, ReactCreateElement("div", {
|
|
33
|
-
[
|
|
32
|
+
[ReactConstants[5]]: "FormUploadProgress"
|
|
34
33
|
}, ReactCreateElement("div", {
|
|
35
|
-
[
|
|
34
|
+
[ReactConstants[5]]: "wrapper"
|
|
36
35
|
}, ReactCreateElement("div", {
|
|
37
|
-
[
|
|
36
|
+
[ReactConstants[5]]: "progress"
|
|
38
37
|
}, loaded === total && ReactCreateElement(SpinningProgress, null), loaded !== total && ReactCreateElement(CircleProgress, {
|
|
39
38
|
value: value
|
|
40
39
|
}), ReactCreateElement("div", {
|
|
41
|
-
[
|
|
40
|
+
[ReactConstants[5]]: 'value'
|
|
42
41
|
}, formatValue(value, loaded, total))), cancel && ReactCreateElement(Button, {
|
|
43
|
-
[
|
|
42
|
+
[ReactConstants[5]]: "cancel",
|
|
44
43
|
disabled: loaded === total,
|
|
45
44
|
onClick: function onClick(e) {
|
|
46
45
|
preventDefault(e);
|