@siberiacancode/reactuse 0.0.100 → 0.0.102

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 (290) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-DjrPZN5E.js → _rollupPluginBabelHelpers-D8Uk4ZYd.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-D8Uk4ZYd.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
  5. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  6. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  7. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  8. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  9. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  10. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  11. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  12. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  13. package/dist/cjs/hooks/useClipboard/useClipboard.js.map +1 -1
  14. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  15. package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
  16. package/dist/cjs/hooks/useCookies/useCookies.js +2 -2
  17. package/dist/cjs/hooks/useCopy/useCopy.js +3 -0
  18. package/dist/cjs/hooks/useCopy/useCopy.js.map +1 -0
  19. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  20. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  21. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  22. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  23. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  24. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  25. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  26. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  27. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  28. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  29. package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  30. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  31. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  32. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  33. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  34. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  35. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  36. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  37. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  38. package/dist/cjs/hooks/useField/useField.js +2 -2
  39. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  40. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  41. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  42. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  43. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  44. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  45. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  46. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  47. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  48. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  49. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  50. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  51. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  52. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  53. package/dist/cjs/hooks/useInterval/useInterval.js.map +1 -1
  54. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  55. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  56. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  57. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  58. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  59. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  60. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  61. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  62. package/dist/cjs/hooks/useLess/useLess.js +1 -1
  63. package/dist/cjs/hooks/useList/useList.js +2 -2
  64. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  65. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  66. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  67. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  68. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  69. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  70. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  71. package/dist/cjs/hooks/useMemory/useMemory.js.map +1 -1
  72. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  73. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  74. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  75. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  76. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  77. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  78. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  79. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  80. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  81. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  82. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  83. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  84. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  85. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  86. package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  87. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  88. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  89. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  90. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  91. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  92. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  93. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  94. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  95. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  96. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  97. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  98. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  99. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  100. package/dist/cjs/hooks/useRefState/useRefState.js +2 -2
  101. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  102. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  103. package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
  104. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  105. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  106. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  107. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  108. package/dist/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  109. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
  110. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  111. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  112. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  113. package/dist/cjs/hooks/useStateHistory/useStateHistory.js +2 -2
  114. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  115. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  116. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  117. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  118. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  119. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  120. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
  121. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  122. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  123. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  124. package/dist/cjs/hooks/useTimer/useTimer.js.map +1 -1
  125. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  126. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  127. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  128. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  129. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  130. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  131. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  132. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  133. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  134. package/dist/cjs/index.js +2 -2
  135. package/dist/cjs/utils/helpers/copy.js +3 -0
  136. package/dist/cjs/utils/helpers/copy.js.map +1 -0
  137. package/dist/cjs/utils/helpers/debounce.js +1 -1
  138. package/dist/cjs/utils/helpers/getDate.js +1 -1
  139. package/dist/cjs/utils/helpers/getElement.js +1 -1
  140. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  141. package/dist/cjs/utils/helpers/index.js +2 -2
  142. package/dist/cjs/utils/helpers/isTarget.js +2 -2
  143. package/dist/cjs/utils/helpers/throttle.js +1 -1
  144. package/dist/esm/{_rollupPluginBabelHelpers-hUSWuNSL.js → _rollupPluginBabelHelpers-Bd7qYWzu.js} +2 -2
  145. package/dist/esm/_rollupPluginBabelHelpers-Bd7qYWzu.js.map +1 -0
  146. package/dist/esm/hooks/index.js +2 -2
  147. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  148. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  149. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  150. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  151. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  152. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  153. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  154. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  155. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  156. package/dist/esm/hooks/useClipboard/useClipboard.js.map +1 -1
  157. package/dist/esm/hooks/useConst/useConst.js +1 -1
  158. package/dist/esm/hooks/useCookie/useCookie.js +2 -2
  159. package/dist/esm/hooks/useCookies/useCookies.js +2 -2
  160. package/dist/esm/hooks/useCopy/useCopy.js +3 -0
  161. package/dist/esm/hooks/useCopy/useCopy.js.map +1 -0
  162. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  163. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  164. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  165. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  166. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  167. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  168. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  169. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  170. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  171. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  172. package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  173. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  174. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  175. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  176. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  177. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  178. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  179. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  180. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  181. package/dist/esm/hooks/useField/useField.js +2 -2
  182. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  183. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  184. package/dist/esm/hooks/useFps/useFps.js +2 -2
  185. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  186. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  187. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  188. package/dist/esm/hooks/useHash/useHash.js +2 -2
  189. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  190. package/dist/esm/hooks/useHover/useHover.js +2 -2
  191. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  192. package/dist/esm/hooks/useImage/useImage.js +2 -2
  193. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  194. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  195. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  196. package/dist/esm/hooks/useInterval/useInterval.js.map +1 -1
  197. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  198. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  199. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  200. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  201. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  202. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  203. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  204. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  205. package/dist/esm/hooks/useLess/useLess.js +1 -1
  206. package/dist/esm/hooks/useList/useList.js +2 -2
  207. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  208. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  209. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  210. package/dist/esm/hooks/useMap/useMap.js +2 -2
  211. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  212. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  213. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  214. package/dist/esm/hooks/useMemory/useMemory.js.map +1 -1
  215. package/dist/esm/hooks/useMount/useMount.js +1 -1
  216. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  217. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  218. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  219. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  220. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  221. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  222. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  223. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  224. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  225. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  226. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  227. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  228. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  229. package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  230. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  231. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  232. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  233. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  234. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  235. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  236. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  237. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  238. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  239. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  240. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  241. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  242. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  243. package/dist/esm/hooks/useRefState/useRefState.js +2 -2
  244. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  245. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  246. package/dist/esm/hooks/useRerender/useRerender.js +1 -1
  247. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  248. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  249. package/dist/esm/hooks/useScript/useScript.js +2 -2
  250. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  251. package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  252. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  253. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  254. package/dist/esm/hooks/useSet/useSet.js +2 -2
  255. package/dist/esm/hooks/useShare/useShare.js +2 -2
  256. package/dist/esm/hooks/useStateHistory/useStateHistory.js +2 -2
  257. package/dist/esm/hooks/useStep/useStep.js +2 -2
  258. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  259. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  260. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  261. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  262. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  263. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
  264. package/dist/esm/hooks/useTime/useTime.js +2 -2
  265. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  266. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  267. package/dist/esm/hooks/useTimer/useTimer.js.map +1 -1
  268. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  269. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  270. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  271. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  272. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  273. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  274. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  275. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  276. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  277. package/dist/esm/index.js +2 -2
  278. package/dist/esm/utils/helpers/copy.js +3 -0
  279. package/dist/esm/utils/helpers/copy.js.map +1 -0
  280. package/dist/esm/utils/helpers/debounce.js +1 -1
  281. package/dist/esm/utils/helpers/getDate.js +1 -1
  282. package/dist/esm/utils/helpers/getElement.js +1 -1
  283. package/dist/esm/utils/helpers/getRetry.js +1 -1
  284. package/dist/esm/utils/helpers/index.js +2 -2
  285. package/dist/esm/utils/helpers/isTarget.js +2 -2
  286. package/dist/esm/utils/helpers/throttle.js +1 -1
  287. package/dist/types/index.d.ts +20 -17
  288. package/package.json +1 -1
  289. package/dist/cjs/_rollupPluginBabelHelpers-DjrPZN5E.js.map +0 -1
  290. package/dist/esm/_rollupPluginBabelHelpers-hUSWuNSL.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.js","sources":["../../../../src/utils/helpers/copy.ts"],"sourcesContent":["export const legacyCopyToClipboard = (value: string) => {\n const tempTextArea = document.createElement('textarea');\n tempTextArea.value = value;\n tempTextArea.readOnly = true;\n tempTextArea.style.fontSize = '16px';\n document.body.appendChild(tempTextArea);\n tempTextArea.select();\n document.execCommand('copy');\n document.body.removeChild(tempTextArea);\n};\n\nexport const copy = async (value: string) => {\n try {\n try {\n await navigator.clipboard.writeText(value);\n } catch {\n return legacyCopyToClipboard(value);\n }\n } catch {\n return legacyCopyToClipboard(value);\n }\n};\n"],"names":["legacyCopyToClipboard","value","tempTextArea","document","createElement","readOnly","style","fontSize","body","appendChild","select","execCommand","removeChild","copy","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","navigator","clipboard","writeText","t0","abrupt","t1","stop","_x","apply","this","arguments"],"mappings":";0EAAaA,EAAwB,SAACC,GACpC,IAAMC,EAAeC,SAASC,cAAc,YAC5CF,EAAaD,MAAQA,EACrBC,EAAaG,UAAW,EACxBH,EAAaI,MAAMC,SAAW,OAC9BJ,SAASK,KAAKC,YAAYP,GAC1BA,EAAaQ,SACbP,SAASQ,YAAY,QACrBR,SAASK,KAAKI,YAAYV,EAC5B,EAEaW,EAAI,WAAA,IAAAC,EAAAC,EAAAA,kBAAAC,EAAAA,sBAAAC,MAAG,SAAAC,EAAOjB,GAAa,OAAAe,EAAAA,sBAAAG,MAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAC,KAAA,EAAAD,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAG5BC,UAAUC,UAAUC,UAAUxB,GAAM,KAAA,EAAAmB,EAAAE,KAAA,EAAA,MAAA,KAAA,EAAA,OAAAF,EAAAC,KAAA,EAAAD,EAAAM,GAAAN,EAAA,MAAA,GAAAA,EAAAO,gBAEnC3B,EAAsBC,IAAM,KAAA,EAAAmB,EAAAE,KAAA,GAAA,MAAA,KAAA,GAAA,OAAAF,EAAAC,KAAA,GAAAD,EAAAQ,GAAAR,EAAA,MAAA,GAAAA,EAAAO,gBAG9B3B,EAAsBC,IAAM,KAAA,GAAA,IAAA,MAAA,OAAAmB,EAAAS,OAAA,GAAAX,EAAA,KAAA,CAAA,CAAA,EAAA,IAAA,CAAA,EAAA,SAEtC,OAVYL,SAAIiB,GAAA,OAAAhB,EAAAiB,MAAAC,KAAAC,UAAA,CAAA,CAAA"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  "use strict";exports.debounce=function(t,e){var r;return function(){for(var n=this,u=arguments.length,o=new Array(u),i=0;i<u;i++)o[i]=arguments[i];clearTimeout(r),r=setTimeout((function(){return t.apply(n,o)}),e)}};
3
3
  //# sourceMappingURL=debounce.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  "use strict";exports.getDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=e.getSeconds(),s=e.getMinutes(),n=e.getHours();return{seconds:t,minutes:s,hours:n,meridiemHours:{value:n%12==0?12:n%12,type:n>=12?"pm":"am"},day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear(),timestamp:e.getTime()}};
3
3
  //# sourceMappingURL=getDate.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  "use strict";exports.getElement=function(e){return"function"==typeof e?e():"string"==typeof e?document.querySelector(e):e instanceof Document||e instanceof Window||e instanceof Element?e:e.current};
3
3
  //# sourceMappingURL=getElement.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  "use strict";exports.getRetry=function(t){return"number"==typeof t?t:t?1:0};
3
3
  //# sourceMappingURL=getRetry.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- "use strict";var e=require("./debounce.js"),t=require("./getDate.js"),r=require("./getElement.js"),s=require("./getRetry.js"),g=require("./isTarget.js"),o=require("./throttle.js");require("../../_rollupPluginBabelHelpers-DjrPZN5E.js"),exports.debounce=e.debounce,exports.getDate=t.getDate,exports.getElement=r.getElement,exports.getRetry=s.getRetry,exports.isTarget=g.isTarget,exports.throttle=o.throttle;
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ "use strict";var e=require("./copy.js"),t=require("./debounce.js"),r=require("./getDate.js"),o=require("./getElement.js"),s=require("./getRetry.js"),p=require("./isTarget.js"),g=require("./throttle.js");require("../../_rollupPluginBabelHelpers-D8Uk4ZYd.js"),exports.copy=e.copy,exports.legacyCopyToClipboard=e.legacyCopyToClipboard,exports.debounce=t.debounce,exports.getDate=r.getDate,exports.getElement=o.getElement,exports.getRetry=s.getRetry,exports.isTarget=p.isTarget,exports.throttle=g.throttle;
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- "use strict";var e=require("../../_rollupPluginBabelHelpers-DjrPZN5E.js");exports.isTarget=function(n){return"string"==typeof n||n instanceof Element||n instanceof Window||n instanceof Document||n&&"object"===e._typeof(n)&&"current"in n};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-D8Uk4ZYd.js");exports.isTarget=function(n){return"string"==typeof n||n instanceof Element||n instanceof Window||n instanceof Document||n&&"object"===e._typeof(n)&&"current"in n};
3
3
  //# sourceMappingURL=isTarget.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  "use strict";exports.throttle=function(t,n){var e=!1,r=null,u=function(){r?(t.apply(undefined,r),r=null,setTimeout(u,n)):e=!1};return function(){for(var i=arguments.length,l=new Array(i),o=0;o<i;o++)l[o]=arguments[o];e?r=l:(t.apply(this,l),e=!0,setTimeout(u,n))}};
