@aiszlab/relax 1.0.30 → 1.1.0
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/dist/hooks/use-controlled-state.d.ts +1 -1
- package/dist/hooks/use-controlled-state.js +2 -2
- package/dist/hooks/use-once-state.d.ts +1 -1
- package/dist/hooks/use-scroll-locker.js +2 -2
- package/dist/hooks/use-scrollable.d.ts +10 -0
- package/dist/index.d.ts +14 -13
- package/dist/index.js +13 -12
- package/dist/is/is-function.d.ts +5 -0
- package/dist/is/is-function.js +9 -0
- package/package.json +1 -1
- /package/dist/{utils → is}/is-array.d.ts +0 -0
- /package/dist/{utils → is}/is-array.js +0 -0
- /package/dist/{utils → is}/is-complex.d.ts +0 -0
- /package/dist/{utils → is}/is-complex.js +0 -0
- /package/dist/{utils → is}/is-dom-usable.d.ts +0 -0
- /package/dist/{utils → is}/is-dom-usable.js +0 -0
- /package/dist/{utils → is}/is-empty.d.ts +0 -0
- /package/dist/{utils → is}/is-empty.js +0 -0
- /package/dist/{utils → is}/is-mobile.d.ts +0 -0
- /package/dist/{utils → is}/is-mobile.js +0 -0
- /package/dist/{utils → is}/is-null.d.ts +0 -0
- /package/dist/{utils → is}/is-null.js +0 -0
- /package/dist/{utils → is}/is-overflow.d.ts +0 -0
- /package/dist/{utils → is}/is-overflow.js +0 -0
- /package/dist/{utils → is}/is-refable.d.ts +0 -0
- /package/dist/{utils → is}/is-refable.js +0 -0
- /package/dist/{utils → is}/is-state-getter.d.ts +0 -0
- /package/dist/{utils → is}/is-state-getter.js +0 -0
- /package/dist/{utils → is}/is-style-element.d.ts +0 -0
- /package/dist/{utils → is}/is-style-element.js +0 -0
- /package/dist/{utils → is}/is-undefined.d.ts +0 -0
- /package/dist/{utils → is}/is-undefined.js +0 -0
- /package/dist/{utils → is}/is-void.d.ts +0 -0
- /package/dist/{utils → is}/is-void.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import { isStateGetter } from '../
|
|
3
|
-
import { isUndefined } from '../
|
|
2
|
+
import { isStateGetter } from '../is/is-state-getter.js';
|
|
3
|
+
import { isUndefined } from '../is/is-undefined.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @author murukal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { useId, useLayoutEffect } from 'react';
|
|
3
|
-
import { isOverflow } from '../
|
|
4
|
-
import { isStyleElement } from '../
|
|
3
|
+
import { isOverflow } from '../is/is-overflow.js';
|
|
4
|
+
import { isStyleElement } from '../is/is-style-element.js';
|
|
5
5
|
|
|
6
6
|
var _ScrollLocker_scrollLocker, _ScrollLocker_barSize;
|
|
7
7
|
const isComputable = (value) => /^(.*)px$/.test(value);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Key } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* scrollable hook
|
|
5
|
+
*/
|
|
6
|
+
export declare const useScrollable: <P extends HTMLElement, C extends HTMLElement>() => {
|
|
7
|
+
groupRef: import("react").RefObject<P>;
|
|
8
|
+
itemRefs: import("react").MutableRefObject<Map<Key, C | null>>;
|
|
9
|
+
scrollTo: (key: Key, duration?: number) => void;
|
|
10
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -14,17 +14,18 @@ export { useScrollLocker } from './hooks/use-scroll-locker';
|
|
|
14
14
|
export { useForceUpdate } from './hooks/use-force-update';
|
|
15
15
|
/**
|
|
16
16
|
* @description
|
|
17
|
-
*
|
|
17
|
+
* is
|
|
18
18
|
*/
|
|
19
|
-
export { isRefable } from './
|
|
20
|
-
export { isUndefined } from './
|
|
21
|
-
export { isStateGetter } from './
|
|
22
|
-
export { isNull } from './
|
|
23
|
-
export { isVoid } from './
|
|
24
|
-
export { isArray } from './
|
|
25
|
-
export { isComplex } from './
|
|
26
|
-
export { isEmpty } from './
|
|
27
|
-
export { isDomUsable } from './
|
|
28
|
-
export { isMobile } from './
|
|
29
|
-
export { isOverflow } from './
|
|
30
|
-
export { isStyleElement } from './
|
|
19
|
+
export { isRefable } from './is/is-refable';
|
|
20
|
+
export { isUndefined } from './is/is-undefined';
|
|
21
|
+
export { isStateGetter } from './is/is-state-getter';
|
|
22
|
+
export { isNull } from './is/is-null';
|
|
23
|
+
export { isVoid } from './is/is-void';
|
|
24
|
+
export { isArray } from './is/is-array';
|
|
25
|
+
export { isComplex } from './is/is-complex';
|
|
26
|
+
export { isEmpty } from './is/is-empty';
|
|
27
|
+
export { isDomUsable } from './is/is-dom-usable';
|
|
28
|
+
export { isMobile } from './is/is-mobile';
|
|
29
|
+
export { isOverflow } from './is/is-overflow';
|
|
30
|
+
export { isStyleElement } from './is/is-style-element';
|
|
31
|
+
export { isFunction } from './is/is-function';
|
package/dist/index.js
CHANGED
|
@@ -8,15 +8,16 @@ export { useControlledState } from './hooks/use-controlled-state.js';
|
|
|
8
8
|
export { useOnceState } from './hooks/use-once-state.js';
|
|
9
9
|
export { useScrollLocker } from './hooks/use-scroll-locker.js';
|
|
10
10
|
export { useForceUpdate } from './hooks/use-force-update.js';
|
|
11
|
-
export { isRefable } from './
|
|
12
|
-
export { isUndefined } from './
|
|
13
|
-
export { isStateGetter } from './
|
|
14
|
-
export { isNull } from './
|
|
15
|
-
export { isVoid } from './
|
|
16
|
-
export { isArray } from './
|
|
17
|
-
export { isComplex } from './
|
|
18
|
-
export { isEmpty } from './
|
|
19
|
-
export { isDomUsable } from './
|
|
20
|
-
export { isMobile } from './
|
|
21
|
-
export { isOverflow } from './
|
|
22
|
-
export { isStyleElement } from './
|
|
11
|
+
export { isRefable } from './is/is-refable.js';
|
|
12
|
+
export { isUndefined } from './is/is-undefined.js';
|
|
13
|
+
export { isStateGetter } from './is/is-state-getter.js';
|
|
14
|
+
export { isNull } from './is/is-null.js';
|
|
15
|
+
export { isVoid } from './is/is-void.js';
|
|
16
|
+
export { isArray } from './is/is-array.js';
|
|
17
|
+
export { isComplex } from './is/is-complex.js';
|
|
18
|
+
export { isEmpty } from './is/is-empty.js';
|
|
19
|
+
export { isDomUsable } from './is/is-dom-usable.js';
|
|
20
|
+
export { isMobile } from './is/is-mobile.js';
|
|
21
|
+
export { isOverflow } from './is/is-overflow.js';
|
|
22
|
+
export { isStyleElement } from './is/is-style-element.js';
|
|
23
|
+
export { isFunction } from './is/is-function.js';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|