@zentauri-ui/zentauri-components 1.3.0 → 1.3.1
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/hooks/index.d.ts +27 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useBodyScrollLock/index.d.ts +2 -0
- package/dist/hooks/useBodyScrollLock/index.d.ts.map +1 -0
- package/dist/hooks/{useBodyScrollLock.d.ts → useBodyScrollLock/useBodyScrollLock.d.ts} +2 -3
- package/dist/hooks/useBodyScrollLock/useBodyScrollLock.d.ts.map +1 -0
- package/dist/hooks/useClickOutside/index.d.ts +2 -0
- package/dist/hooks/useClickOutside/index.d.ts.map +1 -0
- package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +6 -7
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useClipboard/index.d.ts +2 -0
- package/dist/hooks/useClipboard/index.d.ts.map +1 -0
- package/dist/hooks/{useClipboard.d.ts → useClipboard/useClipboard.d.ts} +3 -4
- package/dist/hooks/useClipboard/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useControllableState/index.d.ts +2 -0
- package/dist/hooks/useControllableState/index.d.ts.map +1 -0
- package/dist/hooks/{useControllableState.d.ts → useControllableState/useControllableState.d.ts} +3 -4
- package/dist/hooks/useControllableState/useControllableState.d.ts.map +1 -0
- package/dist/hooks/useDebouncedValue/index.d.ts +2 -0
- package/dist/hooks/useDebouncedValue/index.d.ts.map +1 -0
- package/dist/hooks/{useDebouncedValue.d.ts → useDebouncedValue/useDebouncedValue.d.ts} +2 -3
- package/dist/hooks/useDebouncedValue/useDebouncedValue.d.ts.map +1 -0
- package/dist/hooks/useDisclosure/index.d.ts +2 -0
- package/dist/hooks/useDisclosure/index.d.ts.map +1 -0
- package/dist/hooks/{useDisclosure.d.ts → useDisclosure/useDisclosure.d.ts} +4 -5
- package/dist/hooks/useDisclosure/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useDocumentTitle/index.d.ts +2 -0
- package/dist/hooks/useDocumentTitle/index.d.ts.map +1 -0
- package/dist/hooks/{useDocumentTitle.d.ts → useDocumentTitle/useDocumentTitle.d.ts} +3 -4
- package/dist/hooks/useDocumentTitle/useDocumentTitle.d.ts.map +1 -0
- package/dist/hooks/useFocusManagement/index.d.ts +2 -0
- package/dist/hooks/useFocusManagement/index.d.ts.map +1 -0
- package/dist/hooks/{useFocusManagement.d.ts → useFocusManagement/useFocusManagement.d.ts} +3 -5
- package/dist/hooks/useFocusManagement/useFocusManagement.d.ts.map +1 -0
- package/dist/hooks/useHover/index.d.ts +2 -0
- package/dist/hooks/useHover/index.d.ts.map +1 -0
- package/dist/hooks/{useHover.d.ts → useHover/useHover.d.ts} +3 -5
- package/dist/hooks/useHover/useHover.d.ts.map +1 -0
- package/dist/hooks/useInView/index.d.ts +2 -0
- package/dist/hooks/useInView/index.d.ts.map +1 -0
- package/dist/hooks/{useInView.d.ts → useInView/useInView.d.ts} +4 -6
- package/dist/hooks/useInView/useInView.d.ts.map +1 -0
- package/dist/hooks/useIntersectionObserver/index.d.ts +2 -0
- package/dist/hooks/useIntersectionObserver/index.d.ts.map +1 -0
- package/dist/hooks/{useIntersectionObserver.d.ts → useIntersectionObserver/useIntersectionObserver.d.ts} +4 -6
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.ts.map +1 -0
- package/dist/hooks/useIsMounted/index.d.ts +2 -0
- package/dist/hooks/useIsMounted/index.d.ts.map +1 -0
- package/dist/hooks/{useIsMounted.d.ts → useIsMounted/useIsMounted.d.ts} +2 -3
- package/dist/hooks/useIsMounted/useIsMounted.d.ts.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts.map +1 -0
- package/dist/hooks/{useIsomorphicLayoutEffect.d.ts → useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts} +3 -5
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage/index.d.ts +2 -0
- package/dist/hooks/useLocalStorage/index.d.ts.map +1 -0
- package/dist/hooks/{useLocalStorage.d.ts → useLocalStorage/useLocalStorage.d.ts} +3 -4
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery/index.d.ts +2 -0
- package/dist/hooks/useMediaQuery/index.d.ts.map +1 -0
- package/dist/hooks/{useMediaQuery.d.ts → useMediaQuery/useMediaQuery.d.ts} +2 -3
- package/dist/hooks/useMediaQuery/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useNetworkStatus/index.d.ts +2 -0
- package/dist/hooks/useNetworkStatus/index.d.ts.map +1 -0
- package/dist/hooks/{useNetworkStatus.d.ts → useNetworkStatus/useNetworkStatus.d.ts} +2 -3
- package/dist/hooks/useNetworkStatus/useNetworkStatus.d.ts.map +1 -0
- package/dist/hooks/usePageVisibility/index.d.ts +2 -0
- package/dist/hooks/usePageVisibility/index.d.ts.map +1 -0
- package/dist/hooks/{usePageVisibility.d.ts → usePageVisibility/usePageVisibility.d.ts} +2 -3
- package/dist/hooks/usePageVisibility/usePageVisibility.d.ts.map +1 -0
- package/dist/hooks/usePagination/index.d.ts +2 -0
- package/dist/hooks/usePagination/index.d.ts.map +1 -0
- package/dist/hooks/usePagination/usePagination.d.ts +30 -0
- package/dist/hooks/usePagination/usePagination.d.ts.map +1 -0
- package/dist/hooks/usePrefersColorScheme/index.d.ts +2 -0
- package/dist/hooks/usePrefersColorScheme/index.d.ts.map +1 -0
- package/dist/hooks/{usePrefersColorScheme.d.ts → usePrefersColorScheme/usePrefersColorScheme.d.ts} +3 -4
- package/dist/hooks/usePrefersColorScheme/usePrefersColorScheme.d.ts.map +1 -0
- package/dist/hooks/usePrefersReducedMotion/index.d.ts +2 -0
- package/dist/hooks/usePrefersReducedMotion/index.d.ts.map +1 -0
- package/dist/hooks/{usePrefersReducedMotion.d.ts → usePrefersReducedMotion/usePrefersReducedMotion.d.ts} +2 -3
- package/dist/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts.map +1 -0
- package/dist/hooks/useResizeObserver/index.d.ts +2 -0
- package/dist/hooks/useResizeObserver/index.d.ts.map +1 -0
- package/dist/hooks/{useResizeObserver.d.ts → useResizeObserver/useResizeObserver.d.ts} +5 -7
- package/dist/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -0
- package/dist/hooks/useSessionStorage/index.d.ts +2 -0
- package/dist/hooks/useSessionStorage/index.d.ts.map +1 -0
- package/dist/hooks/{useSessionStorage.d.ts → useSessionStorage/useSessionStorage.d.ts} +3 -4
- package/dist/hooks/useSessionStorage/useSessionStorage.d.ts.map +1 -0
- package/dist/hooks/useThrottledCallback/index.d.ts +2 -0
- package/dist/hooks/useThrottledCallback/index.d.ts.map +1 -0
- package/dist/hooks/{useThrottledCallback.d.ts → useThrottledCallback/useThrottledCallback.d.ts} +2 -3
- package/dist/hooks/useThrottledCallback/useThrottledCallback.d.ts.map +1 -0
- package/dist/hooks/useToggle/index.d.ts +2 -0
- package/dist/hooks/useToggle/index.d.ts.map +1 -0
- package/dist/hooks/{useToggle.d.ts → useToggle/useToggle.d.ts} +2 -3
- package/dist/hooks/useToggle/useToggle.d.ts.map +1 -0
- package/dist/hooks/useWindowSize/index.d.ts +2 -0
- package/dist/hooks/useWindowSize/index.d.ts.map +1 -0
- package/dist/hooks/{useWindowSize.d.ts → useWindowSize/useWindowSize.d.ts} +3 -4
- package/dist/hooks/useWindowSize/useWindowSize.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +6 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/ui/accordion/accordion-base.d.ts +20 -0
- package/dist/ui/accordion/accordion-base.d.ts.map +1 -0
- package/dist/ui/accordion/accordion.d.ts +8 -0
- package/dist/ui/accordion/accordion.d.ts.map +1 -0
- package/dist/ui/accordion/animated/accordion-content-animated.d.ts +6 -0
- package/dist/ui/accordion/animated/accordion-content-animated.d.ts.map +1 -0
- package/dist/ui/accordion/animated/accordion-root-animated.d.ts +6 -0
- package/dist/ui/accordion/animated/accordion-root-animated.d.ts.map +1 -0
- package/dist/ui/accordion/animated/animations.d.ts +6 -0
- package/dist/ui/accordion/animated/animations.d.ts.map +1 -0
- package/dist/ui/accordion/animated/index.d.ts +6 -0
- package/dist/ui/accordion/animated/index.d.ts.map +1 -0
- package/dist/ui/accordion/animated/types.d.ts +6 -0
- package/dist/ui/accordion/animated/types.d.ts.map +1 -0
- package/dist/ui/accordion/index.d.ts +5 -0
- package/dist/ui/accordion/index.d.ts.map +1 -0
- package/dist/ui/accordion/types.d.ts +39 -0
- package/dist/ui/accordion/types.d.ts.map +1 -0
- package/dist/ui/accordion/variants.d.ts +14 -0
- package/dist/ui/accordion/variants.d.ts.map +1 -0
- package/dist/ui/alert/alert-base.d.ts +28 -0
- package/dist/ui/alert/alert-base.d.ts.map +1 -0
- package/dist/ui/alert/alert.d.ts +6 -0
- package/dist/ui/alert/alert.d.ts.map +1 -0
- package/dist/ui/alert/animated/alert-animated.d.ts +3 -0
- package/dist/ui/alert/animated/alert-animated.d.ts.map +1 -0
- package/dist/ui/alert/animated/animations.d.ts +3 -0
- package/dist/ui/alert/animated/animations.d.ts.map +1 -0
- package/dist/ui/alert/animated/index.d.ts +4 -0
- package/dist/ui/alert/animated/index.d.ts.map +1 -0
- package/dist/ui/alert/animated/types.d.ts +8 -0
- package/dist/ui/alert/animated/types.d.ts.map +1 -0
- package/dist/ui/alert/index.d.ts +5 -0
- package/dist/ui/alert/index.d.ts.map +1 -0
- package/dist/ui/alert/types.d.ts +21 -0
- package/dist/ui/alert/types.d.ts.map +1 -0
- package/dist/ui/alert/variants.d.ts +11 -0
- package/dist/ui/alert/variants.d.ts.map +1 -0
- package/dist/ui/avatar/animated/animations.d.ts +3 -0
- package/dist/ui/avatar/animated/animations.d.ts.map +1 -0
- package/dist/ui/avatar/animated/avatar-animated.d.ts +6 -0
- package/dist/ui/avatar/animated/avatar-animated.d.ts.map +1 -0
- package/dist/ui/avatar/animated/index.d.ts +5 -0
- package/dist/ui/avatar/animated/index.d.ts.map +1 -0
- package/dist/ui/avatar/animated/types.d.ts +8 -0
- package/dist/ui/avatar/animated/types.d.ts.map +1 -0
- package/dist/ui/avatar/avatar-base.d.ts +25 -0
- package/dist/ui/avatar/avatar-base.d.ts.map +1 -0
- package/dist/ui/avatar/avatar.d.ts +8 -0
- package/dist/ui/avatar/avatar.d.ts.map +1 -0
- package/dist/ui/avatar/index.d.ts +5 -0
- package/dist/ui/avatar/index.d.ts.map +1 -0
- package/dist/ui/avatar/types.d.ts +25 -0
- package/dist/ui/avatar/types.d.ts.map +1 -0
- package/dist/ui/avatar/variants.d.ts +8 -0
- package/dist/ui/avatar/variants.d.ts.map +1 -0
- package/dist/ui/badge/animated/animations.d.ts +3 -0
- package/dist/ui/badge/animated/animations.d.ts.map +1 -0
- package/dist/ui/badge/animated/badge-animated.d.ts +6 -0
- package/dist/ui/badge/animated/badge-animated.d.ts.map +1 -0
- package/dist/ui/badge/animated/index.d.ts +4 -0
- package/dist/ui/badge/animated/index.d.ts.map +1 -0
- package/dist/ui/badge/animated/types.d.ts +10 -0
- package/dist/ui/badge/animated/types.d.ts.map +1 -0
- package/dist/ui/badge/badge-base.d.ts +6 -0
- package/dist/ui/badge/badge-base.d.ts.map +1 -0
- package/dist/ui/badge/badge.d.ts +6 -0
- package/dist/ui/badge/badge.d.ts.map +1 -0
- package/dist/ui/badge/index.d.ts +4 -0
- package/dist/ui/badge/index.d.ts.map +1 -0
- package/dist/ui/badge/types.d.ts +17 -0
- package/dist/ui/badge/types.d.ts.map +1 -0
- package/dist/ui/badge/variants.d.ts +40 -0
- package/dist/ui/badge/variants.d.ts.map +1 -0
- package/dist/ui/breadcrumb/breadcrumb.d.ts +33 -0
- package/dist/ui/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb/index.d.ts +4 -0
- package/dist/ui/breadcrumb/index.d.ts.map +1 -0
- package/dist/ui/breadcrumb/types.d.ts +26 -0
- package/dist/ui/breadcrumb/types.d.ts.map +1 -0
- package/dist/ui/breadcrumb/variants.d.ts +11 -0
- package/dist/ui/breadcrumb/variants.d.ts.map +1 -0
- package/dist/ui/buttons/animated/animations.d.ts +3 -0
- package/dist/ui/buttons/animated/animations.d.ts.map +1 -0
- package/dist/ui/buttons/animated/button-animated.d.ts +6 -0
- package/dist/ui/buttons/animated/button-animated.d.ts.map +1 -0
- package/dist/ui/buttons/animated/index.d.ts +4 -0
- package/dist/ui/buttons/animated/index.d.ts.map +1 -0
- package/dist/ui/buttons/animated/types.d.ts +16 -0
- package/dist/ui/buttons/animated/types.d.ts.map +1 -0
- package/dist/ui/buttons/button-base.d.ts +6 -0
- package/dist/ui/buttons/button-base.d.ts.map +1 -0
- package/dist/ui/buttons/button.d.ts +6 -0
- package/dist/ui/buttons/button.d.ts.map +1 -0
- package/dist/ui/buttons/index.d.ts +4 -0
- package/dist/ui/buttons/index.d.ts.map +1 -0
- package/dist/ui/buttons/types.d.ts +10 -0
- package/dist/ui/buttons/types.d.ts.map +1 -0
- package/dist/{variants-Dd9pe-ov.d.mts → ui/buttons/variants.d.ts} +4 -7
- package/dist/ui/buttons/variants.d.ts.map +1 -0
- package/dist/ui/card/animated/animations.d.ts +7 -0
- package/dist/ui/card/animated/animations.d.ts.map +1 -0
- package/dist/ui/card/animated/card-animated.d.ts +6 -0
- package/dist/ui/card/animated/card-animated.d.ts.map +1 -0
- package/dist/ui/card/animated/index.d.ts +5 -0
- package/dist/ui/card/animated/index.d.ts.map +1 -0
- package/dist/ui/card/animated/types.d.ts +6 -0
- package/dist/ui/card/animated/types.d.ts.map +1 -0
- package/dist/ui/card/card-base.d.ts +26 -0
- package/dist/ui/card/card-base.d.ts.map +1 -0
- package/dist/ui/card/card.d.ts +6 -0
- package/dist/ui/card/card.d.ts.map +1 -0
- package/dist/ui/card/index.d.ts +5 -0
- package/dist/ui/card/index.d.ts.map +1 -0
- package/dist/ui/card/types.d.ts +29 -0
- package/dist/ui/card/types.d.ts.map +1 -0
- package/dist/ui/card/variants.d.ts +18 -0
- package/dist/ui/card/variants.d.ts.map +1 -0
- package/dist/ui/divider/animated/animations.d.ts +6 -0
- package/dist/ui/divider/animated/animations.d.ts.map +1 -0
- package/dist/ui/divider/animated/divider-animated.d.ts +6 -0
- package/dist/ui/divider/animated/divider-animated.d.ts.map +1 -0
- package/dist/ui/divider/animated/index.d.ts +3 -0
- package/dist/ui/divider/animated/index.d.ts.map +1 -0
- package/dist/ui/divider/animated/types.d.ts +8 -0
- package/dist/ui/divider/animated/types.d.ts.map +1 -0
- package/dist/ui/divider/divider-base.d.ts +6 -0
- package/dist/ui/divider/divider-base.d.ts.map +1 -0
- package/dist/ui/divider/divider.d.ts +6 -0
- package/dist/ui/divider/divider.d.ts.map +1 -0
- package/dist/ui/divider/index.d.ts +4 -0
- package/dist/ui/divider/index.d.ts.map +1 -0
- package/dist/ui/divider/types.d.ts +15 -0
- package/dist/ui/divider/types.d.ts.map +1 -0
- package/dist/ui/divider/variants.d.ts +14 -0
- package/dist/ui/divider/variants.d.ts.map +1 -0
- package/dist/ui/drawer/animated/animations.d.ts +3 -0
- package/dist/ui/drawer/animated/animations.d.ts.map +1 -0
- package/dist/ui/drawer/animated/drawer-content-animated.d.ts +6 -0
- package/dist/ui/drawer/animated/drawer-content-animated.d.ts.map +1 -0
- package/dist/ui/drawer/animated/index.d.ts +5 -0
- package/dist/ui/drawer/animated/index.d.ts.map +1 -0
- package/dist/ui/drawer/animated/types.d.ts +9 -0
- package/dist/ui/drawer/animated/types.d.ts.map +1 -0
- package/dist/ui/drawer/drawer-base.d.ts +35 -0
- package/dist/ui/drawer/drawer-base.d.ts.map +1 -0
- package/dist/ui/drawer/drawer.d.ts +2 -0
- package/dist/ui/drawer/drawer.d.ts.map +1 -0
- package/dist/ui/drawer/index.d.ts +4 -0
- package/dist/ui/drawer/index.d.ts.map +1 -0
- package/dist/ui/drawer/types.d.ts +33 -0
- package/dist/ui/drawer/types.d.ts.map +1 -0
- package/dist/ui/drawer/variants.d.ts +10 -0
- package/dist/ui/drawer/variants.d.ts.map +1 -0
- package/dist/ui/dropdown/dropdown.d.ts +6 -0
- package/dist/ui/dropdown/dropdown.d.ts.map +1 -0
- package/dist/ui/dropdown/index.d.ts +4 -0
- package/dist/ui/dropdown/index.d.ts.map +1 -0
- package/dist/ui/dropdown/types.d.ts +38 -0
- package/dist/ui/dropdown/types.d.ts.map +1 -0
- package/dist/ui/dropdown/variants.d.ts +12 -0
- package/dist/ui/dropdown/variants.d.ts.map +1 -0
- package/dist/ui/empty-state/animated/animations.d.ts +3 -0
- package/dist/ui/empty-state/animated/animations.d.ts.map +1 -0
- package/dist/ui/empty-state/animated/empty-state-animated.d.ts +6 -0
- package/dist/ui/empty-state/animated/empty-state-animated.d.ts.map +1 -0
- package/dist/ui/empty-state/animated/index.d.ts +4 -0
- package/dist/ui/empty-state/animated/index.d.ts.map +1 -0
- package/dist/ui/empty-state/animated/types.d.ts +14 -0
- package/dist/ui/empty-state/animated/types.d.ts.map +1 -0
- package/dist/ui/empty-state/empty-state-base.d.ts +23 -0
- package/dist/ui/empty-state/empty-state-base.d.ts.map +1 -0
- package/dist/ui/empty-state/empty-state.d.ts +6 -0
- package/dist/ui/empty-state/empty-state.d.ts.map +1 -0
- package/dist/ui/empty-state/index.d.ts +5 -0
- package/dist/ui/empty-state/index.d.ts.map +1 -0
- package/dist/ui/empty-state/types.d.ts +15 -0
- package/dist/ui/empty-state/types.d.ts.map +1 -0
- package/dist/ui/empty-state/variants.d.ts +12 -0
- package/dist/ui/empty-state/variants.d.ts.map +1 -0
- package/dist/ui/file-upload/file-upload.d.ts +8 -0
- package/dist/ui/file-upload/file-upload.d.ts.map +1 -0
- package/dist/ui/file-upload/index.d.ts +4 -0
- package/dist/ui/file-upload/index.d.ts.map +1 -0
- package/dist/ui/file-upload/types.d.ts +18 -0
- package/dist/ui/file-upload/types.d.ts.map +1 -0
- package/dist/ui/file-upload/variants.d.ts +4 -0
- package/dist/ui/file-upload/variants.d.ts.map +1 -0
- package/dist/ui/inputs/animated/animations.d.ts +3 -0
- package/dist/ui/inputs/animated/animations.d.ts.map +1 -0
- package/dist/ui/inputs/animated/index.d.ts +4 -0
- package/dist/ui/inputs/animated/index.d.ts.map +1 -0
- package/dist/ui/inputs/animated/input-animated.d.ts +6 -0
- package/dist/ui/inputs/animated/input-animated.d.ts.map +1 -0
- package/dist/ui/inputs/animated/types.d.ts +16 -0
- package/dist/ui/inputs/animated/types.d.ts.map +1 -0
- package/dist/ui/inputs/index.d.ts +4 -0
- package/dist/ui/inputs/index.d.ts.map +1 -0
- package/dist/ui/inputs/input-base.d.ts +6 -0
- package/dist/ui/inputs/input-base.d.ts.map +1 -0
- package/dist/ui/inputs/input.d.ts +6 -0
- package/dist/ui/inputs/input.d.ts.map +1 -0
- package/dist/ui/inputs/types.d.ts +12 -0
- package/dist/ui/inputs/types.d.ts.map +1 -0
- package/dist/ui/inputs/variants.d.ts +7 -0
- package/dist/ui/inputs/variants.d.ts.map +1 -0
- package/dist/ui/modal/animated/animations.d.ts +3 -0
- package/dist/ui/modal/animated/animations.d.ts.map +1 -0
- package/dist/ui/modal/animated/index.d.ts +4 -0
- package/dist/ui/modal/animated/index.d.ts.map +1 -0
- package/dist/ui/modal/animated/modal-content-animated.d.ts +6 -0
- package/dist/ui/modal/animated/modal-content-animated.d.ts.map +1 -0
- package/dist/ui/modal/animated/types.d.ts +9 -0
- package/dist/ui/modal/animated/types.d.ts.map +1 -0
- package/dist/ui/modal/index.d.ts +5 -0
- package/dist/ui/modal/index.d.ts.map +1 -0
- package/dist/ui/modal/modal-base.d.ts +47 -0
- package/dist/ui/modal/modal-base.d.ts.map +1 -0
- package/dist/ui/modal/modal.d.ts +6 -0
- package/dist/ui/modal/modal.d.ts.map +1 -0
- package/dist/ui/modal/types.d.ts +26 -0
- package/dist/ui/modal/types.d.ts.map +1 -0
- package/dist/ui/modal/variants.d.ts +10 -0
- package/dist/ui/modal/variants.d.ts.map +1 -0
- package/dist/ui/pagination/index.d.ts +5 -0
- package/dist/ui/pagination/index.d.ts.map +1 -0
- package/dist/ui/pagination/pagination.d.ts +17 -0
- package/dist/ui/pagination/pagination.d.ts.map +1 -0
- package/dist/ui/pagination/types.d.ts +56 -0
- package/dist/ui/pagination/types.d.ts.map +1 -0
- package/dist/ui/pagination/variants.d.ts +12 -0
- package/dist/ui/pagination/variants.d.ts.map +1 -0
- package/dist/ui/progress/animated/animations.d.ts +3 -0
- package/dist/ui/progress/animated/animations.d.ts.map +1 -0
- package/dist/ui/progress/animated/index.d.ts +4 -0
- package/dist/ui/progress/animated/index.d.ts.map +1 -0
- package/dist/ui/progress/animated/progress-animated.d.ts +16 -0
- package/dist/ui/progress/animated/progress-animated.d.ts.map +1 -0
- package/dist/ui/progress/animated/types.d.ts +23 -0
- package/dist/ui/progress/animated/types.d.ts.map +1 -0
- package/dist/ui/progress/index.d.ts +5 -0
- package/dist/ui/progress/index.d.ts.map +1 -0
- package/dist/ui/progress/progress-base.d.ts +23 -0
- package/dist/ui/progress/progress-base.d.ts.map +1 -0
- package/dist/ui/progress/progress.d.ts +6 -0
- package/dist/ui/progress/progress.d.ts.map +1 -0
- package/dist/ui/progress/types.d.ts +28 -0
- package/dist/ui/progress/types.d.ts.map +1 -0
- package/dist/ui/progress/variants.d.ts +15 -0
- package/dist/ui/progress/variants.d.ts.map +1 -0
- package/dist/ui/select/index.d.ts +4 -0
- package/dist/ui/select/index.d.ts.map +1 -0
- package/dist/ui/select/select.d.ts +10 -0
- package/dist/ui/select/select.d.ts.map +1 -0
- package/dist/ui/select/types.d.ts +48 -0
- package/dist/ui/select/types.d.ts.map +1 -0
- package/dist/ui/select/variants.d.ts +14 -0
- package/dist/ui/select/variants.d.ts.map +1 -0
- package/dist/ui/skeleton/animated/animations.d.ts +3 -0
- package/dist/ui/skeleton/animated/animations.d.ts.map +1 -0
- package/dist/ui/skeleton/animated/index.d.ts +4 -0
- package/dist/ui/skeleton/animated/index.d.ts.map +1 -0
- package/dist/ui/skeleton/animated/skeleton-animated.d.ts +22 -0
- package/dist/ui/skeleton/animated/skeleton-animated.d.ts.map +1 -0
- package/dist/ui/skeleton/animated/types.d.ts +30 -0
- package/dist/ui/skeleton/animated/types.d.ts.map +1 -0
- package/dist/ui/skeleton/index.d.ts +5 -0
- package/dist/ui/skeleton/index.d.ts.map +1 -0
- package/dist/ui/skeleton/skeleton-base.d.ts +24 -0
- package/dist/ui/skeleton/skeleton-base.d.ts.map +1 -0
- package/dist/ui/skeleton/skeleton.d.ts +2 -0
- package/dist/ui/skeleton/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton/types.d.ts +23 -0
- package/dist/ui/skeleton/types.d.ts.map +1 -0
- package/dist/{types-CK_vNRIb.d.mts → ui/skeleton/variants.d.ts} +9 -34
- package/dist/ui/skeleton/variants.d.ts.map +1 -0
- package/dist/ui/slider/index.d.ts +4 -0
- package/dist/ui/slider/index.d.ts.map +1 -0
- package/dist/ui/slider/slider.d.ts +33 -0
- package/dist/ui/slider/slider.d.ts.map +1 -0
- package/dist/ui/slider/types.d.ts +49 -0
- package/dist/ui/slider/types.d.ts.map +1 -0
- package/dist/ui/slider/variants.d.ts +13 -0
- package/dist/ui/slider/variants.d.ts.map +1 -0
- package/dist/ui/spinner/animated/index.d.ts +4 -0
- package/dist/ui/spinner/animated/index.d.ts.map +1 -0
- package/dist/ui/spinner/animated/spinner.d.ts +6 -0
- package/dist/ui/spinner/animated/spinner.d.ts.map +1 -0
- package/dist/ui/spinner/animated/types.d.ts +9 -0
- package/dist/ui/spinner/animated/types.d.ts.map +1 -0
- package/dist/ui/spinner/animated/variants.d.ts +6 -0
- package/dist/ui/spinner/animated/variants.d.ts.map +1 -0
- package/dist/ui/stepper/index.d.ts +4 -0
- package/dist/ui/stepper/index.d.ts.map +1 -0
- package/dist/ui/stepper/stepper.d.ts +33 -0
- package/dist/ui/stepper/stepper.d.ts.map +1 -0
- package/dist/ui/stepper/types.d.ts +25 -0
- package/dist/ui/stepper/types.d.ts.map +1 -0
- package/dist/ui/stepper/variants.d.ts +11 -0
- package/dist/ui/stepper/variants.d.ts.map +1 -0
- package/dist/ui/table/animated/animations.d.ts +3 -0
- package/dist/ui/table/animated/animations.d.ts.map +1 -0
- package/dist/ui/table/animated/index.d.ts +5 -0
- package/dist/ui/table/animated/index.d.ts.map +1 -0
- package/dist/ui/table/animated/table-animated.d.ts +5 -0
- package/dist/ui/table/animated/table-animated.d.ts.map +1 -0
- package/dist/ui/table/animated/types.d.ts +8 -0
- package/dist/ui/table/animated/types.d.ts.map +1 -0
- package/dist/ui/table/index.d.ts +4 -0
- package/dist/ui/table/index.d.ts.map +1 -0
- package/dist/ui/table/table-base.d.ts +38 -0
- package/dist/ui/table/table-base.d.ts.map +1 -0
- package/dist/ui/table/table.d.ts +2 -0
- package/dist/ui/table/table.d.ts.map +1 -0
- package/dist/ui/table/types.d.ts +33 -0
- package/dist/ui/table/types.d.ts.map +1 -0
- package/dist/ui/table/variants.d.ts +14 -0
- package/dist/ui/table/variants.d.ts.map +1 -0
- package/dist/ui/tabs/animated/animations.d.ts +5 -0
- package/dist/ui/tabs/animated/animations.d.ts.map +1 -0
- package/dist/ui/tabs/animated/index.d.ts +4 -0
- package/dist/ui/tabs/animated/index.d.ts.map +1 -0
- package/dist/ui/tabs/animated/tabs-content-animated.d.ts +6 -0
- package/dist/ui/tabs/animated/tabs-content-animated.d.ts.map +1 -0
- package/dist/ui/tabs/animated/types.d.ts +14 -0
- package/dist/ui/tabs/animated/types.d.ts.map +1 -0
- package/dist/ui/tabs/index.d.ts +4 -0
- package/dist/ui/tabs/index.d.ts.map +1 -0
- package/dist/ui/tabs/tabs-base.d.ts +8 -0
- package/dist/ui/tabs/tabs-base.d.ts.map +1 -0
- package/dist/ui/tabs/tabs.d.ts +2 -0
- package/dist/ui/tabs/tabs.d.ts.map +1 -0
- package/dist/{types-zHcMUtKK.d.mts → ui/tabs/types.d.ts} +8 -10
- package/dist/ui/tabs/types.d.ts.map +1 -0
- package/dist/ui/tabs/variants.d.ts +11 -0
- package/dist/ui/tabs/variants.d.ts.map +1 -0
- package/dist/ui/toast/animated/animations.d.ts +3 -0
- package/dist/ui/toast/animated/animations.d.ts.map +1 -0
- package/dist/ui/toast/animated/index.d.ts +4 -0
- package/dist/ui/toast/animated/index.d.ts.map +1 -0
- package/dist/ui/toast/animated/toast-animated.d.ts +10 -0
- package/dist/ui/toast/animated/toast-animated.d.ts.map +1 -0
- package/dist/ui/toast/animated/types.d.ts +5 -0
- package/dist/ui/toast/animated/types.d.ts.map +1 -0
- package/dist/ui/toast/index.d.ts +4 -0
- package/dist/ui/toast/index.d.ts.map +1 -0
- package/dist/ui/toast/toast-base.d.ts +35 -0
- package/dist/ui/toast/toast-base.d.ts.map +1 -0
- package/dist/ui/toast/toast.d.ts +2 -0
- package/dist/ui/toast/toast.d.ts.map +1 -0
- package/dist/ui/toast/types.d.ts +45 -0
- package/dist/ui/toast/types.d.ts.map +1 -0
- package/dist/ui/toast/variants.d.ts +8 -0
- package/dist/ui/toast/variants.d.ts.map +1 -0
- package/dist/ui/toggle/animated/animations.d.ts +3 -0
- package/dist/ui/toggle/animated/animations.d.ts.map +1 -0
- package/dist/ui/toggle/animated/index.d.ts +4 -0
- package/dist/ui/toggle/animated/index.d.ts.map +1 -0
- package/dist/ui/toggle/animated/toggle-animated.d.ts +6 -0
- package/dist/ui/toggle/animated/toggle-animated.d.ts.map +1 -0
- package/dist/ui/toggle/animated/types.d.ts +9 -0
- package/dist/ui/toggle/animated/types.d.ts.map +1 -0
- package/dist/ui/toggle/index.d.ts +4 -0
- package/dist/ui/toggle/index.d.ts.map +1 -0
- package/dist/ui/toggle/toggle-base.d.ts +6 -0
- package/dist/ui/toggle/toggle-base.d.ts.map +1 -0
- package/dist/ui/toggle/toggle.d.ts +6 -0
- package/dist/ui/toggle/toggle.d.ts.map +1 -0
- package/dist/ui/toggle/types.d.ts +14 -0
- package/dist/ui/toggle/types.d.ts.map +1 -0
- package/dist/ui/toggle/variants.d.ts +8 -0
- package/dist/ui/toggle/variants.d.ts.map +1 -0
- package/dist/ui/tooltip/animated/animations.d.ts +3 -0
- package/dist/ui/tooltip/animated/animations.d.ts.map +1 -0
- package/dist/ui/tooltip/animated/index.d.ts +4 -0
- package/dist/ui/tooltip/animated/index.d.ts.map +1 -0
- package/dist/ui/tooltip/animated/tooltip-content-animated.d.ts +3 -0
- package/dist/ui/tooltip/animated/tooltip-content-animated.d.ts.map +1 -0
- package/dist/ui/tooltip/animated/types.d.ts +9 -0
- package/dist/ui/tooltip/animated/types.d.ts.map +1 -0
- package/dist/ui/tooltip/index.d.ts +4 -0
- package/dist/ui/tooltip/index.d.ts.map +1 -0
- package/dist/ui/tooltip/tooltip-base.d.ts +7 -0
- package/dist/ui/tooltip/tooltip-base.d.ts.map +1 -0
- package/dist/ui/tooltip/tooltip.d.ts +2 -0
- package/dist/ui/tooltip/tooltip.d.ts.map +1 -0
- package/dist/{types-Cn7IcgkH.d.mts → ui/tooltip/types.d.ts} +7 -9
- package/dist/ui/tooltip/types.d.ts.map +1 -0
- package/dist/ui/tooltip/variants.d.ts +6 -0
- package/dist/ui/tooltip/variants.d.ts.map +1 -0
- package/dist/vitest-setup.d.ts +2 -0
- package/dist/vitest-setup.d.ts.map +1 -0
- package/package.json +12 -5
- package/dist/accordion-base-qVomr7f_.d.mts +0 -66
- package/dist/accordion-base-qVomr7f_.d.ts +0 -66
- package/dist/avatar-base-s4dYg-24.d.mts +0 -49
- package/dist/avatar-base-s4dYg-24.d.ts +0 -49
- package/dist/card-base-CIGac8D_.d.mts +0 -70
- package/dist/card-base-CIGac8D_.d.ts +0 -70
- package/dist/hooks/useBodyScrollLock.d.mts +0 -14
- package/dist/hooks/useClickOutside.d.mts +0 -23
- package/dist/hooks/useClipboard.d.mts +0 -22
- package/dist/hooks/useControllableState.d.mts +0 -22
- package/dist/hooks/useDebouncedValue.d.mts +0 -14
- package/dist/hooks/useDisclosure.d.mts +0 -25
- package/dist/hooks/useDocumentTitle.d.mts +0 -19
- package/dist/hooks/useFocusManagement.d.mts +0 -24
- package/dist/hooks/useHover.d.mts +0 -15
- package/dist/hooks/useInView.d.mts +0 -19
- package/dist/hooks/useIntersectionObserver.d.mts +0 -19
- package/dist/hooks/useIsMounted.d.mts +0 -11
- package/dist/hooks/useIsomorphicLayoutEffect.d.mts +0 -11
- package/dist/hooks/useLocalStorage.d.mts +0 -22
- package/dist/hooks/useMediaQuery.d.mts +0 -13
- package/dist/hooks/useNetworkStatus.d.mts +0 -10
- package/dist/hooks/usePageVisibility.d.mts +0 -10
- package/dist/hooks/usePagination.d.mts +0 -5
- package/dist/hooks/usePagination.d.ts +0 -5
- package/dist/hooks/usePrefersColorScheme.d.mts +0 -10
- package/dist/hooks/usePrefersReducedMotion.d.mts +0 -10
- package/dist/hooks/useResizeObserver.d.mts +0 -23
- package/dist/hooks/useSessionStorage.d.mts +0 -22
- package/dist/hooks/useThrottledCallback.d.mts +0 -14
- package/dist/hooks/useToggle.d.mts +0 -9
- package/dist/hooks/useWindowSize.d.mts +0 -14
- package/dist/hooks/utils.d.mts +0 -8
- package/dist/hooks/utils.d.ts +0 -8
- package/dist/index-ClPu5gDp.d.ts +0 -86
- package/dist/index-D4p9fn1o.d.mts +0 -86
- package/dist/progress-base-Cm1JODYA.d.mts +0 -66
- package/dist/progress-base-Cm1JODYA.d.ts +0 -66
- package/dist/types-C7N9UvRm.d.mts +0 -38
- package/dist/types-C7N9UvRm.d.ts +0 -38
- package/dist/types-CFpwSbpK.d.mts +0 -27
- package/dist/types-CFpwSbpK.d.ts +0 -27
- package/dist/types-CK_vNRIb.d.ts +0 -63
- package/dist/types-Ca3t5aC_.d.mts +0 -31
- package/dist/types-Ca3t5aC_.d.ts +0 -31
- package/dist/types-Cn7IcgkH.d.ts +0 -32
- package/dist/types-CtFK7mFE.d.mts +0 -34
- package/dist/types-CtFK7mFE.d.ts +0 -34
- package/dist/types-DMkTQsWg.d.mts +0 -46
- package/dist/types-DMkTQsWg.d.ts +0 -46
- package/dist/types-DN400jNg.d.mts +0 -28
- package/dist/types-DN400jNg.d.ts +0 -28
- package/dist/types-vcZcRc6w.d.mts +0 -24
- package/dist/types-vcZcRc6w.d.ts +0 -24
- package/dist/types-zHcMUtKK.d.ts +0 -42
- package/dist/ui/accordion/animated.d.mts +0 -24
- package/dist/ui/accordion/animated.d.ts +0 -24
- package/dist/ui/accordion.d.mts +0 -14
- package/dist/ui/accordion.d.ts +0 -14
- package/dist/ui/alert/animated.d.mts +0 -18
- package/dist/ui/alert/animated.d.ts +0 -18
- package/dist/ui/alert.d.mts +0 -36
- package/dist/ui/alert.d.ts +0 -36
- package/dist/ui/avatar/animated.d.mts +0 -22
- package/dist/ui/avatar/animated.d.ts +0 -22
- package/dist/ui/avatar.d.mts +0 -13
- package/dist/ui/avatar.d.ts +0 -13
- package/dist/ui/badge/animated.d.mts +0 -22
- package/dist/ui/badge/animated.d.ts +0 -22
- package/dist/ui/badge.d.mts +0 -13
- package/dist/ui/badge.d.ts +0 -13
- package/dist/ui/breadcrumb.d.mts +0 -71
- package/dist/ui/breadcrumb.d.ts +0 -71
- package/dist/ui/buttons/animated.d.mts +0 -27
- package/dist/ui/buttons/animated.d.ts +0 -27
- package/dist/ui/buttons.d.mts +0 -19
- package/dist/ui/buttons.d.ts +0 -19
- package/dist/ui/card/animated.d.mts +0 -23
- package/dist/ui/card/animated.d.ts +0 -23
- package/dist/ui/card.d.mts +0 -13
- package/dist/ui/card.d.ts +0 -13
- package/dist/ui/divider/animated.d.mts +0 -19
- package/dist/ui/divider/animated.d.ts +0 -19
- package/dist/ui/divider.d.mts +0 -13
- package/dist/ui/divider.d.ts +0 -13
- package/dist/ui/drawer/animated.d.mts +0 -23
- package/dist/ui/drawer/animated.d.ts +0 -23
- package/dist/ui/drawer.d.mts +0 -80
- package/dist/ui/drawer.d.ts +0 -80
- package/dist/ui/dropdown.d.mts +0 -50
- package/dist/ui/dropdown.d.ts +0 -50
- package/dist/ui/empty-state/animated.d.mts +0 -24
- package/dist/ui/empty-state/animated.d.ts +0 -24
- package/dist/ui/empty-state.d.mts +0 -34
- package/dist/ui/empty-state.d.ts +0 -34
- package/dist/ui/file-upload.d.mts +0 -32
- package/dist/ui/file-upload.d.ts +0 -32
- package/dist/ui/inputs/animated.d.mts +0 -27
- package/dist/ui/inputs/animated.d.ts +0 -27
- package/dist/ui/inputs.d.mts +0 -21
- package/dist/ui/inputs.d.ts +0 -21
- package/dist/ui/modal/animated.d.mts +0 -21
- package/dist/ui/modal/animated.d.ts +0 -21
- package/dist/ui/modal.d.mts +0 -46
- package/dist/ui/modal.d.ts +0 -46
- package/dist/ui/pagination.d.mts +0 -36
- package/dist/ui/pagination.d.ts +0 -36
- package/dist/ui/progress/animated.d.mts +0 -41
- package/dist/ui/progress/animated.d.ts +0 -41
- package/dist/ui/progress.d.mts +0 -13
- package/dist/ui/progress.d.ts +0 -13
- package/dist/ui/select.d.mts +0 -73
- package/dist/ui/select.d.ts +0 -73
- package/dist/ui/skeleton/animated.d.mts +0 -56
- package/dist/ui/skeleton/animated.d.ts +0 -56
- package/dist/ui/skeleton.d.mts +0 -29
- package/dist/ui/skeleton.d.ts +0 -29
- package/dist/ui/slider.d.mts +0 -83
- package/dist/ui/slider.d.ts +0 -83
- package/dist/ui/spinner/animated.d.mts +0 -22
- package/dist/ui/spinner/animated.d.ts +0 -22
- package/dist/ui/stepper.d.mts +0 -64
- package/dist/ui/stepper.d.ts +0 -64
- package/dist/ui/table/animated.d.mts +0 -21
- package/dist/ui/table/animated.d.ts +0 -21
- package/dist/ui/table.d.mts +0 -87
- package/dist/ui/table.d.ts +0 -87
- package/dist/ui/tabs/animated.d.mts +0 -25
- package/dist/ui/tabs/animated.d.ts +0 -25
- package/dist/ui/tabs.d.mts +0 -24
- package/dist/ui/tabs.d.ts +0 -24
- package/dist/ui/toast/animated.d.mts +0 -23
- package/dist/ui/toast/animated.d.ts +0 -23
- package/dist/ui/toast.d.mts +0 -41
- package/dist/ui/toast.d.ts +0 -41
- package/dist/ui/toggle/animated.d.mts +0 -22
- package/dist/ui/toggle/animated.d.ts +0 -22
- package/dist/ui/toggle.d.mts +0 -13
- package/dist/ui/toggle.d.ts +0 -13
- package/dist/ui/tooltip/animated.d.mts +0 -17
- package/dist/ui/tooltip/animated.d.ts +0 -17
- package/dist/ui/tooltip.d.mts +0 -19
- package/dist/ui/tooltip.d.ts +0 -19
- package/dist/variants-CYODHI8b.d.mts +0 -10
- package/dist/variants-CYODHI8b.d.ts +0 -10
- package/dist/variants-Dd9pe-ov.d.ts +0 -8
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type UseControllableStateParams<T> = {
|
|
2
|
-
/** When defined, the hook is controlled and this value is returned as state. */
|
|
3
|
-
value?: T;
|
|
4
|
-
/** Initial / fallback value when uncontrolled (`value` is `undefined`). */
|
|
5
|
-
defaultValue: T;
|
|
6
|
-
/** Notified on every `setValue` with the resolved next value (controlled and uncontrolled). */
|
|
7
|
-
onChange?: (next: T) => void;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Implements the React “controlled vs uncontrolled” pattern as a single state tuple.
|
|
11
|
-
*
|
|
12
|
-
* - If `value` is `undefined`, internal state mirrors `defaultValue` and updates on `setValue`.
|
|
13
|
-
* - If `value` is defined, returned state follows `value`; `setValue` still calls `onChange` so the parent can update.
|
|
14
|
-
* - `setValue` accepts either the next value or an updater `(prev) => next` (updater uses the current `value` in controlled mode).
|
|
15
|
-
*
|
|
16
|
-
* @typeParam T - State value type.
|
|
17
|
-
* @param params - `value`, `defaultValue`, and optional `onChange`.
|
|
18
|
-
* @returns `[value, setValue]` compatible with `useState`-style usage.
|
|
19
|
-
*/
|
|
20
|
-
declare function useControllableState<T>({ value: valueProp, defaultValue, onChange, }: UseControllableStateParams<T>): [T, (next: T | ((prev: T) => T)) => void];
|
|
21
|
-
|
|
22
|
-
export { type UseControllableStateParams, useControllableState };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a lagged copy of `value` that only updates after `value` has been stable for `delayMs`.
|
|
3
|
-
* Each change to `value` or `delayMs` resets the timer; rapid updates collapse into one committed update.
|
|
4
|
-
*
|
|
5
|
-
* Common uses: search inputs, resize-driven layout, or any expensive work that should not run on every keystroke.
|
|
6
|
-
*
|
|
7
|
-
* @typeParam T - Value type (any JSON-serializable or referential type).
|
|
8
|
-
* @param value - Live value from props or state.
|
|
9
|
-
* @param delayMs - Debounce interval in milliseconds.
|
|
10
|
-
* @returns The last value that survived the full delay without a newer `value` arriving.
|
|
11
|
-
*/
|
|
12
|
-
declare function useDebouncedValue<T>(value: T, delayMs: number): T;
|
|
13
|
-
|
|
14
|
-
export { useDebouncedValue };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type UseDisclosureParams = {
|
|
2
|
-
/** Controlled open flag; omit for uncontrolled usage with `defaultOpen`. */
|
|
3
|
-
open?: boolean;
|
|
4
|
-
/** Initial open state when uncontrolled. */
|
|
5
|
-
defaultOpen?: boolean;
|
|
6
|
-
/** Fired whenever open state changes from user-driven `setOpen` / `open` / `close` / `toggle`. */
|
|
7
|
-
onOpenChange?: (open: boolean) => void;
|
|
8
|
-
};
|
|
9
|
-
type UseDisclosureResult = {
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
open: () => void;
|
|
12
|
-
close: () => void;
|
|
13
|
-
toggle: () => void;
|
|
14
|
-
setOpen: (open: boolean) => void;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Boolean open/close state for overlays (dialogs, menus, collapsible regions) with optional control from the parent.
|
|
18
|
-
* Built on {@link useControllableState}; semantics match common headless UI libraries.
|
|
19
|
-
*
|
|
20
|
-
* @param params - Optional `open`, `defaultOpen`, and `onOpenChange`.
|
|
21
|
-
* @returns Helpers `open`, `close`, `toggle`, `setOpen`, and the current `isOpen` flag.
|
|
22
|
-
*/
|
|
23
|
-
declare function useDisclosure({ open: openProp, defaultOpen, onOpenChange, }?: UseDisclosureParams): UseDisclosureResult;
|
|
24
|
-
|
|
25
|
-
export { type UseDisclosureParams, type UseDisclosureResult, useDisclosure };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
type UseDocumentTitleParams = {
|
|
2
|
-
title: string;
|
|
3
|
-
/** When true (default), restores the document title from before this hook mounted when the component unmounts */
|
|
4
|
-
restoreOnUnmount?: boolean;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Keeps `document.title` in sync with `title` for the lifetime of the component.
|
|
8
|
-
*
|
|
9
|
-
* On first mount in the browser, the current title is captured. When `title` changes, the document title updates.
|
|
10
|
-
* If `restoreOnUnmount` is true when the component unmounts, the captured title is restored so nested routes or
|
|
11
|
-
* modals do not leak titles. Changing `restoreOnUnmount` while mounted does not run restore; only unmount does.
|
|
12
|
-
*
|
|
13
|
-
* @param params.title - Desired `document.title` string.
|
|
14
|
-
* @param params.restoreOnUnmount - Whether to restore the pre-mount title on unmount (default `true`). The value
|
|
15
|
-
* read at unmount time determines behavior, not mid-mount prop changes.
|
|
16
|
-
*/
|
|
17
|
-
declare function useDocumentTitle({ title, restoreOnUnmount, }: UseDocumentTitleParams): void;
|
|
18
|
-
|
|
19
|
-
export { type UseDocumentTitleParams, useDocumentTitle };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Composes modal-like behavior for an open overlay: body scroll lock, Escape to close, and focus trapping.
|
|
5
|
-
*
|
|
6
|
-
* - Delegates scroll locking to {@link useBodyScrollLock} while `open` is true.
|
|
7
|
-
* - Listens for `Escape` on `window` and calls `setOpen(false)`.
|
|
8
|
-
* - When `open` becomes true, focuses the first visible focusable inside `contentRef`, or the container itself.
|
|
9
|
-
* - Traps focus within `contentRef` via a capturing `focusin` listener on `document` that redirects focus back inside.
|
|
10
|
-
* - On close/unmount of the open effect, restores focus to the element that was focused before the trap ran.
|
|
11
|
-
*
|
|
12
|
-
* @param params.open - Whether the overlay is visible.
|
|
13
|
-
* @param params.setOpen - Setter used for Escape and cleanup paths.
|
|
14
|
-
* @param params.contentRef - Root of the dialog/drawer content (must point at a focusable container or include focusables).
|
|
15
|
-
* @param params.focusableSelector - Query selector for tabbable elements; defaults to a common interactive set.
|
|
16
|
-
*/
|
|
17
|
-
declare const useFocusManagement: ({ open, setOpen, contentRef, focusableSelector, }: {
|
|
18
|
-
open: boolean;
|
|
19
|
-
setOpen: (open: boolean) => void;
|
|
20
|
-
contentRef: RefObject<HTMLDivElement | null>;
|
|
21
|
-
focusableSelector?: string;
|
|
22
|
-
}) => void;
|
|
23
|
-
|
|
24
|
-
export { useFocusManagement };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RefCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Tracks pointer hover state for a single DOM node using `pointerenter` / `pointerleave`.
|
|
5
|
-
*
|
|
6
|
-
* When the ref target changes (or unmounts), hover is cleared so state does not stay `true` after
|
|
7
|
-
* retargeting without a `pointerleave` on the previous node.
|
|
8
|
-
*
|
|
9
|
-
* @typeParam T - HTMLElement subtype for the ref callback (e.g. `HTMLDivElement`).
|
|
10
|
-
* @returns A tuple `[setRef, hovered]` where `setRef` is a callback ref to attach to the target element
|
|
11
|
-
* and `hovered` is `true` while the pointer is over that element (primary button agnostic).
|
|
12
|
-
*/
|
|
13
|
-
declare function useHover<T extends HTMLElement>(): [RefCallback<T>, boolean];
|
|
14
|
-
|
|
15
|
-
export { useHover };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RefCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
type UseInViewParams = IntersectionObserverInit & {
|
|
4
|
-
/** When `false`, no observer is attached (useful to pause work when off-screen lists are virtualized). */
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Convenience wrapper around {@link useIntersectionObserver} that exposes only a boolean `inView` flag.
|
|
9
|
-
*
|
|
10
|
-
* `inView` is `true` when the latest `IntersectionObserverEntry.isIntersecting` is truthy; otherwise `false`.
|
|
11
|
-
* Accepts the same `root`, `rootMargin`, `threshold`, and `enabled` options as the underlying observer.
|
|
12
|
-
*
|
|
13
|
-
* @typeParam T - Observed element type.
|
|
14
|
-
* @param params - IntersectionObserver options plus optional `enabled` flag.
|
|
15
|
-
* @returns `[setRef, inView]` callback ref and intersection boolean.
|
|
16
|
-
*/
|
|
17
|
-
declare function useInView<T extends Element>(params?: UseInViewParams): [RefCallback<T>, boolean];
|
|
18
|
-
|
|
19
|
-
export { type UseInViewParams, useInView };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RefCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
type UseIntersectionObserverParams = IntersectionObserverInit & {
|
|
4
|
-
/** When `false`, disconnects the observer until re-enabled (saves work for hidden or inactive content). */
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Observes a single element with the browser `IntersectionObserver` API and exposes the latest entry.
|
|
9
|
-
*
|
|
10
|
-
* Returns a callback ref: assign it to the element to measure. When `enabled` is false or `IntersectionObserver`
|
|
11
|
-
* is undefined (unsupported environment), the effect is a no-op and `entry` may stay `undefined`.
|
|
12
|
-
*
|
|
13
|
-
* @typeParam T - Observed element type.
|
|
14
|
-
* @param params - Standard `IntersectionObserverInit` fields plus optional `enabled` (default `true`).
|
|
15
|
-
* @returns `[setRef, entry]` where `entry` is the most recent callback record for the observed target.
|
|
16
|
-
*/
|
|
17
|
-
declare function useIntersectionObserver<T extends Element>(params?: UseIntersectionObserverParams): [RefCallback<T>, IntersectionObserverEntry | undefined];
|
|
18
|
-
|
|
19
|
-
export { type UseIntersectionObserverParams, useIntersectionObserver };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a stable function that reports whether the component is currently mounted.
|
|
3
|
-
*
|
|
4
|
-
* Useful to guard async completions (fetch, timers) so `setState` does not run after unmount.
|
|
5
|
-
* The returned function identity is stable across renders; it reads a ref updated in an effect.
|
|
6
|
-
*
|
|
7
|
-
* @returns `() => boolean` — `true` after mount until unmount cleanup runs.
|
|
8
|
-
*/
|
|
9
|
-
declare function useIsMounted(): () => boolean;
|
|
10
|
-
|
|
11
|
-
export { useIsMounted };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Runs `useLayoutEffect` in the browser and `useEffect` on the server to avoid SSR warnings.
|
|
5
|
-
*
|
|
6
|
-
* Use for DOM measurements or synchronous paint updates that must run before the browser paints,
|
|
7
|
-
* but only when the code path is safe on the client; on the server the timing matches `useEffect`.
|
|
8
|
-
*/
|
|
9
|
-
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
10
|
-
|
|
11
|
-
export { useIsomorphicLayoutEffect };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type UseLocalStorageResult<T> = [
|
|
2
|
-
T,
|
|
3
|
-
(value: T | ((previous: T) => T)) => void,
|
|
4
|
-
() => void
|
|
5
|
-
];
|
|
6
|
-
/**
|
|
7
|
-
* Syncs JSON-serialized state with `window.localStorage` under a fixed key.
|
|
8
|
-
*
|
|
9
|
-
* - Initial read runs on the client; SSR uses `initialValue`.
|
|
10
|
-
* - `setValue` persists with `JSON.stringify` and updates React state; functional updates supported.
|
|
11
|
-
* - `remove` clears the key and resets state to `initialValue`.
|
|
12
|
-
* - Subscribes to the `storage` event so updates from other tabs (or same tab via `storage` dispatch quirks) reconcile.
|
|
13
|
-
* - Read/write failures (private mode, quota) fall back silently on read; write errors are swallowed except `remove` logs on failure.
|
|
14
|
-
*
|
|
15
|
-
* @typeParam T - Stored value type; must be compatible with `JSON.stringify` / `parse`.
|
|
16
|
-
* @param key - `localStorage` key.
|
|
17
|
-
* @param initialValue - Fallback when missing, invalid JSON, or during SSR.
|
|
18
|
-
* @returns `[stored, setValue, remove]` tuple mirroring `useState` plus explicit removal.
|
|
19
|
-
*/
|
|
20
|
-
declare function useLocalStorage<T>(key: string, initialValue: T): UseLocalStorageResult<T>;
|
|
21
|
-
|
|
22
|
-
export { type UseLocalStorageResult, useLocalStorage };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Subscribes to `window.matchMedia(query)` and returns whether the query currently matches.
|
|
3
|
-
*
|
|
4
|
-
* On the server or when `matchMedia` is missing, `defaultValue` is used for the initial render and the effect no-ops.
|
|
5
|
-
* The `change` listener keeps `matches` updated when the viewport or user settings change.
|
|
6
|
-
*
|
|
7
|
-
* @param query - A valid media query string, e.g. `"(min-width: 768px)"`.
|
|
8
|
-
* @param defaultValue - Value to use before hydration or when `matchMedia` is unavailable (default `false`).
|
|
9
|
-
* @returns Current `matches` boolean for the query.
|
|
10
|
-
*/
|
|
11
|
-
declare function useMediaQuery(query: string, defaultValue?: boolean): boolean;
|
|
12
|
-
|
|
13
|
-
export { useMediaQuery };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reflects browser online/offline connectivity using `navigator.onLine` and the `window` `"online"` / `"offline"` events.
|
|
3
|
-
*
|
|
4
|
-
* Defaults to `true` during SSR when `navigator` is undefined. Does not expose `connection` quality metrics—only reachability hints.
|
|
5
|
-
*
|
|
6
|
-
* @returns `true` when the browser believes the device is online, `false` when offline.
|
|
7
|
-
*/
|
|
8
|
-
declare function useNetworkStatus(): boolean;
|
|
9
|
-
|
|
10
|
-
export { useNetworkStatus };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tracks `document.visibilityState` (`"visible"`, `"hidden"`, or `"prerender"`) across tab visibility changes.
|
|
3
|
-
*
|
|
4
|
-
* Subscribes to `"visibilitychange"` so backgrounding a tab or switching windows updates state. SSR defaults to `"visible"`.
|
|
5
|
-
*
|
|
6
|
-
* @returns Current `DocumentVisibilityState` from the Page Visibility API.
|
|
7
|
-
*/
|
|
8
|
-
declare function usePageVisibility(): DocumentVisibilityState;
|
|
9
|
-
|
|
10
|
-
export { usePageVisibility };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { B as BuildPaginationItemsParams, a as PaginationPageItem, e as buildPaginationItems, u as usePagination } from '../index-D4p9fn1o.mjs';
|
|
2
|
-
import 'class-variance-authority';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../variants-Dd9pe-ov.mjs';
|
|
5
|
-
import 'class-variance-authority/types';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { B as BuildPaginationItemsParams, a as PaginationPageItem, e as buildPaginationItems, u as usePagination } from '../index-ClPu5gDp.js';
|
|
2
|
-
import 'class-variance-authority';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../variants-Dd9pe-ov.js';
|
|
5
|
-
import 'class-variance-authority/types';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type ColorSchemePreference = "light" | "dark";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the user’s preferred color scheme from `prefers-color-scheme: dark` via {@link useMediaQuery}.
|
|
4
|
-
*
|
|
5
|
-
* @param defaultScheme - Hydration / SSR fallback when media queries are unavailable (`"light"` or `"dark"`).
|
|
6
|
-
* @returns `"dark"` when the dark media query matches, otherwise `"light"`.
|
|
7
|
-
*/
|
|
8
|
-
declare function usePrefersColorScheme(defaultScheme?: ColorSchemePreference): ColorSchemePreference;
|
|
9
|
-
|
|
10
|
-
export { type ColorSchemePreference, usePrefersColorScheme };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns whether the user prefers reduced motion (`prefers-reduced-motion: reduce`).
|
|
3
|
-
*
|
|
4
|
-
* Use to disable non-essential animations or switch to instant transitions for accessibility.
|
|
5
|
-
*
|
|
6
|
-
* @returns `true` when reduced motion is requested.
|
|
7
|
-
*/
|
|
8
|
-
declare function usePrefersReducedMotion(): boolean;
|
|
9
|
-
|
|
10
|
-
export { usePrefersReducedMotion };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { RefCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
type ElementSize = {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
};
|
|
7
|
-
type UseResizeObserverParams = {
|
|
8
|
-
/** When `false`, no `ResizeObserver` is attached. */
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Observes an element’s `contentRect` size via `ResizeObserver` and exposes `{ width, height }`.
|
|
13
|
-
*
|
|
14
|
-
* When `ResizeObserver` is undefined or `enabled` is false, size may remain `undefined`. Uses the first
|
|
15
|
-
* entry from the observer callback (`entries[0]`) aligned with the single observed node.
|
|
16
|
-
*
|
|
17
|
-
* @typeParam T - Observed element type.
|
|
18
|
-
* @param params - Optional `{ enabled }` (default `true`).
|
|
19
|
-
* @returns `[setRef, size]` callback ref and latest measured size.
|
|
20
|
-
*/
|
|
21
|
-
declare function useResizeObserver<T extends Element>(params?: UseResizeObserverParams): [RefCallback<T>, ElementSize | undefined];
|
|
22
|
-
|
|
23
|
-
export { type ElementSize, useResizeObserver };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type UseSessionStorageResult<T> = [
|
|
2
|
-
T,
|
|
3
|
-
(value: T | ((previous: T) => T)) => void,
|
|
4
|
-
() => void
|
|
5
|
-
];
|
|
6
|
-
/**
|
|
7
|
-
* Syncs JSON-serialized state with `window.sessionStorage` for the lifetime of the browser tab.
|
|
8
|
-
*
|
|
9
|
-
* Same persistence semantics as {@link useLocalStorage} but scoped to the session: data clears when the tab closes.
|
|
10
|
-
* Unlike `useLocalStorage`, this hook does **not** subscribe to `storage` events (session storage is not shared across tabs).
|
|
11
|
-
*
|
|
12
|
-
* State is initialized from `initialValue` only so the first client render can match SSR output; the stored value is
|
|
13
|
-
* applied after mount in an effect to avoid hydration mismatches.
|
|
14
|
-
*
|
|
15
|
-
* @typeParam T - Stored value type; must round-trip through `JSON.stringify` / `parse`.
|
|
16
|
-
* @param key - `sessionStorage` key.
|
|
17
|
-
* @param initialValue - Fallback when missing, invalid JSON, or during SSR; also used for the first render before hydrate.
|
|
18
|
-
* @returns `[stored, setValue, remove]` tuple.
|
|
19
|
-
*/
|
|
20
|
-
declare function useSessionStorage<T>(key: string, initialValue: T): UseSessionStorageResult<T>;
|
|
21
|
-
|
|
22
|
-
export { type UseSessionStorageResult, useSessionStorage };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a stable, throttled version of `callback` that runs at most once per `intervalMs`.
|
|
3
|
-
*
|
|
4
|
-
* If invoked again inside the cooldown window, the extra calls are **dropped** (no trailing flush). The latest
|
|
5
|
-
* `callback` reference is always used via a ref, so changing the handler does not reset the throttle clock.
|
|
6
|
-
*
|
|
7
|
-
* @typeParam T - Void function type (`(...args) => void`).
|
|
8
|
-
* @param callback - Work to run when the throttle gate opens.
|
|
9
|
-
* @param intervalMs - Minimum milliseconds between invocations.
|
|
10
|
-
* @returns Throttled function with the same call signature as `callback`.
|
|
11
|
-
*/
|
|
12
|
-
declare function useThrottledCallback<T extends (...args: any[]) => void>(callback: T, intervalMs: number): T;
|
|
13
|
-
|
|
14
|
-
export { useThrottledCallback };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple boolean state with `toggle()` and an explicit `set(next)` setter.
|
|
3
|
-
*
|
|
4
|
-
* @param initialValue - Starting boolean (default `false`).
|
|
5
|
-
* @returns `[on, toggle, set]` where `on` is the flag, `toggle` flips it, and `set` assigns an absolute value.
|
|
6
|
-
*/
|
|
7
|
-
declare function useToggle(initialValue?: boolean): [boolean, () => void, (next: boolean) => void];
|
|
8
|
-
|
|
9
|
-
export { useToggle };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type WindowSize = {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Tracks the viewport size using `window.innerWidth` / `innerHeight` and a `resize` listener.
|
|
7
|
-
*
|
|
8
|
-
* Initializes to `{ width: 0, height: 0 }` on the server; after mount, size updates to the real viewport and on every resize.
|
|
9
|
-
*
|
|
10
|
-
* @returns Latest `{ width, height }` in CSS pixels.
|
|
11
|
-
*/
|
|
12
|
-
declare function useWindowSize(): WindowSize;
|
|
13
|
-
|
|
14
|
-
export { type WindowSize, useWindowSize };
|
package/dist/hooks/utils.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
|
|
3
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
4
|
-
declare const clampPage: (page: number, pageCount: number) => number;
|
|
5
|
-
declare const range: (from: number, to: number) => number[];
|
|
6
|
-
declare const clamp: (value: number, min: number, max: number) => number;
|
|
7
|
-
|
|
8
|
-
export { clamp, clampPage, cn, range };
|
package/dist/hooks/utils.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
|
|
3
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
4
|
-
declare const clampPage: (page: number, pageCount: number) => number;
|
|
5
|
-
declare const range: (from: number, to: number) => number[];
|
|
6
|
-
declare const clamp: (value: number, min: number, max: number) => number;
|
|
7
|
-
|
|
8
|
-
export { clamp, clampPage, cn, range };
|
package/dist/index-ClPu5gDp.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { b as buttonVariants } from './variants-Dd9pe-ov.js';
|
|
4
|
-
|
|
5
|
-
type PaginationAppearance = NonNullable<VariantProps<typeof buttonVariants>["appearance"]>;
|
|
6
|
-
type PaginationSize = NonNullable<VariantProps<typeof buttonVariants>["size"]>;
|
|
7
|
-
type PaginationPageItem = {
|
|
8
|
-
type: "page";
|
|
9
|
-
value: number;
|
|
10
|
-
} | {
|
|
11
|
-
type: "ellipsis";
|
|
12
|
-
key: string;
|
|
13
|
-
};
|
|
14
|
-
type UsePaginationParams = {
|
|
15
|
-
pageCount: number;
|
|
16
|
-
page?: number;
|
|
17
|
-
defaultPage?: number;
|
|
18
|
-
siblingCount?: number;
|
|
19
|
-
boundaryCount?: number;
|
|
20
|
-
onPageChange?: (page: number) => void;
|
|
21
|
-
};
|
|
22
|
-
type UsePaginationResult = {
|
|
23
|
-
/** 1-based active page, clamped to `[1, pageCount]`. */
|
|
24
|
-
currentPage: number;
|
|
25
|
-
pageCount: number;
|
|
26
|
-
items: PaginationPageItem[];
|
|
27
|
-
setPage: (page: number) => void;
|
|
28
|
-
goPrev: () => void;
|
|
29
|
-
goNext: () => void;
|
|
30
|
-
canGoPrev: boolean;
|
|
31
|
-
canGoNext: boolean;
|
|
32
|
-
};
|
|
33
|
-
type PaginationProps = Omit<ComponentPropsWithoutRef<"nav">, "onChange"> & VariantProps<typeof buttonVariants> & {
|
|
34
|
-
pageCount: number;
|
|
35
|
-
page?: number;
|
|
36
|
-
defaultPage?: number;
|
|
37
|
-
onPageChange?: (page: number) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Number of page buttons to show on each side of the current page (the “middle” window).
|
|
40
|
-
* @defaultValue 1
|
|
41
|
-
*/
|
|
42
|
-
siblingCount?: number;
|
|
43
|
-
/**
|
|
44
|
-
* Number of pages to keep visible at the start and end of the range.
|
|
45
|
-
* @defaultValue 1
|
|
46
|
-
*/
|
|
47
|
-
boundaryCount?: number;
|
|
48
|
-
showPrevNext?: boolean;
|
|
49
|
-
prevLabel?: string;
|
|
50
|
-
nextLabel?: string;
|
|
51
|
-
ellipsisLabel?: string;
|
|
52
|
-
/**
|
|
53
|
-
* When set, page controls render as anchors suitable for URL-based pagination.
|
|
54
|
-
*/
|
|
55
|
-
getPageHref?: (page: number) => string | undefined;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
type BuildPaginationItemsParams = {
|
|
59
|
-
pageCount: number;
|
|
60
|
-
currentPage: number;
|
|
61
|
-
siblingCount: number;
|
|
62
|
-
boundaryCount: number;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Headless pagination state: current page, derived page button items, and prev/next helpers.
|
|
66
|
-
*
|
|
67
|
-
* Supports controlled mode when `page` is passed from the parent, or internal state seeded by `defaultPage`.
|
|
68
|
-
* All page indices are **1-based** and clamped to `[1, pageCount]` via {@link clampPage}. `items` is memoized from
|
|
69
|
-
* {@link buildPaginationItems} for rendering numeric pages and ellipsis gaps.
|
|
70
|
-
*
|
|
71
|
-
* @param params - See `UsePaginationParams` in `../ui/pagination/types` for full fields (`pageCount`, `page`, `onPageChange`, etc.).
|
|
72
|
-
* @returns Current page, item list, `setPage`, navigation helpers, and `canGoPrev` / `canGoNext` flags.
|
|
73
|
-
*/
|
|
74
|
-
declare function usePagination({ pageCount, page, defaultPage, siblingCount, boundaryCount, onPageChange, }: UsePaginationParams): UsePaginationResult;
|
|
75
|
-
/**
|
|
76
|
-
* Builds the ordered list of page numbers and ellipsis markers for a pagination control.
|
|
77
|
-
*
|
|
78
|
-
* @param params.pageCount - Total number of pages (must be >= 0; empty list when 0).
|
|
79
|
-
* @param params.currentPage - Active page index (1-based).
|
|
80
|
-
* @param params.siblingCount - How many page buttons to show on each side of the current page.
|
|
81
|
-
* @param params.boundaryCount - How many pages to pin at the start and end of the range.
|
|
82
|
-
* @returns Items suitable for rendering, e.g. page `1`, ellipsis gap, middle window, ellipsis, last page.
|
|
83
|
-
*/
|
|
84
|
-
declare function buildPaginationItems({ pageCount, currentPage, siblingCount, boundaryCount, }: BuildPaginationItemsParams): PaginationPageItem[];
|
|
85
|
-
|
|
86
|
-
export { type BuildPaginationItemsParams as B, type PaginationAppearance as P, type UsePaginationParams as U, type PaginationPageItem as a, type PaginationProps as b, type PaginationSize as c, type UsePaginationResult as d, buildPaginationItems as e, usePagination as u };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { b as buttonVariants } from './variants-Dd9pe-ov.mjs';
|
|
4
|
-
|
|
5
|
-
type PaginationAppearance = NonNullable<VariantProps<typeof buttonVariants>["appearance"]>;
|
|
6
|
-
type PaginationSize = NonNullable<VariantProps<typeof buttonVariants>["size"]>;
|
|
7
|
-
type PaginationPageItem = {
|
|
8
|
-
type: "page";
|
|
9
|
-
value: number;
|
|
10
|
-
} | {
|
|
11
|
-
type: "ellipsis";
|
|
12
|
-
key: string;
|
|
13
|
-
};
|
|
14
|
-
type UsePaginationParams = {
|
|
15
|
-
pageCount: number;
|
|
16
|
-
page?: number;
|
|
17
|
-
defaultPage?: number;
|
|
18
|
-
siblingCount?: number;
|
|
19
|
-
boundaryCount?: number;
|
|
20
|
-
onPageChange?: (page: number) => void;
|
|
21
|
-
};
|
|
22
|
-
type UsePaginationResult = {
|
|
23
|
-
/** 1-based active page, clamped to `[1, pageCount]`. */
|
|
24
|
-
currentPage: number;
|
|
25
|
-
pageCount: number;
|
|
26
|
-
items: PaginationPageItem[];
|
|
27
|
-
setPage: (page: number) => void;
|
|
28
|
-
goPrev: () => void;
|
|
29
|
-
goNext: () => void;
|
|
30
|
-
canGoPrev: boolean;
|
|
31
|
-
canGoNext: boolean;
|
|
32
|
-
};
|
|
33
|
-
type PaginationProps = Omit<ComponentPropsWithoutRef<"nav">, "onChange"> & VariantProps<typeof buttonVariants> & {
|
|
34
|
-
pageCount: number;
|
|
35
|
-
page?: number;
|
|
36
|
-
defaultPage?: number;
|
|
37
|
-
onPageChange?: (page: number) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Number of page buttons to show on each side of the current page (the “middle” window).
|
|
40
|
-
* @defaultValue 1
|
|
41
|
-
*/
|
|
42
|
-
siblingCount?: number;
|
|
43
|
-
/**
|
|
44
|
-
* Number of pages to keep visible at the start and end of the range.
|
|
45
|
-
* @defaultValue 1
|
|
46
|
-
*/
|
|
47
|
-
boundaryCount?: number;
|
|
48
|
-
showPrevNext?: boolean;
|
|
49
|
-
prevLabel?: string;
|
|
50
|
-
nextLabel?: string;
|
|
51
|
-
ellipsisLabel?: string;
|
|
52
|
-
/**
|
|
53
|
-
* When set, page controls render as anchors suitable for URL-based pagination.
|
|
54
|
-
*/
|
|
55
|
-
getPageHref?: (page: number) => string | undefined;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
type BuildPaginationItemsParams = {
|
|
59
|
-
pageCount: number;
|
|
60
|
-
currentPage: number;
|
|
61
|
-
siblingCount: number;
|
|
62
|
-
boundaryCount: number;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Headless pagination state: current page, derived page button items, and prev/next helpers.
|
|
66
|
-
*
|
|
67
|
-
* Supports controlled mode when `page` is passed from the parent, or internal state seeded by `defaultPage`.
|
|
68
|
-
* All page indices are **1-based** and clamped to `[1, pageCount]` via {@link clampPage}. `items` is memoized from
|
|
69
|
-
* {@link buildPaginationItems} for rendering numeric pages and ellipsis gaps.
|
|
70
|
-
*
|
|
71
|
-
* @param params - See `UsePaginationParams` in `../ui/pagination/types` for full fields (`pageCount`, `page`, `onPageChange`, etc.).
|
|
72
|
-
* @returns Current page, item list, `setPage`, navigation helpers, and `canGoPrev` / `canGoNext` flags.
|
|
73
|
-
*/
|
|
74
|
-
declare function usePagination({ pageCount, page, defaultPage, siblingCount, boundaryCount, onPageChange, }: UsePaginationParams): UsePaginationResult;
|
|
75
|
-
/**
|
|
76
|
-
* Builds the ordered list of page numbers and ellipsis markers for a pagination control.
|
|
77
|
-
*
|
|
78
|
-
* @param params.pageCount - Total number of pages (must be >= 0; empty list when 0).
|
|
79
|
-
* @param params.currentPage - Active page index (1-based).
|
|
80
|
-
* @param params.siblingCount - How many page buttons to show on each side of the current page.
|
|
81
|
-
* @param params.boundaryCount - How many pages to pin at the start and end of the range.
|
|
82
|
-
* @returns Items suitable for rendering, e.g. page `1`, ellipsis gap, middle window, ellipsis, last page.
|
|
83
|
-
*/
|
|
84
|
-
declare function buildPaginationItems({ pageCount, currentPage, siblingCount, boundaryCount, }: BuildPaginationItemsParams): PaginationPageItem[];
|
|
85
|
-
|
|
86
|
-
export { type BuildPaginationItemsParams as B, type PaginationAppearance as P, type UsePaginationParams as U, type PaginationPageItem as a, type PaginationProps as b, type PaginationSize as c, type UsePaginationResult as d, buildPaginationItems as e, usePagination as u };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { ComponentPropsWithRef, ReactNode, ElementType } from 'react';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
|
|
6
|
-
declare const progressVariants: (props?: ({
|
|
7
|
-
appearance?: "default" | "secondary" | "destructive" | "emerald" | "indigo" | "purple" | "pink" | "rose" | "sky" | "teal" | "yellow" | "orange" | "outline" | "ghost" | "glass" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
8
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
shape?: "flat" | "rounded" | "pill" | null | undefined;
|
|
10
|
-
striped?: boolean | null | undefined;
|
|
11
|
-
animated?: boolean | null | undefined;
|
|
12
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
declare const progressTrackVariants: (props?: ({
|
|
14
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
15
|
-
shape?: "flat" | "rounded" | "pill" | null | undefined;
|
|
16
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
-
declare const progressBarVariants: (props?: ({
|
|
18
|
-
striped?: boolean | null | undefined;
|
|
19
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
-
|
|
21
|
-
type ProgressVariantProps = VariantProps<typeof progressVariants>;
|
|
22
|
-
type ProgressProps = ProgressVariantProps & (Omit<ComponentPropsWithRef<"div">, "children"> & {
|
|
23
|
-
value?: number;
|
|
24
|
-
min?: number;
|
|
25
|
-
max?: number;
|
|
26
|
-
label?: string;
|
|
27
|
-
children?: ReactNode;
|
|
28
|
-
as?: ElementType;
|
|
29
|
-
});
|
|
30
|
-
type ProgressSectionProps = {
|
|
31
|
-
className?: string;
|
|
32
|
-
children?: ReactNode;
|
|
33
|
-
as?: ElementType;
|
|
34
|
-
};
|
|
35
|
-
type ProgressCtx = {
|
|
36
|
-
value: number;
|
|
37
|
-
min: number;
|
|
38
|
-
max: number;
|
|
39
|
-
size: NonNullable<ProgressProps["size"]>;
|
|
40
|
-
shape: NonNullable<ProgressProps["shape"]>;
|
|
41
|
-
striped: boolean;
|
|
42
|
-
animated: boolean;
|
|
43
|
-
appearance: NonNullable<ProgressProps["appearance"]>;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
declare function ProgressBase(props: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
47
|
-
declare namespace ProgressBase {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
declare function ProgressBar({ className, style, ref, as: Wrapper, ...rest }: ProgressSectionProps & {
|
|
51
|
-
style?: React.CSSProperties;
|
|
52
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
53
|
-
}): react_jsx_runtime.JSX.Element;
|
|
54
|
-
declare namespace ProgressBar {
|
|
55
|
-
var displayName: string;
|
|
56
|
-
}
|
|
57
|
-
declare function ProgressLabel({ className, children }: ProgressSectionProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
declare namespace ProgressLabel {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
|
-
declare function ProgressValue({ className, children }: ProgressSectionProps): react_jsx_runtime.JSX.Element;
|
|
62
|
-
declare namespace ProgressValue {
|
|
63
|
-
var displayName: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { type ProgressProps as P, ProgressBar as a, ProgressBase as b, type ProgressCtx as c, ProgressLabel as d, type ProgressSectionProps as e, ProgressValue as f, type ProgressVariantProps as g, progressTrackVariants as h, progressVariants as i, progressBarVariants as p };
|