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/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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
|
export { default as Animated } from './Animated.js';
|
|
3
4
|
export { default as AutocompleteSelect } from './AutocompleteSelect.js';
|
|
4
5
|
export { default as Button } from './Button.js';
|
|
@@ -7,8 +8,6 @@ export { default as CircleProgress } from './CircleProgress.js';
|
|
|
7
8
|
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
8
9
|
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
9
10
|
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
10
|
-
import {className as __className} from "./ReactConstants";
|
|
11
|
-
import {children as __children} from "./ReactConstants";
|
|
12
11
|
import * as CommonFields from './CommonFields.js';
|
|
13
12
|
export { CommonFields };
|
|
14
13
|
export { default as Dialog } from './Dialog.js';
|
|
@@ -30,6 +29,7 @@ export { default as Size } from './Size.js';
|
|
|
30
29
|
export { default as Snackbar } from './Snackbar.js';
|
|
31
30
|
export { default as SpinningProgress } from './SpinningProgress.js';
|
|
32
31
|
export { default as Switch } from './Switch.js';
|
|
32
|
+
export { default as ReactConstants } from './ReactConstants.js';
|
|
33
33
|
export { default as ReactCreateElement } from './ReactCreateElement.js';
|
|
34
34
|
import * as ReadyListener from './ReadyListener.js';
|
|
35
35
|
export { ReadyListener };
|
package/package.json
CHANGED
package/router/HistoryTools.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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 { WINDOW, DOCUMENT } from '../Tools.js';
|
|
3
4
|
|
|
4
5
|
var history = WINDOW.history;
|
package/router/Link.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
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 { pushLocation } from './HistoryTools.js';
|
|
11
10
|
import { preventDefault } from '../Tools.js';
|
|
12
11
|
|
|
13
12
|
var Link = function Link(_ref) {
|
|
14
|
-
var children = _ref[
|
|
13
|
+
var children = _ref[ReactConstants[4]],
|
|
15
14
|
href = _ref.href,
|
|
16
|
-
className = _ref[
|
|
15
|
+
className = _ref[ReactConstants[5]];
|
|
17
16
|
return ReactCreateElement("a", {
|
|
18
17
|
href: href,
|
|
19
|
-
[
|
|
18
|
+
[ReactConstants[5]]: className,
|
|
20
19
|
onClick: function onClick(e) {
|
|
21
20
|
if (!e.ctrlKey) {
|
|
22
21
|
preventDefault(e);
|
package/router/NavLink.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 'prop-types';
|
|
10
9
|
import Route from './Route.js';
|
|
@@ -12,17 +11,17 @@ import Link from './Link.js';
|
|
|
12
11
|
import { classNames } from '../Tools.js';
|
|
13
12
|
|
|
14
13
|
var NavLink = function NavLink(_ref) {
|
|
15
|
-
var children = _ref[
|
|
14
|
+
var children = _ref[ReactConstants[4]],
|
|
16
15
|
href = _ref.href,
|
|
17
16
|
highlightPath = _ref.highlightPath,
|
|
18
|
-
className = _ref[
|
|
17
|
+
className = _ref[ReactConstants[5]],
|
|
19
18
|
activeClassName = _ref.activeClassName;
|
|
20
19
|
return ReactCreateElement(Route, {
|
|
21
20
|
path: highlightPath || href,
|
|
22
21
|
controller: function controller(matches) {
|
|
23
22
|
return ReactCreateElement(Link, {
|
|
24
23
|
href: href,
|
|
25
|
-
[
|
|
24
|
+
[ReactConstants[5]]: classNames(className, matches && activeClassName)
|
|
26
25
|
}, children);
|
|
27
26
|
}
|
|
28
27
|
});
|
package/router/Route.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, slicedToArray as _slicedToArray, 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 from 'react';
|
|
9
8
|
import PropTypes from 'prop-types';
|
|
10
9
|
import { setOf, allPropsExcept, isDifferent, addEventListener, removeEventListener, WINDOW, orNoop } from '../Tools.js';
|
|
@@ -122,26 +121,26 @@ var Route = function (_PureComponent) {
|
|
|
122
121
|
toggle && orNoop(props().onToggle)(isMatching);
|
|
123
122
|
});
|
|
124
123
|
};
|
|
125
|
-
that[
|
|
124
|
+
that[ReactConstants[2]] = function (prevProps, prevState) {
|
|
126
125
|
if (props() !== prevProps) {
|
|
127
126
|
var mergedProps = __extends(allPropsExcept(props(), selfProps), paramsState());
|
|
128
127
|
if (isDifferent(mergedProps, mergedPropsState())) mergedPropsState(mergedProps);
|
|
129
128
|
}
|
|
130
129
|
};
|
|
131
|
-
that[
|
|
130
|
+
that[ReactConstants[3]] = function () {
|
|
132
131
|
var _props = props(),
|
|
133
|
-
children = _props[
|
|
132
|
+
children = _props[ReactConstants[4]],
|
|
134
133
|
controller = _props.controller;
|
|
135
134
|
return (controller || DefaultController)(isRendering(), children, mergedPropsState());
|
|
136
135
|
};
|
|
137
|
-
that[
|
|
136
|
+
that[ReactConstants[0]] = function () {
|
|
138
137
|
matcher = createUrlMatchers(props().path);
|
|
139
138
|
historyEvents.forEach(function (it) {
|
|
140
139
|
addEventListener(WINDOW, it, process);
|
|
141
140
|
});
|
|
142
141
|
process();
|
|
143
142
|
};
|
|
144
|
-
that[
|
|
143
|
+
that[ReactConstants[1]] = function () {
|
|
145
144
|
historyEvents.forEach(function (it) {
|
|
146
145
|
removeEventListener(WINDOW, it, process);
|
|
147
146
|
});
|
package/router/index.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 Link from './Link.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 NavLink from './NavLink.js';
|
|
9
8
|
import Route from './Route.js';
|
|
10
9
|
|
package/store/ProxyTools.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 { typeof as _typeof, toConsumableArray as _toConsumableArray, 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 { UNDEFINED } from '../Tools.js';
|
|
9
8
|
|
|
10
9
|
var createProxy = function createProxy(target) {
|
package/store/Store.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 { useState, useEffect } 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 { createProxy } from './ProxyTools.js';
|
|
9
8
|
|
|
10
9
|
var STORES = {};
|