react-ui-basics 0.0.155 → 0.0.158
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 +2 -1
- package/AutocompleteSelect.js +15 -14
- package/Button.js +15 -15
- package/Button.js.map +1 -1
- package/Checkbox.js +3 -2
- package/CircleProgress.js +2 -1
- package/CommonFields.js +17 -0
- package/CommonFields.js.map +1 -0
- package/DNDContainer.js +29 -28
- package/DNDDraggable.js +1 -0
- package/DNDDroppable.js +1 -0
- package/Dialog.js +4 -3
- package/DropFileInput.js +1 -0
- package/DroppableHorizontalList.js +18 -17
- package/DroppableList.js +18 -17
- package/Dropzone.js +6 -5
- package/FilteredList.js +11 -10
- package/FloatingActionButton.js +2 -1
- package/FormUploadProgress.js +2 -1
- package/ImageGallery.js +93 -92
- package/MaterialIcon.js +2 -1
- package/Modal.js +7 -6
- package/ModalMenu.js +4 -3
- package/ReactConstants.d.ts +18 -0
- package/ReactConstants.js +25 -36
- package/ReactConstants.js.map +1 -1
- package/ReadyListener.js +1 -0
- package/ResizeObserver.d.ts +1 -0
- package/Scrollable.js +38 -37
- package/ScrollableTable.d.ts +15 -0
- package/ScrollableTable.js +19 -32
- package/ScrollableTable.js.map +1 -1
- package/Size.js +3 -2
- package/Snackbar.js +1 -0
- package/SpinningProgress.js +1 -0
- package/Switch.js +3 -2
- package/Table.d.ts +8 -25
- package/Table.js +90 -95
- package/Table.js.map +1 -1
- package/TextField.js +7 -6
- package/Tools.d.ts +1 -1
- package/Tools.js +18 -17
- package/Tools.js.map +1 -1
- package/bundle.css +623 -623
- package/index.js +8 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/router/Link.js +3 -2
- package/router/NavLink.js +3 -2
- package/router/Route.js +10 -9
- package/router/index.js +1 -0
- package/store/ProxyTools.js +1 -0
- package/store/Store.js +1 -0
package/index.js
CHANGED
|
@@ -3,6 +3,14 @@ export { default as AutocompleteSelect } from './AutocompleteSelect.js';
|
|
|
3
3
|
export { default as Button } from './Button.js';
|
|
4
4
|
export { default as Checkbox } from './Checkbox.js';
|
|
5
5
|
export { default as CircleProgress } from './CircleProgress.js';
|
|
6
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./CommonFields";
|
|
7
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
8
|
+
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
9
|
+
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
10
|
+
import {className as __className} from "./ReactConstants";
|
|
11
|
+
import {children as __children} from "./ReactConstants";
|
|
12
|
+
import * as CommonFields from './CommonFields.js';
|
|
13
|
+
export { CommonFields };
|
|
6
14
|
export { default as Dialog } from './Dialog.js';
|
|
7
15
|
export { default as DNDContainer } from './DNDContainer.js';
|
|
8
16
|
export { default as DNDDraggable } from './DNDDraggable.js';
|
|
@@ -23,11 +31,6 @@ export { default as Snackbar } from './Snackbar.js';
|
|
|
23
31
|
export { default as SpinningProgress } from './SpinningProgress.js';
|
|
24
32
|
export { default as Switch } from './Switch.js';
|
|
25
33
|
export { default as ReactCreateElement } from './ReactCreateElement.js';
|
|
26
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
27
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
28
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
29
|
-
import {className as __className} from "./ReactConstants";
|
|
30
|
-
import {children as __children} from "./ReactConstants";
|
|
31
34
|
import * as ReadyListener from './ReadyListener.js';
|
|
32
35
|
export { ReadyListener };
|
|
33
36
|
export { default as TextField } from './TextField.js';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
package/router/Link.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
|
|
2
3
|
import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
3
4
|
import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
@@ -10,9 +11,9 @@ import { pushLocation } from './HistoryTools.js';
|
|
|
10
11
|
import { preventDefault } from '../Tools.js';
|
|
11
12
|
|
|
12
13
|
var Link = function Link(_ref) {
|
|
13
|
-
var children = _ref
|
|
14
|
+
var children = _ref[__children],
|
|
14
15
|
href = _ref.href,
|
|
15
|
-
className = _ref
|
|
16
|
+
className = _ref[__className];
|
|
16
17
|
return ReactCreateElement("a", {
|
|
17
18
|
href: href,
|
|
18
19
|
[__className]: className,
|
package/router/NavLink.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
|
|
2
3
|
import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
3
4
|
import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
@@ -11,10 +12,10 @@ import Link from './Link.js';
|
|
|
11
12
|
import { classNames } from '../Tools.js';
|
|
12
13
|
|
|
13
14
|
var NavLink = function NavLink(_ref) {
|
|
14
|
-
var children = _ref
|
|
15
|
+
var children = _ref[__children],
|
|
15
16
|
href = _ref.href,
|
|
16
17
|
highlightPath = _ref.highlightPath,
|
|
17
|
-
className = _ref
|
|
18
|
+
className = _ref[__className],
|
|
18
19
|
activeClassName = _ref.activeClassName;
|
|
19
20
|
return ReactCreateElement(Route, {
|
|
20
21
|
path: highlightPath || href,
|
package/router/Route.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
|
|
2
3
|
import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
3
4
|
import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
@@ -11,14 +12,14 @@ import { stateGSs, componentDidUpdate, render, componentDidMount, componentWillU
|
|
|
11
12
|
|
|
12
13
|
var historyEvents = ['popstate', 'pushState', 'replaceState'];
|
|
13
14
|
var cleanPath = function cleanPath(path) {
|
|
14
|
-
if (path
|
|
15
|
+
if (path[__length] > 1 && path.lastIndexOf('/') === path[__length] - 1) return path.substring(0, path[__length] - 1);
|
|
15
16
|
return path;
|
|
16
17
|
};
|
|
17
18
|
var createUrlMatcher = function createUrlMatcher(path) {
|
|
18
19
|
var matcher;
|
|
19
20
|
var segments = path.split('/');
|
|
20
21
|
var optionals = segments.map(function (it) {
|
|
21
|
-
return it === '*' || it.indexOf('?') === it
|
|
22
|
+
return it === '*' || it.indexOf('?') === it[__length] - 1;
|
|
22
23
|
});
|
|
23
24
|
var containsVariables = path.indexOf(':') !== -1;
|
|
24
25
|
var containsAnySegment = path.indexOf('*') !== -1;
|
|
@@ -28,7 +29,7 @@ var createUrlMatcher = function createUrlMatcher(path) {
|
|
|
28
29
|
return p === path;
|
|
29
30
|
};
|
|
30
31
|
} else {
|
|
31
|
-
var endsWithAny = path.lastIndexOf('*') === path
|
|
32
|
+
var endsWithAny = path.lastIndexOf('*') === path[__length] - 1;
|
|
32
33
|
var matchers = segments.map(function (segment, i) {
|
|
33
34
|
var matcher;
|
|
34
35
|
var variableNameIndex = segment.indexOf(':');
|
|
@@ -58,12 +59,12 @@ var createUrlMatcher = function createUrlMatcher(path) {
|
|
|
58
59
|
});
|
|
59
60
|
matcher = function matcher(path, params) {
|
|
60
61
|
var segments = path.split('/');
|
|
61
|
-
var length = Math.min(matchers
|
|
62
|
-
if (!endsWithAny && matchers
|
|
62
|
+
var length = Math.min(matchers[__length], segments[__length]);
|
|
63
|
+
if (!endsWithAny && matchers[__length] < segments[__length]) return false;
|
|
63
64
|
for (var i = 0; i < length; i++) {
|
|
64
65
|
if (!matchers[i](segments[i], params)) return false;
|
|
65
66
|
}
|
|
66
|
-
for (var _i = length; _i < optionals
|
|
67
|
+
for (var _i = length; _i < optionals[__length]; _i++) {
|
|
67
68
|
if (!optionals[_i]) return false;
|
|
68
69
|
}
|
|
69
70
|
return true;
|
|
@@ -77,7 +78,7 @@ var createUrlMatchers = function createUrlMatchers(path) {
|
|
|
77
78
|
return createUrlMatcher(it);
|
|
78
79
|
});
|
|
79
80
|
return function (path, params) {
|
|
80
|
-
for (var i = 0; i < matchers
|
|
81
|
+
for (var i = 0; i < matchers[__length]; i++) {
|
|
81
82
|
var props = {};
|
|
82
83
|
if (matchers[i](path, props)) {
|
|
83
84
|
__extends(params, props);
|
|
@@ -129,7 +130,7 @@ var Route = function (_PureComponent) {
|
|
|
129
130
|
};
|
|
130
131
|
that[render] = function () {
|
|
131
132
|
var _props = props(),
|
|
132
|
-
children = _props
|
|
133
|
+
children = _props[__children],
|
|
133
134
|
controller = _props.controller;
|
|
134
135
|
return (controller || DefaultController)(isRendering(), children, mergedPropsState());
|
|
135
136
|
};
|
|
@@ -158,7 +159,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
158
159
|
}
|
|
159
160
|
var DefaultController = function DefaultController(matches, children, props) {
|
|
160
161
|
if (!matches || !children) return null;
|
|
161
|
-
if (Object.keys(props)
|
|
162
|
+
if (Object.keys(props)[__length] > 0) {
|
|
162
163
|
return React.Children.map(children, function (child) {
|
|
163
164
|
return React.cloneElement(child, props);
|
|
164
165
|
});
|
package/router/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Link from './Link.js';
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
|
|
2
3
|
import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
3
4
|
import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
|
package/store/ProxyTools.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { typeof as _typeof, toConsumableArray as _toConsumableArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
|
|
2
3
|
import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
3
4
|
import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
|
package/store/Store.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
+
import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
|
|
2
3
|
import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
3
4
|
import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
|
|
4
5
|
import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
|