3
3
  //# sourceMappingURL=throttle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  function t(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function r(t){if(Array.isArray(t))return t}function e(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,c,"next",t)}function c(t){e(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function i(t,r,e){return r&&function(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=b(t))||r){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function u(t,r,e){return(r=d(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function c(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function s(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){u(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function h(){h=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var i=r&&r.prototype instanceof b?r:b,a=Object.create(i.prototype),u=new k(n||[]);return o(a,"_invoke",{value:P(t,e,u)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var y="suspendedStart",p="suspendedYield",v="executing",d="completed",m={};function b(){}function g(){}function w(){}var O={};f(O,a,(function(){return this}));var j=Object.getPrototypeOf,E=j&&j(j(I([])));E&&E!==e&&n.call(E,a)&&(O=E);var x=w.prototype=b.prototype=Object.create(O);function L(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function S(t,r){function e(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?r.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function P(r,e,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=_(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var f=s(r,e,n);if("normal"===f.type){if(o=n.done?d:p,f.arg===m)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=d,n.method="throw",n.arg=f.arg)}}}function _(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,_(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=s(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function A(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(typeof r+" is not iterable")}return g.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=f(w,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},L(S.prototype),f(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(x),f(x,c,"Generator"),f(x,a,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=I,k.prototype={constructor:k,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:I(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function y(t,e){return r(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(t,e)||b(t,e)||f()}function p(t){return r(t)||c(t)||b(t)||f()}function v(r){return function(r){if(Array.isArray(r))return t(r)}(r)||c(r)||b(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){var r=function(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==typeof r?r:r+""}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(r,e){if(r){if("string"==typeof r)return t(r,e);var n={}.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(r,e):void 0}}export{y as _,v as a,m as b,s as c,n as d,h as e,p as f,u as g,a as h,i,o as j};
3
- //# sourceMappingURL=_rollupPluginBabelHelpers-hUSWuNSL.js.map
3
+ //# sourceMappingURL=_rollupPluginBabelHelpers-Bd7qYWzu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_rollupPluginBabelHelpers-Bd7qYWzu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- export{useActiveElement}from"./useActiveElement/useActiveElement.js";export{useAsync}from"./useAsync/useAsync.js";export{useBattery}from"./useBattery/useBattery.js";export{useBluetooth}from"./useBluetooth/useBluetooth.js";export{useBoolean}from"./useBoolean/useBoolean.js";export{BREAKPOINTS_ANT_DESIGN,BREAKPOINTS_BOOTSTRAP_V5,BREAKPOINTS_MANTINE,BREAKPOINTS_MASTER_CSS,BREAKPOINTS_MATERIAL_UI,BREAKPOINTS_PRIME_FLEX,BREAKPOINTS_QUASAR_V2,BREAKPOINTS_SEMANTIC,BREAKPOINTS_TAILWIND,useBreakpoints}from"./useBreakpoints/useBreakpoints.js";export{useBrowserLanguage}from"./useBrowserLanguage/useBrowserLanguage.js";export{useClickOutside}from"./useClickOutside/useClickOutside.js";export{isPermissionAllowed,legacyCopyToClipboard,useClipboard}from"./useClipboard/useClipboard.js";export{useConst}from"./useConst/useConst.js";export{COOKIE_EVENT,dispatchCookieEvent,getCookies,removeCookie,setCookie,useCookie}from"./useCookie/useCookie.js";export{clearCookies,getParsedCookies,useCookies}from"./useCookies/useCookies.js";export{useCounter}from"./useCounter/useCounter.js";export{useCssVar}from"./useCssVar/useCssVar.js";export{useDebounceCallback}from"./useDebounceCallback/useDebounceCallback.js";export{useDebounceValue}from"./useDebounceValue/useDebounceValue.js";export{useDefault}from"./useDefault/useDefault.js";export{useDeviceMotion}from"./useDeviceMotion/useDeviceMotion.js";export{useDeviceOrientation}from"./useDeviceOrientation/useDeviceOrientation.js";export{useDevicePixelRatio}from"./useDevicePixelRatio/useDevicePixelRatio.js";export{useDidUpdate}from"./useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./useDisclosure/useDisclosure.js";export{useDisplayMedia}from"./useDisplayMedia/useDisplayMedia.js";export{useDocumentEvent}from"./useDocumentEvent/useDocumentEvent.js";export{useDocumentTitle}from"./useDocumentTitle/useDocumentTitle.js";export{useDocumentVisibility}from"./useDocumentVisibility/useDocumentVisibility.js";export{useElementSize}from"./useElementSize/useElementSize.js";export{useEvent}from"./useEvent/useEvent.js";export{useEventListener}from"./useEventListener/useEventListener.js";export{useEyeDropper}from"./useEyeDropper/useEyeDropper.js";export{useFavicon}from"./useFavicon/useFavicon.js";export{useField}from"./useField/useField.js";export{useFileDialog}from"./useFileDialog/useFileDialog.js";export{useFocus}from"./useFocus/useFocus.js";export{useFps}from"./useFps/useFps.js";export{useFullscreen}from"./useFullscreen/useFullscreen.js";export{mapGamepadToXbox360Controller,useGamepad}from"./useGamepad/useGamepad.js";export{useGeolocation}from"./useGeolocation/useGeolocation.js";export{useHash}from"./useHash/useHash.js";export{isHotkeyMatch,useHotkeys}from"./useHotkeys/useHotkeys.js";export{useHover}from"./useHover/useHover.js";export{useIdle}from"./useIdle/useIdle.js";export{useImage}from"./useImage/useImage.js";export{useInfiniteScroll}from"./useInfiniteScroll/useInfiniteScroll.js";export{useIntersectionObserver}from"./useIntersectionObserver/useIntersectionObserver.js";export{useInterval}from"./useInterval/useInterval.js";export{useIsFirstRender}from"./useIsFirstRender/useIsFirstRender.js";export{useIsomorphicLayoutEffect}from"./useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";export{useKeyboard}from"./useKeyboard/useKeyboard.js";export{useKeyPress}from"./useKeyPress/useKeyPress.js";export{useKeyPressEvent}from"./useKeyPressEvent/useKeyPressEvent.js";export{useKeysPressed}from"./useKeysPressed/useKeysPressed.js";export{useLastChanged}from"./useLastChanged/useLastChanged.js";export{useLatest}from"./useLatest/useLatest.js";export{useLess}from"./useLess/useLess.js";export{useList}from"./useList/useList.js";export{useLocalStorage}from"./useLocalStorage/useLocalStorage.js";export{useLogger}from"./useLogger/useLogger.js";export{useLongPress}from"./useLongPress/useLongPress.js";export{useMap}from"./useMap/useMap.js";export{useMeasure}from"./useMeasure/useMeasure.js";export{useMediaQuery}from"./useMediaQuery/useMediaQuery.js";export{useMemory}from"./useMemory/useMemory.js";export{useMount}from"./useMount/useMount.js";export{useMouse}from"./useMouse/useMouse.js";export{useMutation}from"./useMutation/useMutation.js";export{useMutationObserver}from"./useMutationObserver/useMutationObserver.js";export{getConnection,useNetwork}from"./useNetwork/useNetwork.js";export{useOffsetPagination}from"./useOffsetPagination/useOffsetPagination.js";export{useOnline}from"./useOnline/useOnline.js";export{getOperatingSystem,useOperatingSystem}from"./useOperatingSystem/useOperatingSystem.js";export{useOptimistic}from"./useOptimistic/useOptimistic.js";export{useOrientation}from"./useOrientation/useOrientation.js";export{useOtpCredential}from"./useOtpCredential/useOtpCredential.js";export{usePageLeave}from"./usePageLeave/usePageLeave.js";export{Paint,Pointer,usePaint}from"./usePaint/usePaint.js";export{useParallax}from"./useParallax/useParallax.js";export{usePerformanceObserver}from"./usePerformanceObserver/usePerformanceObserver.js";export{usePermission}from"./usePermission/usePermission.js";export{usePointerLock}from"./usePointerLock/usePointerLock.js";export{usePostMessage}from"./usePostMessage/usePostMessage.js";export{usePreferredColorScheme}from"./usePreferredColorScheme/usePreferredColorScheme.js";export{usePreferredContrast}from"./usePreferredContrast/usePreferredContrast.js";export{usePreferredDark}from"./usePreferredDark/usePreferredDark.js";export{usePreferredLanguages}from"./usePreferredLanguages/usePreferredLanguages.js";export{usePreferredReducedMotion}from"./usePreferredReducedMotion/usePreferredReducedMotion.js";export{usePrevious}from"./usePrevious/usePrevious.js";export{useQuery}from"./useQuery/useQuery.js";export{useQueue}from"./useQueue/useQueue.js";export{useRaf}from"./useRaf/useRaf.js";export{useRafValue}from"./useRafValue/useRafValue.js";export{useRefState}from"./useRefState/useRefState.js";export{useRenderCount}from"./useRenderCount/useRenderCount.js";export{useRenderInfo}from"./useRenderInfo/useRenderInfo.js";export{useRerender}from"./useRerender/useRerender.js";export{useResizeObserver}from"./useResizeObserver/useResizeObserver.js";export{useScreenOrientation}from"./useScreenOrientation/useScreenOrientation.js";export{SCRIPT_STATUS_ATTRIBUTE_NAME,useScript}from"./useScript/useScript.js";export{useScroll}from"./useScroll/useScroll.js";export{useScrollIntoView}from"./useScrollIntoView/useScrollIntoView.js";export{useScrollTo}from"./useScrollTo/useScrollTo.js";export{useSessionStorage}from"./useSessionStorage/useSessionStorage.js";export{useSet}from"./useSet/useSet.js";export{useShare}from"./useShare/useShare.js";export{useStateHistory}from"./useStateHistory/useStateHistory.js";export{useStep}from"./useStep/useStep.js";export{useStopwatch}from"./useStopwatch/useStopwatch.js";export{STORAGE_EVENT,dispatchStorageEvent,useStorage}from"./useStorage/useStorage.js";export{useTextDirection}from"./useTextDirection/useTextDirection.js";export{getRangesSelection,useTextSelection}from"./useTextSelection/useTextSelection.js";export{useThrottleCallback}from"./useThrottleCallback/useThrottleCallback.js";export{useThrottleValue}from"./useThrottleValue/useThrottleValue.js";export{useTime}from"./useTime/useTime.js";export{useTimeout}from"./useTimeout/useTimeout.js";export{getTimeFromSeconds,useTimer}from"./useTimer/useTimer.js";export{useToggle}from"./useToggle/useToggle.js";export{useUnmount}from"./useUnmount/useUnmount.js";export{useVibrate}from"./useVibrate/useVibrate.js";export{useWebSocket}from"./useWebSocket/useWebSocket.js";export{useWindowEvent}from"./useWindowEvent/useWindowEvent.js";export{useWindowFocus}from"./useWindowFocus/useWindowFocus.js";export{scrollTo,useWindowScroll}from"./useWindowScroll/useWindowScroll.js";export{useWindowSize}from"./useWindowSize/useWindowSize.js";export{useWizard}from"./useWizard/useWizard.js";import"../_rollupPluginBabelHelpers-hUSWuNSL.js";import"react";import"../utils/helpers/getElement.js";import"../utils/helpers/isTarget.js";import"../utils/helpers/debounce.js";import"../utils/helpers/throttle.js";import"../utils/helpers/getRetry.js";import"react-dom";import"../utils/helpers/getDate.js";
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ export{useActiveElement}from"./useActiveElement/useActiveElement.js";export{useAsync}from"./useAsync/useAsync.js";export{useBattery}from"./useBattery/useBattery.js";export{useBluetooth}from"./useBluetooth/useBluetooth.js";export{useBoolean}from"./useBoolean/useBoolean.js";export{BREAKPOINTS_ANT_DESIGN,BREAKPOINTS_BOOTSTRAP_V5,BREAKPOINTS_MANTINE,BREAKPOINTS_MASTER_CSS,BREAKPOINTS_MATERIAL_UI,BREAKPOINTS_PRIME_FLEX,BREAKPOINTS_QUASAR_V2,BREAKPOINTS_SEMANTIC,BREAKPOINTS_TAILWIND,useBreakpoints}from"./useBreakpoints/useBreakpoints.js";export{useBrowserLanguage}from"./useBrowserLanguage/useBrowserLanguage.js";export{useClickOutside}from"./useClickOutside/useClickOutside.js";export{useClipboard}from"./useClipboard/useClipboard.js";export{useConst}from"./useConst/useConst.js";export{COOKIE_EVENT,dispatchCookieEvent,getCookies,removeCookie,setCookie,useCookie}from"./useCookie/useCookie.js";export{clearCookies,getParsedCookies,useCookies}from"./useCookies/useCookies.js";export{useCounter}from"./useCounter/useCounter.js";export{useCssVar}from"./useCssVar/useCssVar.js";export{useDebounceCallback}from"./useDebounceCallback/useDebounceCallback.js";export{useDebounceValue}from"./useDebounceValue/useDebounceValue.js";export{useDefault}from"./useDefault/useDefault.js";export{useDeviceMotion}from"./useDeviceMotion/useDeviceMotion.js";export{useDeviceOrientation}from"./useDeviceOrientation/useDeviceOrientation.js";export{useDevicePixelRatio}from"./useDevicePixelRatio/useDevicePixelRatio.js";export{useDidUpdate}from"./useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./useDisclosure/useDisclosure.js";export{useDisplayMedia}from"./useDisplayMedia/useDisplayMedia.js";export{useDocumentEvent}from"./useDocumentEvent/useDocumentEvent.js";export{useDocumentTitle}from"./useDocumentTitle/useDocumentTitle.js";export{useDocumentVisibility}from"./useDocumentVisibility/useDocumentVisibility.js";export{useElementSize}from"./useElementSize/useElementSize.js";export{useEvent}from"./useEvent/useEvent.js";export{useEventListener}from"./useEventListener/useEventListener.js";export{useEyeDropper}from"./useEyeDropper/useEyeDropper.js";export{useFavicon}from"./useFavicon/useFavicon.js";export{useField}from"./useField/useField.js";export{useFileDialog}from"./useFileDialog/useFileDialog.js";export{useFocus}from"./useFocus/useFocus.js";export{useFps}from"./useFps/useFps.js";export{useFullscreen}from"./useFullscreen/useFullscreen.js";export{mapGamepadToXbox360Controller,useGamepad}from"./useGamepad/useGamepad.js";export{useGeolocation}from"./useGeolocation/useGeolocation.js";export{useHash}from"./useHash/useHash.js";export{isHotkeyMatch,useHotkeys}from"./useHotkeys/useHotkeys.js";export{useHover}from"./useHover/useHover.js";export{useIdle}from"./useIdle/useIdle.js";export{useImage}from"./useImage/useImage.js";export{useInfiniteScroll}from"./useInfiniteScroll/useInfiniteScroll.js";export{useIntersectionObserver}from"./useIntersectionObserver/useIntersectionObserver.js";export{useInterval}from"./useInterval/useInterval.js";export{useIsFirstRender}from"./useIsFirstRender/useIsFirstRender.js";export{useIsomorphicLayoutEffect}from"./useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";export{useKeyboard}from"./useKeyboard/useKeyboard.js";export{useKeyPress}from"./useKeyPress/useKeyPress.js";export{useKeyPressEvent}from"./useKeyPressEvent/useKeyPressEvent.js";export{useKeysPressed}from"./useKeysPressed/useKeysPressed.js";export{useLastChanged}from"./useLastChanged/useLastChanged.js";export{useLatest}from"./useLatest/useLatest.js";export{useLess}from"./useLess/useLess.js";export{useList}from"./useList/useList.js";export{useLocalStorage}from"./useLocalStorage/useLocalStorage.js";export{useLogger}from"./useLogger/useLogger.js";export{useLongPress}from"./useLongPress/useLongPress.js";export{useMap}from"./useMap/useMap.js";export{useMeasure}from"./useMeasure/useMeasure.js";export{useMediaQuery}from"./useMediaQuery/useMediaQuery.js";export{useMemory}from"./useMemory/useMemory.js";export{useMount}from"./useMount/useMount.js";export{useMouse}from"./useMouse/useMouse.js";export{useMutation}from"./useMutation/useMutation.js";export{useMutationObserver}from"./useMutationObserver/useMutationObserver.js";export{getConnection,useNetwork}from"./useNetwork/useNetwork.js";export{useOffsetPagination}from"./useOffsetPagination/useOffsetPagination.js";export{useOnline}from"./useOnline/useOnline.js";export{getOperatingSystem,useOperatingSystem}from"./useOperatingSystem/useOperatingSystem.js";export{useOptimistic}from"./useOptimistic/useOptimistic.js";export{useOrientation}from"./useOrientation/useOrientation.js";export{useOtpCredential}from"./useOtpCredential/useOtpCredential.js";export{usePageLeave}from"./usePageLeave/usePageLeave.js";export{Paint,Pointer,usePaint}from"./usePaint/usePaint.js";export{useParallax}from"./useParallax/useParallax.js";export{usePerformanceObserver}from"./usePerformanceObserver/usePerformanceObserver.js";export{usePermission}from"./usePermission/usePermission.js";export{usePointerLock}from"./usePointerLock/usePointerLock.js";export{usePostMessage}from"./usePostMessage/usePostMessage.js";export{usePreferredColorScheme}from"./usePreferredColorScheme/usePreferredColorScheme.js";export{usePreferredContrast}from"./usePreferredContrast/usePreferredContrast.js";export{usePreferredDark}from"./usePreferredDark/usePreferredDark.js";export{usePreferredLanguages}from"./usePreferredLanguages/usePreferredLanguages.js";export{usePreferredReducedMotion}from"./usePreferredReducedMotion/usePreferredReducedMotion.js";export{usePrevious}from"./usePrevious/usePrevious.js";export{useQuery}from"./useQuery/useQuery.js";export{useQueue}from"./useQueue/useQueue.js";export{useRaf}from"./useRaf/useRaf.js";export{useRafValue}from"./useRafValue/useRafValue.js";export{useRefState}from"./useRefState/useRefState.js";export{useRenderCount}from"./useRenderCount/useRenderCount.js";export{useRenderInfo}from"./useRenderInfo/useRenderInfo.js";export{useRerender}from"./useRerender/useRerender.js";export{useResizeObserver}from"./useResizeObserver/useResizeObserver.js";export{useScreenOrientation}from"./useScreenOrientation/useScreenOrientation.js";export{SCRIPT_STATUS_ATTRIBUTE_NAME,useScript}from"./useScript/useScript.js";export{useScroll}from"./useScroll/useScroll.js";export{useScrollIntoView}from"./useScrollIntoView/useScrollIntoView.js";export{useScrollTo}from"./useScrollTo/useScrollTo.js";export{useSessionStorage}from"./useSessionStorage/useSessionStorage.js";export{useSet}from"./useSet/useSet.js";export{useShare}from"./useShare/useShare.js";export{useStateHistory}from"./useStateHistory/useStateHistory.js";export{useStep}from"./useStep/useStep.js";export{useStopwatch}from"./useStopwatch/useStopwatch.js";export{STORAGE_EVENT,dispatchStorageEvent,useStorage}from"./useStorage/useStorage.js";export{useTextDirection}from"./useTextDirection/useTextDirection.js";export{getRangesSelection,useTextSelection}from"./useTextSelection/useTextSelection.js";export{useThrottleCallback}from"./useThrottleCallback/useThrottleCallback.js";export{useThrottleValue}from"./useThrottleValue/useThrottleValue.js";export{useTime}from"./useTime/useTime.js";export{useTimeout}from"./useTimeout/useTimeout.js";export{getTimeFromSeconds,useTimer}from"./useTimer/useTimer.js";export{useToggle}from"./useToggle/useToggle.js";export{useUnmount}from"./useUnmount/useUnmount.js";export{useVibrate}from"./useVibrate/useVibrate.js";export{useWebSocket}from"./useWebSocket/useWebSocket.js";export{useWindowEvent}from"./useWindowEvent/useWindowEvent.js";export{useWindowFocus}from"./useWindowFocus/useWindowFocus.js";export{scrollTo,useWindowScroll}from"./useWindowScroll/useWindowScroll.js";export{useWindowSize}from"./useWindowSize/useWindowSize.js";export{useWizard}from"./useWizard/useWizard.js";import"../_rollupPluginBabelHelpers-Bd7qYWzu.js";import"react";import"../utils/helpers/getElement.js";import"../utils/helpers/isTarget.js";import"../utils/helpers/copy.js";import"../utils/helpers/debounce.js";import"../utils/helpers/throttle.js";import"../utils/helpers/getRetry.js";import"react-dom";import"../utils/helpers/getDate.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as e,useEffect as r}from"react";var t=function(){var t=e(null),o=n(t,2),i=o[0],u=o[1];return r((function(){var n=function(){var n;return u(null===(n=document)||void 0===n?void 0:n.activeElement)};return window.addEventListener("focus",n,!0),window.addEventListener("blur",n,!0),function(){window.removeEventListener("focus",n,!0),window.removeEventListener("blur",n,!0)}})),r((function(){var n=new MutationObserver((function(n){n.filter((function(n){return n.removedNodes.length})).map((function(n){return Array.from(n.removedNodes)})).flat().forEach((function(n){u((function(e){return n===e?document.activeElement:e}))}))}));return n.observe(document,{childList:!0,subtree:!0}),function(){n.disconnect()}}),[]),i};export{t as useActiveElement};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as e,useEffect as r}from"react";var t=function(){var t=e(null),o=n(t,2),i=o[0],u=o[1];return r((function(){var n=function(){var n;return u(null===(n=document)||void 0===n?void 0:n.activeElement)};return window.addEventListener("focus",n,!0),window.addEventListener("blur",n,!0),function(){window.removeEventListener("focus",n,!0),window.removeEventListener("blur",n,!0)}})),r((function(){var n=new MutationObserver((function(n){n.filter((function(n){return n.removedNodes.length})).map((function(n){return Array.from(n.removedNodes)})).flat().forEach((function(n){u((function(e){return n===e?document.activeElement:e}))}))}));return n.observe(document,{childList:!0,subtree:!0}),function(){n.disconnect()}}),[]),i};export{t as useActiveElement};
3
3
  //# sourceMappingURL=useActiveElement.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as o,useEffect as i}from"react";var n=function(n,t){var a=o(!0),c=r(a,2),e=c[0],f=c[1],u=o(!1),l=r(u,2),d=l[0],p=l[1],s=o(void 0),v=r(s,2),m=v[0],g=v[1],h=o(void 0),_=r(h,2),b=_[0],j=_[1];return i((function(){f(!0),n().then((function(r){j(r),g(void 0),p(!1)})).catch((function(r){g(r),p(!0)})).finally((function(){f(!1)}))}),t),{data:b,isLoading:e,isError:d,error:m}};export{n as useAsync};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o,useEffect as i}from"react";var n=function(n,t){var a=o(!0),c=r(a,2),e=c[0],f=c[1],u=o(!1),l=r(u,2),d=l[0],p=l[1],s=o(void 0),v=r(s,2),m=v[0],g=v[1],h=o(void 0),_=r(h,2),b=_[0],j=_[1];return i((function(){f(!0),n().then((function(r){j(r),g(void 0),p(!1)})).catch((function(r){g(r),p(!0)})).finally((function(){f(!1)}))}),t),{data:b,isLoading:e,isError:d,error:m}};export{n as useAsync};
