@blateral/b.kit 2.0.0-beta.13.5 → 2.0.0-beta.13.6
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/lib/components/examples/hooks/ArrayHookExample.d.ts +4 -0
- package/lib/components/examples/hooks/ArrayHookExample.d.ts.map +1 -0
- package/lib/components/examples/hooks/IntervalHookExample.d.ts +4 -0
- package/lib/components/examples/hooks/IntervalHookExample.d.ts.map +1 -0
- package/lib/components/fields/LocationField.d.ts.map +1 -1
- package/lib/components/sections/Accordion.d.ts +2 -2
- package/lib/components/sections/Accordion.d.ts.map +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/useArray.d.ts +13 -0
- package/lib/utils/useArray.d.ts.map +1 -0
- package/lib/utils/useDebounce.d.ts +6 -0
- package/lib/utils/useDebounce.d.ts.map +1 -0
- package/lib/utils/useInterval.d.ts +4 -1
- package/lib/utils/useInterval.d.ts.map +1 -1
- package/lib/utils/useLazyInput.d.ts +2 -5
- package/lib/utils/useLazyInput.d.ts.map +1 -1
- package/lib/utils/useTimeout.d.ts +6 -0
- package/lib/utils/useTimeout.d.ts.map +1 -0
- package/lib/utils/useUpdateEffect.d.ts +5 -0
- package/lib/utils/useUpdateEffect.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useArray: <T>(defaultValue?: T[] | undefined) => {
|
|
3
|
+
array: T[];
|
|
4
|
+
set: import("react").Dispatch<import("react").SetStateAction<T[]>>;
|
|
5
|
+
push: (element: T | T[]) => void;
|
|
6
|
+
filter: (callback: (value: T, index: number, array: T[]) => void) => void;
|
|
7
|
+
update: (index: number, newEl: T) => void;
|
|
8
|
+
remove: (index: number) => void;
|
|
9
|
+
clear: () => void;
|
|
10
|
+
pop: () => T | undefined;
|
|
11
|
+
};
|
|
12
|
+
export default useArray;
|
|
13
|
+
//# sourceMappingURL=useArray.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useArray.d.ts","sourceRoot":"","sources":["../../src/utils/useArray.ts"],"names":[],"mappings":";AAEA,QAAA,MAAM,QAAQ;;;;yCAuBsB,MAAM,iBAAiB,IAAI;oBAKpC,MAAM;oBAQN,MAAM;;;CAqBhC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/utils/useDebounce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA0B,MAAM,OAAO,CAAC;AAG/D,QAAA,MAAM,WAAW,aACH,MAAM,IAAI,SACb,MAAM;;CAkBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInterval.d.ts","sourceRoot":"","sources":["../../src/utils/useInterval.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"useInterval.d.ts","sourceRoot":"","sources":["../../src/utils/useInterval.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM;;;EA+BtE"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const useLazyInput: (
|
|
3
|
-
initialValue: string;
|
|
4
|
-
onLazyChange?: ((value: string) => void) | undefined;
|
|
5
|
-
}) => {
|
|
2
|
+
declare const useLazyInput: (callback: (value: string) => void, initial: string, delay?: number) => {
|
|
6
3
|
setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
7
4
|
value: string;
|
|
8
|
-
|
|
5
|
+
forceUpdate: () => void;
|
|
9
6
|
};
|
|
10
7
|
export default useLazyInput;
|
|
11
8
|
//# sourceMappingURL=useLazyInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLazyInput.d.ts","sourceRoot":"","sources":["../../src/utils/useLazyInput.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useLazyInput.d.ts","sourceRoot":"","sources":["../../src/utils/useLazyInput.ts"],"names":[],"mappings":";AAGA,QAAA,MAAM,YAAY,qBACI,MAAM,KAAK,IAAI,WACxB,MAAM;;;;CAalB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeout.d.ts","sourceRoot":"","sources":["../../src/utils/useTimeout.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,aAAc,MAAM,IAAI,SAAS,MAAM;;;CA8BtD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DependencyList, EffectCallback } from 'react';
|
|
2
|
+
/** useEffect function that runs only on update (not on first render) */
|
|
3
|
+
declare const useUpdateEffect: (effect: EffectCallback, deps?: DependencyList | undefined) => void;
|
|
4
|
+
export default useUpdateEffect;
|
|
5
|
+
//# sourceMappingURL=useUpdateEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateEffect.d.ts","sourceRoot":"","sources":["../../src/utils/useUpdateEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAE1E,wEAAwE;AACxE,QAAA,MAAM,eAAe,WAAY,cAAc,4CAW9C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|