react-ui-basics 0.0.157 → 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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.157",
3
+ "version": "0.0.158",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
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.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,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.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,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.length > 1 && path.lastIndexOf('/') === path.length - 1) return path.substring(0, path.length - 1);
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.length - 1;
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.length - 1;
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.length, segments.length);
62
- if (!endsWithAny && matchers.length < segments.length) return false;
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.length; _i++) {
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.length; i++) {
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.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)[__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";
@@ -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";