3
3
  //# sourceMappingURL=useAsync.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as i,useEffect as r}from"react";var t=function(){var t="undefined"!=typeof navigator&&"getBattery"in navigator&&"function"==typeof navigator.getBattery,a=i({loading:!0,level:0,charging:!1,chargingTime:0,dischargingTime:0}),g=e(a,2),o=g[0],v=g[1];return r((function(){if(!t)return v(n(n({},o),{},{loading:!1}));var e,i=function(){var n,i,r,t,a,g,o,l;return v({loading:!1,level:null!==(n=null===(i=e)||void 0===i?void 0:i.level)&&void 0!==n?n:0,charging:null!==(r=null===(t=e)||void 0===t?void 0:t.charging)&&void 0!==r&&r,dischargingTime:null!==(a=null===(g=e)||void 0===g?void 0:g.dischargingTime)&&void 0!==a?a:0,chargingTime:null!==(o=null===(l=e)||void 0===l?void 0:l.chargingTime)&&void 0!==o?o:0})};return navigator.getBattery().then((function(n){e=n,i(),e.addEventListener("levelchange",i),e.addEventListener("chargingchange",i),e.addEventListener("chargingtimechange",i),e.addEventListener("dischargingtimechange",i)})),function(){e&&(e.removeEventListener("levelchange",i),e.removeEventListener("chargingchange",i),e.removeEventListener("chargingtimechange",i),e.removeEventListener("dischargingtimechange",i))}}),[]),{supported:t,value:o}};export{t as useBattery};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as i,useEffect as r}from"react";var t=function(){var t="undefined"!=typeof navigator&&"getBattery"in navigator&&"function"==typeof navigator.getBattery,a=i({loading:!0,level:0,charging:!1,chargingTime:0,dischargingTime:0}),g=e(a,2),o=g[0],v=g[1];return r((function(){if(!t)return v(n(n({},o),{},{loading:!1}));var e,i=function(){var n,i,r,t,a,g,o,l;return v({loading:!1,level:null!==(n=null===(i=e)||void 0===i?void 0:i.level)&&void 0!==n?n:0,charging:null!==(r=null===(t=e)||void 0===t?void 0:t.charging)&&void 0!==r&&r,dischargingTime:null!==(a=null===(g=e)||void 0===g?void 0:g.dischargingTime)&&void 0!==a?a:0,chargingTime:null!==(o=null===(l=e)||void 0===l?void 0:l.chargingTime)&&void 0!==o?o:0})};return navigator.getBattery().then((function(n){e=n,i(),e.addEventListener("levelchange",i),e.addEventListener("chargingchange",i),e.addEventListener("chargingtimechange",i),e.addEventListener("dischargingtimechange",i)})),function(){e&&(e.removeEventListener("levelchange",i),e.removeEventListener("chargingchange",i),e.removeEventListener("chargingtimechange",i),e.removeEventListener("dischargingtimechange",i))}}),[]),{supported:t,value:o}};export{t as useBattery};
