react-simplikit 0.1.0 → 0.3.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +6 -73
  3. package/dist/hooks/useAsyncEffect/useAsyncEffect.cjs +2 -2
  4. package/dist/hooks/useAsyncEffect/useAsyncEffect.d.cts +2 -2
  5. package/dist/hooks/useAsyncEffect/useAsyncEffect.d.mts +2 -2
  6. package/dist/hooks/useAsyncEffect/useAsyncEffect.mjs +2 -2
  7. package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.cjs +1 -1
  8. package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.d.cts +1 -1
  9. package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.d.mts +1 -1
  10. package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.mjs +1 -1
  11. package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.cjs +1 -1
  12. package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.d.cts +1 -1
  13. package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.d.mts +1 -1
  14. package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.mjs +1 -1
  15. package/dist/hooks/useBooleanState/useBooleanState.cjs +3 -3
  16. package/dist/hooks/useBooleanState/useBooleanState.d.cts +3 -2
  17. package/dist/hooks/useBooleanState/useBooleanState.d.mts +3 -2
  18. package/dist/hooks/useBooleanState/useBooleanState.mjs +3 -3
  19. package/dist/hooks/useDebounce/debounce.cjs +1 -0
  20. package/dist/hooks/useDebounce/debounce.mjs +1 -0
  21. package/dist/hooks/useDebounce/useDebounce.cjs +1 -1
  22. package/dist/hooks/useDebounce/useDebounce.mjs +1 -1
  23. package/dist/hooks/useDebouncedCallback/useDebouncedCallback.cjs +31 -36
  24. package/dist/hooks/useDebouncedCallback/useDebouncedCallback.d.cts +17 -7
  25. package/dist/hooks/useDebouncedCallback/useDebouncedCallback.d.mts +17 -7
  26. package/dist/hooks/useDebouncedCallback/useDebouncedCallback.mjs +32 -37
  27. package/dist/hooks/useDebouncedValue/useDebouncedValue.cjs +64 -0
  28. package/dist/hooks/useDebouncedValue/useDebouncedValue.d.cts +49 -0
  29. package/dist/hooks/useDebouncedValue/useDebouncedValue.d.mts +49 -0
  30. package/dist/hooks/useDebouncedValue/useDebouncedValue.mjs +64 -0
  31. package/dist/hooks/useDoubleClick/useDoubleClick.cjs +0 -4
  32. package/dist/hooks/useDoubleClick/useDoubleClick.d.cts +0 -4
  33. package/dist/hooks/useDoubleClick/useDoubleClick.d.mts +0 -4
  34. package/dist/hooks/useDoubleClick/useDoubleClick.mjs +0 -4
  35. package/dist/hooks/useGeolocation/useGeolocation.cjs +0 -4
  36. package/dist/hooks/useGeolocation/useGeolocation.d.cts +0 -4
  37. package/dist/hooks/useGeolocation/useGeolocation.d.mts +0 -4
  38. package/dist/hooks/useGeolocation/useGeolocation.mjs +0 -4
  39. package/dist/hooks/useImpressionRef/useImpressionRef.cjs +25 -7
  40. package/dist/hooks/useImpressionRef/useImpressionRef.d.cts +0 -4
  41. package/dist/hooks/useImpressionRef/useImpressionRef.d.mts +0 -4
  42. package/dist/hooks/useImpressionRef/useImpressionRef.mjs +26 -8
  43. package/dist/hooks/useInputState/useInputState.cjs +1 -1
  44. package/dist/hooks/useInputState/useInputState.d.cts +3 -2
  45. package/dist/hooks/useInputState/useInputState.d.mts +3 -2
  46. package/dist/hooks/useInputState/useInputState.mjs +1 -1
  47. package/dist/hooks/useIntersectionObserver/useIntersectionObserver.cjs +9 -8
  48. package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.cts +1 -5
  49. package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.mts +1 -5
  50. package/dist/hooks/useIntersectionObserver/useIntersectionObserver.mjs +9 -8
  51. package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.cjs +1 -1
  52. package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.d.cts +1 -1
  53. package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.d.mts +1 -1
  54. package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.mjs +1 -1
  55. package/dist/hooks/useList/useList.cjs +11 -8
  56. package/dist/hooks/useList/useList.d.cts +12 -9
  57. package/dist/hooks/useList/useList.d.mts +12 -9
  58. package/dist/hooks/useList/useList.mjs +11 -8
  59. package/dist/hooks/useLongPress/useLongPress.cjs +3 -4
  60. package/dist/hooks/useLongPress/useLongPress.d.cts +0 -4
  61. package/dist/hooks/useLongPress/useLongPress.d.mts +0 -4
  62. package/dist/hooks/useLongPress/useLongPress.mjs +4 -5
  63. package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.cjs +1 -1
  64. package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.d.cts +1 -1
  65. package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.d.mts +1 -1
  66. package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.mjs +1 -1
  67. package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.cjs +0 -4
  68. package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.d.cts +0 -4
  69. package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.d.mts +0 -4
  70. package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.mjs +0 -4
  71. package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.cjs +3 -1
  72. package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.d.cts +3 -1
  73. package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.d.mts +3 -1
  74. package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.mjs +3 -1
  75. package/dist/hooks/useRefEffect/useRefEffect.cjs +6 -4
  76. package/dist/hooks/useRefEffect/useRefEffect.mjs +7 -5
  77. package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.cjs +1 -1
  78. package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.d.cts +1 -1
  79. package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.d.mts +1 -1
  80. package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.mjs +1 -1
  81. package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.cjs +1 -1
  82. package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.d.cts +1 -1
  83. package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.d.mts +1 -1
  84. package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.mjs +1 -1
  85. package/dist/hooks/useSet/useSet.cjs +11 -2
  86. package/dist/hooks/useSet/useSet.d.cts +11 -2
  87. package/dist/hooks/useSet/useSet.d.mts +11 -2
  88. package/dist/hooks/useSet/useSet.mjs +11 -2
  89. package/dist/hooks/useStorageState/useStorageState.cjs +1 -1
  90. package/dist/hooks/useStorageState/useStorageState.d.cts +0 -4
  91. package/dist/hooks/useStorageState/useStorageState.d.mts +0 -4
  92. package/dist/hooks/useStorageState/useStorageState.mjs +1 -1
  93. package/dist/hooks/useThrottle/throttle.cjs +22 -5
  94. package/dist/hooks/useThrottle/throttle.mjs +22 -5
  95. package/dist/hooks/useThrottledCallback/useThrottledCallback.cjs +22 -37
  96. package/dist/hooks/useThrottledCallback/useThrottledCallback.d.cts +18 -11
  97. package/dist/hooks/useThrottledCallback/useThrottledCallback.d.mts +18 -11
  98. package/dist/hooks/useThrottledCallback/useThrottledCallback.mjs +23 -38
  99. package/dist/hooks/useThrottledValue/useThrottledValue.cjs +66 -0
  100. package/dist/hooks/useThrottledValue/useThrottledValue.d.cts +48 -0
  101. package/dist/hooks/useThrottledValue/useThrottledValue.d.mts +48 -0
  102. package/dist/hooks/useThrottledValue/useThrottledValue.mjs +66 -0
  103. package/dist/hooks/useVisibilityEvent/useVisibilityEvent.cjs +2 -4
  104. package/dist/hooks/useVisibilityEvent/useVisibilityEvent.d.cts +2 -4
  105. package/dist/hooks/useVisibilityEvent/useVisibilityEvent.d.mts +2 -4
  106. package/dist/hooks/useVisibilityEvent/useVisibilityEvent.mjs +2 -4
  107. package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.cjs +1 -1
  108. package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.d.cts +1 -1
  109. package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.d.mts +1 -1
  110. package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.mjs +1 -1
  111. package/dist/index.cjs +23 -19
  112. package/dist/index.d.cts +21 -19
  113. package/dist/index.d.mts +21 -19
  114. package/dist/index.mjs +22 -20
  115. package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.cjs +1 -1
  116. package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.d.cts +1 -1
  117. package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.d.mts +1 -1
  118. package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.mjs +1 -1
  119. package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.cjs +1 -1
  120. package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.d.cts +1 -1
  121. package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.d.mts +1 -1
  122. package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.mjs +1 -1
  123. package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.cjs +1 -1
  124. package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.d.cts +1 -1
  125. package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.d.mts +1 -1
  126. package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.mjs +1 -1
  127. package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.cjs +1 -1
  128. package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.d.cts +1 -1
  129. package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.d.mts +1 -1
  130. package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.mjs +1 -1
  131. package/dist/{mobile/utils → utils}/isAndroid/isAndroid.cjs +1 -1
  132. package/dist/{mobile/utils → utils}/isAndroid/isAndroid.d.cts +1 -1
  133. package/dist/{mobile/utils → utils}/isAndroid/isAndroid.d.mts +1 -1
  134. package/dist/{mobile/utils → utils}/isAndroid/isAndroid.mjs +1 -1
  135. package/dist/{mobile/utils → utils}/isIOS/isIOS.cjs +1 -1
  136. package/dist/{mobile/utils → utils}/isIOS/isIOS.d.cts +1 -1
  137. package/dist/{mobile/utils → utils}/isIOS/isIOS.d.mts +1 -1
  138. package/dist/{mobile/utils → utils}/isIOS/isIOS.mjs +1 -1
  139. package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.cjs +1 -1
  140. package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.d.cts +1 -1
  141. package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.d.mts +1 -1
  142. package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.mjs +1 -1
  143. package/dist/{mobile/utils → utils}/isServer/isServer.cjs +1 -1
  144. package/dist/{mobile/utils → utils}/isServer/isServer.d.cts +1 -1
  145. package/dist/{mobile/utils → utils}/isServer/isServer.d.mts +1 -1
  146. package/dist/{mobile/utils → utils}/isServer/isServer.mjs +1 -1
  147. package/dist/utils/mergeProps/mergeProps.cjs +1 -1
  148. package/dist/utils/mergeProps/mergeProps.d.cts +1 -1
  149. package/dist/utils/mergeProps/mergeProps.d.mts +1 -1
  150. package/dist/utils/mergeProps/mergeProps.mjs +1 -1
  151. package/dist/utils/mergeRefs/mergeRefs.cjs +1 -1
  152. package/dist/utils/mergeRefs/mergeRefs.d.cts +1 -1
  153. package/dist/utils/mergeRefs/mergeRefs.d.mts +1 -1
  154. package/dist/utils/mergeRefs/mergeRefs.mjs +1 -1
  155. package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.cjs +1 -1
  156. package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.d.cts +1 -1
  157. package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.d.mts +1 -1
  158. package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.mjs +1 -1
  159. package/package.json +2 -4
  160. /package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/index.d.cts +0 -0
  161. /package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/index.d.mts +0 -0
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  const require_isServer = require("../isServer/isServer.cjs");
3
- //#region src/mobile/utils/enableBodyScrollLock/enableBodyScrollLock.ts
3
+ //#region src/utils/enableBodyScrollLock/enableBodyScrollLock.ts
4
4
  /**
5
5
  * Data attribute key for storing scroll position
6
6
  */
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/enableBodyScrollLock/enableBodyScrollLock.d.ts
2
+ //#region src/utils/enableBodyScrollLock/enableBodyScrollLock.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `enableBodyScrollLock` is a utility function that locks the body scroll.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/enableBodyScrollLock/enableBodyScrollLock.d.ts
2
+ //#region src/utils/enableBodyScrollLock/enableBodyScrollLock.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `enableBodyScrollLock` is a utility function that locks the body scroll.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { isServer } from "../isServer/isServer.mjs";
3
- //#region src/mobile/utils/enableBodyScrollLock/enableBodyScrollLock.ts
3
+ //#region src/utils/enableBodyScrollLock/enableBodyScrollLock.ts
4
4
  /**
5
5
  * Data attribute key for storing scroll position
6
6
  */
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  const require_isServer = require("../isServer/isServer.cjs");
3
- //#region src/mobile/utils/getKeyboardHeight/getKeyboardHeight.ts
3
+ //#region src/utils/getKeyboardHeight/getKeyboardHeight.ts
4
4
  /**
5
5
  * @description
6
6
  * `getKeyboardHeight` is a utility function that returns the current on-screen keyboard height in pixels.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/getKeyboardHeight/getKeyboardHeight.d.ts
2
+ //#region src/utils/getKeyboardHeight/getKeyboardHeight.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `getKeyboardHeight` is a utility function that returns the current on-screen keyboard height in pixels.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/getKeyboardHeight/getKeyboardHeight.d.ts
2
+ //#region src/utils/getKeyboardHeight/getKeyboardHeight.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `getKeyboardHeight` is a utility function that returns the current on-screen keyboard height in pixels.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { isServer } from "../isServer/isServer.mjs";
3
- //#region src/mobile/utils/getKeyboardHeight/getKeyboardHeight.ts
3
+ //#region src/utils/getKeyboardHeight/getKeyboardHeight.ts
4
4
  /**
5
5
  * @description
6
6
  * `getKeyboardHeight` is a utility function that returns the current on-screen keyboard height in pixels.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  const require_isServer = require("../isServer/isServer.cjs");
3
- //#region src/mobile/utils/getSafeAreaInset/getSafeAreaInset.ts
3
+ //#region src/utils/getSafeAreaInset/getSafeAreaInset.ts
4
4
  /**
5
5
  * @description
6
6
  * `getSafeAreaInset` is a utility function that returns all safe area insets in pixels as an object.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/getSafeAreaInset/getSafeAreaInset.d.ts
2
+ //#region src/utils/getSafeAreaInset/getSafeAreaInset.d.ts
3
3
  type SafeAreaInset = {
4
4
  /** Top safe area inset in pixels (notch, Dynamic Island, or status bar) */
