@siberiacancode/reactuse 0.0.95 → 0.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{_rollupPluginBabelHelpers-DIvgGtEH.js → _rollupPluginBabelHelpers-B6-9bMtn.js} +3 -3
- package/dist/cjs/_rollupPluginBabelHelpers-B6-9bMtn.js.map +1 -0
- package/dist/cjs/hooks/index.js +2 -2
- package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
- package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
- package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
- package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
- package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
- package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
- package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js.map +1 -1
- package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
- package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
- package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
- package/dist/cjs/hooks/useConst/useConst.js +1 -1
- package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
- package/dist/cjs/hooks/useCookie/useCookie.js.map +1 -1
- package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
- package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
- package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +2 -2
- package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
- package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
- package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
- package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js.map +1 -1
- package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
- package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
- package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
- package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
- package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
- package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
- package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
- package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
- package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
- package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
- package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
- package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
- package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
- package/dist/cjs/hooks/useField/useField.js +2 -2
- package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
- package/dist/cjs/hooks/useFileDialog/useFileDialog.js.map +1 -1
- package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
- package/dist/cjs/hooks/useFps/useFps.js +2 -2
- package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
- package/dist/cjs/hooks/useGamepad/helpers/index.js +1 -1
- package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
- package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
- package/dist/cjs/hooks/useGamepad/useGamepad.js.map +1 -1
- package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
- package/dist/cjs/hooks/useHash/useHash.js +2 -2
- package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
- package/dist/cjs/hooks/useHover/useHover.js +2 -2
- package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
- package/dist/cjs/hooks/useImage/useImage.js +2 -2
- package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
- package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
- package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
- package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
- package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
- package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
- package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js.map +1 -1
- package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
- package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
- package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
- package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
- package/dist/cjs/hooks/useList/useList.js +2 -2
- package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
- package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
- package/dist/cjs/hooks/useLongPress/useLongPress.js.map +1 -1
- package/dist/cjs/hooks/useMap/useMap.js +2 -2
- package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
- package/dist/cjs/hooks/useMeasure/useMeasure.js.map +1 -1
- package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
- package/dist/cjs/hooks/useMount/useMount.js +1 -1
- package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
- package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
- package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
- package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
- package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
- package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
- package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
- package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
- package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
- package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
- package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
- package/dist/cjs/hooks/usePaint/helpers/Paint.js +2 -2
- package/dist/cjs/hooks/usePaint/helpers/Paint.js.map +1 -1
- package/dist/cjs/hooks/usePaint/helpers/index.js +3 -0
- package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
- package/dist/cjs/hooks/usePaint/usePaint.js.map +1 -1
- package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
- package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
- package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
- package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
- package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
- package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
- package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
- package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
- package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
- package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
- package/dist/cjs/hooks/useQuery/useQuery.js.map +1 -1
- package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
- package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
- package/dist/cjs/hooks/useRaf/useRaf.js.map +1 -1
- package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
- package/dist/cjs/hooks/useRefState/useRefState.js +2 -2
- package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
- package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
- package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
- package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
- package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
- package/dist/cjs/hooks/useScript/useScript.js +2 -2
- package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
- package/dist/cjs/hooks/useScroll/useScroll.js.map +1 -1
- package/dist/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
- package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
- package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
- package/dist/cjs/hooks/useSet/useSet.js +2 -2
- package/dist/cjs/hooks/useShare/useShare.js +2 -2
- package/dist/cjs/hooks/useStateHistory/useStateHistory.js +2 -2
- package/dist/cjs/hooks/useStep/useStep.js +2 -2
- package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
- package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
- package/dist/cjs/hooks/useStorage/useStorage.js.map +1 -1
- package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
- package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
- package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +2 -2
- package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
- package/dist/cjs/hooks/useTime/useTime.js +2 -2
- package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
- package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
- package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
- package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
- package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
- package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
- package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
- package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
- package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
- package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
- package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
- package/dist/cjs/hooks/useWizard/useWizard.js.map +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/utils/helpers/cookie.js +3 -0
- package/dist/cjs/utils/helpers/cookie.js.map +1 -0
- package/dist/cjs/utils/helpers/debounce.js +1 -1
- package/dist/cjs/utils/helpers/getDate.js +1 -1
- package/dist/cjs/utils/helpers/getElement.js +1 -1
- package/dist/cjs/utils/helpers/getRetry.js +1 -1
- package/dist/cjs/utils/helpers/index.js +2 -2
- package/dist/cjs/utils/helpers/isTarget.js +2 -2
- package/dist/cjs/utils/helpers/throttle.js +1 -1
- package/dist/esm/{_rollupPluginBabelHelpers-iXwxU9oY.js → _rollupPluginBabelHelpers-WrSliisk.js} +3 -3
- package/dist/esm/_rollupPluginBabelHelpers-WrSliisk.js.map +1 -0
- package/dist/esm/hooks/index.js +2 -2
- package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
- package/dist/esm/hooks/useAsync/useAsync.js +2 -2
- package/dist/esm/hooks/useBattery/useBattery.js +2 -2
- package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
- package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
- package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
- package/dist/esm/hooks/useBreakpoints/useBreakpoints.js.map +1 -1
- package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
- package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
- package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
- package/dist/esm/hooks/useConst/useConst.js +1 -1
- package/dist/esm/hooks/useCookie/useCookie.js +2 -2
- package/dist/esm/hooks/useCookie/useCookie.js.map +1 -1
- package/dist/esm/hooks/useCounter/useCounter.js +2 -2
- package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
- package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +2 -2
- package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
- package/dist/esm/hooks/useDefault/useDefault.js +2 -2
- package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
- package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
- package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
- package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
- package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
- package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
- package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
- package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
- package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
- package/dist/esm/hooks/useEvent/useEvent.js +1 -1
- package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
- package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
- package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
- package/dist/esm/hooks/useField/useField.js +2 -2
- package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
- package/dist/esm/hooks/useFileDialog/useFileDialog.js.map +1 -1
- package/dist/esm/hooks/useFocus/useFocus.js +2 -2
- package/dist/esm/hooks/useFps/useFps.js +2 -2
- package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
- package/dist/esm/hooks/useGamepad/helpers/index.js +1 -1
- package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
- package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
- package/dist/esm/hooks/useGamepad/useGamepad.js.map +1 -1
- package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
- package/dist/esm/hooks/useHash/useHash.js +2 -2
- package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
- package/dist/esm/hooks/useHover/useHover.js +2 -2
- package/dist/esm/hooks/useIdle/useIdle.js +2 -2
- package/dist/esm/hooks/useImage/useImage.js +2 -2
- package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
- package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
- package/dist/esm/hooks/useInterval/useInterval.js +2 -2
- package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
- package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
- package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
- package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
- package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
- package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
- package/dist/esm/hooks/useLatest/useLatest.js +1 -1
- package/dist/esm/hooks/useList/useList.js +2 -2
- package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/esm/hooks/useLogger/useLogger.js +2 -2
- package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
- package/dist/esm/hooks/useLongPress/useLongPress.js.map +1 -1
- package/dist/esm/hooks/useMap/useMap.js +2 -2
- package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
- package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/esm/hooks/useMemory/useMemory.js +2 -2
- package/dist/esm/hooks/useMount/useMount.js +1 -1
- package/dist/esm/hooks/useMouse/useMouse.js +2 -2
- package/dist/esm/hooks/useMutation/useMutation.js +2 -2
- package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
- package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
- package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
- package/dist/esm/hooks/useOnline/useOnline.js +1 -1
- package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
- package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
- package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
- package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
- package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
- package/dist/esm/hooks/usePaint/helpers/Paint.js +2 -2
- package/dist/esm/hooks/usePaint/helpers/Paint.js.map +1 -1
- package/dist/esm/hooks/usePaint/helpers/index.js +3 -0
- package/dist/esm/hooks/usePaint/usePaint.js +2 -2
- package/dist/esm/hooks/usePaint/usePaint.js.map +1 -1
- package/dist/esm/hooks/useParallax/useParallax.js +2 -2
- package/dist/esm/hooks/usePermission/usePermission.js +2 -2
- package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
- package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
- package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
- package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
- package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
- package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
- package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
- package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/esm/hooks/useQuery/useQuery.js +2 -2
- package/dist/esm/hooks/useQuery/useQuery.js.map +1 -1
- package/dist/esm/hooks/useQueue/useQueue.js +2 -2
- package/dist/esm/hooks/useRaf/useRaf.js +2 -2
- package/dist/esm/hooks/useRaf/useRaf.js.map +1 -1
- package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
- package/dist/esm/hooks/useRefState/useRefState.js +2 -2
- package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
- package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
- package/dist/esm/hooks/useRerender/useRerender.js +1 -1
- package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
- package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
- package/dist/esm/hooks/useScript/useScript.js +2 -2
- package/dist/esm/hooks/useScroll/useScroll.js +2 -2
- package/dist/esm/hooks/useScroll/useScroll.js.map +1 -1
- package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
- package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
- package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
- package/dist/esm/hooks/useSet/useSet.js +2 -2
- package/dist/esm/hooks/useShare/useShare.js +2 -2
- package/dist/esm/hooks/useStateHistory/useStateHistory.js +2 -2
- package/dist/esm/hooks/useStep/useStep.js +2 -2
- package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
- package/dist/esm/hooks/useStorage/useStorage.js +2 -2
- package/dist/esm/hooks/useStorage/useStorage.js.map +1 -1
- package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
- package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
- package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +2 -2
- package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
- package/dist/esm/hooks/useTime/useTime.js +2 -2
- package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
- package/dist/esm/hooks/useTimer/useTimer.js +2 -2
- package/dist/esm/hooks/useToggle/useToggle.js +2 -2
- package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
- package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
- package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
- package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
- package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
- package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
- package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
- package/dist/esm/hooks/useWizard/useWizard.js +2 -2
- package/dist/esm/hooks/useWizard/useWizard.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/utils/helpers/cookie.js +3 -0
- package/dist/esm/utils/helpers/cookie.js.map +1 -0
- package/dist/esm/utils/helpers/debounce.js +1 -1
- package/dist/esm/utils/helpers/getDate.js +1 -1
- package/dist/esm/utils/helpers/getElement.js +1 -1
- package/dist/esm/utils/helpers/getRetry.js +1 -1
- package/dist/esm/utils/helpers/index.js +2 -2
- package/dist/esm/utils/helpers/isTarget.js +2 -2
- package/dist/esm/utils/helpers/throttle.js +1 -1
- package/dist/types/index.d.ts +74 -94
- package/package.json +91 -91
- package/dist/cjs/_rollupPluginBabelHelpers-DIvgGtEH.js.map +0 -1
- package/dist/cjs/hooks/useBreakpoints/helpers/breakpoints.js +0 -3
- package/dist/cjs/hooks/useBreakpoints/helpers/breakpoints.js.map +0 -1
- package/dist/cjs/hooks/useBreakpoints/helpers/index.js +0 -3
- package/dist/cjs/hooks/useCookie/helpers/clearCookies.js +0 -3
- package/dist/cjs/hooks/useCookie/helpers/clearCookies.js.map +0 -1
- package/dist/cjs/hooks/useCookie/helpers/getCookies.js +0 -3
- package/dist/cjs/hooks/useCookie/helpers/getCookies.js.map +0 -1
- package/dist/cjs/hooks/useCookie/helpers/index.js +0 -3
- package/dist/cjs/hooks/useCookie/helpers/removeCookie.js +0 -3
- package/dist/cjs/hooks/useCookie/helpers/removeCookie.js.map +0 -1
- package/dist/cjs/hooks/useCookie/helpers/setCookie.js +0 -3
- package/dist/cjs/hooks/useCookie/helpers/setCookie.js.map +0 -1
- package/dist/cjs/hooks/useCookies/useCookies.js +0 -3
- package/dist/cjs/hooks/useCookies/useCookies.js.map +0 -1
- package/dist/cjs/hooks/usePaint/helpers/Pointer.js +0 -3
- package/dist/cjs/hooks/usePaint/helpers/Pointer.js.map +0 -1
- package/dist/esm/_rollupPluginBabelHelpers-iXwxU9oY.js.map +0 -1
- package/dist/esm/hooks/useBreakpoints/helpers/breakpoints.js +0 -3
- package/dist/esm/hooks/useBreakpoints/helpers/breakpoints.js.map +0 -1
- package/dist/esm/hooks/useBreakpoints/helpers/index.js +0 -3
- package/dist/esm/hooks/useBreakpoints/helpers/index.js.map +0 -1
- package/dist/esm/hooks/useCookie/helpers/clearCookies.js +0 -3
- package/dist/esm/hooks/useCookie/helpers/clearCookies.js.map +0 -1
- package/dist/esm/hooks/useCookie/helpers/getCookies.js +0 -3
- package/dist/esm/hooks/useCookie/helpers/getCookies.js.map +0 -1
- package/dist/esm/hooks/useCookie/helpers/index.js +0 -3
- package/dist/esm/hooks/useCookie/helpers/index.js.map +0 -1
- package/dist/esm/hooks/useCookie/helpers/removeCookie.js +0 -3
- package/dist/esm/hooks/useCookie/helpers/removeCookie.js.map +0 -1
- package/dist/esm/hooks/useCookie/helpers/setCookie.js +0 -3
- package/dist/esm/hooks/useCookie/helpers/setCookie.js.map +0 -1
- package/dist/esm/hooks/useCookies/useCookies.js +0 -3
- package/dist/esm/hooks/useCookies/useCookies.js.map +0 -1
- package/dist/esm/hooks/usePaint/helpers/Pointer.js +0 -3
- package/dist/esm/hooks/usePaint/helpers/Pointer.js.map +0 -1
- /package/dist/cjs/hooks/{useBreakpoints → usePaint}/helpers/index.js.map +0 -0
- /package/dist/{cjs/hooks/useCookie → esm/hooks/usePaint}/helpers/index.js.map +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { DependencyList, RefObject, Dispatch, SetStateAction, EffectCallback, ComponentProps, useEffect, MouseEventHandler, TouchEventHandler, MouseEvent as MouseEvent$1 } from 'react';
|
|
3
|
+
import { RemoveCookieParams as RemoveCookieParams$1, SetCookieParams as SetCookieParams$1 } from '@/utils/helpers';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @name useActiveElement
|
|
@@ -133,6 +134,51 @@ type UseBooleanReturn = [
|
|
|
133
134
|
*/
|
|
134
135
|
declare const useBoolean: (initialValue?: boolean) => UseBooleanReturn;
|
|
135
136
|
|
|
137
|
+
/** The breakpoints type */
|
|
138
|
+
type Breakpoints<Breakpoint extends string = string> = Record<Breakpoint, number>;
|
|
139
|
+
/** The use breakpoints strategy */
|
|
140
|
+
type UseBreakpointsStrategy = 'desktop-first' | 'mobile-first';
|
|
141
|
+
/** The use breakpoints return type */
|
|
142
|
+
type UseBreakpointsReturn<Breakpoint extends string = string> = {
|
|
143
|
+
/** The function that checks if the current breakpoint is greater than to the given breakpoint */
|
|
144
|
+
greater: (breakpoint: Breakpoint) => boolean;
|
|
145
|
+
/** The function that checks if the current breakpoint is greater than or equal to the given breakpoint */
|
|
146
|
+
greaterOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
147
|
+
/** The function that checks if the current breakpoint is smaller than to the given breakpoint */
|
|
148
|
+
smaller: (breakpoint: Breakpoint) => boolean;
|
|
149
|
+
/** The function that checks if the current breakpoint is smaller than or equal to the given breakpoint */
|
|
150
|
+
smallerOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
151
|
+
/** The function that checks if the current breakpoint is between to the given breakpoints */
|
|
152
|
+
between: (a: Breakpoint, b: Breakpoint) => boolean;
|
|
153
|
+
/** The function that checks if the current breakpoint is greater than to the given breakpoint */
|
|
154
|
+
isGreater: (breakpoint: Breakpoint) => boolean;
|
|
155
|
+
/** The function that checks if the current breakpoint is greater than or equal to the given breakpoint */
|
|
156
|
+
isGreaterOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
157
|
+
/** The function that checks if the current breakpoint is smaller than to the given breakpoint */
|
|
158
|
+
isSmaller: (breakpoint: Breakpoint) => boolean;
|
|
159
|
+
/** The function that checks if the current breakpoint is smaller than or equal to the given breakpoint */
|
|
160
|
+
isSmallerOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
161
|
+
/** The function that checks if the current breakpoint is between to the given breakpoints */
|
|
162
|
+
isInBetween: (a: Breakpoint, b: Breakpoint) => boolean;
|
|
163
|
+
/** The function that returns the current breakpoints */
|
|
164
|
+
current: () => Breakpoint[];
|
|
165
|
+
/** The function that returns the current active breakpoint */
|
|
166
|
+
active: () => Breakpoint;
|
|
167
|
+
} & Record<Breakpoint, boolean>;
|
|
168
|
+
/**
|
|
169
|
+
* @name useBreakpoints
|
|
170
|
+
* @description - Hook that manages breakpoints
|
|
171
|
+
* @category Browser
|
|
172
|
+
*
|
|
173
|
+
* @template {string} Breakpoint The name of the breakpoint
|
|
174
|
+
* @param {Breakpoints<Breakpoint>} breakpoints The breakpoints to use
|
|
175
|
+
* @param {UseBreakpointsStrategy} [strategy=min-width] The strategy to use for matching
|
|
176
|
+
* @returns {UseBreakpointsReturn<Breakpoint>} An object containing the current breakpoint
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* const { greaterOrEqual, smallerOrEqual, current } = useBreakpoints({ mobile: 0, tablet: 640, laptop: 1024, desktop: 1280 });
|
|
180
|
+
*/
|
|
181
|
+
declare const useBreakpoints: <Breakpoint extends string>(breakpoints: Breakpoints<Breakpoint>, strategy?: UseBreakpointsStrategy) => UseBreakpointsReturn<Breakpoint>;
|
|
136
182
|
/** Breakpoints from Material UI */
|
|
137
183
|
declare const BREAKPOINTS_MATERIAL_UI: {
|
|
138
184
|
xs: number;
|
|
@@ -214,52 +260,6 @@ declare const BREAKPOINTS_PRIME_FLEX: {
|
|
|
214
260
|
xl: number;
|
|
215
261
|
};
|
|
216
262
|
|
|
217
|
-
/** The breakpoints type */
|
|
218
|
-
type Breakpoints<Breakpoint extends string = string> = Record<Breakpoint, number>;
|
|
219
|
-
/** The use breakpoints strategy */
|
|
220
|
-
type UseBreakpointsStrategy = 'desktop-first' | 'mobile-first';
|
|
221
|
-
/** The use breakpoints return type */
|
|
222
|
-
type UseBreakpointsReturn<Breakpoint extends string = string> = {
|
|
223
|
-
/** The function that checks if the current breakpoint is greater than to the given breakpoint */
|
|
224
|
-
greater: (breakpoint: Breakpoint) => boolean;
|
|
225
|
-
/** The function that checks if the current breakpoint is greater than or equal to the given breakpoint */
|
|
226
|
-
greaterOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
227
|
-
/** The function that checks if the current breakpoint is smaller than to the given breakpoint */
|
|
228
|
-
smaller: (breakpoint: Breakpoint) => boolean;
|
|
229
|
-
/** The function that checks if the current breakpoint is smaller than or equal to the given breakpoint */
|
|
230
|
-
smallerOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
231
|
-
/** The function that checks if the current breakpoint is between to the given breakpoints */
|
|
232
|
-
between: (a: Breakpoint, b: Breakpoint) => boolean;
|
|
233
|
-
/** The function that checks if the current breakpoint is greater than to the given breakpoint */
|
|
234
|
-
isGreater: (breakpoint: Breakpoint) => boolean;
|
|
235
|
-
/** The function that checks if the current breakpoint is greater than or equal to the given breakpoint */
|
|
236
|
-
isGreaterOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
237
|
-
/** The function that checks if the current breakpoint is smaller than to the given breakpoint */
|
|
238
|
-
isSmaller: (breakpoint: Breakpoint) => boolean;
|
|
239
|
-
/** The function that checks if the current breakpoint is smaller than or equal to the given breakpoint */
|
|
240
|
-
isSmallerOrEqual: (breakpoint: Breakpoint) => boolean;
|
|
241
|
-
/** The function that checks if the current breakpoint is between to the given breakpoints */
|
|
242
|
-
isInBetween: (a: Breakpoint, b: Breakpoint) => boolean;
|
|
243
|
-
/** The function that returns the current breakpoints */
|
|
244
|
-
current: () => Breakpoint[];
|
|
245
|
-
/** The function that returns the current active breakpoint */
|
|
246
|
-
active: () => Breakpoint;
|
|
247
|
-
} & Record<Breakpoint, boolean>;
|
|
248
|
-
/**
|
|
249
|
-
* @name useBreakpoints
|
|
250
|
-
* @description - Hook that manages breakpoints
|
|
251
|
-
* @category Browser
|
|
252
|
-
*
|
|
253
|
-
* @template {string} Breakpoint The name of the breakpoint
|
|
254
|
-
* @param {Breakpoints<Breakpoint>} breakpoints The breakpoints to use
|
|
255
|
-
* @param {UseBreakpointsStrategy} [strategy=min-width] The strategy to use for matching
|
|
256
|
-
* @returns {UseBreakpointsReturn<Breakpoint>} An object containing the current breakpoint
|
|
257
|
-
*
|
|
258
|
-
* @example
|
|
259
|
-
* const { greaterOrEqual, smallerOrEqual, current } = useBreakpoints({ mobile: 0, tablet: 640, laptop: 1024, desktop: 1280 });
|
|
260
|
-
*/
|
|
261
|
-
declare const useBreakpoints: <Breakpoint extends string>(breakpoints: Breakpoints<Breakpoint>, strategy?: UseBreakpointsStrategy) => UseBreakpointsReturn<Breakpoint>;
|
|
262
|
-
|
|
263
263
|
/**
|
|
264
264
|
* @name useBrowserLanguage
|
|
265
265
|
* @description - Hook that returns the current browser language
|
|
@@ -364,25 +364,6 @@ declare const useClipboard: (params?: UseCopyToClipboardParams) => UseCopyToClip
|
|
|
364
364
|
*/
|
|
365
365
|
declare const useConst: <Value>(initialValue: (() => Value) | Value) => Value;
|
|
366
366
|
|
|
367
|
-
interface RemoveCookieParams {
|
|
368
|
-
domain?: string;
|
|
369
|
-
expires?: Date;
|
|
370
|
-
maxAge?: number;
|
|
371
|
-
path?: string;
|
|
372
|
-
sameSite?: 'Lax' | 'None' | 'Strict';
|
|
373
|
-
secure?: boolean;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
interface SetCookieParams {
|
|
377
|
-
domain?: string;
|
|
378
|
-
expires?: Date;
|
|
379
|
-
httpOnly?: boolean;
|
|
380
|
-
maxAge?: number;
|
|
381
|
-
path?: string;
|
|
382
|
-
sameSite?: 'Lax' | 'None' | 'Strict';
|
|
383
|
-
secure?: boolean;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
367
|
type UseCookieInitialValue<Value> = (() => Value) | Value;
|
|
387
368
|
interface UseCookieOptions<Value> {
|
|
388
369
|
initialValue?: UseCookieInitialValue<Value>;
|
|
@@ -391,8 +372,8 @@ interface UseCookieOptions<Value> {
|
|
|
391
372
|
}
|
|
392
373
|
interface UseCookieReturn<Value> {
|
|
393
374
|
value: Value;
|
|
394
|
-
remove: (options?: RemoveCookieParams) => void;
|
|
395
|
-
set: (value: Value, options?: SetCookieParams) => void;
|
|
375
|
+
remove: (options?: RemoveCookieParams$1) => void;
|
|
376
|
+
set: (value: Value, options?: SetCookieParams$1) => void;
|
|
396
377
|
}
|
|
397
378
|
declare const COOKIE_EVENT = "reactuse-cookie";
|
|
398
379
|
declare const dispatchCookieEvent: () => boolean;
|
|
@@ -412,31 +393,8 @@ declare const dispatchCookieEvent: () => boolean;
|
|
|
412
393
|
*/
|
|
413
394
|
declare const useCookie: <Value>(key: string, params?: UseCookieInitialValue<Value> | UseCookieOptions<Value>) => {
|
|
414
395
|
value: Value | undefined;
|
|
415
|
-
set: (value: Value, options?: SetCookieParams) => void;
|
|
416
|
-
remove: (options?: RemoveCookieParams) => void;
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* @name useCookies
|
|
421
|
-
* @description - Hook that manages cookie values
|
|
422
|
-
* @category Browser
|
|
423
|
-
*
|
|
424
|
-
* @overload
|
|
425
|
-
* @template {object} Value The type of the cookie values
|
|
426
|
-
* @param {string} key The key of the cookie
|
|
427
|
-
* @returns {UseCookieReturn<Value>} The value and the set function
|
|
428
|
-
*
|
|
429
|
-
* @example
|
|
430
|
-
* const { value, set, remove, getAll, clear } = useCookies();
|
|
431
|
-
*/
|
|
432
|
-
declare const useCookies: <Value>() => {
|
|
433
|
-
value: Value;
|
|
434
|
-
set: (key: string, value: Value, options?: SetCookieParams) => void;
|
|
435
|
-
remove: (key: string, options?: RemoveCookieParams) => void;
|
|
436
|
-
getAll: () => {
|
|
437
|
-
[k: string]: any;
|
|
438
|
-
};
|
|
439
|
-
clear: () => void;
|
|
396
|
+
set: (value: Value, options?: SetCookieParams$1) => void;
|
|
397
|
+
remove: (options?: RemoveCookieParams$1) => void;
|
|
440
398
|
};
|
|
441
399
|
|
|
442
400
|
/** The use counter options */
|
|
@@ -2582,7 +2540,6 @@ declare class Pointer implements Point {
|
|
|
2582
2540
|
equalsTo(point: Point): boolean;
|
|
2583
2541
|
moveByAngle(angle: number, distance: number): this;
|
|
2584
2542
|
}
|
|
2585
|
-
|
|
2586
2543
|
declare class Paint {
|
|
2587
2544
|
pointer: Pointer;
|
|
2588
2545
|
brush: Pointer;
|
|
@@ -3959,6 +3916,29 @@ declare const useWizard: <WizardStepId extends string>(map: WizardItem<WizardSte
|
|
|
3959
3916
|
history: WizardStepId[];
|
|
3960
3917
|
};
|
|
3961
3918
|
|
|
3919
|
+
declare const getCookies: () => {
|
|
3920
|
+
[k: string]: string;
|
|
3921
|
+
};
|
|
3922
|
+
interface RemoveCookieParams {
|
|
3923
|
+
domain?: string;
|
|
3924
|
+
expires?: Date;
|
|
3925
|
+
maxAge?: number;
|
|
3926
|
+
path?: string;
|
|
3927
|
+
sameSite?: 'Lax' | 'None' | 'Strict';
|
|
3928
|
+
secure?: boolean;
|
|
3929
|
+
}
|
|
3930
|
+
declare const removeCookie: (key: string, options?: RemoveCookieParams) => void;
|
|
3931
|
+
interface SetCookieParams {
|
|
3932
|
+
domain?: string;
|
|
3933
|
+
expires?: Date;
|
|
3934
|
+
httpOnly?: boolean;
|
|
3935
|
+
maxAge?: number;
|
|
3936
|
+
path?: string;
|
|
3937
|
+
sameSite?: 'Lax' | 'None' | 'Strict';
|
|
3938
|
+
secure?: boolean;
|
|
3939
|
+
}
|
|
3940
|
+
declare const setCookie: (key: string, value: string, options?: SetCookieParams) => void;
|
|
3941
|
+
|
|
3962
3942
|
declare function debounce<Params extends unknown[]>(callback: (...args: Params) => void, delay: number): (...args: Params) => void;
|
|
3963
3943
|
|
|
3964
3944
|
declare const getDate: (now?: Date) => {
|
|
@@ -3984,4 +3964,4 @@ declare const isTarget: (target: any) => any;
|
|
|
3984
3964
|
|
|
3985
3965
|
declare const throttle: <Params extends any[]>(callback: (...args: Params) => void, delay: number) => ((...args: Params) => void);
|
|
3986
3966
|
|
|
3987
|
-
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, type BatteryManager, type Breakpoints, COOKIE_EVENT, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, STORAGE_EVENT, type ScrollPosition, type StateRef, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCookieInitialValue, type UseCookieOptions, type UseCookieReturn, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseCssVarTarget, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDevicePixelRatioReturn, type UseDisclosureOptions, type UseDisclosureReturn, type UseDisplayMediaOptions, type UseDisplayMediaOverload, type UseDisplayMediaReturn, type UseDisplayMediaTarget, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeTarget, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFocusTarget, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseFullScreenTarget, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeys, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHotkeysTarget, type UseHover, type UseHoverOptions, type UseHoverTarget, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseInfiniteScrollTarget, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseKeysPressedParams, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasureReturn, type UseMeasureScreen, type UseMeasureTarget, type UseMemoryReturn, type UseMouse, type UseMouseReturn, type UseMouseTarget, type UseMutationObserver, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseMutationObserverTarget, type UseNetworkReturn, type UseOffsetPaginationOptions, type UseOffsetPaginationReturn, type UseOptimisticReturn, type UseOrientationReturn, type UseOtpCredential, type UseOtpCredentialCallback, type UseOtpCredentialParams, type UseOtpCredentialReturn, type UsePaint, type UsePaintOptions, type UsePaintReturn, type UsePaintTarget, type UseParallax, type UseParallaxOptions, type UseParallaxValue, type UsePermissionName, type UsePermissionOptions, type UsePermissionReturn, type UsePostMessageReturn, type UsePreferredColorSchemeReturn, type UsePreferredContrastReturn, type UsePreferredReducedMotionReturn, type UsePreviousOptions, type UseQueryOptions, type UseQueryReturn, type UseQueueReturn, type UseRafCallback, type UseRafOptions, type UseRafParams, type UseRafReturn, type UseRafValueReturn, type UseRenderInfoReturn, type UseResizeObserver, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseResizeObserverTarget, type UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollIntoViewOptions, type UseScrollIntoViewOverload, type UseScrollIntoViewReturn, type UseScrollIntoViewTarget, type UseScrollOptions, type UseScrollTarget, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseScrollToTarget, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, type UseTextDirectionTarget, type UseTextDirectionValue, type UseTextSelectionReturn, type UseTimeReturn, type UseTimer, type UseTimerOptions, type UseTimerReturn, type UseToggleReturn, type UseVibratePattern, type UseVibrateReturn, type UseWebSocketOptions, type UseWebSocketReturn, type UseWebSocketStatus, type UseWebSocketUrl, type UseWindowSizeReturn, type WizardItem, debounce, dispatchCookieEvent, dispatchStorageEvent, getConnection, getDate, getElement, getOperatingSystem, getRangesSelection, getRetry, getTimeFromSeconds, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, scrollTo, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCookie,
|
|
3967
|
+
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, type BatteryManager, type Breakpoints, COOKIE_EVENT, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, type RemoveCookieParams, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, STORAGE_EVENT, type ScrollPosition, type SetCookieParams, type StateRef, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCookieInitialValue, type UseCookieOptions, type UseCookieReturn, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseCssVarTarget, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDevicePixelRatioReturn, type UseDisclosureOptions, type UseDisclosureReturn, type UseDisplayMediaOptions, type UseDisplayMediaOverload, type UseDisplayMediaReturn, type UseDisplayMediaTarget, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeTarget, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFocusTarget, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseFullScreenTarget, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeys, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHotkeysTarget, type UseHover, type UseHoverOptions, type UseHoverTarget, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseInfiniteScrollTarget, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseKeysPressedParams, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasureReturn, type UseMeasureScreen, type UseMeasureTarget, type UseMemoryReturn, type UseMouse, type UseMouseReturn, type UseMouseTarget, type UseMutationObserver, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseMutationObserverTarget, type UseNetworkReturn, type UseOffsetPaginationOptions, type UseOffsetPaginationReturn, type UseOptimisticReturn, type UseOrientationReturn, type UseOtpCredential, type UseOtpCredentialCallback, type UseOtpCredentialParams, type UseOtpCredentialReturn, type UsePaint, type UsePaintOptions, type UsePaintReturn, type UsePaintTarget, type UseParallax, type UseParallaxOptions, type UseParallaxValue, type UsePermissionName, type UsePermissionOptions, type UsePermissionReturn, type UsePostMessageReturn, type UsePreferredColorSchemeReturn, type UsePreferredContrastReturn, type UsePreferredReducedMotionReturn, type UsePreviousOptions, type UseQueryOptions, type UseQueryReturn, type UseQueueReturn, type UseRafCallback, type UseRafOptions, type UseRafParams, type UseRafReturn, type UseRafValueReturn, type UseRenderInfoReturn, type UseResizeObserver, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseResizeObserverTarget, type UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollIntoViewOptions, type UseScrollIntoViewOverload, type UseScrollIntoViewReturn, type UseScrollIntoViewTarget, type UseScrollOptions, type UseScrollTarget, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseScrollToTarget, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, type UseTextDirectionTarget, type UseTextDirectionValue, type UseTextSelectionReturn, type UseTimeReturn, type UseTimer, type UseTimerOptions, type UseTimerReturn, type UseToggleReturn, type UseVibratePattern, type UseVibrateReturn, type UseWebSocketOptions, type UseWebSocketReturn, type UseWebSocketStatus, type UseWebSocketUrl, type UseWindowSizeReturn, type WizardItem, debounce, dispatchCookieEvent, dispatchStorageEvent, getConnection, getCookies, getDate, getElement, getOperatingSystem, getRangesSelection, getRetry, getTimeFromSeconds, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, removeCookie, scrollTo, setCookie, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCookie, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDidUpdate, useDisclosure, useDisplayMedia, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useElementSize, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFileDialog, useFocus, useFps, useFullscreen, useGamepad, useGeolocation, useHash, useHotkeys, useHover, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useLastChanged, useLatest, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useMutationObserver, useNetwork, useOffsetPagination, useOnline, useOperatingSystem, useOptimistic, useOrientation, useOtpCredential, usePageLeave, usePaint, useParallax, usePermission, usePointerLock, usePostMessage, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useQuery, useQueue, useRaf, useRafValue, useRefState, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollIntoView, useScrollTo, useSessionStorage, useSet, useShare, useStateHistory, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useThrottleCallback, useThrottleValue, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@siberiacancode/reactuse",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "The ultimate collection of react hooks",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "SIBERIA CAN CODE 🧊",
|
|
7
|
-
"url": "https://github.com/siberiacancode"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"homepage": "https://siberiacancode.github.io/reactuse/",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/siberiacancode/reactuse.git",
|
|
14
|
-
"directory": "packages/core"
|
|
15
|
-
},
|
|
16
|
-
"bugs": "https://github.com/siberiacancode/reactuse/issues",
|
|
17
|
-
"keywords": [
|
|
18
|
-
"react",
|
|
19
|
-
"react hooks",
|
|
20
|
-
"react use",
|
|
21
|
-
"use",
|
|
22
|
-
"hooks"
|
|
23
|
-
],
|
|
24
|
-
"sideEffects": false,
|
|
25
|
-
"exports": {
|
|
26
|
-
"types": "./dist/types/index.d.ts",
|
|
27
|
-
"import": "./dist/esm/index.js",
|
|
28
|
-
"require": "./dist/cjs/index.cjs"
|
|
29
|
-
},
|
|
30
|
-
"main": "dist/cjs/index.js",
|
|
31
|
-
"module": "dist/esm/index.js",
|
|
32
|
-
"types": "dist/types/index.d.ts",
|
|
33
|
-
"files": [
|
|
34
|
-
"dist"
|
|
35
|
-
],
|
|
36
|
-
"engines": {
|
|
37
|
-
"node": ">=14"
|
|
38
|
-
},
|
|
39
|
-
"publishConfig": {
|
|
40
|
-
"access": "public"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"prepublishOnly": "pnpm unit-test run && pnpm build",
|
|
44
|
-
"build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
|
|
45
|
-
"build:js": "tsc --project tsconfig.build.json",
|
|
46
|
-
"lint": "eslint . --fix",
|
|
47
|
-
"lint-inspector": "npx @eslint/config-inspector@latest",
|
|
48
|
-
"format": "prettier --write .",
|
|
49
|
-
"pretty": "pnpm lint && pnpm format",
|
|
50
|
-
"unit-test": "vitest",
|
|
51
|
-
"lint-staged": "lint-staged"
|
|
52
|
-
},
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"@types/react": "^18.0.0",
|
|
55
|
-
"react": "^17.0.2 || ^18.0.0",
|
|
56
|
-
"react-dom": "^17.0.2 || ^18.0.0"
|
|
57
|
-
},
|
|
58
|
-
"peerDependenciesMeta": {
|
|
59
|
-
"@types/react": {
|
|
60
|
-
"optional": true
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"dependencies": {
|
|
64
|
-
"screenfull": "^6.0.2"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@siberiacancode/builder": "^1.3.17",
|
|
68
|
-
"@siberiacancode/vitest": "^2.0.2",
|
|
69
|
-
"@testing-library/dom": "^10.4.0",
|
|
70
|
-
"@testing-library/react": "^16.2.0",
|
|
71
|
-
"@types/react": "^18.3.18",
|
|
72
|
-
"@types/react-dom": "^18.3.5",
|
|
73
|
-
"@types/web-bluetooth": "^0.0.20",
|
|
74
|
-
"core-js": "^3.40.0",
|
|
75
|
-
"react": "^18.3.1",
|
|
76
|
-
"react-dom": "^18.3.1",
|
|
77
|
-
"shx": "^0.3.4",
|
|
78
|
-
"vite": "^6.1.1",
|
|
79
|
-
"vitest": "^3.0.6"
|
|
80
|
-
},
|
|
81
|
-
"lint-staged": {
|
|
82
|
-
"*.js": [
|
|
83
|
-
"eslint --fix",
|
|
84
|
-
"prettier --write"
|
|
85
|
-
],
|
|
86
|
-
"*.ts": [
|
|
87
|
-
"eslint --fix",
|
|
88
|
-
"prettier --write"
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@siberiacancode/reactuse",
|
|
3
|
+
"version": "0.0.97",
|
|
4
|
+
"description": "The ultimate collection of react hooks",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "SIBERIA CAN CODE 🧊",
|
|
7
|
+
"url": "https://github.com/siberiacancode"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://siberiacancode.github.io/reactuse/",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/siberiacancode/reactuse.git",
|
|
14
|
+
"directory": "packages/core"
|
|
15
|
+
},
|
|
16
|
+
"bugs": "https://github.com/siberiacancode/reactuse/issues",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"react",
|
|
19
|
+
"react hooks",
|
|
20
|
+
"react use",
|
|
21
|
+
"use",
|
|
22
|
+
"hooks"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"exports": {
|
|
26
|
+
"types": "./dist/types/index.d.ts",
|
|
27
|
+
"import": "./dist/esm/index.js",
|
|
28
|
+
"require": "./dist/cjs/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"main": "dist/cjs/index.js",
|
|
31
|
+
"module": "dist/esm/index.js",
|
|
32
|
+
"types": "dist/types/index.d.ts",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=14"
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"prepublishOnly": "pnpm unit-test run && pnpm build",
|
|
44
|
+
"build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
|
|
45
|
+
"build:js": "tsc --project tsconfig.build.json",
|
|
46
|
+
"lint": "eslint . --fix",
|
|
47
|
+
"lint-inspector": "npx @eslint/config-inspector@latest",
|
|
48
|
+
"format": "prettier --write .",
|
|
49
|
+
"pretty": "pnpm lint && pnpm format",
|
|
50
|
+
"unit-test": "vitest",
|
|
51
|
+
"lint-staged": "lint-staged"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"@types/react": "^18.0.0",
|
|
55
|
+
"react": "^17.0.2 || ^18.0.0",
|
|
56
|
+
"react-dom": "^17.0.2 || ^18.0.0"
|
|
57
|
+
},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"@types/react": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"screenfull": "^6.0.2"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@siberiacancode/builder": "^1.3.17",
|
|
68
|
+
"@siberiacancode/vitest": "^2.0.2",
|
|
69
|
+
"@testing-library/dom": "^10.4.0",
|
|
70
|
+
"@testing-library/react": "^16.2.0",
|
|
71
|
+
"@types/react": "^18.3.18",
|
|
72
|
+
"@types/react-dom": "^18.3.5",
|
|
73
|
+
"@types/web-bluetooth": "^0.0.20",
|
|
74
|
+
"core-js": "^3.40.0",
|
|
75
|
+
"react": "^18.3.1",
|
|
76
|
+
"react-dom": "^18.3.1",
|
|
77
|
+
"shx": "^0.3.4",
|
|
78
|
+
"vite": "^6.1.1",
|
|
79
|
+
"vitest": "^3.0.6"
|
|
80
|
+
},
|
|
81
|
+
"lint-staged": {
|
|
82
|
+
"*.js": [
|
|
83
|
+
"eslint --fix",
|
|
84
|
+
"prettier --write"
|
|
85
|
+
],
|
|
86
|
+
"*.ts": [
|
|
87
|
+
"eslint --fix",
|
|
88
|
+
"prettier --write"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-DIvgGtEH.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";exports.BREAKPOINTS_ANT_DESIGN={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},exports.BREAKPOINTS_BOOTSTRAP_V5={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},exports.BREAKPOINTS_MANTINE={xs:576,sm:768,md:992,lg:1200,xl:1408},exports.BREAKPOINTS_MASTER_CSS={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},exports.BREAKPOINTS_MATERIAL_UI={xs:0,sm:600,md:900,lg:1200,xl:1536},exports.BREAKPOINTS_PRIME_FLEX={sm:576,md:768,lg:992,xl:1200},exports.BREAKPOINTS_QUASAR_V2={xs:0,sm:600,md:1024,lg:1440,xl:1920},exports.BREAKPOINTS_SEMANTIC={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},exports.BREAKPOINTS_TAILWIND={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};
|
|
3
|
-
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sources":["../../../../../src/hooks/useBreakpoints/helpers/breakpoints.ts"],"sourcesContent":["/** Breakpoints from Material UI */\nexport const BREAKPOINTS_MATERIAL_UI = {\n xs: 0,\n sm: 600,\n md: 900,\n lg: 1200,\n xl: 1536\n};\n\n/** Breakpoints from Mantine */\nexport const BREAKPOINTS_MANTINE = {\n xs: 576,\n sm: 768,\n md: 992,\n lg: 1200,\n xl: 1408\n};\n\n/** Breakpoints from Tailwind */\nexport const BREAKPOINTS_TAILWIND = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536\n};\n\n/** Breakpoints from Bootstrap V5 */\nexport const BREAKPOINTS_BOOTSTRAP_V5 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n};\n\n/** Breakpoints from Ant Design */\nexport const BREAKPOINTS_ANT_DESIGN = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1600\n};\n\n/** Breakpoints from Quasar V2 */\nexport const BREAKPOINTS_QUASAR_V2 = {\n xs: 0,\n sm: 600,\n md: 1024,\n lg: 1440,\n xl: 1920\n};\n\n/** Sematic Breakpoints */\nexport const BREAKPOINTS_SEMANTIC = {\n mobileS: 320,\n mobileM: 375,\n mobileL: 425,\n tablet: 768,\n laptop: 1024,\n laptopL: 1440,\n desktop4K: 2560\n};\n\n/** Breakpoints from Master CSS */\nexport const BREAKPOINTS_MASTER_CSS = {\n '3xs': 360,\n '2xs': 480,\n xs: 600,\n sm: 768,\n md: 1024,\n lg: 1280,\n xl: 1440,\n '2xl': 1600,\n '3xl': 1920,\n '4xl': 2560\n};\n\n/** Breakpoints from PrimeFlex */\nexport const BREAKPOINTS_PRIME_FLEX = {\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\n"],"names":["xs","sm","md","lg","xl","xxl","mobileS","mobileM","mobileL","tablet","laptop","laptopL","desktop4K"],"mappings":";4CAsCsC,CACpCA,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,IAAK,uCAhBiC,CACtCL,GAAI,EACJC,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,IAAK,kCAxB4B,CACjCL,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,qCAqDgC,CACpC,MAAO,IACP,MAAO,IACPJ,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJ,MAAO,KACP,MAAO,KACP,MAAO,sCA7E8B,CACrCJ,GAAI,EACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,qCA4EgC,CACpCH,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,oCAtC+B,CACnCJ,GAAI,EACJC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,mCAI8B,CAClCE,QAAS,IACTC,QAAS,IACTC,QAAS,IACTC,OAAQ,IACRC,OAAQ,KACRC,QAAS,KACTC,UAAW,mCA7CuB,CAClCX,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJ,MAAO"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";var A=require("./breakpoints.js");exports.BREAKPOINTS_ANT_DESIGN=A.BREAKPOINTS_ANT_DESIGN,exports.BREAKPOINTS_BOOTSTRAP_V5=A.BREAKPOINTS_BOOTSTRAP_V5,exports.BREAKPOINTS_MANTINE=A.BREAKPOINTS_MANTINE,exports.BREAKPOINTS_MASTER_CSS=A.BREAKPOINTS_MASTER_CSS,exports.BREAKPOINTS_MATERIAL_UI=A.BREAKPOINTS_MATERIAL_UI,exports.BREAKPOINTS_PRIME_FLEX=A.BREAKPOINTS_PRIME_FLEX,exports.BREAKPOINTS_QUASAR_V2=A.BREAKPOINTS_QUASAR_V2,exports.BREAKPOINTS_SEMANTIC=A.BREAKPOINTS_SEMANTIC,exports.BREAKPOINTS_TAILWIND=A.BREAKPOINTS_TAILWIND;
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";var e=require("../../../_rollupPluginBabelHelpers-DIvgGtEH.js"),o=require("./removeCookie.js");exports.clearCookies=function(){document.cookie.split("; ").forEach((function(r){var i=r.split("="),s=e._slicedToArray(i,1)[0];o.removeCookie(s)}))};
|
|
3
|
-
//# sourceMappingURL=clearCookies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clearCookies.js","sources":["../../../../../src/hooks/useCookie/helpers/clearCookies.ts"],"sourcesContent":["import { removeCookie } from './removeCookie';\n\nexport const clearCookies = () => {\n document.cookie.split('; ').forEach((cookie) => {\n const [name] = cookie.split('=');\n removeCookie(name);\n });\n};\n"],"names":["document","cookie","split","forEach","_cookie$split","name","_slicedToArray","removeCookie"],"mappings":";iIAE4B,WAC1BA,SAASC,OAAOC,MAAM,MAAMC,SAAQ,SAACF,GACnC,IAAAG,EAAeH,EAAOC,MAAM,KAArBG,EAAyBC,EAAAA,eAAAF,EAAA,GAArB,GACXG,EAAAA,aAAaF,EACf,GACF"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";var r=require("../../../_rollupPluginBabelHelpers-DIvgGtEH.js");exports.getCookies=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.fromEntries(document.cookie.split("; ").map((function(t){var n=t.split("="),o=r._toArray(n),i=o[0],u=o.slice(1);return[i,function(r){if(!e)return r;try{return JSON.parse(r)}catch(e){return r}}(decodeURIComponent(u.join("=")))]})))};
|
|
3
|
-
//# sourceMappingURL=getCookies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCookies.js","sources":["../../../../../src/hooks/useCookie/helpers/getCookies.ts"],"sourcesContent":["export const getCookies = (shouldParse = false) =>\n Object.fromEntries(\n document.cookie.split('; ').map((cookie) => {\n const [key, ...value] = cookie.split('=');\n const decodedValue = decodeURIComponent(value.join('='));\n const parse = (value: string) => {\n if (!shouldParse) return value;\n try {\n return JSON.parse(value);\n } catch {\n return value;\n }\n };\n return [key, parse(decodedValue)];\n })\n );\n"],"names":["shouldParse","arguments","length","undefined","Object","fromEntries","document","cookie","split","map","_cookie$split","_cookie$split2","_toArray","key","value","slice","JSON","parse","_unused","decodeURIComponent","join"],"mappings":";gGAA0B,WAAH,IAAIA,EAAWC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GAAQ,OAC5CG,OAAOC,YACLC,SAASC,OAAOC,MAAM,MAAMC,KAAI,SAACF,GAC/B,IAAAG,EAAwBH,EAAOC,MAAM,KAAIG,EAAAC,EAAAA,SAAAF,GAAlCG,EAAGF,EAAA,GAAKG,EAAKH,EAAAI,MAAA,GAUpB,MAAO,CAACF,EARM,SAACC,GACb,IAAKd,EAAa,OAAOc,EACzB,IACE,OAAOE,KAAKC,MAAMH,EACnB,CAAC,MAAAI,GACA,OAAOJ,CACT,CACD,CACYG,CATQE,mBAAmBL,EAAMM,KAAK,OAUrD,IACD"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";var e=require("./clearCookies.js"),o=require("./getCookies.js"),r=require("./removeCookie.js"),s=require("./setCookie.js");require("../../../_rollupPluginBabelHelpers-DIvgGtEH.js"),exports.clearCookies=e.clearCookies,exports.getCookies=o.getCookies,exports.removeCookie=r.removeCookie,exports.setCookie=s.setCookie;
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";exports.removeCookie=function(e){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.cookie="".concat(encodeURIComponent(e),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT").concat(c.path?"; path=".concat(c.path):"").concat(c.domain?"; domain=".concat(c.domain):"").concat(c.maxAge?"; max-age=0":"").concat(c.expires?"; expires=Thu, 01 Jan 1970 00:00:00 GMT":"").concat(c.secure?"; secure":"").concat(c.sameSite?"; samesite=".concat(c.sameSite):"")};
|
|
3
|
-
//# sourceMappingURL=removeCookie.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeCookie.js","sources":["../../../../../src/hooks/useCookie/helpers/removeCookie.ts"],"sourcesContent":["export interface RemoveCookieParams {\n domain?: string;\n expires?: Date;\n maxAge?: number;\n path?: string;\n sameSite?: 'Lax' | 'None' | 'Strict';\n secure?: boolean;\n}\n\nexport const removeCookie = (key: string, options: RemoveCookieParams = {}) => {\n document.cookie = `${encodeURIComponent(key)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT${\n options.path ? `; path=${options.path}` : ''\n }${options.domain ? `; domain=${options.domain}` : ''}${options.maxAge ? `; max-age=0` : ''}${\n options.expires ? `; expires=Thu, 01 Jan 1970 00:00:00 GMT` : ''\n }${options.secure ? `; secure` : ''}${options.sameSite ? `; samesite=${options.sameSite}` : ''}`;\n};\n"],"names":["key","options","arguments","length","undefined","document","cookie","concat","encodeURIComponent","path","domain","maxAge","expires","secure","sameSite"],"mappings":";kCAS4B,SAACA,GAAkD,IAArCC,EAA2BC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAE,EACxEG,SAASC,OAAMC,GAAAA,OAAMC,mBAAmBR,+CAAIO,OAC1CN,EAAQQ,KAAIF,UAAAA,OAAaN,EAAQQ,MAAS,IAAEF,OAC3CN,EAAQS,mBAAMH,OAAeN,EAAQS,QAAW,IAAEH,OAAGN,EAAQU,OAAM,cAAmB,IAAEJ,OACzFN,EAAQW,QAAO,0CAA+C,IAAEL,OAC/DN,EAAQY,kBAAsB,IAAEN,OAAGN,EAAQa,SAAQP,cAAAA,OAAiBN,EAAQa,UAAa,GAC9F"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";exports.setCookie=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=["".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))];o.path&&n.push("path=".concat(o.path)),o.domain&&n.push("domain=".concat(o.domain)),"number"==typeof o.maxAge&&n.push("max-age=".concat(o.maxAge)),o.expires&&n.push("expires=".concat(o.expires.toUTCString())),o.secure&&n.push("secure"),o.httpOnly&&n.push("httpOnly"),o.sameSite&&n.push("samesite=".concat(o.sameSite)),document.cookie=n.join("; ")};
|
|
3
|
-
//# sourceMappingURL=setCookie.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setCookie.js","sources":["../../../../../src/hooks/useCookie/helpers/setCookie.ts"],"sourcesContent":["export interface SetCookieParams {\n domain?: string;\n expires?: Date;\n httpOnly?: boolean;\n maxAge?: number;\n path?: string;\n sameSite?: 'Lax' | 'None' | 'Strict';\n secure?: boolean;\n}\n\nexport const setCookie = (key: string, value: string, options: SetCookieParams = {}) => {\n const cookie: string[] = [`${encodeURIComponent(key)}=${encodeURIComponent(value)}`];\n\n if (options.path) cookie.push(`path=${options.path}`);\n if (options.domain) cookie.push(`domain=${options.domain}`);\n if (typeof options.maxAge === 'number') cookie.push(`max-age=${options.maxAge}`);\n if (options.expires) cookie.push(`expires=${options.expires.toUTCString()}`);\n if (options.secure) cookie.push(`secure`);\n if (options.httpOnly) cookie.push(`httpOnly`);\n if (options.sameSite) cookie.push(`samesite=${options.sameSite}`);\n\n document.cookie = cookie.join('; ');\n};\n"],"names":["key","value","options","arguments","length","undefined","cookie","concat","encodeURIComponent","path","push","domain","maxAge","expires","toUTCString","secure","httpOnly","sameSite","document","join"],"mappings":";+BAUyB,SAACA,EAAaC,GAAiD,IAAlCC,EAAwBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAE,EAC3EG,EAAmB,CAAA,GAAAC,OAAIC,mBAAmBR,GAAI,KAAAO,OAAIC,mBAAmBP,KAEvEC,EAAQO,MAAMH,EAAOI,KAAIH,QAAAA,OAASL,EAAQO,OAC1CP,EAAQS,QAAQL,EAAOI,KAAIH,UAAAA,OAAWL,EAAQS,SACpB,iBAAnBT,EAAQU,QAAqBN,EAAOI,gBAAIH,OAAYL,EAAQU,SACnEV,EAAQW,SAASP,EAAOI,KAAIH,WAAAA,OAAYL,EAAQW,QAAQC,gBACxDZ,EAAQa,QAAQT,EAAOI,eACvBR,EAAQc,UAAUV,EAAOI,iBACzBR,EAAQe,UAAUX,EAAOI,KAAIH,YAAAA,OAAaL,EAAQe,WAEtDC,SAASZ,OAASA,EAAOa,KAAK,KAChC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";var e=require("../../_rollupPluginBabelHelpers-DIvgGtEH.js"),o=require("react"),i=require("../useCookie/helpers/clearCookies.js"),r=require("../useCookie/helpers/getCookies.js"),t=require("../useCookie/helpers/removeCookie.js"),n=require("../useCookie/helpers/setCookie.js"),s=require("../useCookie/useCookie.js"),u=function(e,o){t.removeCookie(e,o),s.dispatchCookieEvent()};exports.useCookies=function(){var t=o.useState("undefined"!=typeof window?r.getCookies(!0):{}),C=e._slicedToArray(t,2),c=C[0],k=C[1];o.useEffect((function(){var e=function(){return k(r.getCookies(!0))};return window.addEventListener(s.COOKIE_EVENT,e),function(){window.removeEventListener(s.COOKIE_EVENT,e)}}),[]);return{value:c,set:function(e,o,i){if(null===o)return u(e);!function(e,o,i){n.setCookie(e,o,i),s.dispatchCookieEvent()}(e,o,i)},remove:function(e,o){return u(e,o)},getAll:function(){return r.getCookies(!0)},clear:function(){return i.clearCookies(),void s.dispatchCookieEvent()}}};
|
|
3
|
-
//# sourceMappingURL=useCookies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCookies.js","sources":["../../../../src/hooks/useCookies/useCookies.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport type { RemoveCookieParams, SetCookieParams } from '../useCookie/helpers';\n\nimport { clearCookies, getCookies, removeCookie, setCookie } from '../useCookie/helpers';\nimport { COOKIE_EVENT, dispatchCookieEvent } from '../useCookie/useCookie';\n\nconst setCookieItem = (key: string, value: any, options?: SetCookieParams) => {\n setCookie(key, value, options);\n dispatchCookieEvent();\n};\n\nconst removeCookieItem = (key: string, options?: RemoveCookieParams) => {\n removeCookie(key, options);\n dispatchCookieEvent();\n};\n\nconst clearCookieItems = () => {\n clearCookies();\n dispatchCookieEvent();\n};\n/**\n * @name useCookies\n * @description - Hook that manages cookie values\n * @category Browser\n *\n * @overload\n * @template {object} Value The type of the cookie values\n * @param {string} key The key of the cookie\n * @returns {UseCookieReturn<Value>} The value and the set function\n *\n * @example\n * const { value, set, remove, getAll, clear } = useCookies();\n */\nexport const useCookies = <Value>() => {\n const [value, setValue] = useState<Value>(\n typeof window !== 'undefined' ? (getCookies(true) as Value) : ({} as Value)\n );\n\n useEffect(() => {\n const onChange = () => setValue(getCookies(true) as Value);\n\n window.addEventListener(COOKIE_EVENT, onChange);\n return () => {\n window.removeEventListener(COOKIE_EVENT, onChange);\n };\n }, []);\n\n const set = (key: string, value: Value, options?: SetCookieParams) => {\n if (value === null) return removeCookieItem(key);\n setCookieItem(key, value, options);\n };\n\n const remove = (key: string, options?: RemoveCookieParams) => removeCookieItem(key, options);\n const getAll = () => getCookies(true);\n const clear = () => clearCookieItems();\n\n return { value, set, remove, getAll, clear };\n};\n"],"names":["removeCookieItem","key","options","removeCookie","dispatchCookieEvent","_useState","useState","window","getCookies","_useState2","_slicedToArray","value","setValue","useEffect","onChange","addEventListener","COOKIE_EVENT","removeEventListener","set","setCookie","setCookieItem","remove","getAll","clear","clearCookies"],"mappings":";uUAYMA,EAAmB,SAACC,EAAaC,GACrCC,EAAYA,aAACF,EAAKC,GAClBE,uBACF,qBAmB0B,WACxB,IAAAC,EAA0BC,EAAQA,SACd,oBAAXC,OAA0BC,cAAW,GAAmB,IAChEC,EAAAC,EAAAA,eAAAL,EAAA,GAFMM,EAAKF,EAAA,GAAEG,EAAQH,EAAA,GAItBI,EAAAA,WAAU,WACR,IAAMC,EAAW,WAAH,OAASF,EAASJ,cAAW,GAAe,EAG1D,OADAD,OAAOQ,iBAAiBC,EAAYA,aAAEF,GAC/B,WACLP,OAAOU,oBAAoBD,EAAYA,aAAEF,EAC1C,CACF,GAAE,IAWH,MAAO,CAAEH,MAAAA,EAAOO,IATJ,SAACjB,EAAaU,EAAcT,GACtC,GAAc,OAAVS,EAAgB,OAAOX,EAAiBC,IA1C1B,SAACA,EAAaU,EAAYT,GAC9CiB,YAAUlB,EAAKU,EAAOT,GACtBE,uBACF,CAwCIgB,CAAcnB,EAAKU,EAAOT,EAC3B,EAMoBmB,OAJN,SAACpB,EAAaC,GAA4B,OAAKF,EAAiBC,EAAKC,EAAQ,EAI/DoB,OAHd,WAAH,OAASd,EAAAA,YAAW,EAAK,EAGAe,MAFvB,WAAH,OArCXC,sBACApB,uBAoCsC,EAGxC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
"use strict";var e=require("../../../_rollupPluginBabelHelpers-DIvgGtEH.js"),t=function(){function t(n,i){e._classCallCheck(this,t),this.x=n,this.y=i}return e._createClass(t,[{key:"update",value:function(e){this.x=e.x,this.y=e.y}},{key:"getDifferenceTo",value:function(e){return new t(this.x-e.x,this.y-e.y)}},{key:"getDistanceTo",value:function(e){var t=this.getDifferenceTo(e);return Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))}},{key:"getAngleTo",value:function(e){var t=this.getDifferenceTo(e);return Math.atan2(t.y,t.x)}},{key:"equalsTo",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"moveByAngle",value:function(e,t){var n=e+Math.PI/2;return this.x+=Math.sin(n)*t,this.y-=Math.cos(n)*t,this}}])}();exports.Pointer=t;
|
|
3
|
-
//# sourceMappingURL=Pointer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pointer.js","sources":["../../../../../src/hooks/usePaint/helpers/Pointer.ts"],"sourcesContent":["export interface Point {\n x: number;\n y: number;\n}\n\nexport class Pointer implements Point {\n x: number;\n\n y: number;\n\n constructor(x: number, y: number) {\n this.x = x;\n this.y = y;\n }\n\n update(point: Point) {\n this.x = point.x;\n this.y = point.y;\n }\n\n getDifferenceTo(point: Point) {\n return new Pointer(this.x - point.x, this.y - point.y);\n }\n\n getDistanceTo(point: Point) {\n const diff = this.getDifferenceTo(point);\n return Math.sqrt(diff.x ** 2 + diff.y ** 2);\n }\n\n getAngleTo(point: Point) {\n const diff = this.getDifferenceTo(point);\n return Math.atan2(diff.y, diff.x);\n }\n\n equalsTo(point: Point) {\n return this.x === point.x && this.y === point.y;\n }\n\n moveByAngle(\n // The angle in radians\n angle: number,\n // How much the point should be moved\n distance: number\n ) {\n // Rotate the angle based on the browser coordinate system ([0,0] in the top left)\n const angleRotated = angle + Math.PI / 2;\n\n this.x += Math.sin(angleRotated) * distance;\n this.y -= Math.cos(angleRotated) * distance;\n\n return this;\n }\n}\n"],"names":["Pointer","x","y","_classCallCheck","this","_createClass","key","value","point","diff","getDifferenceTo","Math","sqrt","pow","atan2","angle","distance","angleRotated","PI","sin","cos"],"mappings":";6EAKaA,EAAO,WAKlB,SAAAA,EAAYC,EAAWC,GAAWC,EAAAA,qBAAAH,GAChCI,KAAKH,EAAIA,EACTG,KAAKF,EAAIA,CACX,CAAC,OAAAG,EAAAA,aAAAL,EAAA,CAAA,CAAAM,IAAA,SAAAC,MAED,SAAOC,GACLJ,KAAKH,EAAIO,EAAMP,EACfG,KAAKF,EAAIM,EAAMN,CACjB,GAAC,CAAAI,IAAA,kBAAAC,MAED,SAAgBC,GACd,OAAO,IAAIR,EAAQI,KAAKH,EAAIO,EAAMP,EAAGG,KAAKF,EAAIM,EAAMN,EACtD,GAAC,CAAAI,IAAA,gBAAAC,MAED,SAAcC,GACZ,IAAMC,EAAOL,KAAKM,gBAAgBF,GAClC,OAAOG,KAAKC,KAAKD,KAAAE,IAAAJ,EAAKR,EAAK,GAACU,KAAAE,IAAGJ,EAAKP,EAAK,GAC3C,GAAC,CAAAI,IAAA,aAAAC,MAED,SAAWC,GACT,IAAMC,EAAOL,KAAKM,gBAAgBF,GAClC,OAAOG,KAAKG,MAAML,EAAKP,EAAGO,EAAKR,EACjC,GAAC,CAAAK,IAAA,WAAAC,MAED,SAASC,GACP,OAAOJ,KAAKH,IAAMO,EAAMP,GAAKG,KAAKF,IAAMM,EAAMN,CAChD,GAAC,CAAAI,IAAA,cAAAC,MAED,SAEEQ,EAEAC,GAGA,IAAMC,EAAeF,EAAQJ,KAAKO,GAAK,EAKvC,OAHAd,KAAKH,GAAKU,KAAKQ,IAAIF,GAAgBD,EACnCZ,KAAKF,GAAKS,KAAKS,IAAIH,GAAgBD,EAE5BZ,IACT,IAAC,CA9CiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-iXwxU9oY.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
var l={xs:0,sm:600,md:900,lg:1200,xl:1536},x={xs:576,sm:768,md:992,lg:1200,xl:1408},m={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},s={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},d={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},g={xs:0,sm:600,md:1024,lg:1440,xl:1920},o={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},e={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},p={sm:576,md:768,lg:992,xl:1200};export{d as BREAKPOINTS_ANT_DESIGN,s as BREAKPOINTS_BOOTSTRAP_V5,x as BREAKPOINTS_MANTINE,e as BREAKPOINTS_MASTER_CSS,l as BREAKPOINTS_MATERIAL_UI,p as BREAKPOINTS_PRIME_FLEX,g as BREAKPOINTS_QUASAR_V2,o as BREAKPOINTS_SEMANTIC,m as BREAKPOINTS_TAILWIND};
|
|
3
|
-
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sources":["../../../../../src/hooks/useBreakpoints/helpers/breakpoints.ts"],"sourcesContent":["/** Breakpoints from Material UI */\nexport const BREAKPOINTS_MATERIAL_UI = {\n xs: 0,\n sm: 600,\n md: 900,\n lg: 1200,\n xl: 1536\n};\n\n/** Breakpoints from Mantine */\nexport const BREAKPOINTS_MANTINE = {\n xs: 576,\n sm: 768,\n md: 992,\n lg: 1200,\n xl: 1408\n};\n\n/** Breakpoints from Tailwind */\nexport const BREAKPOINTS_TAILWIND = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536\n};\n\n/** Breakpoints from Bootstrap V5 */\nexport const BREAKPOINTS_BOOTSTRAP_V5 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n};\n\n/** Breakpoints from Ant Design */\nexport const BREAKPOINTS_ANT_DESIGN = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1600\n};\n\n/** Breakpoints from Quasar V2 */\nexport const BREAKPOINTS_QUASAR_V2 = {\n xs: 0,\n sm: 600,\n md: 1024,\n lg: 1440,\n xl: 1920\n};\n\n/** Sematic Breakpoints */\nexport const BREAKPOINTS_SEMANTIC = {\n mobileS: 320,\n mobileM: 375,\n mobileL: 425,\n tablet: 768,\n laptop: 1024,\n laptopL: 1440,\n desktop4K: 2560\n};\n\n/** Breakpoints from Master CSS */\nexport const BREAKPOINTS_MASTER_CSS = {\n '3xs': 360,\n '2xs': 480,\n xs: 600,\n sm: 768,\n md: 1024,\n lg: 1280,\n xl: 1440,\n '2xl': 1600,\n '3xl': 1920,\n '4xl': 2560\n};\n\n/** Breakpoints from PrimeFlex */\nexport const BREAKPOINTS_PRIME_FLEX = {\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\n"],"names":["BREAKPOINTS_MATERIAL_UI","xs","sm","md","lg","xl","BREAKPOINTS_MANTINE","BREAKPOINTS_TAILWIND","BREAKPOINTS_BOOTSTRAP_V5","xxl","BREAKPOINTS_ANT_DESIGN","BREAKPOINTS_QUASAR_V2","BREAKPOINTS_SEMANTIC","mobileS","mobileM","mobileL","tablet","laptop","laptopL","desktop4K","BREAKPOINTS_MASTER_CSS","BREAKPOINTS_PRIME_FLEX"],"mappings":";AACO,IAAMA,EAA0B,CACrCC,GAAI,EACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,MAIOC,EAAsB,CACjCL,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,MAIOE,EAAuB,CAClCL,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJ,MAAO,MAIIG,EAA2B,CACtCP,GAAI,EACJC,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJI,IAAK,MAIMC,EAAyB,CACpCT,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI,KACJI,IAAK,MAIME,EAAwB,CACnCV,GAAI,EACJC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,MAIOO,EAAuB,CAClCC,QAAS,IACTC,QAAS,IACTC,QAAS,IACTC,OAAQ,IACRC,OAAQ,KACRC,QAAS,KACTC,UAAW,MAIAC,EAAyB,CACpC,MAAO,IACP,MAAO,IACPnB,GAAI,IACJC,GAAI,IACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJ,MAAO,KACP,MAAO,KACP,MAAO,MAIIgB,EAAyB,CACpCnB,GAAI,IACJC,GAAI,IACJC,GAAI,IACJC,GAAI"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
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}from"./breakpoints.js";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
import{_ as o}from"../../../_rollupPluginBabelHelpers-iXwxU9oY.js";import{removeCookie as r}from"./removeCookie.js";var e=function(){document.cookie.split("; ").forEach((function(e){var i=e.split("="),t=o(i,1)[0];r(t)}))};export{e as clearCookies};
|
|
3
|
-
//# sourceMappingURL=clearCookies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clearCookies.js","sources":["../../../../../src/hooks/useCookie/helpers/clearCookies.ts"],"sourcesContent":["import { removeCookie } from './removeCookie';\n\nexport const clearCookies = () => {\n document.cookie.split('; ').forEach((cookie) => {\n const [name] = cookie.split('=');\n removeCookie(name);\n });\n};\n"],"names":["clearCookies","document","cookie","split","forEach","_cookie$split","name","_slicedToArray","removeCookie"],"mappings":";wHAEaA,EAAe,WAC1BC,SAASC,OAAOC,MAAM,MAAMC,SAAQ,SAACF,GACnC,IAAAG,EAAeH,EAAOC,MAAM,KAArBG,EAAyBC,EAAAF,EAAA,GAArB,GACXG,EAAaF,EACf,GACF"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
import{h as r}from"../../../_rollupPluginBabelHelpers-iXwxU9oY.js";var e=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.fromEntries(document.cookie.split("; ").map((function(t){var n=t.split("="),o=r(n),i=o[0],u=o.slice(1);return[i,function(r){if(!e)return r;try{return JSON.parse(r)}catch(e){return r}}(decodeURIComponent(u.join("=")))]})))};export{e as getCookies};
|
|
3
|
-
//# sourceMappingURL=getCookies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCookies.js","sources":["../../../../../src/hooks/useCookie/helpers/getCookies.ts"],"sourcesContent":["export const getCookies = (shouldParse = false) =>\n Object.fromEntries(\n document.cookie.split('; ').map((cookie) => {\n const [key, ...value] = cookie.split('=');\n const decodedValue = decodeURIComponent(value.join('='));\n const parse = (value: string) => {\n if (!shouldParse) return value;\n try {\n return JSON.parse(value);\n } catch {\n return value;\n }\n };\n return [key, parse(decodedValue)];\n })\n );\n"],"names":["getCookies","shouldParse","arguments","length","undefined","Object","fromEntries","document","cookie","split","map","_cookie$split","_cookie$split2","_toArray","key","value","slice","JSON","parse","_unused","decodeURIComponent","join"],"mappings":";mEAAaA,IAAAA,EAAa,WAAH,IAAIC,EAAWC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GAAQ,OAC5CG,OAAOC,YACLC,SAASC,OAAOC,MAAM,MAAMC,KAAI,SAACF,GAC/B,IAAAG,EAAwBH,EAAOC,MAAM,KAAIG,EAAAC,EAAAF,GAAlCG,EAAGF,EAAA,GAAKG,EAAKH,EAAAI,MAAA,GAUpB,MAAO,CAACF,EARM,SAACC,GACb,IAAKd,EAAa,OAAOc,EACzB,IACE,OAAOE,KAAKC,MAAMH,EACnB,CAAC,MAAAI,GACA,OAAOJ,CACT,CACD,CACYG,CATQE,mBAAmBL,EAAMM,KAAK,OAUrD,IACD"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
export{clearCookies}from"./clearCookies.js";export{getCookies}from"./getCookies.js";export{removeCookie}from"./removeCookie.js";export{setCookie}from"./setCookie.js";import"../../../_rollupPluginBabelHelpers-iXwxU9oY.js";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.95 */
|
|
2
|
-
var a=function(a){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.cookie="".concat(encodeURIComponent(a),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT").concat(c.path?"; path=".concat(c.path):"").concat(c.domain?"; domain=".concat(c.domain):"").concat(c.maxAge?"; max-age=0":"").concat(c.expires?"; expires=Thu, 01 Jan 1970 00:00:00 GMT":"").concat(c.secure?"; secure":"").concat(c.sameSite?"; samesite=".concat(c.sameSite):"")};export{a as removeCookie};
|
|
3
|
-
//# sourceMappingURL=removeCookie.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeCookie.js","sources":["../../../../../src/hooks/useCookie/helpers/removeCookie.ts"],"sourcesContent":["export interface RemoveCookieParams {\n domain?: string;\n expires?: Date;\n maxAge?: number;\n path?: string;\n sameSite?: 'Lax' | 'None' | 'Strict';\n secure?: boolean;\n}\n\nexport const removeCookie = (key: string, options: RemoveCookieParams = {}) => {\n document.cookie = `${encodeURIComponent(key)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT${\n options.path ? `; path=${options.path}` : ''\n }${options.domain ? `; domain=${options.domain}` : ''}${options.maxAge ? `; max-age=0` : ''}${\n options.expires ? `; expires=Thu, 01 Jan 1970 00:00:00 GMT` : ''\n }${options.secure ? `; secure` : ''}${options.sameSite ? `; samesite=${options.sameSite}` : ''}`;\n};\n"],"names":["removeCookie","key","options","arguments","length","undefined","document","cookie","concat","encodeURIComponent","path","domain","maxAge","expires","secure","sameSite"],"mappings":";IASaA,EAAe,SAACC,GAAkD,IAArCC,EAA2BC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAE,EACxEG,SAASC,OAAMC,GAAAA,OAAMC,mBAAmBR,+CAAIO,OAC1CN,EAAQQ,KAAIF,UAAAA,OAAaN,EAAQQ,MAAS,IAAEF,OAC3CN,EAAQS,mBAAMH,OAAeN,EAAQS,QAAW,IAAEH,OAAGN,EAAQU,OAAM,cAAmB,IAAEJ,OACzFN,EAAQW,QAAO,0CAA+C,IAAEL,OAC/DN,EAAQY,kBAAsB,IAAEN,OAAGN,EAAQa,SAAQP,cAAAA,OAAiBN,EAAQa,UAAa,GAC9F"}
|