@onesy/ui-react 1.0.170 → 1.0.171

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.169
1
+ /** @license UiReact v1.0.170
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.
@@ -1,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import React from 'react';
3
3
  import { isEnvironment } from '@onesy/utils';
4
- const useWindowWidth = () => {
4
+ const useResize = () => {
5
5
  const $ = _c(2);
6
6
  const [windowWidth, setWindowWidth] = React.useState(_temp);
7
7
  let t0;
@@ -27,7 +27,7 @@ const useWindowWidth = () => {
27
27
  React.useEffect(t0, t1);
28
28
  return windowWidth;
29
29
  };
30
- export default useWindowWidth;
30
+ export default useResize;
31
31
  function _temp() {
32
32
  if (isEnvironment("browser")) {
33
33
  return window.innerWidth;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.169
1
+ /** @license UiReact v1.0.170
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.170",
3
+ "version": "1.0.171",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",
@@ -1,2 +1,2 @@
1
- declare const useWindowWidth: () => number;
2
- export default useWindowWidth;
1
+ declare const useResize: () => number;
2
+ export default useResize;
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _compilerRuntime = require("react/compiler-runtime");
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _utils = require("@onesy/utils");
11
- const useWindowWidth = () => {
11
+ const useResize = () => {
12
12
  const $ = (0, _compilerRuntime.c)(2);
13
13
  const [windowWidth, setWindowWidth] = _react.default.useState(_temp);
14
14
  let t0;
@@ -34,7 +34,7 @@ const useWindowWidth = () => {
34
34
  _react.default.useEffect(t0, t1);
35
35
  return windowWidth;
36
36
  };
37
- var _default = exports.default = useWindowWidth;
37
+ var _default = exports.default = useResize;
38
38
  function _temp() {
39
39
  if ((0, _utils.isEnvironment)("browser")) {
40
40
  return window.innerWidth;