@onesy/ui-react 1.0.73 → 1.0.74

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/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.73
1
+ /** @license UiReact v1.0.74
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -3,8 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React from 'react';
5
5
  import { capitalize, copy, is, setObjectValue } from '@onesy/utils';
6
+ import { useOnesyTheme } from '@onesy/style-react';
6
7
  import validateModel from './validate';
7
- import { useOnesyTheme } from 'packages/style-react/build';
8
8
  const useForm = props => {
9
9
  const {
10
10
  values: values_ = {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
7
  const utils_1 = require("@onesy/utils");
8
+ const style_react_1 = require("@onesy/style-react");
8
9
  const validate_1 = __importDefault(require("./validate"));
9
- const build_1 = require("packages/style-react/build");
10
10
  const useForm = (props) => {
11
11
  const { values: values_ = {}, validate: validate_, rerenderOnUpdate = true, autoValidate, valueDefault, validDefault } = props;
12
- const theme = (0, build_1.useOnesyTheme)();
12
+ const theme = (0, style_react_1.useOnesyTheme)();
13
13
  const l = theme.l;
14
14
  const [form, setForm] = react_1.default.useState({
15
15
  value: valueDefault !== undefined ? valueDefault : {},