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/index.js CHANGED
@@ -1,4 +1,5 @@
1
- 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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.160",
3
+ "version": "0.0.161",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
@@ -1,4 +1,5 @@
1
- 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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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 {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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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[__children],
13
+ var children = _ref[ReactConstants[4]],
15
14
  href = _ref.href,
16
- className = _ref[__className];
15
+ className = _ref[ReactConstants[5]];
17
16
  return ReactCreateElement("a", {
18
17
  href: href,
19
- [__className]: className,
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 {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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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[__children],
14
+ var children = _ref[ReactConstants[4]],
16
15
  href = _ref.href,
17
16
  highlightPath = _ref.highlightPath,
18
- className = _ref[__className],
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
- [__className]: classNames(className, matches && activeClassName)
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 {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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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[componentDidUpdate] = function (prevProps, prevState) {
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[render] = function () {
130
+ that[ReactConstants[3]] = function () {
132
131
  var _props = props(),
133
- children = _props[__children],
132
+ children = _props[ReactConstants[4]],
134
133
  controller = _props.controller;
135
134
  return (controller || DefaultController)(isRendering(), children, mergedPropsState());
136
135
  };
137
- that[componentDidMount] = function () {
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[componentWillUnmount] = function () {
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 {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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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
 
@@ -1,10 +1,9 @@
1
- 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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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 {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, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
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 = {};