5
5
  top: number;
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/getSafeAreaInset/getSafeAreaInset.d.ts
2
+ //#region src/utils/getSafeAreaInset/getSafeAreaInset.d.ts
3
3
  type SafeAreaInset = {
4
4
  /** Top safe area inset in pixels (notch, Dynamic Island, or status bar) */
5
5
  top: number;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { isServer } from "../isServer/isServer.mjs";
3
- //#region src/mobile/utils/getSafeAreaInset/getSafeAreaInset.ts
3
+ //#region src/utils/getSafeAreaInset/getSafeAreaInset.ts
4
4
  /**
5
5
  * @description
6
6
  * `getSafeAreaInset` is a utility function that returns all safe area insets in pixels as an object.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  const require_isServer = require("../isServer/isServer.cjs");
3
- //#region src/mobile/utils/isAndroid/isAndroid.ts
3
+ //#region src/utils/isAndroid/isAndroid.ts
4
4
  /**
5
5
  * @description
6
6
  * `isAndroid` is a utility function that detects whether the current device is running Android.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isAndroid/isAndroid.d.ts
2
+ //#region src/utils/isAndroid/isAndroid.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isAndroid` is a utility function that detects whether the current device is running Android.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isAndroid/isAndroid.d.ts
2
+ //#region src/utils/isAndroid/isAndroid.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isAndroid` is a utility function that detects whether the current device is running Android.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { isServer } from "../isServer/isServer.mjs";
3
- //#region src/mobile/utils/isAndroid/isAndroid.ts
3
+ //#region src/utils/isAndroid/isAndroid.ts
4
4
  /**
5
5
  * @description
6
6
  * `isAndroid` is a utility function that detects whether the current device is running Android.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  const require_isServer = require("../isServer/isServer.cjs");
3
- //#region src/mobile/utils/isIOS/isIOS.ts
3
+ //#region src/utils/isIOS/isIOS.ts
4
4
  /**
5
5
  * @description
6
6
  * `isIOS` is a utility function that detects whether the current device is running iOS or iPadOS.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isIOS/isIOS.d.ts
2
+ //#region src/utils/isIOS/isIOS.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isIOS` is a utility function that detects whether the current device is running iOS or iPadOS.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isIOS/isIOS.d.ts
2
+ //#region src/utils/isIOS/isIOS.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isIOS` is a utility function that detects whether the current device is running iOS or iPadOS.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { isServer } from "../isServer/isServer.mjs";
3
- //#region src/mobile/utils/isIOS/isIOS.ts
3
+ //#region src/utils/isIOS/isIOS.ts
4
4
  /**
5
5
  * @description
6
6
  * `isIOS` is a utility function that detects whether the current device is running iOS or iPadOS.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  const require_getKeyboardHeight = require("../getKeyboardHeight/getKeyboardHeight.cjs");
3
- //#region src/mobile/utils/isKeyboardVisible/isKeyboardVisible.ts
3
+ //#region src/utils/isKeyboardVisible/isKeyboardVisible.ts
4
4
  /**
5
5
  * @description
6
6
  * `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isKeyboardVisible/isKeyboardVisible.d.ts
2
+ //#region src/utils/isKeyboardVisible/isKeyboardVisible.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isKeyboardVisible/isKeyboardVisible.d.ts
2
+ //#region src/utils/isKeyboardVisible/isKeyboardVisible.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { getKeyboardHeight } from "../getKeyboardHeight/getKeyboardHeight.mjs";
3
- //#region src/mobile/utils/isKeyboardVisible/isKeyboardVisible.ts
3
+ //#region src/utils/isKeyboardVisible/isKeyboardVisible.ts
4
4
  /**
5
5
  * @description
6
6
  * `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- //#region src/mobile/utils/isServer/isServer.ts
2
+ //#region src/utils/isServer/isServer.ts
3
3
  /**
4
4
  * @description
5
5
  * `isServer` is a utility function that checks if the code is running on the server.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isServer/isServer.d.ts
2
+ //#region src/utils/isServer/isServer.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isServer` is a utility function that checks if the code is running on the server.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/isServer/isServer.d.ts
2
+ //#region src/utils/isServer/isServer.d.ts
3
3
  /**
4
4
  * @description
5
5
  * `isServer` is a utility function that checks if the code is running on the server.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- //#region src/mobile/utils/isServer/isServer.ts
2
+ //#region src/utils/isServer/isServer.ts
3
3
  /**
4
4
  * @description
5
5
  * `isServer` is a utility function that checks if the code is running on the server.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @template PropsList - The type of the props objects to merge.
9
9
  *
10
- * @param {PropsList} props - The props objects to merge.
10
+ * @param {...PropsList} props - The props objects to merge.
11
11
  * @returns {TupleToIntersection<PropsList>} The merged props object.
12
12
  *
13
13
  * @example
@@ -13,7 +13,7 @@ type TupleToIntersection<T extends Record<string, unknown>[]> = { [I in keyof T]
13
13
  *
14
14
  * @template PropsList - The type of the props objects to merge.
15
15
  *
16
- * @param {PropsList} props - The props objects to merge.
16
+ * @param {...PropsList} props - The props objects to merge.
17
17
  * @returns {TupleToIntersection<PropsList>} The merged props object.
18
18
  *
19
19
  * @example
@@ -13,7 +13,7 @@ type TupleToIntersection<T extends Record<string, unknown>[]> = { [I in keyof T]
13
13
  *
14
14
  * @template PropsList - The type of the props objects to merge.
15
15
  *
16
- * @param {PropsList} props - The props objects to merge.
16
+ * @param {...PropsList} props - The props objects to merge.
17
17
  * @returns {TupleToIntersection<PropsList>} The merged props object.
18
18
  *
19
19
  * @example
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @template PropsList - The type of the props objects to merge.
9
9
  *
10
- * @param {PropsList} props - The props objects to merge.
10
+ * @param {...PropsList} props - The props objects to merge.
11
11
  * @returns {TupleToIntersection<PropsList>} The merged props object.
12
12
  *
13
13
  * @example
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @template T - The type of target to be referenced.
9
9
  *
10
- * @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
10
+ * @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
11
11
  *
12
12
  * @returns {RefCallback<T>} A single ref callback that updates all provided refs.
13
13
  *
@@ -8,7 +8,7 @@ import { RefCallback, RefObject } from "react";
8
8
  *
9
9
  * @template T - The type of target to be referenced.
10
10
  *
11
- * @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
11
+ * @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
12
12
  *
13
13
  * @returns {RefCallback<T>} A single ref callback that updates all provided refs.
14
14
  *
@@ -8,7 +8,7 @@ import { RefCallback, RefObject } from "react";
8
8
  *
9
9
  * @template T - The type of target to be referenced.
10
10
  *
11
- * @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
11
+ * @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
12
12
  *
13
13
  * @returns {RefCallback<T>} A single ref callback that updates all provided refs.
14
14
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @template T - The type of target to be referenced.
9
9
  *
10
- * @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
10
+ * @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
11
11
  *
12
12
  * @returns {RefCallback<T>} A single ref callback that updates all provided refs.
13
13
  *
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  const require_isServer = require("../isServer/isServer.cjs");
3
3
  const require_getKeyboardHeight = require("../getKeyboardHeight/getKeyboardHeight.cjs");
4
- //#region src/mobile/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.ts
4
+ //#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.ts
5
5
  /**
6
6
  * @description
7
7
  * `subscribeKeyboardHeight` is a utility function that subscribes to changes in the on-screen keyboard height.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.d.ts
2
+ //#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.d.ts
3
3
  type SubscribeKeyboardHeightOptions = {
4
4
  /**
5
5
  * A function that will be called with the updated keyboard height in pixels.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/mobile/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.d.ts
2
+ //#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.d.ts
3
3
  type SubscribeKeyboardHeightOptions = {
4
4
  /**
5
5
  * A function that will be called with the updated keyboard height in pixels.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { isServer } from "../isServer/isServer.mjs";
3
3
  import { getKeyboardHeight } from "../getKeyboardHeight/getKeyboardHeight.mjs";
4
- //#region src/mobile/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.ts
4
+ //#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.ts
5
5
  /**
6
6
  * @description
7
7
  * `subscribeKeyboardHeight` is a utility function that subscribes to changes in the on-screen keyboard height.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-simplikit",
3
- "version": "0.1.0",
4
- "description": "React hooks, components and utilities — SSR-safe, zero dependencies, mobile web included",
3
+ "version": "0.3.0",
4
+ "description": "React hooks, components and utilities for every React app, mobile web included — SSR-safe, zero dependencies",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.cts",
@@ -74,7 +74,6 @@
74
74
  "commander": "^13.1.0",
75
75
  "comment-parser": "^1.4.1",
76
76
  "corepack": "^0.30.0",
77
- "dotenv": "^16.4.7",
78
77
  "eslint": "^9.16.0",
79
78
  "eslint-config-prettier": "^9.1.0",
80
79
  "eslint-plugin-import": "^2.31.0",
@@ -88,7 +87,6 @@
88
87
  "jsdom": "^25.0.1",
89
88
  "listr2": "^8.2.5",
90
89
  "nanoid": "^5.1.5",
91
- "openai": "^4.93.0",
92
90
  "ora": "^8.2.0",
93
91
  "prettier": "^3.4.2",
94
92
  "prettier-plugin-sort-re-exports": "^0.1.0",