3
3
  //# sourceMappingURL=useBattery.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e,d as t,e as r,c as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as a,useEffect as c}from"react";var i=function(i){var o="undefined"!=typeof navigator&&"bluetooth"in navigator,s=null!=i?i:{},u=s.acceptAllDevices,v=void 0!==u&&u,p=s.filters,f=s.optionalServices,l=a(!1),d=e(l,2),g=d[0],b=d[1],m=a(void 0),x=e(m,2),h=x[0],D=x[1],k=a(void 0),w=e(k,2),y=w[0],A=w[1],q=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,navigator.bluetooth.requestDevice(n({acceptAllDevices:v,optionalServices:f},p&&{filters:p,acceptAllDevices:!1}));case 4:t=e.sent,D(t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c((function(){if(h&&h.gatt){var e=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.gatt){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,h.gatt.connect();case 4:t=e.sent,A(t),b(t.connected);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){A(void 0),D(void 0),b(!1)};return h.addEventListener("gattserverdisconnected",n),e(),function(){var e;h.removeEventListener("gattserverdisconnected",n),null===(e=h.gatt)||void 0===e||e.disconnect()}}}),[h]),{supported:o,connected:g,device:h,requestDevice:q,server:y}};export{i as useBluetooth};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e,d as t,e as r,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as a,useEffect as c}from"react";var i=function(i){var o="undefined"!=typeof navigator&&"bluetooth"in navigator,s=null!=i?i:{},u=s.acceptAllDevices,v=void 0!==u&&u,p=s.filters,f=s.optionalServices,l=a(!1),d=e(l,2),g=d[0],b=d[1],m=a(void 0),x=e(m,2),h=x[0],D=x[1],k=a(void 0),w=e(k,2),y=w[0],A=w[1],q=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,navigator.bluetooth.requestDevice(n({acceptAllDevices:v,optionalServices:f},p&&{filters:p,acceptAllDevices:!1}));case 4:t=e.sent,D(t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c((function(){if(h&&h.gatt){var e=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.gatt){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,h.gatt.connect();case 4:t=e.sent,A(t),b(t.connected);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){A(void 0),D(void 0),b(!1)};return h.addEventListener("gattserverdisconnected",n),e(),function(){var e;h.removeEventListener("gattserverdisconnected",n),null===(e=h.gatt)||void 0===e||e.disconnect()}}}),[h]),{supported:o,connected:g,device:h,requestDevice:q,server:y}};export{i as useBluetooth};
3
3
  //# sourceMappingURL=useBluetooth.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as n}from"react";var t=function(){var t=n(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),o=r(t,2),e=o[0],u=o[1];return[e,function(r){return u((function(n){return null!=r?r:!n}))}]};export{t as useBoolean};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n}from"react";var t=function(){var t=n(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),o=r(t,2),e=o[0],u=o[1];return[e,function(r){return u((function(n){return null!=r?r:!n}))}]};export{t as useBoolean};
3
3
  //# sourceMappingURL=useBoolean.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{c as e,_ as r}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useEffect as t}from"react";import{useRerender as n}from"../useRerender/useRerender.js";var i=function(e){return window.matchMedia(e).matches},l=function(l){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mobile-first",a=n(),u=function(e,r){return"".concat(r?Number(l[e])+r:l[e],"px")};t((function(){var e=function(){return a()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var m=function(e){return i("(min-width: ".concat(u(e),")"))},c=function(e){return i("(max-width: ".concat(u(e),")"))},s=function(){return Object.keys(l).map((function(e){return[e,m(e)]})).filter((function(e){return r(e,2)[1]})).map((function(e){return r(e,1)[0]}))},x=function(e){return i("(min-width: ".concat(u(e,.1),")"))},d=function(e){return i("(max-width: ".concat(u(e,-.1),")"))},f=function(e,r){return i("(min-width: ".concat(u(e),") and (max-width: ").concat(u(r,-.1),")"))},p=Object.keys(l).reduce((function(e,r){var t="mobile-first"===o?m(r):c(r);return e[r]=t,e}),{});return e({current:s,greaterOrEqual:m,smallerOrEqual:c,active:function(){var e=s();return e.length?e.at(-1):void 0},greater:x,smaller:d,between:f,isGreater:x,isGreaterOrEqual:m,isSmaller:d,isSmallerOrEqual:c,isInBetween:f},p)},o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={xs:576,sm:768,md:992,lg:1200,xl:1408},u={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},m={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},c={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},s={xs:0,sm:600,md:1024,lg:1440,xl:1920},x={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},d={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},f={sm:576,md:768,lg:992,xl:1200};export{c as BREAKPOINTS_ANT_DESIGN,m as BREAKPOINTS_BOOTSTRAP_V5,a as BREAKPOINTS_MANTINE,d as BREAKPOINTS_MASTER_CSS,o as BREAKPOINTS_MATERIAL_UI,f as BREAKPOINTS_PRIME_FLEX,s as BREAKPOINTS_QUASAR_V2,x as BREAKPOINTS_SEMANTIC,u as BREAKPOINTS_TAILWIND,l as useBreakpoints};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{c as e,_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useEffect as t}from"react";import{useRerender as n}from"../useRerender/useRerender.js";var i=function(e){return window.matchMedia(e).matches},l=function(l){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mobile-first",a=n(),u=function(e,r){return"".concat(r?Number(l[e])+r:l[e],"px")};t((function(){var e=function(){return a()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var m=function(e){return i("(min-width: ".concat(u(e),")"))},c=function(e){return i("(max-width: ".concat(u(e),")"))},s=function(){return Object.keys(l).map((function(e){return[e,m(e)]})).filter((function(e){return r(e,2)[1]})).map((function(e){return r(e,1)[0]}))},x=function(e){return i("(min-width: ".concat(u(e,.1),")"))},d=function(e){return i("(max-width: ".concat(u(e,-.1),")"))},f=function(e,r){return i("(min-width: ".concat(u(e),") and (max-width: ").concat(u(r,-.1),")"))},p=Object.keys(l).reduce((function(e,r){var t="mobile-first"===o?m(r):c(r);return e[r]=t,e}),{});return e({current:s,greaterOrEqual:m,smallerOrEqual:c,active:function(){var e=s();return e.length?e.at(-1):void 0},greater:x,smaller:d,between:f,isGreater:x,isGreaterOrEqual:m,isSmaller:d,isSmallerOrEqual:c,isInBetween:f},p)},o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={xs:576,sm:768,md:992,lg:1200,xl:1408},u={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},m={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},c={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},s={xs:0,sm:600,md:1024,lg:1440,xl:1920},x={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},d={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},f={sm:576,md:768,lg:992,xl:1200};export{c as BREAKPOINTS_ANT_DESIGN,m as BREAKPOINTS_BOOTSTRAP_V5,a as BREAKPOINTS_MANTINE,d as BREAKPOINTS_MASTER_CSS,o as BREAKPOINTS_MATERIAL_UI,f as BREAKPOINTS_PRIME_FLEX,s as BREAKPOINTS_QUASAR_V2,x as BREAKPOINTS_SEMANTIC,u as BREAKPOINTS_TAILWIND,l as useBreakpoints};
3
3
  //# sourceMappingURL=useBreakpoints.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  import{useSyncExternalStore as n}from"react";var e=function(){return navigator.language},r=function(){return"undetermined"},t=function(n){return window.addEventListener("languagechange",n),function(){return window.removeEventListener("languagechange",n)}},u=function(){return n(t,e,r)};export{u as useBrowserLanguage};
3
3
  //# sourceMappingURL=useBrowserLanguage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{useRef as t,useEffect as e}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-hUSWuNSL.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,l=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=i(),u=t(l);if(u.current=l,e((function(){if(o||s.state){var t=function(t){var e=o?r(o):s.current;e&&!e.contains(t.target)&&u.current(t)};return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}}),[o,s.state]),!o)return s};export{o as useClickOutside};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{useRef as t,useEffect as e}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,l=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=i(),u=t(l);if(u.current=l,e((function(){if(o||s.state){var t=function(t){var e=o?r(o):s.current;e&&!e.contains(t.target)&&u.current(t)};return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}}),[o,s.state]),!o)return s};export{o as useClickOutside};
3
3
  //# sourceMappingURL=useClickOutside.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e,d as n,e as t}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as r,useEffect as o,useCallback as a}from"react";import{usePermission as i}from"../usePermission/usePermission.js";import"../useEvent/useEvent.js";var c=function(e){return"granted"===e||"prompt"===e},u=function(e){var n=document.createElement("textarea");n.value=e,n.readOnly=!0,n.style.fontSize="16px",document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)},l=function(l){var d,s="undefined"!=typeof navigator&&"clipboard"in navigator,v=r(null),p=e(v,2),m=p[0],f=p[1],x=i("clipboard-read"),b=i("clipboard-write"),y=null!==(d=null==l?void 0:l.enabled)&&void 0!==d&&d,g=function(){var e=n(t().mark((function e(){var n,r,o,a,i,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!s||!c(x.state)){e.next=8;break}return e.next=4,navigator.clipboard.readText();case 4:a=e.sent,f(a),e.next=9;break;case 8:f(null!==(n=null===(r=document)||void 0===r||null===(o=r.getSelection)||void 0===o||null===(o=o.call(r))||void 0===o?void 0:o.toString())&&void 0!==n?n:"");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),f(null!==(i=null===(u=document)||void 0===u||null===(l=u.getSelection)||void 0===l||null===(l=l.call(u))||void 0===l?void 0:l.toString())&&void 0!==i?i:"");case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();o((function(){if(y)return document.addEventListener("copy",g),document.addEventListener("cut",g),function(){document.removeEventListener("copy",g),document.removeEventListener("cut",g)}}),[y]);var h=a(function(){var e=n(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!s&&!c(b.state)){e.next=6;break}return e.next=4,navigator.clipboard.writeText(n);case 4:e.next=7;break;case 6:u(n);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),u(n);case 12:f(n);case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(n){return e.apply(this,arguments)}}(),[]);return{supported:s,value:m,copy:h}};export{c as isPermissionAllowed,u as legacyCopyToClipboard,l as useClipboard};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e,d as n,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r,useEffect as o}from"react";import{copy as u}from"../../utils/helpers/copy.js";var c=function(c){var a,i=r(null),l=e(i,2),s=l[0],p=l[1],v=null!==(a=null==c?void 0:c.enabled)&&void 0!==a&&a,d=function(){var e=n(t().mark((function e(){var n,r,o,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.readText();case 3:n=e.sent,p(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),p(null!==(r=null===(o=(u=document).getSelection)||void 0===o||null===(o=o.call(u))||void 0===o?void 0:o.toString())&&void 0!==r?r:"");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();o((function(){if(v)return document.addEventListener("copy",d),document.addEventListener("cut",d),function(){document.removeEventListener("copy",d),document.removeEventListener("cut",d)}}),[v]);var f=function(){var e=n(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(n),p(n);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{value:s,copy:f}};export{c as useClipboard};
