UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

277 lines 5.69 kB
export { useStorage, useLocalStorage, useSessionStorage, clearStorage, getStorageKeys, getStorageSize, type StorageType, type UseStorageOptions, type StorageRef, } from './use-storage'; export { useCookie, useCookies, getCookie, setCookie, removeCookie, parseCookies, clearCookies, type CookieOptions, type CookieRef, } from './use-cookie'; export { useClipboard, copyToClipboard, type ClipboardRef, } from './use-clipboard'; export { useMediaQuery, usePreferredDark, usePreferredLight, usePreferredReducedMotion, usePreferredContrast, useBreakpoint, useIsMobile, useIsTablet, useIsDesktop, breakpoints, type MediaQueryRef, } from './use-media-query'; export { useNetwork, useOnline, type NetworkState, type NetworkRef, } from './use-network'; export { useWindowSize, useScroll, useVisibility, useTitle, useFavicon, type WindowSize, type ScrollPosition, type WindowSizeRef, type ScrollRef, type VisibilityRef, } from './use-window'; export { useGeolocation, useGeolocationWatch, getCurrentPosition, calculateDistance, type GeolocationCoords, type GeolocationState, type GeolocationOptions, type GeolocationRef, } from './use-geolocation'; export { useMouse, useMouseInElement, usePointer, type MouseState, type MouseOptions, type MouseRef, type ElementMouseState, type ElementMouseRef, } from './use-mouse'; export { useKeyboard, useHotkey, useKeyPressed, useKeySequence, shortcuts, type KeyboardState, type KeyboardOptions, type KeyboardRef, type HotkeyOptions, } from './use-keyboard'; export { useIntersectionObserver, useElementVisibility, useLazyLoad, useInfiniteScroll, useIntersectionObserverMultiple, type IntersectionObserverOptions, type IntersectionState, type IntersectionObserverRef, } from './use-intersection-observer'; export { useFetch, useAsyncData, usePost, clearFetchCache, prefetch, type FetchOptions, type FetchState, type FetchRef, } from './use-fetch'; export { useFullscreen, toggleFullscreen, isInFullscreen, type FullscreenState, type FullscreenOptions, type FullscreenRef, } from './use-fullscreen'; export { useNotification, notify, canNotify, requestNotificationPermission, notifications, type NotificationPermission, type NotificationState, type NotificationOptions, type NotificationRef, } from './use-notification'; export { useShare, share, shareURL, shareText, shareFiles, shareCurrentPage, shareWithFallback, createShareableFile, type ShareData, type ShareResult, type ShareRef, } from './use-share'; export { usePermission, usePermissions, isPermissionGranted, hasCameraPermission, hasMicrophonePermission, hasGeolocationPermission, hasNotificationPermission, requestMediaPermissions, permissionGroups, type PermissionName, type PermissionState, type PermissionStatus, type PermissionRef, type MultiPermissionRef, } from './use-permissions'; export { useResizeObserver, useResizeObserverMultiple, useElementSize, hasResizeObserver, type ResizeObserverSize, type ResizeObserverState, type ResizeObserverOptions, type ResizeObserverRef, } from './use-resize-observer'; export { useBattery, getBatteryLevel, isCharging, hasBattery, type BatteryState, type BatteryRef, } from './use-battery'; export { useSpeechRecognition, useSpeechSynthesis, isSpeechRecognitionSupported, isSpeechSynthesisSupported, speak, stopSpeaking, getVoices, type SpeechRecognitionOptions, type SpeechRecognitionState, type SpeechRecognitionResult, type SpeechRecognitionRef, type SpeechSynthesisOptions, type SpeechSynthesisState, type SpeechSynthesisRef, } from './use-speech'; export { useBroadcastChannel, broadcast, isBroadcastChannelSupported, type BroadcastChannelState, type BroadcastChannelOptions, type BroadcastChannelRef, } from './use-broadcast-channel'; export { useWebSocket, isWebSocketSupported, type WebSocketStatus, type WebSocketState, type WebSocketOptions, type WebSocketRef, } from './use-websocket'; export { useDeviceOrientation, useDeviceMotion, useParallax, isDeviceOrientationSupported, isDeviceMotionSupported, requestOrientationPermission, requestMotionPermission, type DeviceOrientationState, type DeviceMotionState, type DeviceOrientationRef, type DeviceMotionRef, } from './use-device-orientation'; export { useMutationObserver, useAttributeObserver, useChildListObserver, useTextObserver, isMutationObserverSupported, type MutationObserverState, type MutationObserverOptions, type MutationObserverRef, } from './use-mutation-observer'; export { useEventSource, useSSE, isEventSourceSupported, type EventSourceStatus, type EventSourceState, type EventSourceOptions, type EventSourceRef, } from './use-event-source'; export { useIdle, useIdleState, useLastActive, useAutoLogout, type IdleState, type IdleOptions, type IdleRef, } from './use-idle'; export { useTextSelection, useElementTextSelection, useSelectionPopup, useCopySelection, type TextSelectionState, type TextSelectionOptions, type TextSelectionRef, } from './use-text-selection'; export { useWakeLock, useAutoWakeLock, useConditionalWakeLock, isWakeLockSupported, type WakeLockState, type WakeLockRef, } from './use-wake-lock'; export { useEyeDropper, useColorHistory, pickColor, hexToRgb, hexToHsl, isEyeDropperSupported, type EyeDropperState, type EyeDropperResult, type EyeDropperOptions, type EyeDropperRef, } from './use-eye-dropper';