react-ui-basics 0.0.150 → 0.0.153
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 +3 -0
- package/AutocompleteSelect.js +16 -13
- package/Button.js +6 -3
- package/Checkbox.js +5 -2
- package/CircleProgress.js +5 -2
- package/DNDContainer.js +5 -2
- package/DNDDraggable.js +4 -1
- package/DNDDroppable.js +4 -1
- package/Dialog.js +9 -6
- package/DropFileInput.js +5 -2
- package/DroppableHorizontalList.js +4 -1
- package/DroppableList.js +4 -1
- package/Dropzone.js +8 -5
- package/FilteredList.js +6 -3
- package/FloatingActionButton.js +4 -1
- package/FormUploadProgress.js +8 -5
- package/ImageGallery.js +15 -12
- package/MaterialIcon.js +5 -2
- package/Modal.js +8 -5
- package/ModalMenu.js +6 -3
- package/ReadyListener.js +3 -0
- package/Scrollable.js +10 -7
- package/ScrollableTable.js +4 -1
- package/Size.js +4 -1
- package/Snackbar.js +6 -3
- package/SpinningProgress.js +6 -3
- package/Switch.js +10 -7
- package/Table.js +12 -9
- package/TextField.js +9 -6
- package/bundle.css +819 -819
- package/index.js +3 -0
- package/package.json +1 -1
- package/router/Link.js +4 -1
- package/router/NavLink.js +4 -1
- package/router/Route.js +6 -3
- package/router/index.js +3 -0
- package/store/ProxyTools.js +3 -0
- package/store/Store.js +3 -0
package/Animated.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
4
7
|
import { setOf, clearTimeout, allPropsExcept, classNames, requestAnimationFrame, setTimeout } from './Tools.js';
|
package/AutocompleteSelect.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, createClass as _createClass, toConsumableArray as _toConsumableArray } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import PropTypes from 'prop-types';
|
|
@@ -24,7 +27,7 @@ var DummyChild = function DummyChild(_ref) {
|
|
|
24
27
|
onClick = _ref.onClick;
|
|
25
28
|
orNoop(dataConsumer)(label || id);
|
|
26
29
|
return ReactCreateElement("div", {
|
|
27
|
-
|
|
30
|
+
[__className]: "DummyChild",
|
|
28
31
|
onClick: onClick
|
|
29
32
|
}, label || id);
|
|
30
33
|
};
|
|
@@ -285,10 +288,10 @@ var AutocompleteSelect = function (_PureComponent) {
|
|
|
285
288
|
var filterFunction = this.createFilter(prefilter, filterValue, filterValueTrimmed.toLowerCase(), filter);
|
|
286
289
|
return ReactCreateElement("div", {
|
|
287
290
|
id: id,
|
|
288
|
-
|
|
291
|
+
[__className]: classNames('AutocompleteSelect', mode, isMultipleSelect(mode) && 'multi', className, withFilter ? 'withFilter' : 'withoutFilter', isActive && 'active', errored && 'errored', inlineSelected && 'inlineSelected', hasSelected && 'hasSelected'),
|
|
289
292
|
ref: ref('el', this)
|
|
290
293
|
}, label && ReactCreateElement("label", {
|
|
291
|
-
|
|
294
|
+
[__className]: classNames("label", (hasSelected || filterValue) && 'active', hasSelected && 'hasSelected'),
|
|
292
295
|
htmlFor: 'f-' + id,
|
|
293
296
|
onClick: function onClick() {
|
|
294
297
|
if (mode === MODE_MULTIPLE_MINI_INLINE || !isActive) {
|
|
@@ -296,20 +299,20 @@ var AutocompleteSelect = function (_PureComponent) {
|
|
|
296
299
|
}
|
|
297
300
|
}
|
|
298
301
|
}, label, required && ' *', withArrow && ReactCreateElement("span", {
|
|
299
|
-
|
|
302
|
+
[__className]: "arrow"
|
|
300
303
|
})), (!isActive || mode === MODE_MULTIPLE || mode === MODE_INLINE_MULTIPLE || mode === MODE_MULTIPLE_MINI_INLINE || mode === MODE_MULTIPLE_AUTO || !withFilter) && !inlineSelected && hasSelected && ReactCreateElement("div", {
|
|
301
|
-
|
|
304
|
+
[__className]: classNames('selected', !label && 'nolabel', (mode === MODE_MULTIPLE_MINI || mode === MODE_MINI || mode === MODE_MULTIPLE_MINI_INLINE) && 'clickable', selectedMode),
|
|
302
305
|
onClick: toggle
|
|
303
306
|
}, selectedMode === 'full' && selectedIds.map(function (id) {
|
|
304
307
|
return ReactCreateElement("div", {
|
|
305
|
-
|
|
308
|
+
[__className]: "value",
|
|
306
309
|
key: id
|
|
307
310
|
}, React.createElement(selectedComponent, _objectSpread2(_objectSpread2({}, childProps), {}, {
|
|
308
311
|
id: id,
|
|
309
312
|
label: getLabel(labels, id),
|
|
310
313
|
onClick: setActive
|
|
311
314
|
})), ReactCreateElement("div", {
|
|
312
|
-
|
|
315
|
+
[__className]: "button remove",
|
|
313
316
|
onClick: function onClick(e) {
|
|
314
317
|
stopPropagation(e);
|
|
315
318
|
_this3.remove(id);
|
|
@@ -324,21 +327,21 @@ var AutocompleteSelect = function (_PureComponent) {
|
|
|
324
327
|
onClick: setActive
|
|
325
328
|
})), id !== selectedIds[selectedIds.length - 1] && ', ');
|
|
326
329
|
}), !label && withArrow && ReactCreateElement("span", {
|
|
327
|
-
|
|
330
|
+
[__className]: "arrow"
|
|
328
331
|
}), withReset && ReactCreateElement(Button, {
|
|
329
|
-
|
|
332
|
+
[__className]: "reset",
|
|
330
333
|
raised: false,
|
|
331
334
|
onClick: this.clean
|
|
332
335
|
}, removeIcon)), inlineSelected && hasSelected && ReactCreateElement(React.Fragment, null, selectedMode === 'full' && selectedIds.map(function (id) {
|
|
333
336
|
return ReactCreateElement("div", {
|
|
334
|
-
|
|
337
|
+
[__className]: "value",
|
|
335
338
|
key: id
|
|
336
339
|
}, React.createElement(selectedComponent, _objectSpread2(_objectSpread2({}, childProps), {}, {
|
|
337
340
|
id: id,
|
|
338
341
|
label: getLabel(labels, id),
|
|
339
342
|
onClick: setActive
|
|
340
343
|
})), ReactCreateElement("div", {
|
|
341
|
-
|
|
344
|
+
[__className]: "button remove",
|
|
342
345
|
onClick: function onClick(e) {
|
|
343
346
|
stopPropagation(e);
|
|
344
347
|
_this3.remove(id);
|
|
@@ -353,7 +356,7 @@ var AutocompleteSelect = function (_PureComponent) {
|
|
|
353
356
|
onClick: setActive
|
|
354
357
|
})), id !== selectedIds[selectedIds.length - 1] && ', ');
|
|
355
358
|
})), (isActive || !hasSelected && mode !== MODE_MULTIPLE_MINI_INLINE || mode === MODE_MULTIPLE || mode === MODE_MULTIPLE_AUTO && selectedIds.length > 1 || mode === MODE_INLINE_MULTIPLE) && ReactCreateElement("div", {
|
|
356
|
-
|
|
359
|
+
[__className]: "input",
|
|
357
360
|
"data-value": filterValue
|
|
358
361
|
}, withFilter && ReactCreateElement(TextField, {
|
|
359
362
|
autoComplete: "new-password",
|
|
@@ -406,7 +409,7 @@ var AutocompleteSelect = function (_PureComponent) {
|
|
|
406
409
|
}
|
|
407
410
|
}
|
|
408
411
|
}), !withFilter && inputLabel && ReactCreateElement("label", null, inputLabel)), ReactCreateElement(FilteredList, {
|
|
409
|
-
|
|
412
|
+
[__className]: classNames(isActive && 'visible'),
|
|
410
413
|
ref: ref('list', this),
|
|
411
414
|
filter: filterFunction,
|
|
412
415
|
selectSingle: !allowCustom,
|
package/Button.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import { classNames, createRef, DOCUMENT, addEventListener, orNoop } from './Tools.js';
|
|
@@ -55,7 +58,7 @@ var Button = function (_PureComponent) {
|
|
|
55
58
|
style = _props.style,
|
|
56
59
|
disabled = _props.disabled;
|
|
57
60
|
return ReactCreateElement("button", {
|
|
58
|
-
|
|
61
|
+
[__className]: classNames('Button', className, disabled && 'disabled', raised && 'raised', flat && 'flat', round && 'round'),
|
|
59
62
|
onFocus: onFocus,
|
|
60
63
|
disabled: disabled,
|
|
61
64
|
style: style,
|
|
@@ -64,7 +67,7 @@ var Button = function (_PureComponent) {
|
|
|
64
67
|
onMouseDown: onMouseDown,
|
|
65
68
|
ref: el
|
|
66
69
|
}, children, ReactCreateElement("span", {
|
|
67
|
-
|
|
70
|
+
[__className]: classNames("ripple", rippleClassName()),
|
|
68
71
|
ref: ripple
|
|
69
72
|
}));
|
|
70
73
|
};
|
|
@@ -80,7 +83,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
80
83
|
disabled: PropTypes.bool,
|
|
81
84
|
withRipple: PropTypes.bool,
|
|
82
85
|
type: PropTypes.oneOf(['button', 'submit', 'reset']),
|
|
83
|
-
|
|
86
|
+
[__className]: PropTypes.string,
|
|
84
87
|
onClick: PropTypes.func,
|
|
85
88
|
onFocus: PropTypes.func,
|
|
86
89
|
style: PropTypes.object
|
package/Checkbox.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import { classNames, getRandomId } from './Tools.js';
|
|
@@ -24,7 +27,7 @@ var Checkbox = function (_PureComponent) {
|
|
|
24
27
|
disabled = _props.disabled;
|
|
25
28
|
var id = props().id || randomId;
|
|
26
29
|
return ReactCreateElement("div", {
|
|
27
|
-
|
|
30
|
+
[__className]: classNames("Checkbox", className)
|
|
28
31
|
}, ReactCreateElement("input", {
|
|
29
32
|
name: name,
|
|
30
33
|
id: id,
|
|
@@ -45,7 +48,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
45
48
|
onChange: PropTypes.func.isRequired,
|
|
46
49
|
value: PropTypes.bool,
|
|
47
50
|
disabled: PropTypes.bool,
|
|
48
|
-
|
|
51
|
+
[__className]: PropTypes.string,
|
|
49
52
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
50
53
|
name: PropTypes.string,
|
|
51
54
|
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
package/CircleProgress.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
4
7
|
|
|
@@ -11,11 +14,11 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
11
14
|
var value = _ref.value;
|
|
12
15
|
value = Number.parseFloat(value);
|
|
13
16
|
return ReactCreateElement("div", {
|
|
14
|
-
|
|
17
|
+
[__className]: "CircleProgress"
|
|
15
18
|
}, ReactCreateElement("svg", {
|
|
16
19
|
viewBox: "0 0 24 24"
|
|
17
20
|
}, ReactCreateElement("path", {
|
|
18
|
-
|
|
21
|
+
[__className]: "line",
|
|
19
22
|
style: {
|
|
20
23
|
strokeDashoffset: dashoffset(Number.isFinite(value) ? value : 0),
|
|
21
24
|
strokeDasharray: length
|
package/DNDContainer.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import { Component } from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import { setTimeout, clearTimeout, preventDefault, addEventListener, orNoop, NOOP, removeEventListener, WINDOW, DOCUMENT, requestAnimationFrame, classNames, ref } from './Tools.js';
|
|
@@ -222,10 +225,10 @@ var DNDContainer = function (_Component) {
|
|
|
222
225
|
className = _this$props.className;
|
|
223
226
|
var draggable = this.state.draggable;
|
|
224
227
|
return ReactCreateElement("div", {
|
|
225
|
-
|
|
228
|
+
[__className]: classNames('DNDContainer', className),
|
|
226
229
|
ref: ref('container', this)
|
|
227
230
|
}, children, ReactCreateElement("div", {
|
|
228
|
-
|
|
231
|
+
[__className]: "overlay"
|
|
229
232
|
}, draggable));
|
|
230
233
|
}
|
|
231
234
|
}, {
|
package/DNDDraggable.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import { orNoop, classNames, ref } from './Tools.js';
|
|
@@ -34,7 +37,7 @@ var Draggable = function (_PureComponent) {
|
|
|
34
37
|
var _state = state(that),
|
|
35
38
|
_props = props(that);
|
|
36
39
|
return ReactCreateElement("div", {
|
|
37
|
-
|
|
40
|
+
[__className]: classNames('Draggable', _props[className], _state[dragged] && dragged, _state[placeholder] && placeholder, _state[hover] && hover),
|
|
38
41
|
onClick: _props.onClick,
|
|
39
42
|
ref: ref('element', that)
|
|
40
43
|
}, _props[handle], _props[children]);
|
package/DNDDroppable.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import { orNoop, classNames, preventDefault, stopPropagation, ref } from './Tools.js';
|
|
@@ -31,7 +34,7 @@ var Droppable = function (_PureComponent) {
|
|
|
31
34
|
var _props = props(that),
|
|
32
35
|
_state = state(that);
|
|
33
36
|
return ReactCreateElement("div", {
|
|
34
|
-
|
|
37
|
+
[__className]: classNames('Droppable', _props[className], _state[hover] && hover, _state[allow] && allow),
|
|
35
38
|
onDragOver: function onDragOver(e) {
|
|
36
39
|
preventDefault(e);
|
|
37
40
|
stopPropagation(e);
|
package/Dialog.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
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';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import { Component } from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import Button from './Button.js';
|
|
@@ -25,13 +28,13 @@ var Dialog = function (_PureComponent) {
|
|
|
25
28
|
onCancel = _this$props.onCancel,
|
|
26
29
|
children = _this$props.children;
|
|
27
30
|
return ReactCreateElement("div", {
|
|
28
|
-
|
|
31
|
+
[__className]: "Dialog"
|
|
29
32
|
}, title && ReactCreateElement("div", {
|
|
30
|
-
|
|
33
|
+
[__className]: "title"
|
|
31
34
|
}, title), description && ReactCreateElement("div", {
|
|
32
|
-
|
|
35
|
+
[__className]: "description"
|
|
33
36
|
}, description), children, ReactCreateElement("div", {
|
|
34
|
-
|
|
37
|
+
[__className]: "row right"
|
|
35
38
|
}, cancel && ReactCreateElement(Button, {
|
|
36
39
|
flat: true,
|
|
37
40
|
onClick: onCancel
|
|
@@ -88,7 +91,7 @@ var DialogWrapper = function (_Component) {
|
|
|
88
91
|
other = _objectWithoutProperties(_props2, _excluded);
|
|
89
92
|
return ReactCreateElement(Modal, {
|
|
90
93
|
top: top,
|
|
91
|
-
|
|
94
|
+
[__className]: classNames('DialogModal', className),
|
|
92
95
|
open: openRef,
|
|
93
96
|
close: closeRef,
|
|
94
97
|
onClose: onCancel
|
|
@@ -155,7 +158,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
155
158
|
cancel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
156
159
|
onAccept: PropTypes.func,
|
|
157
160
|
onCancel: PropTypes.func,
|
|
158
|
-
|
|
161
|
+
[__className]: PropTypes.string,
|
|
159
162
|
top: PropTypes.number
|
|
160
163
|
};
|
|
161
164
|
}
|
package/DropFileInput.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
3
6
|
import Dropzone from './Dropzone.js';
|
|
4
7
|
import PropTypes from 'prop-types';
|
|
@@ -13,14 +16,14 @@ var DropFileInput = function DropFileInput(_ref) {
|
|
|
13
16
|
multiple = _ref.multiple,
|
|
14
17
|
accept = _ref.accept;
|
|
15
18
|
return ReactCreateElement("section", {
|
|
16
|
-
|
|
19
|
+
[__className]: "DropFileInput"
|
|
17
20
|
}, ReactCreateElement(Dropzone, {
|
|
18
21
|
droppable: droppable,
|
|
19
22
|
onDrop: onDrop,
|
|
20
23
|
accept: accept,
|
|
21
24
|
multiple: multiple
|
|
22
25
|
}, ReactCreateElement(MaterialIcon, {
|
|
23
|
-
|
|
26
|
+
[__className]: classNames("icon", label && 'withText'),
|
|
24
27
|
icon: icon
|
|
25
28
|
}), label && ReactCreateElement("div", null, label)));
|
|
26
29
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import React, { Component } from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import DNDDroppable from './DNDDroppable.js';
|
|
@@ -152,7 +155,7 @@ var DroppableHorizontalList = function (_Component) {
|
|
|
152
155
|
var className = _props.className,
|
|
153
156
|
initializer = _props.initializer;
|
|
154
157
|
return ReactCreateElement(DNDDroppable, {
|
|
155
|
-
|
|
158
|
+
[__className]: classNames('DroppableList', className, resetting() && 'resetting'),
|
|
156
159
|
initializer: initializer,
|
|
157
160
|
onHover: onHover,
|
|
158
161
|
onDragStart: onDragStart,
|
package/DroppableList.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import React, { Component } from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import DNDDroppable from './DNDDroppable.js';
|
|
@@ -158,7 +161,7 @@ var DroppableList = function (_Component) {
|
|
|
158
161
|
var className = _props.className,
|
|
159
162
|
initializer = _props.initializer;
|
|
160
163
|
return ReactCreateElement(DNDDroppable, {
|
|
161
|
-
|
|
164
|
+
[__className]: classNames('DroppableList', className, resetting() && 'resetting'),
|
|
162
165
|
initializer: initializer,
|
|
163
166
|
onHover: onHover,
|
|
164
167
|
onDragStart: onDragStart,
|
package/Dropzone.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import 'react';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
4
7
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
@@ -78,17 +81,17 @@ var Dropzone = function (_PureComponent) {
|
|
|
78
81
|
overlayLabel = _props.overlayLabel,
|
|
79
82
|
accept = _props.accept;
|
|
80
83
|
return ReactCreateElement("div", {
|
|
81
|
-
|
|
84
|
+
[__className]: classNames('Dropzone', className, isDragging() && 'dragging'),
|
|
82
85
|
onDragLeave: !disabled && droppable && onDragLeave || UNDEFINED,
|
|
83
86
|
onDragOver: !disabled && droppable && onDragOver || UNDEFINED,
|
|
84
87
|
onDragEnter: !disabled && droppable && onDragEnter || UNDEFINED,
|
|
85
88
|
onDrop: !disabled && droppable && onDrop || UNDEFINED
|
|
86
89
|
}, overlayLabel && ReactCreateElement("div", {
|
|
87
|
-
|
|
90
|
+
[__className]: "overlay"
|
|
88
91
|
}, ReactCreateElement("div", {
|
|
89
|
-
|
|
92
|
+
[__className]: 'drop'
|
|
90
93
|
}, overlayLabel)), !disabled && clickable && ReactCreateElement("input", {
|
|
91
|
-
|
|
94
|
+
[__className]: 'file',
|
|
92
95
|
ref: inputRef,
|
|
93
96
|
type: "file",
|
|
94
97
|
accept: accept,
|
|
@@ -110,7 +113,7 @@ Dropzone.defaultProps = {
|
|
|
110
113
|
};
|
|
111
114
|
if (process.env.NODE_ENV !== 'production') {
|
|
112
115
|
Dropzone.propTypes = {
|
|
113
|
-
|
|
116
|
+
[__className]: PropTypes.string,
|
|
114
117
|
overlayLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
115
118
|
clickable: PropTypes.bool,
|
|
116
119
|
droppable: PropTypes.bool,
|
package/FilteredList.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import Scrollable from './Scrollable.js';
|
|
@@ -141,7 +144,7 @@ var FilteredList = function (_PureComponent) {
|
|
|
141
144
|
style = _this$props.style,
|
|
142
145
|
scroll = _this$props.scroll;
|
|
143
146
|
return ReactCreateElement(Scrollable, {
|
|
144
|
-
|
|
147
|
+
[__className]: classNames('FilteredList', className, inline ? 'inline' : 'popup'),
|
|
145
148
|
ref: ref('el', this),
|
|
146
149
|
style: style,
|
|
147
150
|
scrollBarMode: scroll
|
|
@@ -171,7 +174,7 @@ var FilteredList = function (_PureComponent) {
|
|
|
171
174
|
selected: -1
|
|
172
175
|
});
|
|
173
176
|
},
|
|
174
|
-
|
|
177
|
+
[__className]: classNames('child', _this2.state.selected === id && 'active', selected === id || isObject(selected) && selected[id] && 'selected'),
|
|
175
178
|
classProvider: function classProvider(it) {
|
|
176
179
|
return (_this2.hidden[id] = !filter(it)) && 'hidden';
|
|
177
180
|
}
|
|
@@ -223,7 +226,7 @@ var ItemWrapper = function (_React$Component) {
|
|
|
223
226
|
}));
|
|
224
227
|
var cssClass = orNoop(classProvider)(this.data);
|
|
225
228
|
return ReactCreateElement("div", {
|
|
226
|
-
|
|
229
|
+
[__className]: classNames('ItemWrapper', cssClass, className),
|
|
227
230
|
onMouseEnter: onMouseEnter,
|
|
228
231
|
onMouseLeave: onMouseLeave,
|
|
229
232
|
onMouseDown: onMouseDown,
|
package/FloatingActionButton.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
4
7
|
import Button from './Button.js';
|
|
@@ -14,7 +17,7 @@ var FloatingActionButton = function FloatingActionButton(_ref) {
|
|
|
14
17
|
return ReactCreateElement(Button, {
|
|
15
18
|
onClick: onClick,
|
|
16
19
|
round: true,
|
|
17
|
-
|
|
20
|
+
[__className]: classNames("FloatingActionButton", className, mini && 'mini', hidden && 'hidden')
|
|
18
21
|
}, ReactCreateElement(MaterialIcon, {
|
|
19
22
|
icon: icon
|
|
20
23
|
}));
|
package/FormUploadProgress.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
3
6
|
import Button from './Button.js';
|
|
4
7
|
import Animated from './Animated.js';
|
|
@@ -24,17 +27,17 @@ var FormUploadProgress = function FormUploadProgress(_ref) {
|
|
|
24
27
|
return ReactCreateElement(Animated, {
|
|
25
28
|
value: total > 0
|
|
26
29
|
}, ReactCreateElement("div", {
|
|
27
|
-
|
|
30
|
+
[__className]: "FormUploadProgress"
|
|
28
31
|
}, ReactCreateElement("div", {
|
|
29
|
-
|
|
32
|
+
[__className]: "wrapper"
|
|
30
33
|
}, ReactCreateElement("div", {
|
|
31
|
-
|
|
34
|
+
[__className]: "progress"
|
|
32
35
|
}, loaded === total && ReactCreateElement(SpinningProgress, null), loaded !== total && ReactCreateElement(CircleProgress, {
|
|
33
36
|
value: value
|
|
34
37
|
}), ReactCreateElement("div", {
|
|
35
|
-
|
|
38
|
+
[__className]: 'value'
|
|
36
39
|
}, formatValue(value, loaded, total))), cancel && ReactCreateElement(Button, {
|
|
37
|
-
|
|
40
|
+
[__className]: "cancel",
|
|
38
41
|
disabled: loaded === total,
|
|
39
42
|
onClick: function onClick(e) {
|
|
40
43
|
preventDefault(e);
|
package/ImageGallery.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { createClass as _createClass, classCallCheck as _classCallCheck, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, extends as _extends, toConsumableArray as _toConsumableArray } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
3
|
+
import {className as __className} from "./ReactConstants";
|
|
4
|
+
import {children as __children} from "./ReactConstants";
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
7
|
import Animated from './Animated.js';
|
|
@@ -623,7 +626,7 @@ var ImageGallery = function (_React$Component) {
|
|
|
623
626
|
return ReactCreateElement(Animated, {
|
|
624
627
|
value: show
|
|
625
628
|
}, ReactCreateElement(Button, {
|
|
626
|
-
|
|
629
|
+
[__className]: className,
|
|
627
630
|
onClick: onClick,
|
|
628
631
|
round: true
|
|
629
632
|
}, ReactCreateElement(MaterialIcon, {
|
|
@@ -651,7 +654,7 @@ var ImageGallery = function (_React$Component) {
|
|
|
651
654
|
return ReactCreateElement(Animated, {
|
|
652
655
|
value: open
|
|
653
656
|
}, ReactCreateElement("div", {
|
|
654
|
-
|
|
657
|
+
[__className]: classNames('ImageGallery', embedded && 'embedded', isZoomed && 'zoomed'),
|
|
655
658
|
tabIndex: 0,
|
|
656
659
|
ref: function ref(it) {
|
|
657
660
|
return (that.gallery = it) && !embedded && it.focus();
|
|
@@ -707,7 +710,7 @@ var ImageGallery = function (_React$Component) {
|
|
|
707
710
|
!e.swipeProcessed && orNoop(_onClick)(e, it, i);
|
|
708
711
|
},
|
|
709
712
|
key: i,
|
|
710
|
-
|
|
713
|
+
[__className]: classNames('image', touchesStart && 'dragging', isZoomedCurrent && 'zoomed', i === indexValue && 'current')
|
|
711
714
|
}, ReactCreateElement("img", {
|
|
712
715
|
draggable: false,
|
|
713
716
|
src: loaded ? it.url : it.previewUrl,
|
|
@@ -715,29 +718,29 @@ var ImageGallery = function (_React$Component) {
|
|
|
715
718
|
}), ReactCreateElement(Animated, {
|
|
716
719
|
value: !loaded && Math.abs(indexValue - i) <= 1
|
|
717
720
|
}, ReactCreateElement("div", {
|
|
718
|
-
|
|
721
|
+
[__className]: 'spinner'
|
|
719
722
|
}, ReactCreateElement(SpinningProgress, null))), !embedded && animatedRoundButton(open && !isZoomedCurrent, 'close', onClose, 'close'), ReactCreateElement(Animated, {
|
|
720
723
|
value: loaded && !isZoomedCurrent
|
|
721
724
|
}, ReactCreateElement("div", {
|
|
722
|
-
|
|
725
|
+
[__className]: "counter"
|
|
723
726
|
}, indexValue + 1, " / ", length)), !isZoomedCurrent && loaded && it.overlay));
|
|
724
727
|
}), animatedRoundButton(open && length > 1 && (indexValue > 0 || loop) && !isZoomed, 'arrow left', left, 'chevron_left'), animatedRoundButton(open && length > 1 && (indexValue !== length - 1 || loop) && !isZoomed, 'arrow right', right, 'chevron_right'), ReactCreateElement(Animated, {
|
|
725
728
|
value: open && length > 1 && !isZoomed
|
|
726
729
|
}, ReactCreateElement("div", {
|
|
727
|
-
|
|
730
|
+
[__className]: "counter"
|
|
728
731
|
}, indexValue + 1, " / ", length)), indicator && ReactCreateElement(Animated, {
|
|
729
732
|
value: open && length > 1 && !isZoomed
|
|
730
733
|
}, indicator(indexValue, length)), ReactCreateElement(Animated, {
|
|
731
734
|
value: open && previews.show && !isZoomed
|
|
732
735
|
}, ReactCreateElement("div", {
|
|
733
|
-
|
|
736
|
+
[__className]: "previews",
|
|
734
737
|
style: {
|
|
735
738
|
width: previews.width
|
|
736
739
|
}
|
|
737
740
|
}, ReactCreateElement("div", {
|
|
738
|
-
|
|
741
|
+
[__className]: "viewport"
|
|
739
742
|
}, ReactCreateElement("div", {
|
|
740
|
-
|
|
743
|
+
[__className]: "container",
|
|
741
744
|
style: {
|
|
742
745
|
width: previews.totalWidth,
|
|
743
746
|
left: toPx(previewScroll() || previews.scroll)
|
|
@@ -745,7 +748,7 @@ var ImageGallery = function (_React$Component) {
|
|
|
745
748
|
}, (previews.images || []).map(function (it, i) {
|
|
746
749
|
return ReactCreateElement("div", {
|
|
747
750
|
key: i,
|
|
748
|
-
|
|
751
|
+
[__className]: classNames('preview', indexValue === i && 'selected'),
|
|
749
752
|
onClick: function onClick() {
|
|
750
753
|
return scrollTo(i, indexValue);
|
|
751
754
|
}
|
|
@@ -753,9 +756,9 @@ var ImageGallery = function (_React$Component) {
|
|
|
753
756
|
src: it.url,
|
|
754
757
|
style: it
|
|
755
758
|
}), ReactCreateElement("div", {
|
|
756
|
-
|
|
759
|
+
[__className]: "border"
|
|
757
760
|
}, ReactCreateElement("div", {
|
|
758
|
-
|
|
761
|
+
[__className]: "line"
|
|
759
762
|
})));
|
|
760
763
|
}))), animatedRoundButton(indexValue > 0 || loop, 'arrow left', left, 'keyboard_arrow_left'), animatedRoundButton(indexValue !== length - 1 || loop, 'arrow right', right, 'keyboard_arrow_right'))), children));
|
|
761
764
|
};
|