3
3
  //# sourceMappingURL=useClipboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClipboard.js","sources":["../../../../src/hooks/useClipboard/useClipboard.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { usePermission } from '../usePermission/usePermission';\n\nexport const isPermissionAllowed = (status: PermissionState) =>\n status === 'granted' || status === 'prompt';\n\nexport const legacyCopyToClipboard = (value: string) => {\n const tempTextArea = document.createElement('textarea');\n tempTextArea.value = value;\n tempTextArea.readOnly = true;\n tempTextArea.style.fontSize = '16px';\n document.body.appendChild(tempTextArea);\n tempTextArea.select();\n document.execCommand('copy');\n document.body.removeChild(tempTextArea);\n};\n\n/** The use copy to clipboard return type */\nexport interface UseCopyToClipboardReturn {\n /** Whether the copy to clipboard is supported */\n supported: boolean;\n /** The copied value */\n value: string | null;\n /** Function to copy to clipboard */\n copy: (value: string) => Promise<void>;\n}\n\n/** The use copy to clipboard params type */\nexport interface UseCopyToClipboardParams {\n /** Whether the copy to clipboard is enabled */\n enabled: boolean;\n}\n\n/**\n * @name useClipboard\n * @description - Hook that manages a copy to clipboard\n * @category Browser\n *\n * @browserapi navigator.clipboard https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard\n *\n * @param {boolean} [params.enabled=false] Whether the copy to clipboard is enabled\n * @returns {UseCopyToClipboardReturn} An object containing the boolean state value and utility functions to manipulate the state\n *\n * @example\n * const { supported, value, copy } = useClipboard();\n */\nexport const useClipboard = (params?: UseCopyToClipboardParams): UseCopyToClipboardReturn => {\n const supported = typeof navigator !== 'undefined' && 'clipboard' in navigator;\n\n const [value, setValue] = useState<string | null>(null);\n const clipboardReadPermission = usePermission('clipboard-read');\n const clipboardWritePermissionWrite = usePermission('clipboard-write');\n\n const enabled = params?.enabled ?? false;\n\n const set = async () => {\n try {\n if (supported && isPermissionAllowed(clipboardReadPermission.state)) {\n const value = await navigator.clipboard.readText();\n setValue(value);\n } else setValue(document?.getSelection?.()?.toString() ?? '');\n } catch {\n setValue(document?.getSelection?.()?.toString() ?? '');\n }\n };\n\n useEffect(() => {\n if (!enabled) return;\n\n document.addEventListener('copy', set);\n document.addEventListener('cut', set);\n return () => {\n document.removeEventListener('copy', set);\n document.removeEventListener('cut', set);\n };\n }, [enabled]);\n\n const copy = useCallback(async (value: string) => {\n try {\n if (supported || isPermissionAllowed(clipboardWritePermissionWrite.state)) {\n await navigator.clipboard.writeText(value);\n } else {\n legacyCopyToClipboard(value);\n }\n } catch {\n legacyCopyToClipboard(value);\n }\n\n setValue(value);\n }, []);\n\n return { supported, value, copy };\n};\n"],"names":["isPermissionAllowed","status","legacyCopyToClipboard","value","tempTextArea","document","createElement","readOnly","style","fontSize","body","appendChild","select","execCommand","removeChild","useClipboard","params","_params$enabled","supported","navigator","_useState","useState","_useState2","_slicedToArray","setValue","clipboardReadPermission","usePermission","clipboardWritePermissionWrite","enabled","set","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_document$getSelectio","_document","_document$getSelectio2","_value","_document$getSelectio3","_document2","_document2$getSelecti","wrap","_context","prev","next","state","clipboard","readText","sent","getSelection","call","toString","t0","stop","apply","this","arguments","useEffect","addEventListener","removeEventListener","copy","useCallback","_ref2","_callee2","_context2","writeText","_x"],"mappings":";qPAIaA,EAAsB,SAACC,GAAuB,MAC9C,YAAXA,GAAmC,WAAXA,CAAmB,EAEhCC,EAAwB,SAACC,GACpC,IAAMC,EAAeC,SAASC,cAAc,YAC5CF,EAAaD,MAAQA,EACrBC,EAAaG,UAAW,EACxBH,EAAaI,MAAMC,SAAW,OAC9BJ,SAASK,KAAKC,YAAYP,GAC1BA,EAAaQ,SACbP,SAASQ,YAAY,QACrBR,SAASK,KAAKI,YAAYV,EAC5B,EA+BaW,EAAe,SAACC,GAAgE,IAAAC,EACrFC,EAAiC,oBAAdC,WAA6B,cAAeA,UAErEC,EAA0BC,EAAwB,MAAKC,EAAAC,EAAAH,EAAA,GAAhDjB,EAAKmB,EAAA,GAAEE,EAAQF,EAAA,GAChBG,EAA0BC,EAAc,kBACxCC,EAAgCD,EAAc,mBAE9CE,EAAyBX,QAAlBA,EAAGD,aAAM,EAANA,EAAQY,eAAOX,IAAAA,GAAAA,EAEzBY,EAAG,WAAA,IAAAC,EAAAC,EAAAC,IAAAC,MAAG,SAAAC,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAT,IAAAU,MAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,GAAAF,EAAAC,KAAA,GAEJ1B,IAAalB,EAAoByB,EAAwBqB,OAAM,CAAAH,EAAAE,KAAA,EAAA,KAAA,CAAA,OAAAF,EAAAE,KAAA,EAC7C1B,UAAU4B,UAAUC,WAAU,KAAA,EAA5C7C,EAAKwC,EAAAM,KACXzB,EAASrB,GAAOwC,EAAAE,KAAA,EAAA,MAAA,KAAA,EACXrB,EAA+CW,QAAvCA,EAASC,QAATA,EAAC/B,gBAAQgC,IAAAD,GAAcC,QAAdA,EAARD,EAAUc,wBAAYb,GAAIA,QAAJA,EAAtBA,EAAAc,KAAAf,cAA0BC,SAA1BA,EAA4Be,sBAAUjB,EAAAA,EAAI,IAAI,KAAA,EAAAQ,EAAAE,KAAA,GAAA,MAAA,KAAA,GAAAF,EAAAC,KAAA,GAAAD,EAAAU,GAAAV,EAAA,MAAA,GAE9DnB,EAA+Ce,QAAvCA,EAASC,QAATA,EAACnC,gBAAQoC,IAAAD,GAAcC,QAAdA,EAARD,EAAUU,wBAAYT,GAAIA,QAAJA,EAAtBA,EAAAU,KAAAX,cAA0BC,SAA1BA,EAA4BW,sBAAUb,EAAAA,EAAI,IAAI,KAAA,GAAA,IAAA,MAAA,OAAAI,EAAAW,OAAA,GAAApB,EAAA,KAAA,CAAA,CAAA,EAAA,UAE1D,OAAA,WATQ,OAAAJ,EAAAyB,MAAAC,KAAAC,UAAA,EAAA,GAWTC,GAAU,WACR,GAAK9B,EAIL,OAFAvB,SAASsD,iBAAiB,OAAQ9B,GAClCxB,SAASsD,iBAAiB,MAAO9B,GAC1B,WACLxB,SAASuD,oBAAoB,OAAQ/B,GACrCxB,SAASuD,oBAAoB,MAAO/B,EACrC,CACH,GAAG,CAACD,IAEJ,IAAMiC,EAAOC,EAAW,WAAA,IAAAC,EAAAhC,EAAAC,IAAAC,MAAC,SAAA+B,EAAO7D,GAAa,OAAA6B,IAAAU,MAAA,SAAAuB,GAAA,cAAAA,EAAArB,KAAAqB,EAAApB,MAAA,KAAA,EAAA,GAAAoB,EAAArB,KAAA,GAErC1B,IAAalB,EAAoB2B,EAA8BmB,OAAM,CAAAmB,EAAApB,KAAA,EAAA,KAAA,CAAA,OAAAoB,EAAApB,KAAA,EACjE1B,UAAU4B,UAAUmB,UAAU/D,GAAM,KAAA,EAAA8D,EAAApB,KAAA,EAAA,MAAA,KAAA,EAE1C3C,EAAsBC,GAAO,KAAA,EAAA8D,EAAApB,KAAA,GAAA,MAAA,KAAA,EAAAoB,EAAArB,KAAA,EAAAqB,EAAAZ,GAAAY,EAAA,MAAA,GAG/B/D,EAAsBC,GAAO,KAAA,GAG/BqB,EAASrB,GAAO,KAAA,GAAA,IAAA,MAAA,OAAA8D,EAAAX,OAAA,GAAAU,EAAA,KAAA,CAAA,CAAA,EAAA,SACjB,OAAA,SAAAG,GAAA,OAAAJ,EAAAR,MAAAC,KAAAC,UAAA,CAAA,CAZuB,GAYrB,IAEH,MAAO,CAAEvC,UAAAA,EAAWf,MAAAA,EAAO0D,KAAAA,EAC7B"}
