react-ui-basics 0.0.156 → 0.0.159

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.
Files changed (58) hide show
  1. package/Animated.js +2 -1
  2. package/AutocompleteSelect.js +15 -14
  3. package/Button.js +15 -15
  4. package/Button.js.map +1 -1
  5. package/Checkbox.js +3 -2
  6. package/CircleProgress.js +2 -1
  7. package/CommonFields.js +18 -0
  8. package/CommonFields.js.map +1 -0
  9. package/DNDContainer.js +29 -28
  10. package/DNDDraggable.js +1 -0
  11. package/DNDDroppable.js +1 -0
  12. package/Dialog.js +4 -3
  13. package/DropFileInput.js +1 -0
  14. package/DroppableHorizontalList.js +18 -17
  15. package/DroppableList.js +18 -17
  16. package/Dropzone.js +6 -5
  17. package/FilteredList.js +11 -10
  18. package/FloatingActionButton.js +2 -1
  19. package/FormUploadProgress.js +2 -1
  20. package/ImageGallery.js +93 -92
  21. package/MaterialIcon.js +2 -1
  22. package/Modal.js +7 -6
  23. package/ModalMenu.js +4 -3
  24. package/ReactConstants.d.ts +18 -0
  25. package/ReactConstants.js +25 -36
  26. package/ReactConstants.js.map +1 -1
  27. package/ReactCreateElement.js +1 -0
  28. package/ReadyListener.js +1 -0
  29. package/ResizeObserver.d.ts +1 -0
  30. package/Scrollable.js +38 -37
  31. package/ScrollableTable.d.ts +15 -0
  32. package/ScrollableTable.js +19 -32
  33. package/ScrollableTable.js.map +1 -1
  34. package/Size.js +3 -2
  35. package/Snackbar.js +1 -0
  36. package/SpinningProgress.js +1 -0
  37. package/Switch.js +3 -2
  38. package/Table.d.ts +1 -1
  39. package/Table.js +30 -30
  40. package/Table.js.map +1 -1
  41. package/TextField.js +7 -6
  42. package/Tools.d.ts +1 -1
  43. package/Tools.js +19 -17
  44. package/Tools.js.map +1 -1
  45. package/_virtual/_commonjsHelpers.js +1 -0
  46. package/_virtual/_react.js +1 -0
  47. package/_virtual/react-jsx-runtime.development.js +1 -0
  48. package/bundle.css +651 -651
  49. package/index.js +2 -0
  50. package/index.js.map +1 -1
  51. package/package.json +1 -1
  52. package/router/HistoryTools.js +1 -0
  53. package/router/Link.js +3 -2
  54. package/router/NavLink.js +3 -2
  55. package/router/Route.js +10 -9
  56. package/router/index.js +1 -0
  57. package/store/ProxyTools.js +1 -0
  58. package/store/Store.js +1 -0
package/index.js CHANGED
@@ -1,8 +1,10 @@
1
+ import CommonFields from "./CommonFields";
1
2
  export { default as Animated } from './Animated.js';
2
3
  export { default as AutocompleteSelect } from './AutocompleteSelect.js';
3
4
  export { default as Button } from './Button.js';
4
5
  export { default as Checkbox } from './Checkbox.js';
5
6
  export { default as CircleProgress } from './CircleProgress.js';
7
+ export { default as CommonFields } from './CommonFields.js';
6
8
  export { default as Dialog } from './Dialog.js';
7
9
  export { default as DNDContainer } from './DNDContainer.js';
8
10
  export { default as DNDDraggable } from './DNDDraggable.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.156",
3
+ "version": "0.0.159",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
@@ -1,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { WINDOW, DOCUMENT } from '../Tools.js';
2
3
 
3
4
  var history = WINDOW.history;
package/router/Link.js CHANGED
@@ -1,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import 'react';
2
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
3
4
  import {extends as __extends} 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.children,
14
+ var children = _ref[__children],
14
15
  href = _ref.href,
15
- className = _ref.className;
16
+ className = _ref[__className];
16
17
  return ReactCreateElement("a", {
17
18
  href: href,
18
19
  [__className]: className,
package/router/NavLink.js CHANGED
@@ -1,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import 'react';
2
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
3
4
  import {extends as __extends} 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.children,
15
+ var children = _ref[__children],
15
16
  href = _ref.href,
16
17
  highlightPath = _ref.highlightPath,
17
- className = _ref.className,
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,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from '../_virtual/_rollupPluginBabelHelpers.js';
2
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
3
4
  import {extends as __extends} 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.length > 1 && path.lastIndexOf('/') === path.length - 1) return path.substring(0, path.length - 1);
15
+ if (path[CommonFields[5]] > 1 && path.lastIndexOf('/') === path[CommonFields[5]] - 1) return path.substring(0, path[CommonFields[5]] - 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.length - 1;
22
+ return it === '*' || it.indexOf('?') === it[CommonFields[5]] - 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.length - 1;
32
+ var endsWithAny = path.lastIndexOf('*') === path[CommonFields[5]] - 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.length, segments.length);
62
- if (!endsWithAny && matchers.length < segments.length) return false;
62
+ var length = Math.min(matchers[CommonFields[5]], segments[CommonFields[5]]);
63
+ if (!endsWithAny && matchers[CommonFields[5]] < segments[CommonFields[5]]) 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.length; _i++) {
67
+ for (var _i = length; _i < optionals[CommonFields[5]]; _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.length; i++) {
81
+ for (var i = 0; i < matchers[CommonFields[5]]; 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.children,
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).length > 0) {
162
+ if (Object.keys(props)[CommonFields[5]] > 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,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import Link from './Link.js';
2
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
3
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
@@ -1,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { typeof as _typeof, toConsumableArray as _toConsumableArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
3
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
package/store/Store.js CHANGED
@@ -1,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { useState, useEffect } from 'react';
2
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
3
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";