/** * 响应式 Hooks 统一导出 * Responsive Hooks Index * * 提供完整的响应式设计解决方案,包括: * - 断点检测 (useBreakpoint) * - 屏幕尺寸 (useScreenSize, useWindowDimensions) * - 响应式值 (useResponsiveValue, useResponsiveStyle) * - 方向检测 (useOrientation) * - 平台检测 (usePlatform) * - 媒体查询 (useMediaQuery) * - 列数计算 (useColumnCount) * - 间距计算 (useResponsiveSpacing) * - 断点检查 (useBreakpointGTE, useBreakpointLT, useBreakpointBetween) */ // ==================== 核心 Hooks ==================== export { useWindowDimensions, useScreenSize } from './useScreenSize'; export { useBreakpoint, useFineBreakpoint, useBreakpointGTE, useBreakpointLT, useBreakpointBetween, } from './useBreakpoint'; export { useResponsiveValue, useResponsiveStyle } from './useResponsiveValue'; export { useOrientation } from './useOrientation'; export { usePlatform } from './usePlatform'; export { useMediaQuery } from './useMediaQuery'; export { useColumnCount } from './useColumnCount'; export { useResponsiveSpacing } from './useResponsiveSpacing'; // ==================== 工具函数 ==================== export { getBreakpoint, getFineBreakpoint, isBreakpointGTE, isBreakpointLT, isBreakpointBetween, } from './useBreakpoint'; // ==================== 类型 ==================== export type { BreakpointKey, FineBreakpointKey, BreakpointValue, ResponsiveValue, Orientation, PlatformInfo, ScreenSize, MediaQueryOptions, } from './types'; export { BREAKPOINTS, FINE_BREAKPOINTS, } from './types'; // 兼容层类型 export type { ResponsiveInfo } from './useResponsive'; // ==================== 向后兼容 ==================== export { useResponsive, useLegacyResponsive } from './useResponsive'; // 默认导出 export { useScreenSize as default } from './useScreenSize';