1
+ {"version":3,"file":"useClipboard.js","sources":["../../../../src/hooks/useClipboard/useClipboard.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport { copy } from '@/utils/helpers';\n\n/** The use copy to clipboard return type */\nexport interface UseCopyToClipboardReturn {\n /** The copied value */\n value: string | null;\n /** Function to copy to clipboard */\n copy: (value: string) => Promise<void>;\n}\n\n/** The use copy to clipboard params type */\nexport interface UseCopyToClipboardParams {\n /** Whether the copy to clipboard is enabled */\n enabled: boolean;\n}\n\n/**\n * @name useClipboard\n * @description - Hook that manages a copy to clipboard\n * @category Browser\n *\n * @browserapi navigator.clipboard https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard\n *\n * @param {boolean} [params.enabled=false] Whether the copy to clipboard is enabled\n * @returns {UseCopyToClipboardReturn} An object containing the boolean state value and utility functions to manipulate the state\n *\n * @example\n * const { supported, value, copy } = useClipboard();\n */\nexport const useClipboard = (params?: UseCopyToClipboardParams): UseCopyToClipboardReturn => {\n const [value, setValue] = useState<string | null>(null);\n const enabled = params?.enabled ?? false;\n\n const set = async () => {\n try {\n const value = await navigator.clipboard.readText();\n setValue(value);\n } catch {\n setValue(document.getSelection?.()?.toString() ?? '');\n }\n };\n\n useEffect(() => {\n if (!enabled) return;\n\n document.addEventListener('copy', set);\n document.addEventListener('cut', set);\n return () => {\n document.removeEventListener('copy', set);\n document.removeEventListener('cut', set);\n };\n }, [enabled]);\n\n const copyToClipboard = async (value: string) => {\n copy(value);\n setValue(value);\n };\n\n return { value, copy: copyToClipboard };\n};\n"],"names":["useClipboard","params","_params$enabled","_useState","useState","_useState2","_slicedToArray","value","setValue","enabled","set","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_value","_document$getSelectio","_document$getSelectio2","_document","wrap","_context","prev","next","navigator","clipboard","readText","sent","t0","document","getSelection","call","toString","stop","apply","this","arguments","useEffect","addEventListener","removeEventListener","copyToClipboard","_ref2","_callee2","_context2","copy","_x"],"mappings":";qLA+BaA,EAAe,SAACC,GAAgE,IAAAC,EAC3FC,EAA0BC,EAAwB,MAAKC,EAAAC,EAAAH,EAAA,GAAhDI,EAAKF,EAAA,GAAEG,EAAQH,EAAA,GAChBI,EAAyBP,QAAlBA,EAAGD,aAAM,EAANA,EAAQQ,eAAOP,IAAAA,GAAAA,EAEzBQ,EAAG,WAAA,IAAAC,EAAAC,EAAAC,IAAAC,MAAG,SAAAC,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAN,IAAAO,MAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAEYC,UAAUC,UAAUC,WAAU,KAAA,EAA5CnB,EAAKc,EAAAM,KACXnB,EAASD,GAAOc,EAAAE,KAAA,GAAA,MAAA,KAAA,EAAAF,EAAAC,KAAA,EAAAD,EAAAO,GAAAP,EAAA,MAAA,GAEhBb,UAAQS,EAAsBC,QAAtBA,GAACC,EAAAU,UAASC,oBAAYZ,IAAAA,GAAI,QAAJA,EAArBA,EAAAa,KAAAZ,UAAyB,IAAAD,OAAA,EAAzBA,EAA2Bc,kBAAU,IAAAf,EAAAA,EAAI,IAAI,KAAA,GAAA,IAAA,MAAA,OAAAI,EAAAY,OAAA,GAAAlB,EAAA,KAAA,CAAA,CAAA,EAAA,SAEzD,OAAA,WAPQ,OAAAJ,EAAAuB,MAAAC,KAAAC,UAAA,EAAA,GASTC,GAAU,WACR,GAAK5B,EAIL,OAFAoB,SAASS,iBAAiB,OAAQ5B,GAClCmB,SAASS,iBAAiB,MAAO5B,GAC1B,WACLmB,SAASU,oBAAoB,OAAQ7B,GACrCmB,SAASU,oBAAoB,MAAO7B,EACrC,CACH,GAAG,CAACD,IAEJ,IAAM+B,EAAe,WAAA,IAAAC,EAAA7B,EAAAC,IAAAC,MAAG,SAAA4B,EAAOnC,GAAa,OAAAM,IAAAO,MAAA,SAAAuB,GAAA,cAAAA,EAAArB,KAAAqB,EAAApB,MAAA,KAAA,EAC1CqB,EAAKrC,GACLC,EAASD,GAAO,KAAA,EAAA,IAAA,MAAA,OAAAoC,EAAAV,OAAA,GAAAS,OACjB,OAHKF,SAAeK,GAAA,OAAAJ,EAAAP,MAAAC,KAAAC,UAAA,EAAA,GAKrB,MAAO,CAAE7B,MAAAA,EAAOqC,KAAMJ,EACxB"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  import{useRef as r}from"react";var n=function(n){return r(n instanceof Function?n():n).current};export{n as useConst};
3
3
  //# sourceMappingURL=useConst.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{f as n,b as e,_ as t,c as i}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as o,useEffect as r}from"react";var a=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),i=n(t),o=i[0],r=i.slice(1);return[o,decodeURIComponent(r.join("="))]})))},c=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.cookie="".concat(encodeURIComponent(n),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT").concat(e.path?"; path=".concat(e.path):"").concat(e.domain?"; domain=".concat(e.domain):"").concat(e.maxAge?"; max-age=0":"").concat(e.expires?"; expires=Thu, 01 Jan 1970 00:00:00 GMT":"").concat(e.secure?"; secure":"").concat(e.sameSite?"; samesite=".concat(e.sameSite):"")},u=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=["".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))];t.path&&i.push("path=".concat(t.path)),t.domain&&i.push("domain=".concat(t.domain)),"number"==typeof t.maxAge&&i.push("max-age=".concat(t.maxAge)),t.expires&&i.push("expires=".concat(t.expires.toUTCString())),t.secure&&i.push("secure"),t.httpOnly&&i.push("httpOnly"),t.sameSite&&i.push("samesite=".concat(t.sameSite)),document.cookie=i.join("; ")},s="reactuse-cookie",p=function(){return window.dispatchEvent(new Event(s))},d=function(n,e,t){u(n,e,t),p()},m=function(n){return a()[n]},f=function(n,a){var u="object"===e(a)&&a&&("serializer"in a||"deserializer"in a||"initialValue"in a)?a:void 0,f=u?null==u?void 0:u.initialValue:a;if("undefined"==typeof document)return{value:f instanceof Function?f():f};var l=function(n){return null!=u&&u.serializer?u.serializer(n):"string"==typeof n?n:JSON.stringify(n)},v=function(n){if(null!=u&&u.deserializer)return u.deserializer(n);if("undefined"!==n)try{return JSON.parse(n)}catch(e){return n}},h=o((function(){var e=m(n);if(void 0===e&&void 0!==f){var t=f instanceof Function?f():f;return d(n,l(t),u),t}return e?v(e):void 0})),x=t(h,2),g=x[0],w=x[1];r((function(){var e=function(){var e=m(n);w(e?v(e):void 0)};return window.addEventListener(s,e),function(){return window.removeEventListener(s,e)}}),[n]);return{value:g,set:function(e,t){return d(n,l(e),i(i({},u),t))},remove:function(e){return function(n,e){c(n,e),p()}(n,i(i({},u),e))}}};export{s as COOKIE_EVENT,p as dispatchCookieEvent,a as getCookies,c as removeCookie,u as setCookie,f as useCookie};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{f as n,b as e,_ as t,c as i}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o,useEffect as r}from"react";var a=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),i=n(t),o=i[0],r=i.slice(1);return[o,decodeURIComponent(r.join("="))]})))},c=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.cookie="".concat(encodeURIComponent(n),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT").concat(e.path?"; path=".concat(e.path):"").concat(e.domain?"; domain=".concat(e.domain):"").concat(e.maxAge?"; max-age=0":"").concat(e.expires?"; expires=Thu, 01 Jan 1970 00:00:00 GMT":"").concat(e.secure?"; secure":"").concat(e.sameSite?"; samesite=".concat(e.sameSite):"")},u=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=["".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))];t.path&&i.push("path=".concat(t.path)),t.domain&&i.push("domain=".concat(t.domain)),"number"==typeof t.maxAge&&i.push("max-age=".concat(t.maxAge)),t.expires&&i.push("expires=".concat(t.expires.toUTCString())),t.secure&&i.push("secure"),t.httpOnly&&i.push("httpOnly"),t.sameSite&&i.push("samesite=".concat(t.sameSite)),document.cookie=i.join("; ")},s="reactuse-cookie",p=function(){return window.dispatchEvent(new Event(s))},d=function(n,e,t){u(n,e,t),p()},m=function(n){return a()[n]},f=function(n,a){var u="object"===e(a)&&a&&("serializer"in a||"deserializer"in a||"initialValue"in a)?a:void 0,f=u?null==u?void 0:u.initialValue:a;if("undefined"==typeof document)return{value:f instanceof Function?f():f};var l=function(n){return null!=u&&u.serializer?u.serializer(n):"string"==typeof n?n:JSON.stringify(n)},v=function(n){if(null!=u&&u.deserializer)return u.deserializer(n);if("undefined"!==n)try{return JSON.parse(n)}catch(e){return n}},h=o((function(){var e=m(n);if(void 0===e&&void 0!==f){var t=f instanceof Function?f():f;return d(n,l(t),u),t}return e?v(e):void 0})),x=t(h,2),g=x[0],w=x[1];r((function(){var e=function(){var e=m(n);w(e?v(e):void 0)};return window.addEventListener(s,e),function(){return window.removeEventListener(s,e)}}),[n]);return{value:g,set:function(e,t){return d(n,l(e),i(i({},u),t))},remove:function(e){return function(n,e){c(n,e),p()}(n,i(i({},u),e))}}};export{s as COOKIE_EVENT,p as dispatchCookieEvent,a as getCookies,c as removeCookie,u as setCookie,f as useCookie};
3
3
  //# sourceMappingURL=useCookie.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{f as n,_ as e}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as t,useEffect as o}from"react";import{removeCookie as r,COOKIE_EVENT as i,dispatchCookieEvent as u,setCookie as c}from"../useCookie/useCookie.js";var f=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),o=n(t),r=o[0],i=o.slice(1),u=decodeURIComponent(i.join("="));try{return[r,JSON.parse(u)]}catch(n){return[r,u]}})))},s=function(){document.cookie.split("; ").forEach((function(n){var t=n.split("="),o=e(t,1)[0];r(o)}))},a=function(n,e){r(n,e),u()},l=function(){var n=t("undefined"!=typeof window?f():{}),r=e(n,2),l=r[0],p=r[1];o((function(){var n=function(){return p(f())};return window.addEventListener(i,n),function(){window.removeEventListener(i,n)}}),[]);return{value:l,set:function(n,e,t){if(null===e)return a(n);!function(n,e,t){c(n,e,t),u()}(n,e,t)},remove:function(n,e){return a(n,e)},getAll:function(){return f()},clear:function(){return s(),void u()}}};export{s as clearCookies,f as getParsedCookies,l as useCookies};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{f as n,_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as t,useEffect as o}from"react";import{removeCookie as r,COOKIE_EVENT as i,dispatchCookieEvent as u,setCookie as c}from"../useCookie/useCookie.js";var f=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),o=n(t),r=o[0],i=o.slice(1),u=decodeURIComponent(i.join("="));try{return[r,JSON.parse(u)]}catch(n){return[r,u]}})))},s=function(){document.cookie.split("; ").forEach((function(n){var t=n.split("="),o=e(t,1)[0];r(o)}))},a=function(n,e){r(n,e),u()},l=function(){var n=t("undefined"!=typeof window?f():{}),r=e(n,2),l=r[0],p=r[1];o((function(){var n=function(){return p(f())};return window.addEventListener(i,n),function(){window.removeEventListener(i,n)}}),[]);return{value:l,set:function(n,e,t){if(null===e)return a(n);!function(n,e,t){c(n,e,t),u()}(n,e,t)},remove:function(n,e){return a(n,e)},getAll:function(){return f()},clear:function(){return s(),void u()}}};export{s as clearCookies,f as getParsedCookies,l as useCookies};
3
3
  //# sourceMappingURL=useCookies.js.map
@@ -0,0 +1,3 @@
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as r,d as e,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n}from"react";import{copy as o}from"../../utils/helpers/copy.js";var u=function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,a=n(null),i=r(a,2),s=i[0],c=i[1],p=n(!1),l=r(p,2),f=l[0],m=l[1],v=function(){var r=e(t().mark((function r(e){return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o(e);case 2:c(e),m(!0),setTimeout((function(){return m(!1)}),u);case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{value:s,copied:f,copy:v}};export{u as useCopy};
3
+ //# sourceMappingURL=useCopy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCopy.js","sources":["../../../../src/hooks/useCopy/useCopy.ts"],"sourcesContent":["import { useState } from 'react';\n\nimport { copy } from '@/utils/helpers';\n\n/** The use copy return type */\nexport interface UseCopyReturn {\n /** Whether copy is in progress */\n copied: boolean;\n /** The copied value */\n value: string | null;\n /** Function to copy text */\n copy: (value: string) => Promise<void>;\n}\n\n/** The use copy params type */\nexport interface UseCopyParams {\n /** Reset delay in milliseconds */\n resetDelay?: number;\n}\n\n/**\n * @name useCopy\n * @description - Hook that manages copying text with status reset\n * @category Browser\n *\n * @browserapi navigator.clipboard https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard\n *\n * @param {number} [delay=1000] Delay in ms before resetting copied status\n * @returns {UseCopyReturn} An object containing the copied value, status and copy function\n *\n * @example\n * const { copied, value, copy } = useCopy();\n */\nexport const useCopy = (delay: number = 1000): UseCopyReturn => {\n const [value, setValue] = useState<string | null>(null);\n const [copied, setCopied] = useState(false);\n\n const copyToClipboard = async (text: string) => {\n await copy(text);\n setValue(text);\n setCopied(true);\n setTimeout(() => setCopied(false), delay);\n };\n\n return { value, copied, copy: copyToClipboard };\n};\n"],"names":["useCopy","delay","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","value","setValue","_useState3","_useState4","copied","setCopied","copyToClipboard","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","text","wrap","_context","prev","next","copy","setTimeout","stop","_x","apply","this"],"mappings":";sKAiCaA,EAAU,WAAyC,IAAxCC,EAAaC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IACtCG,EAA0BC,EAAwB,MAAKC,EAAAC,EAAAH,EAAA,GAAhDI,EAAKF,EAAA,GAAEG,EAAQH,EAAA,GACtBI,EAA4BL,GAAS,GAAMM,EAAAJ,EAAAG,EAAA,GAApCE,EAAMD,EAAA,GAAEE,EAASF,EAAA,GAElBG,EAAe,WAAA,IAAAC,EAAAC,EAAAC,IAAAC,MAAG,SAAAC,EAAOC,GAAY,OAAAH,IAAAI,MAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAE,KAAA,EACnCC,EAAKL,GAAK,KAAA,EAChBX,EAASW,GACTP,GAAU,GACVa,YAAW,WAAA,OAAMb,GAAU,EAAM,GAAEb,GAAO,KAAA,EAAA,IAAA,MAAA,OAAAsB,EAAAK,OAAA,GAAAR,OAC3C,OALKL,SAAec,GAAA,OAAAb,EAAAc,MAAAC,KAAA7B,UAAA,EAAA,GAOrB,MAAO,CAAEO,MAAAA,EAAOI,OAAAA,EAAQa,KAAMX,EAChC"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as r}from"react";var e=function(){for(var e,t,o,u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];var l="number"==typeof i[0]?i[0]:null===(e=i[0])||void 0===e?void 0:e.initialValue,m="number"==typeof i[0]?null!==(t=i[1])&&void 0!==t?t:{}:null!==(o=i[0])&&void 0!==o?o:{},f=m.max,v=void 0===f?Number.POSITIVE_INFINITY:f,p=m.min,c=void 0===p?Number.NEGATIVE_INFINITY:p,b=r(null!=l?l:0),d=n(b,2),h=d[0],I=d[1];return{value:h,set:function(n){I((function(r){return Math.max(c,Math.min(v,"number"==typeof n?n:n(r)))}))},inc:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof v&&r===v?r:Math.max(Math.min(v,r+n),c)}))},dec:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof c&&r===c?r:Math.min(Math.max(c,r-n),v)}))},reset:function(){var n=null!=l?l:0;return"number"==typeof v&&n>v?I(v):"number"==typeof c&&n<c?I(c):void I(n)}}};export{e as useCounter};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r}from"react";var e=function(){for(var e,t,o,u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];var l="number"==typeof i[0]?i[0]:null===(e=i[0])||void 0===e?void 0:e.initialValue,m="number"==typeof i[0]?null!==(t=i[1])&&void 0!==t?t:{}:null!==(o=i[0])&&void 0!==o?o:{},f=m.max,v=void 0===f?Number.POSITIVE_INFINITY:f,p=m.min,c=void 0===p?Number.NEGATIVE_INFINITY:p,b=r(null!=l?l:0),d=n(b,2),h=d[0],I=d[1];return{value:h,set:function(n){I((function(r){return Math.max(c,Math.min(v,"number"==typeof n?n:n(r)))}))},inc:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof v&&r===v?r:Math.max(Math.min(v,r+n),c)}))},dec:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof c&&r===c?r:Math.min(Math.max(c,r-n),v)}))},reset:function(){var n=null!=l?l:0;return"number"==typeof v&&n>v?I(v):"number"==typeof c&&n<c?I(c):void I(n)}}};export{e as useCounter};
3
3
  //# sourceMappingURL=useCounter.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as r,useEffect as o}from"react";import{getElement as n}from"../../utils/helpers/getElement.js";import{useRefState as i}from"../useRefState/useRefState.js";var l=function(){var l="object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=r(null!=s?s:""),a=t(v,2),d=a[0],f=a[1],c=i(window.document.documentElement),m=function(e){var t=l?n(l):c.current;if(t&&t.style){if(!e)return t.style.removeProperty(u),void f(e);t.style.setProperty(u,e),f(e)}};return o((function(){s&&m(s)}),[]),o((function(){if(l||c.state){var e=l?n(l):c.current;if(e){var t=new MutationObserver((function(){var t,r=null===(t=window.getComputedStyle(e).getPropertyValue(u))||void 0===t?void 0:t.trim();f(null!=r?r:s)}));return t.observe(e,{attributeFilter:["style","class"]}),function(){t.disconnect()}}}}),[l,c.state]),{value:d,set:m}};export{l as useCssVar};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r,useEffect as o}from"react";import{getElement as n}from"../../utils/helpers/getElement.js";import{useRefState as i}from"../useRefState/useRefState.js";var l=function(){var l="object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=r(null!=s?s:""),a=t(v,2),d=a[0],f=a[1],c=i(window.document.documentElement),m=function(e){var t=l?n(l):c.current;if(t&&t.style){if(!e)return t.style.removeProperty(u),void f(e);t.style.setProperty(u,e),f(e)}};return o((function(){s&&m(s)}),[]),o((function(){if(l||c.state){var e=l?n(l):c.current;if(e){var t=new MutationObserver((function(){var t,r=null===(t=window.getComputedStyle(e).getPropertyValue(u))||void 0===t?void 0:t.trim();f(null!=r?r:s)}));return t.observe(e,{attributeFilter:["style","class"]}),function(){t.disconnect()}}}}),[l,c.state]),{value:d,set:m}};export{l as useCssVar};
3
3
  //# sourceMappingURL=useCssVar.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  import{useMemo as r}from"react";import{debounce as e}from"../../utils/helpers/debounce.js";import{useEvent as t}from"../useEvent/useEvent.js";var o=function(o,n){var u=t(o);return r((function(){return e(u,n)}),[n])};export{o as useDebounceCallback};
3
3
  //# sourceMappingURL=useDebounceCallback.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useRef as r,useState as o,useEffect as t}from"react";import{useDebounceCallback as u}from"../useDebounceCallback/useDebounceCallback.js";import"../../utils/helpers/debounce.js";import"../useEvent/useEvent.js";var n=function(n,s){var l=r(n),c=o(n),a=e(c,2),i=a[0],p=a[1],m=u(p,s);return t((function(){l.current!==n&&(m(n),l.current=n)}),[n]),i};export{n as useDebounceValue};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as r,useState as o,useEffect as t}from"react";import{useDebounceCallback as u}from"../useDebounceCallback/useDebounceCallback.js";import"../../utils/helpers/debounce.js";import"../useEvent/useEvent.js";var n=function(n,s){var l=r(n),c=o(n),a=e(c,2),i=a[0],p=a[1],m=u(p,s);return t((function(){l.current!==n&&(m(n),l.current=n)}),[n]),i};export{n as useDebounceValue};
3
3
  //# sourceMappingURL=useDebounceValue.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as l}from"react";var o=function(o,e){var t=l(o),a=r(t,2),n=a[0];return[null==n?e:n,a[1]]};export{o as useDefault};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as l}from"react";var o=function(o,e){var t=l(o),a=r(t,2),n=a[0];return[null==n?e:n,a[1]]};export{o as useDefault};
3
3
  //# sourceMappingURL=useDefault.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as l,c as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as a,useRef as e,useEffect as t}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var r=function(r){var o,c,u=null===(o=null==r?void 0:r.enabled)||void 0===o||o,v=null!==(c=null==r?void 0:r.delay)&&void 0!==c?c:1e3,d=a({interval:0,rotationRate:{alpha:null,beta:null,gamma:null},acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null}}),m=l(d,2),s=m[0],f=m[1],p=e(null==r?void 0:r.callback);return p.current=null==r?void 0:r.callback,t((function(){if(u){var l=i((function(l){var a;null===(a=p.current)||void 0===a||a.call(p,l),f({interval:l.interval,rotationRate:n(n({},s.rotationRate),l.rotationRate),acceleration:n(n({},s.acceleration),l.acceleration),accelerationIncludingGravity:n(n({},s.accelerationIncludingGravity),l.accelerationIncludingGravity)})}),v);return window.addEventListener("devicemotion",l),function(){window.removeEventListener("devicemotion",l)}}}),[v,u]),s};export{r as useDeviceMotion};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as l,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as a,useRef as e,useEffect as t}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var r=function(r){var o,c,u=null===(o=null==r?void 0:r.enabled)||void 0===o||o,v=null!==(c=null==r?void 0:r.delay)&&void 0!==c?c:1e3,d=a({interval:0,rotationRate:{alpha:null,beta:null,gamma:null},acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null}}),m=l(d,2),s=m[0],f=m[1],p=e(null==r?void 0:r.callback);return p.current=null==r?void 0:r.callback,t((function(){if(u){var l=i((function(l){var a;null===(a=p.current)||void 0===a||a.call(p,l),f({interval:l.interval,rotationRate:n(n({},s.rotationRate),l.rotationRate),acceleration:n(n({},s.acceleration),l.acceleration),accelerationIncludingGravity:n(n({},s.accelerationIncludingGravity),l.accelerationIncludingGravity)})}),v);return window.addEventListener("devicemotion",l),function(){window.removeEventListener("devicemotion",l)}}}),[v,u]),s};export{r as useDeviceMotion};
3
3
  //# sourceMappingURL=useDeviceMotion.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as n,useEffect as t}from"react";var a=function(){var a="undefined"!=typeof window&&"DeviceOrientationEvent"in window,i=n({alpha:null,beta:null,gamma:null,absolute:!1}),o=e(i,2),r=o[0],l=o[1];return t((function(){if(a){var e=function(e){return l({alpha:e.alpha,beta:e.beta,gamma:e.gamma,absolute:e.absolute})};return window.addEventListener("deviceorientation",e),function(){window.removeEventListener("deviceorientation",e)}}}),[]),{supported:a,value:r}};export{a as useDeviceOrientation};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useEffect as t}from"react";var a=function(){var a="undefined"!=typeof window&&"DeviceOrientationEvent"in window,i=n({alpha:null,beta:null,gamma:null,absolute:!1}),o=e(i,2),r=o[0],l=o[1];return t((function(){if(a){var e=function(e){return l({alpha:e.alpha,beta:e.beta,gamma:e.gamma,absolute:e.absolute})};return window.addEventListener("deviceorientation",e),function(){window.removeEventListener("deviceorientation",e)}}}),[]),{supported:a,value:r}};export{a as useDeviceOrientation};
3
3
  //# sourceMappingURL=useDeviceOrientation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as i,useEffect as n}from"react";var o=function(){var o,t="undefined"!=typeof window&&"function"==typeof window.matchMedia&&"number"==typeof window.devicePixelRatio,r=i(null!==(o=window.devicePixelRatio)&&void 0!==o?o:1),d=e(r,2),a=d[0],c=d[1];return n((function(){if(t){var e=function(){return c(window.devicePixelRatio)},i=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"));return i.addEventListener("change",e),function(){i.removeEventListener("change",e)}}}),[a]),{supported:t,ratio:a}};export{o as useDevicePixelRatio};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as i,useEffect as n}from"react";var o=function(){var o,t="undefined"!=typeof window&&"function"==typeof window.matchMedia&&"number"==typeof window.devicePixelRatio,r=i(null!==(o=window.devicePixelRatio)&&void 0!==o?o:1),d=e(r,2),a=d[0],c=d[1];return n((function(){if(t){var e=function(){return c(window.devicePixelRatio)},i=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"));return i.addEventListener("change",e),function(){i.removeEventListener("change",e)}}}),[a]),{supported:t,ratio:a}};export{o as useDevicePixelRatio};
3
3
  //# sourceMappingURL=useDevicePixelRatio.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  import{useRef as r}from"react";import{useIsomorphicLayoutEffect as o}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var t=function(t,f){var c=r(!0);o((function(){if(!c.current){var r=t();return r&&"function"==typeof r?r:void 0}c.current=!1}),f)};export{t as useDidUpdate};
3
3
  //# sourceMappingURL=useDidUpdate.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as r}from"react";var o=function(){var o=arguments.length>1?arguments[1]:void 0,l=r(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),e=n(l,2),t=e[0],u=e[1],i=function(){return u((function(n){var r;return n||(null==o||null===(r=o.onOpen)||void 0===r||r.call(o),!0)}))},c=function(){return u((function(n){var r;return n?(null==o||null===(r=o.onClose)||void 0===r||r.call(o),!1):n}))};return{opened:t,open:i,close:c,toggle:function(){return t?c():i()}}};export{o as useDisclosure};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r}from"react";var o=function(){var o=arguments.length>1?arguments[1]:void 0,l=r(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),e=n(l,2),t=e[0],u=e[1],i=function(){return u((function(n){var r;return n||(null==o||null===(r=o.onOpen)||void 0===r||r.call(o),!0)}))},c=function(){return u((function(n){var r;return n?(null==o||null===(r=o.onClose)||void 0===r||r.call(o),!1):n}))};return{opened:t,open:i,close:c,toggle:function(){return t?c():i()}}};export{o as useDisclosure};
3
3
  //# sourceMappingURL=useDisclosure.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as n,useRef as i,useEffect as a}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as s}from"../useRefState/useRefState.js";var c=function(){var c,l="undefined"!=typeof navigator&&"mediaDevices"in navigator&&!!navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,d=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,p=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],f=null!==(c=null==p?void 0:p.enabled)&&void 0!==c&&c,v=n(!1),g=e(v,2),m=g[0],h=g[1],b=i(null),j=s(),D=function(){if(b.current&&l){var e=d?u(d):j.current;e&&(h(!1),e.srcObject=null,b.current.getTracks().forEach((function(e){return e.stop()})),b.current=null)}},k=function(){var e=r(t().mark((function e(){var r,n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return");case 2:if(r=d?u(d):j.current){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,navigator.mediaDevices.getDisplayMedia({video:null==p?void 0:p.video,audio:null==p?void 0:p.audio});case 7:return n=e.sent,h(!0),b.current=n,r.srcObject=n,n.getTracks().forEach((function(e){return e.onended=D})),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){if(l&&f&&((d||j.state)&&(d?u(d):j.current)))return k(),function(){D()}}),[d,j.state]),d?{stream:b.current,sharing:m,supported:l,start:k,stop:D}:{stream:b.current,sharing:m,supported:l,start:k,stop:D,ref:j}};export{c as useDisplayMedia};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useRef as i,useEffect as a}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as s}from"../useRefState/useRefState.js";var c=function(){var c,l="undefined"!=typeof navigator&&"mediaDevices"in navigator&&!!navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,d=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,p=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],f=null!==(c=null==p?void 0:p.enabled)&&void 0!==c&&c,v=n(!1),g=e(v,2),m=g[0],h=g[1],b=i(null),j=s(),D=function(){if(b.current&&l){var e=d?u(d):j.current;e&&(h(!1),e.srcObject=null,b.current.getTracks().forEach((function(e){return e.stop()})),b.current=null)}},k=function(){var e=r(t().mark((function e(){var r,n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return");case 2:if(r=d?u(d):j.current){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,navigator.mediaDevices.getDisplayMedia({video:null==p?void 0:p.video,audio:null==p?void 0:p.audio});case 7:return n=e.sent,h(!0),b.current=n,r.srcObject=n,n.getTracks().forEach((function(e){return e.onended=D})),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){if(l&&f&&((d||j.state)&&(d?u(d):j.current)))return k(),function(){D()}}),[d,j.state]),d?{stream:b.current,sharing:m,supported:l,start:k,stop:D}:{stream:b.current,sharing:m,supported:l,start:k,stop:D,ref:j}};export{c as useDisplayMedia};
3
3
  //# sourceMappingURL=useDisplayMedia.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-hUSWuNSL.js";var t=function(t,r,s){return e(document,t,r,s)};export{t as useDocumentEvent};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var t=function(t,r,s){return e(document,t,r,s)};export{t as useDocumentEvent};
3
3
  //# sourceMappingURL=useDocumentEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as t}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useRef as n,useState as e,useEffect as o}from"react";function r(r,u){var i=n(document.title),c=e(null!=r?r:document.title),l=t(c,2),m=l[0],f=l[1],d=function(t){var n=t.trim();n.length>0&&(document.title=n)};return o((function(){"string"==typeof m&&d(m)}),[m]),o((function(){var t=new MutationObserver((function(){f((function(t){return document&&document.title!==t?document.title:t}))}));return t.observe(document.head.querySelector("title"),{childList:!0}),function(){t.disconnect()}}),[]),o((function(){if(null!=u&&u.restoreOnUnmount)return function(){document.title=i.current}}),[]),{value:m,set:d}}export{r as useDocumentTitle};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as n,useState as e,useEffect as o}from"react";function r(r,u){var i=n(document.title),c=e(null!=r?r:document.title),l=t(c,2),m=l[0],f=l[1],d=function(t){var n=t.trim();n.length>0&&(document.title=n)};return o((function(){"string"==typeof m&&d(m)}),[m]),o((function(){var t=new MutationObserver((function(){f((function(t){return document&&document.title!==t?document.title:t}))}));return t.observe(document.head.querySelector("title"),{childList:!0}),function(){t.disconnect()}}),[]),o((function(){if(null!=u&&u.restoreOnUnmount)return function(){document.title=i.current}}),[]),{value:m,set:d}}export{r as useDocumentTitle};
3
3
  //# sourceMappingURL=useDocumentTitle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  import{useSyncExternalStore as n}from"react";var t=function(){return document.visibilityState},e=function(){return"hidden"},i=function(n){return document.addEventListener("visibilitychange",n),function(){document.removeEventListener("visibilitychange",n)}},r=function(){return n(i,t,e)};export{r as useDocumentVisibility};
3
3
  //# sourceMappingURL=useDocumentVisibility.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as t}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useIsomorphicLayoutEffect as o}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import{useRefState as n}from"../useRefState/useRefState.js";var s=function(){var s=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=t({width:0,height:0}),h=e(u,2),f=h[0],a=h[1],l=n();return o((function(){var e=s?r(s):l.current;if(e){var t=e.getBoundingClientRect(),i=t.width,o=t.height;a({width:i,height:o});var n=new ResizeObserver((function(){var t=e.getBoundingClientRect(),r=t.width,i=t.height;a({width:r,height:i})}));return n.observe(e),function(){n.disconnect()}}}),[l.current,s]),s?{value:f}:{ref:l,value:f}};export{s as useElementSize};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as t}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useIsomorphicLayoutEffect as o}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import{useRefState as n}from"../useRefState/useRefState.js";var s=function(){var s=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=t({width:0,height:0}),h=e(u,2),f=h[0],a=h[1],l=n();return o((function(){var e=s?r(s):l.current;if(e){var t=e.getBoundingClientRect(),i=t.width,o=t.height;a({width:i,height:o});var n=new ResizeObserver((function(){var t=e.getBoundingClientRect(),r=t.width,i=t.height;a({width:r,height:i})}));return n.observe(e),function(){n.disconnect()}}}),[l.current,s]),s?{value:f}:{ref:l,value:f}};export{s as useElementSize};
3
3
  //# sourceMappingURL=useElementSize.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
2
  import{useRef as r,useCallback as t}from"react";var n=function(n){var e=r(n);return e.current=n,t((function(){return e.current.apply(void 0,arguments)}),[])};export{n as useEvent};
3
3
  //# sourceMappingURL=useEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{useEffect as e}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{useEvent as n}from"../useEvent/useEvent.js";import{useRefState as r}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-hUSWuNSL.js";var o=function(){var o=(arguments.length<=1?void 0:arguments[1])instanceof Function||arguments.length<=0?void 0:arguments[0],i=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],u=Array.isArray(i)?i:[i],f=o?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=o?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],l=r(window),s=n(f);if(e((function(){var e=o?t(o):l.current;if(e){var n=function(e){return s(e)};return u.forEach((function(t){return e.addEventListener(t,n,v)})),function(){u.forEach((function(t){return e.removeEventListener(t,n,v)}))}}}),[o,l.state,i,v]),!o)return l};export{o as useEventListener};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{useEffect as e}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{useEvent as n}from"../useEvent/useEvent.js";import{useRefState as r}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var o=function(){var o=(arguments.length<=1?void 0:arguments[1])instanceof Function||arguments.length<=0?void 0:arguments[0],i=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],u=Array.isArray(i)?i:[i],f=o?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=o?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],l=r(window),s=n(f);if(e((function(){var e=o?t(o):l.current;if(e){var n=function(e){return s(e)};return u.forEach((function(t){return e.addEventListener(t,n,v)})),function(){u.forEach((function(t){return e.removeEventListener(t,n,v)}))}}}),[o,l.state,i,v]),!o)return l};export{o as useEventListener};
3
3
  //# sourceMappingURL=useEventListener.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as r,d as e,e as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as o}from"react";var t=function(){var t="undefined"!=typeof window&&"EyeDropper"in window,p=o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),a=r(p,2),i=a[0],u=a[1],s=function(){var r=e(n().mark((function r(e){var o,t;return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(window.EyeDropper){r.next=2;break}throw new Error("EyeDropper is not supported");case 2:return o=new window.EyeDropper,r.next=5,o.open(e);case 5:return t=r.sent,u(t.sRGBHex),r.abrupt("return",t);case 8:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{supported:t,value:i,open:s}};export{t as useEyeDropper};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as r,d as e,e as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o}from"react";var t=function(){var t="undefined"!=typeof window&&"EyeDropper"in window,p=o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),a=r(p,2),i=a[0],u=a[1],s=function(){var r=e(n().mark((function r(e){var o,t;return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(window.EyeDropper){r.next=2;break}throw new Error("EyeDropper is not supported");case 2:return o=new window.EyeDropper,r.next=5,o.open(e);case 5:return t=r.sent,u(t.sRGBHex),r.abrupt("return",t);case 8:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{supported:t,value:i,open:s}};export{t as useEyeDropper};
3
3
  //# sourceMappingURL=useEyeDropper.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useState as o}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import{useMount as r}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var n=function(n){var u,i=o(null!=n?n:null===(u=document.querySelector('link[rel*="icon"]'))||void 0===u?void 0:u.href),c=e(i,2),l=c[0],p=c[1],m=function(e){var o=document.querySelector('link[rel*="icon"]')||document.createElement("link");o.rel="icon",o.href=e,o.type="image/".concat(e.split(".").pop()),document.head.append(o)};return r((function(){n&&m(n)})),t((function(){n&&(p(n),m(n))}),[n]),{href:l,set:function(e){p(e),m(e)}}};export{n as useFavicon};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import{useMount as r}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var n=function(n){var u,i=o(null!=n?n:null===(u=document.querySelector('link[rel*="icon"]'))||void 0===u?void 0:u.href),c=e(i,2),l=c[0],p=c[1],m=function(e){var o=document.querySelector('link[rel*="icon"]')||document.createElement("link");o.rel="icon",o.href=e,o.type="image/".concat(e.split(".").pop()),document.head.append(o)};return r((function(){n&&m(n)})),t((function(){n&&(p(n),m(n))}),[n]),{href:l,set:function(e){p(e),m(e)}}};export{n as useFavicon};
3
3
  //# sourceMappingURL=useFavicon.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.100 */
2
- import{_ as e,d as r,e as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";import{useRef as t,useState as u}from"react";import{useRerender as i}from"../useRerender/useRerender.js";var a=function(a){var l,c,o=null!==(l=null==a?void 0:a.initialValue)&&void 0!==l?l:"",v=t(null),d=t(!1),f=i(),s=u(!1),m=e(s,2),p=m[0],h=m[1],g=u(null!==(c=null==a?void 0:a.initialTouched)&&void 0!==c&&c),x=e(g,2),k=x[0],b=x[1],y=u(void 0),L=e(y,2),V=L[0],w=L[1],B=function(){var e,r,n,t;return"radio"===(null===(e=v.current)||void 0===e?void 0:e.type)||"checkbox"===(null===(r=v.current)||void 0===r?void 0:r.type)?v.current.checked:null!==(n=null===(t=v.current)||void 0===t?void 0:t.value)&&void 0!==n?n:o},C=function(e){var r,n;return"radio"===(null===(r=v.current)||void 0===r?void 0:r.type)||"checkbox"===(null===(n=v.current)||void 0===n?void 0:n.type)?(v.current.checked=e,d.current?f():void 0):(v.current.value=e,d.current?f():void 0)},O=function(e){if(e.required&&!v.current.value)return w(e.required);if(e.minLength&&v.current.value.length<e.minLength.value)return w(e.minLength.message);if(e.maxLength&&v.current.value.length>e.maxLength.value)return w(e.maxLength.message);if(e.min&&Number(v.current.value)<e.min.value)return w(e.min.message);if(e.max&&Number(v.current.value)>e.max.value)return w(e.max.message);if(e.pattern&&!e.pattern.value.test(v.current.value))return w(e.pattern.message);if(e.validate){var r=e.validate(v.current.value);if("string"==typeof r)return w(r)}w(void 0)};return{register:function(e){return{ref:function(r){if(!v.current&&r){if(null!=a&&a.autoFocus&&r.focus(),v.current=r,"radio"===v.current.type)return void(v.current.defaultChecked=(null==a?void 0:a.initialValue)===r.value);if("checkbox"===v.current.type)return void(v.current.defaultChecked=!(null==a||!a.initialValue));v.current.defaultValue=String(o),e&&null!=a&&a.validateOnMount&&O(e)}},onChange:(u=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!d.current){r.next=2;break}return r.abrupt("return",f());case 2:if(v.current.value!==o&&h(!0),p&&v.current.value===o&&h(!1),!e||null==a||!a.validateOnChange){r.next=7;break}return r.next=7,O(e);case 7:e&&null!=a&&a.validateOnBlur&&w(void 0);case 8:case"end":return r.stop()}}),r)}))),function(){return u.apply(this,arguments)}),onBlur:(t=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||null==a||!a.validateOnBlur){r.next=3;break}return r.next=3,O(e);case 3:b(!0);case 4:case"end":return r.stop()}}),r)}))),function(){return t.apply(this,arguments)})};var t,u},dirty:p,touched:k,error:V,setError:w,clearError:function(){return w(void 0)},getValue:B,setValue:C,reset:function(){C(o),h(!1),b(!1),w(void 0)},watch:function(){return d.current=!0,B()},focus:function(){v.current.focus()}}};export{a as useField};
1
+ /* @license @siberiacancode/reactuse v0.0.102 */
2
+ import{_ as e,d as r,e as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as t,useState as u}from"react";import{useRerender as i}from"../useRerender/useRerender.js";var a=function(a){var l,c,o=null!==(l=null==a?void 0:a.initialValue)&&void 0!==l?l:"",v=t(null),d=t(!1),f=i(),s=u(!1),m=e(s,2),p=m[0],h=m[1],g=u(null!==(c=null==a?void 0:a.initialTouched)&&void 0!==c&&c),x=e(g,2),k=x[0],b=x[1],y=u(void 0),L=e(y,2),V=L[0],w=L[1],B=function(){var e,r,n,t;return"radio"===(null===(e=v.current)||void 0===e?void 0:e.type)||"checkbox"===(null===(r=v.current)||void 0===r?void 0:r.type)?v.current.checked:null!==(n=null===(t=v.current)||void 0===t?void 0:t.value)&&void 0!==n?n:o},C=function(e){var r,n;return"radio"===(null===(r=v.current)||void 0===r?void 0:r.type)||"checkbox"===(null===(n=v.current)||void 0===n?void 0:n.type)?(v.current.checked=e,d.current?f():void 0):(v.current.value=e,d.current?f():void 0)},O=function(e){if(e.required&&!v.current.value)return w(e.required);if(e.minLength&&v.current.value.length<e.minLength.value)return w(e.minLength.message);if(e.maxLength&&v.current.value.length>e.maxLength.value)return w(e.maxLength.message);if(e.min&&Number(v.current.value)<e.min.value)return w(e.min.message);if(e.max&&Number(v.current.value)>e.max.value)return w(e.max.message);if(e.pattern&&!e.pattern.value.test(v.current.value))return w(e.pattern.message);if(e.validate){var r=e.validate(v.current.value);if("string"==typeof r)return w(r)}w(void 0)};return{register:function(e){return{ref:function(r){if(!v.current&&r){if(null!=a&&a.autoFocus&&r.focus(),v.current=r,"radio"===v.current.type)return void(v.current.defaultChecked=(null==a?void 0:a.initialValue)===r.value);if("checkbox"===v.current.type)return void(v.current.defaultChecked=!(null==a||!a.initialValue));v.current.defaultValue=String(o),e&&null!=a&&a.validateOnMount&&O(e)}},onChange:(u=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!d.current){r.next=2;break}return r.abrupt("return",f());case 2:if(v.current.value!==o&&h(!0),p&&v.current.value===o&&h(!1),!e||null==a||!a.validateOnChange){r.next=7;break}return r.next=7,O(e);case 7:e&&null!=a&&a.validateOnBlur&&w(void 0);case 8:case"end":return r.stop()}}),r)}))),function(){return u.apply(this,arguments)}),onBlur:(t=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||null==a||!a.validateOnBlur){r.next=3;break}return r.next=3,O(e);case 3:b(!0);case 4:case"end":return r.stop()}}),r)}))),function(){return t.apply(this,arguments)})};var t,u},dirty:p,touched:k,error:V,setError:w,clearError:function(){return w(void 0)},getValue:B,setValue:C,reset:function(){C(o),h(!1),b(!1),w(void 0)},watch:function(){return d.current=!0,B()},focus:function(){v.current.focus()}}};export{a as useField};
3
3
  //# sourceMappingURL=useField.js.map