@zentauri-ui/zentauri-components 1.3.0 → 1.4.0
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/README.md +78 -0
- package/cli/cli.integration.test.ts +51 -0
- package/cli/index.mjs +664 -0
- package/cli/registry.json +36 -0
- package/cli/rewrite-imports.mjs +57 -0
- package/cli/rewrite-imports.test.ts +71 -0
- 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 +51 -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/slider.js +21 -25
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/slider.mjs +21 -25
- package/dist/ui/slider.mjs.map +1 -1
- 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 +19 -6
- package/src/hooks/index.ts +48 -0
- package/src/hooks/useBodyScrollLock/index.ts +1 -0
- package/src/hooks/useBodyScrollLock/useBodyScrollLock.test.ts +51 -0
- package/src/hooks/useBodyScrollLock/useBodyScrollLock.ts +48 -0
- package/src/hooks/useClickOutside/index.ts +5 -0
- package/src/hooks/useClickOutside/useClickOutside.test.tsx +60 -0
- package/src/hooks/useClickOutside/useClickOutside.ts +52 -0
- package/src/hooks/useClipboard/index.ts +1 -0
- package/src/hooks/useClipboard/useClipboard.test.ts +101 -0
- package/src/hooks/useClipboard/useClipboard.ts +69 -0
- package/src/hooks/useControllableState/index.ts +4 -0
- package/src/hooks/useControllableState/useControllableState.test.ts +59 -0
- package/src/hooks/useControllableState/useControllableState.ts +49 -0
- package/src/hooks/useDebouncedValue/index.ts +1 -0
- package/src/hooks/useDebouncedValue/useDebouncedValue.test.ts +74 -0
- package/{dist/hooks/useDebouncedValue.d.mts → src/hooks/useDebouncedValue/useDebouncedValue.ts} +17 -2
- package/src/hooks/useDisclosure/index.ts +5 -0
- package/src/hooks/useDisclosure/useDisclosure.test.ts +64 -0
- package/src/hooks/useDisclosure/useDisclosure.ts +62 -0
- package/src/hooks/useDocumentTitle/index.ts +4 -0
- package/src/hooks/useDocumentTitle/useDocumentTitle.test.ts +40 -0
- package/src/hooks/useDocumentTitle/useDocumentTitle.ts +58 -0
- package/src/hooks/useFocusManagement/index.ts +1 -0
- package/src/hooks/useFocusManagement/useFocusManagement.test.tsx +45 -0
- package/src/hooks/useFocusManagement/useFocusManagement.ts +77 -0
- package/src/hooks/useHover/index.ts +1 -0
- package/src/hooks/useHover/useHover.test.ts +45 -0
- package/src/hooks/useHover/useHover.ts +45 -0
- package/src/hooks/useInView/index.ts +1 -0
- package/src/hooks/useInView/useInView.test.ts +43 -0
- package/src/hooks/useInView/useInView.ts +28 -0
- package/src/hooks/useIntersectionObserver/index.ts +4 -0
- package/src/hooks/useIntersectionObserver/useIntersectionObserver.test.ts +75 -0
- package/src/hooks/useIntersectionObserver/useIntersectionObserver.ts +54 -0
- package/src/hooks/useIsMounted/index.ts +1 -0
- package/src/hooks/useIsMounted/useIsMounted.test.ts +25 -0
- package/{dist/hooks/useIsMounted.d.mts → src/hooks/useIsMounted/useIsMounted.ts} +14 -3
- package/src/hooks/useIsomorphicLayoutEffect/index.ts +1 -0
- package/src/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.test.ts +19 -0
- package/{dist/hooks/useIsomorphicLayoutEffect.d.mts → src/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts} +5 -4
- package/src/hooks/useLocalStorage/index.ts +4 -0
- package/src/hooks/useLocalStorage/useLocalStorage.test.ts +99 -0
- package/src/hooks/useLocalStorage/useLocalStorage.ts +109 -0
- package/src/hooks/useMediaQuery/index.ts +1 -0
- package/src/hooks/useMediaQuery/useMediaQuery.test.ts +63 -0
- package/src/hooks/useMediaQuery/useMediaQuery.ts +37 -0
- package/src/hooks/useNetworkStatus/index.ts +1 -0
- package/src/hooks/useNetworkStatus/useNetworkStatus.test.ts +53 -0
- package/src/hooks/useNetworkStatus/useNetworkStatus.ts +33 -0
- package/src/hooks/usePageVisibility/index.ts +1 -0
- package/src/hooks/usePageVisibility/usePageVisibility.test.ts +21 -0
- package/src/hooks/usePageVisibility/usePageVisibility.ts +31 -0
- package/src/hooks/usePagination/index.ts +6 -0
- package/src/hooks/usePagination/usePagination.test.ts +139 -0
- package/src/hooks/usePagination/usePagination.ts +153 -0
- package/src/hooks/usePrefersColorScheme/index.ts +4 -0
- package/src/hooks/usePrefersColorScheme/usePrefersColorScheme.test.ts +53 -0
- package/src/hooks/usePrefersColorScheme/usePrefersColorScheme.ts +21 -0
- package/src/hooks/usePrefersReducedMotion/index.ts +1 -0
- package/src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.test.ts +27 -0
- package/{dist/hooks/usePrefersReducedMotion.d.mts → src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.ts} +7 -3
- package/src/hooks/useResizeObserver/index.ts +4 -0
- package/src/hooks/useResizeObserver/useResizeObserver.test.ts +68 -0
- package/src/hooks/useResizeObserver/useResizeObserver.ts +58 -0
- package/src/hooks/useSessionStorage/index.ts +4 -0
- package/src/hooks/useSessionStorage/useSessionStorage.test.ts +54 -0
- package/src/hooks/useSessionStorage/useSessionStorage.ts +84 -0
- package/src/hooks/useThrottledCallback/index.ts +1 -0
- package/src/hooks/useThrottledCallback/useThrottledCallback.test.ts +75 -0
- package/{dist/hooks/useThrottledCallback.d.mts → src/hooks/useThrottledCallback/useThrottledCallback.ts} +24 -2
- package/src/hooks/useToggle/index.ts +1 -0
- package/src/hooks/useToggle/useToggle.test.ts +40 -0
- package/src/hooks/useToggle/useToggle.ts +22 -0
- package/src/hooks/useWindowSize/index.ts +1 -0
- package/src/hooks/useWindowSize/useWindowSize.test.ts +23 -0
- package/src/hooks/useWindowSize/useWindowSize.ts +39 -0
- package/src/lib/utils.ts +25 -0
- package/src/ui/accordion/accordion-base.tsx +223 -0
- package/src/ui/accordion/accordion.test.tsx +146 -0
- package/src/ui/accordion/accordion.tsx +11 -0
- package/src/ui/accordion/animated/accordion-content-animated.tsx +46 -0
- package/src/ui/accordion/animated/accordion-root-animated.tsx +10 -0
- package/src/ui/accordion/animated/animations.ts +16 -0
- package/src/ui/accordion/animated/index.ts +7 -0
- package/src/ui/accordion/animated/types.ts +7 -0
- package/src/ui/accordion/index.ts +23 -0
- package/src/ui/accordion/types.ts +48 -0
- package/src/ui/accordion/variants.ts +115 -0
- package/src/ui/alert/alert-base.tsx +157 -0
- package/src/ui/alert/alert.test.tsx +150 -0
- package/src/ui/alert/alert.tsx +9 -0
- package/src/ui/alert/animated/alert-animated.tsx +20 -0
- package/src/ui/alert/animated/animations.ts +20 -0
- package/src/ui/alert/animated/index.ts +3 -0
- package/src/ui/alert/animated/types.ts +16 -0
- package/src/ui/alert/index.ts +22 -0
- package/src/ui/alert/types.ts +28 -0
- package/src/ui/alert/variants.ts +74 -0
- package/src/ui/avatar/animated/animations.ts +11 -0
- package/src/ui/avatar/animated/avatar-animated.tsx +25 -0
- package/src/ui/avatar/animated/index.ts +6 -0
- package/src/ui/avatar/animated/types.ts +16 -0
- package/src/ui/avatar/avatar-base.tsx +184 -0
- package/src/ui/avatar/avatar.test.tsx +51 -0
- package/src/ui/avatar/avatar.tsx +11 -0
- package/src/ui/avatar/index.ts +16 -0
- package/src/ui/avatar/types.ts +36 -0
- package/src/ui/avatar/variants.ts +52 -0
- package/src/ui/badge/animated/animations.ts +20 -0
- package/src/ui/badge/animated/badge-animated.tsx +28 -0
- package/src/ui/badge/animated/index.ts +5 -0
- package/src/ui/badge/animated/types.ts +18 -0
- package/src/ui/badge/badge-base.tsx +53 -0
- package/src/ui/badge/badge.test.tsx +48 -0
- package/src/ui/badge/badge.tsx +9 -0
- package/src/ui/badge/index.ts +5 -0
- package/src/ui/badge/types.ts +25 -0
- package/src/ui/badge/variants.ts +85 -0
- package/src/ui/breadcrumb/breadcrumb.test.tsx +62 -0
- package/src/ui/breadcrumb/breadcrumb.tsx +135 -0
- package/src/ui/breadcrumb/index.ts +28 -0
- package/src/ui/breadcrumb/types.ts +29 -0
- package/src/ui/breadcrumb/variants.ts +53 -0
- package/src/ui/buttons/animated/animations.ts +34 -0
- package/src/ui/buttons/animated/button-animated.tsx +70 -0
- package/src/ui/buttons/animated/index.ts +5 -0
- package/src/ui/buttons/animated/types.ts +29 -0
- package/src/ui/buttons/button-base.tsx +59 -0
- package/src/ui/buttons/button.test.tsx +480 -0
- package/src/ui/buttons/button.tsx +9 -0
- package/src/ui/buttons/index.ts +5 -0
- package/src/ui/buttons/types.ts +14 -0
- package/src/ui/buttons/variants.ts +77 -0
- package/src/ui/card/animated/animations.ts +32 -0
- package/src/ui/card/animated/card-animated.tsx +28 -0
- package/src/ui/card/animated/index.ts +12 -0
- package/src/ui/card/animated/types.ts +8 -0
- package/src/ui/card/card-base.tsx +146 -0
- package/src/ui/card/card.test.tsx +79 -0
- package/src/ui/card/card.tsx +11 -0
- package/src/ui/card/index.ts +21 -0
- package/src/ui/card/types.ts +42 -0
- package/src/ui/card/variants.ts +122 -0
- package/src/ui/divider/animated/animations.ts +27 -0
- package/src/ui/divider/animated/divider-animated.tsx +24 -0
- package/src/ui/divider/animated/index.ts +4 -0
- package/src/ui/divider/animated/types.ts +18 -0
- package/src/ui/divider/divider-base.tsx +80 -0
- package/src/ui/divider/divider.tsx +9 -0
- package/src/ui/divider/index.ts +14 -0
- package/src/ui/divider/types.ts +18 -0
- package/src/ui/divider/variants.ts +98 -0
- package/src/ui/drawer/animated/animations.ts +39 -0
- package/src/ui/drawer/animated/drawer-content-animated.tsx +101 -0
- package/src/ui/drawer/animated/index.ts +14 -0
- package/src/ui/drawer/animated/types.ts +18 -0
- package/src/ui/drawer/drawer-base.tsx +259 -0
- package/src/ui/drawer/drawer.test.tsx +132 -0
- package/src/ui/drawer/drawer.tsx +11 -0
- package/src/ui/drawer/index.ts +21 -0
- package/src/ui/drawer/types.ts +39 -0
- package/src/ui/drawer/variants.ts +122 -0
- package/src/ui/dropdown/dropdown.test.tsx +114 -0
- package/src/ui/dropdown/dropdown.tsx +179 -0
- package/src/ui/dropdown/index.ts +15 -0
- package/src/ui/dropdown/types.ts +68 -0
- package/src/ui/dropdown/variants.ts +138 -0
- package/src/ui/empty-state/animated/animations.ts +19 -0
- package/src/ui/empty-state/animated/empty-state-animated.tsx +23 -0
- package/src/ui/empty-state/animated/index.ts +7 -0
- package/src/ui/empty-state/animated/types.ts +26 -0
- package/src/ui/empty-state/empty-state-base.tsx +114 -0
- package/src/ui/empty-state/empty-state.tsx +9 -0
- package/src/ui/empty-state/index.ts +10 -0
- package/src/ui/empty-state/types.ts +19 -0
- package/src/ui/empty-state/variants.ts +51 -0
- package/src/ui/file-upload/file-upload.test.tsx +36 -0
- package/src/ui/file-upload/file-upload.tsx +119 -0
- package/src/ui/file-upload/index.ts +5 -0
- package/src/ui/file-upload/types.ts +21 -0
- package/src/ui/file-upload/variants.ts +29 -0
- package/src/ui/inputs/animated/animations.ts +36 -0
- package/src/ui/inputs/animated/index.ts +5 -0
- package/src/ui/inputs/animated/input-animated.tsx +124 -0
- package/src/ui/inputs/animated/types.ts +40 -0
- package/src/ui/inputs/index.ts +5 -0
- package/src/ui/inputs/input-base.tsx +114 -0
- package/src/ui/inputs/input.test.tsx +414 -0
- package/src/ui/inputs/input.tsx +8 -0
- package/src/ui/inputs/types.ts +18 -0
- package/src/ui/inputs/variants.ts +316 -0
- package/src/ui/modal/animated/animations.ts +29 -0
- package/src/ui/modal/animated/index.ts +5 -0
- package/src/ui/modal/animated/modal-content-animated.tsx +96 -0
- package/src/ui/modal/animated/types.ts +23 -0
- package/src/ui/modal/index.ts +21 -0
- package/src/ui/modal/modal-base.tsx +279 -0
- package/src/ui/modal/modal.test.tsx +129 -0
- package/src/ui/modal/modal.tsx +8 -0
- package/src/ui/modal/types.ts +31 -0
- package/src/ui/modal/variants.ts +109 -0
- package/src/ui/pagination/index.ts +13 -0
- package/src/ui/pagination/pagination.test.tsx +165 -0
- package/src/ui/pagination/pagination.tsx +237 -0
- package/src/ui/pagination/types.ts +66 -0
- package/src/ui/pagination/variants.ts +97 -0
- package/src/ui/progress/animated/animations.ts +9 -0
- package/src/ui/progress/animated/index.ts +17 -0
- package/src/ui/progress/animated/progress-animated.tsx +133 -0
- package/src/ui/progress/animated/types.ts +35 -0
- package/src/ui/progress/index.ts +10 -0
- package/src/ui/progress/progress-base.tsx +151 -0
- package/src/ui/progress/progress.test.tsx +84 -0
- package/src/ui/progress/progress.tsx +12 -0
- package/src/ui/progress/types.ts +33 -0
- package/src/ui/progress/variants.ts +105 -0
- package/src/ui/select/index.ts +25 -0
- package/src/ui/select/select.test.tsx +128 -0
- package/src/ui/select/select.tsx +221 -0
- package/src/ui/select/types.ts +77 -0
- package/src/ui/select/variants.ts +163 -0
- package/src/ui/skeleton/animated/animations.ts +15 -0
- package/src/ui/skeleton/animated/index.ts +20 -0
- package/src/ui/skeleton/animated/skeleton-animated.tsx +119 -0
- package/src/ui/skeleton/animated/types.ts +49 -0
- package/src/ui/skeleton/index.ts +24 -0
- package/src/ui/skeleton/skeleton-base.tsx +288 -0
- package/src/ui/skeleton/skeleton.tsx +8 -0
- package/src/ui/skeleton/types.ts +31 -0
- package/src/ui/skeleton/variants.ts +254 -0
- package/src/ui/slider/index.ts +22 -0
- package/src/ui/slider/slider.test.tsx +94 -0
- package/src/ui/slider/slider.tsx +728 -0
- package/src/ui/slider/types.ts +66 -0
- package/src/ui/slider/variants.ts +81 -0
- package/src/ui/spinner/animated/index.ts +5 -0
- package/src/ui/spinner/animated/spinner.test.tsx +41 -0
- package/src/ui/spinner/animated/spinner.tsx +143 -0
- package/src/ui/spinner/animated/types.ts +11 -0
- package/src/ui/spinner/animated/variants.ts +50 -0
- package/src/ui/stepper/index.ts +22 -0
- package/src/ui/stepper/stepper.test.tsx +183 -0
- package/src/ui/stepper/stepper.tsx +172 -0
- package/src/ui/stepper/types.ts +32 -0
- package/src/ui/stepper/variants.ts +69 -0
- package/src/ui/table/animated/animations.ts +9 -0
- package/src/ui/table/animated/index.ts +15 -0
- package/src/ui/table/animated/table-animated.tsx +15 -0
- package/src/ui/table/animated/types.ts +16 -0
- package/src/ui/table/index.ts +22 -0
- package/src/ui/table/table-base.tsx +197 -0
- package/src/ui/table/table.tsx +13 -0
- package/src/ui/table/types.ts +47 -0
- package/src/ui/table/variants.ts +105 -0
- package/src/ui/tabs/animated/animations.ts +48 -0
- package/src/ui/tabs/animated/index.ts +8 -0
- package/src/ui/tabs/animated/tabs-content-animated.tsx +46 -0
- package/src/ui/tabs/animated/types.ts +24 -0
- package/src/ui/tabs/index.ts +10 -0
- package/src/ui/tabs/tabs-base.tsx +185 -0
- package/src/ui/tabs/tabs.test.tsx +53 -0
- package/src/ui/tabs/tabs.tsx +2 -0
- package/src/ui/tabs/types.ts +88 -0
- package/src/ui/tabs/variants.ts +70 -0
- package/src/ui/toast/animated/animations.ts +17 -0
- package/src/ui/toast/animated/index.ts +9 -0
- package/src/ui/toast/animated/toast-animated.tsx +96 -0
- package/src/ui/toast/animated/types.ts +13 -0
- package/src/ui/toast/index.ts +26 -0
- package/src/ui/toast/toast-base.tsx +231 -0
- package/src/ui/toast/toast.test.tsx +102 -0
- package/src/ui/toast/toast.tsx +13 -0
- package/src/ui/toast/types.ts +57 -0
- package/src/ui/toast/variants.ts +73 -0
- package/src/ui/toggle/animated/animations.ts +9 -0
- package/src/ui/toggle/animated/index.ts +7 -0
- package/src/ui/toggle/animated/toggle-animated.tsx +76 -0
- package/src/ui/toggle/animated/types.ts +13 -0
- package/src/ui/toggle/index.ts +5 -0
- package/src/ui/toggle/toggle-base.tsx +70 -0
- package/src/ui/toggle/toggle.test.tsx +44 -0
- package/src/ui/toggle/toggle.tsx +9 -0
- package/src/ui/toggle/types.ts +18 -0
- package/src/ui/toggle/variants.ts +84 -0
- package/src/ui/tooltip/animated/animations.ts +16 -0
- package/src/ui/tooltip/animated/index.ts +10 -0
- package/src/ui/tooltip/animated/tooltip-content-animated.tsx +47 -0
- package/src/ui/tooltip/animated/types.ts +19 -0
- package/src/ui/tooltip/index.ts +17 -0
- package/src/ui/tooltip/tooltip-base.tsx +152 -0
- package/src/ui/tooltip/tooltip.test.tsx +84 -0
- package/src/ui/tooltip/tooltip.tsx +8 -0
- package/src/ui/tooltip/types.ts +57 -0
- package/src/ui/tooltip/variants.ts +61 -0
- 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/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/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/useResizeObserver.d.mts +0 -23
- package/dist/hooks/useSessionStorage.d.mts +0 -22
- 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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
export type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
4
|
+
|
|
5
|
+
export type TooltipContextType = {
|
|
6
|
+
open: boolean;
|
|
7
|
+
setOpen: (value: boolean) => void;
|
|
8
|
+
position: TooltipPosition;
|
|
9
|
+
delay: number;
|
|
10
|
+
scheduleDelayedOpen: () => void;
|
|
11
|
+
cancelDelayedOpen: () => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type TooltipProps = {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
defaultOpen?: boolean;
|
|
17
|
+
open?: boolean;
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
position?: TooltipPosition;
|
|
20
|
+
delay?: number;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type TooltipTriggerProps = {
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type TooltipContentProps = {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
variant?:
|
|
32
|
+
| "default"
|
|
33
|
+
| "outline"
|
|
34
|
+
| "ghost"
|
|
35
|
+
| "glass"
|
|
36
|
+
| "emerald"
|
|
37
|
+
| "indigo"
|
|
38
|
+
| "purple"
|
|
39
|
+
| "pink"
|
|
40
|
+
| "rose"
|
|
41
|
+
| "sky"
|
|
42
|
+
| "teal"
|
|
43
|
+
| "yellow"
|
|
44
|
+
| "orange"
|
|
45
|
+
| "green"
|
|
46
|
+
| "gradient-blue"
|
|
47
|
+
| "gradient-green"
|
|
48
|
+
| "gradient-red"
|
|
49
|
+
| "gradient-yellow"
|
|
50
|
+
| "gradient-purple"
|
|
51
|
+
| "gradient-teal"
|
|
52
|
+
| "gradient-indigo"
|
|
53
|
+
| "gradient-pink"
|
|
54
|
+
| "gradient-orange";
|
|
55
|
+
size?: "sm" | "md" | "lg";
|
|
56
|
+
width?: "fit" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
57
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
|
|
3
|
+
export const tooltipVariants = cva(
|
|
4
|
+
"absolute z-50 rounded-md shadow-md transition-all duration-200 pointer-events-none",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: "bg-black text-white",
|
|
9
|
+
outline: "border bg-white text-black",
|
|
10
|
+
ghost: "bg-gray-800 text-white/90",
|
|
11
|
+
glass: "border border-white/15 bg-white/10 text-white backdrop-blur-md",
|
|
12
|
+
emerald: "bg-emerald-600 text-white",
|
|
13
|
+
indigo: "bg-indigo-600 text-white",
|
|
14
|
+
purple: "bg-purple-600 text-white",
|
|
15
|
+
pink: "bg-pink-600 text-white",
|
|
16
|
+
rose: "bg-rose-600 text-white",
|
|
17
|
+
sky: "bg-sky-600 text-white",
|
|
18
|
+
teal: "bg-teal-600 text-white",
|
|
19
|
+
yellow: "bg-yellow-600 text-white",
|
|
20
|
+
orange: "bg-orange-600 text-white",
|
|
21
|
+
green: "bg-green-600 text-white",
|
|
22
|
+
"gradient-blue":
|
|
23
|
+
"bg-gradient-to-r from-blue-600 to-purple-600 text-white",
|
|
24
|
+
"gradient-green":
|
|
25
|
+
"bg-gradient-to-r from-green-600 to-lime-600 text-white",
|
|
26
|
+
"gradient-red": "bg-gradient-to-r from-red-600 to-pink-600 text-white",
|
|
27
|
+
"gradient-yellow":
|
|
28
|
+
"bg-gradient-to-r from-yellow-600 to-orange-600 text-white",
|
|
29
|
+
"gradient-purple":
|
|
30
|
+
"bg-gradient-to-r from-purple-600 to-pink-600 text-white",
|
|
31
|
+
"gradient-teal":
|
|
32
|
+
"bg-gradient-to-r from-teal-600 to-cyan-600 text-white",
|
|
33
|
+
"gradient-indigo":
|
|
34
|
+
"bg-gradient-to-r from-indigo-600 to-purple-600 text-white",
|
|
35
|
+
"gradient-pink":
|
|
36
|
+
"bg-gradient-to-r from-pink-600 to-rose-600 text-white",
|
|
37
|
+
"gradient-orange":
|
|
38
|
+
"bg-gradient-to-r from-orange-600 to-red-600 text-white",
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
sm: "text-xs px-2 py-1",
|
|
42
|
+
md: "text-sm px-3 py-1.5",
|
|
43
|
+
lg: "text-base px-4 py-2",
|
|
44
|
+
},
|
|
45
|
+
width: {
|
|
46
|
+
fit: "min-w-75 md:min-w-fit",
|
|
47
|
+
xs: "min-w-75 md:min-w-xs",
|
|
48
|
+
sm: "min-w-75 md:min-w-sm",
|
|
49
|
+
md: "min-w-75 md:min-w-md",
|
|
50
|
+
lg: "min-w-75 md:min-w-lg",
|
|
51
|
+
xl: "min-w-75 md:min-w-xl",
|
|
52
|
+
"2xl": "min-w-75 md:min-w-2xl",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
variant: "default",
|
|
57
|
+
size: "md",
|
|
58
|
+
width: "xs",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
);
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Transition } from 'framer-motion';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { ReactNode, HTMLAttributes, Ref } from 'react';
|
|
5
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
-
|
|
7
|
-
/** Easing and duration presets for accordion panel open/close (opacity only). */
|
|
8
|
-
type AccordionTransition = "none" | "default" | "smooth" | "slow";
|
|
9
|
-
type AccordionTransitionPresets = Record<AccordionTransition, Transition>;
|
|
10
|
-
declare const accordionContentTransitionPresets: AccordionTransitionPresets;
|
|
11
|
-
|
|
12
|
-
declare const accordionVariants: (props?: ({
|
|
13
|
-
appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
14
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
15
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
-
declare const accordionItemVariants: (props?: ({
|
|
17
|
-
appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
18
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
declare const accordionTriggerVariants: (props?: ({
|
|
20
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
21
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
-
declare const accordionContentVariants: (props?: ({
|
|
23
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
24
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
-
|
|
26
|
-
type AccordionVariantProps = VariantProps<typeof accordionVariants>;
|
|
27
|
-
type AccordionType = "single" | "multiple";
|
|
28
|
-
type AccordionBaseProps = AccordionVariantProps & {
|
|
29
|
-
type?: AccordionType;
|
|
30
|
-
/** Controlled value for `single` mode. */
|
|
31
|
-
value?: string;
|
|
32
|
-
/** Controlled values for `multiple` mode. */
|
|
33
|
-
values?: string[];
|
|
34
|
-
defaultValue?: string;
|
|
35
|
-
defaultValues?: string[];
|
|
36
|
-
onValueChange?: (value: string | undefined) => void;
|
|
37
|
-
onValuesChange?: (values: string[]) => void;
|
|
38
|
-
className?: string;
|
|
39
|
-
children?: ReactNode;
|
|
40
|
-
};
|
|
41
|
-
type AccordionProps = AccordionBaseProps;
|
|
42
|
-
type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
43
|
-
value: string;
|
|
44
|
-
ref?: Ref<HTMLDivElement>;
|
|
45
|
-
};
|
|
46
|
-
type AccordionTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
47
|
-
ref?: Ref<HTMLButtonElement>;
|
|
48
|
-
};
|
|
49
|
-
type AccordionContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
50
|
-
ref?: Ref<HTMLDivElement>;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
declare function AccordionItem({ className, value, children, ref, ...rest }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
54
|
-
declare namespace AccordionItem {
|
|
55
|
-
var displayName: string;
|
|
56
|
-
}
|
|
57
|
-
declare function AccordionTrigger({ className, children, ref, ...rest }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
declare namespace AccordionTrigger {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
|
-
declare function AccordionContent({ className, children, ref, }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
|
|
62
|
-
declare namespace AccordionContent {
|
|
63
|
-
var displayName: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { type AccordionProps as A, type AccordionBaseProps as a, AccordionContent as b, type AccordionContentProps as c, AccordionItem as d, type AccordionItemProps as e, type AccordionTransition as f, AccordionTrigger as g, type AccordionTriggerProps as h, type AccordionType as i, accordionContentVariants as j, accordionItemVariants as k, accordionTriggerVariants as l, accordionVariants as m, accordionContentTransitionPresets as n };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Transition } from 'framer-motion';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { ReactNode, HTMLAttributes, Ref } from 'react';
|
|
5
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
-
|
|
7
|
-
/** Easing and duration presets for accordion panel open/close (opacity only). */
|
|
8
|
-
type AccordionTransition = "none" | "default" | "smooth" | "slow";
|
|
9
|
-
type AccordionTransitionPresets = Record<AccordionTransition, Transition>;
|
|
10
|
-
declare const accordionContentTransitionPresets: AccordionTransitionPresets;
|
|
11
|
-
|
|
12
|
-
declare const accordionVariants: (props?: ({
|
|
13
|
-
appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
14
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
15
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
-
declare const accordionItemVariants: (props?: ({
|
|
17
|
-
appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
18
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
declare const accordionTriggerVariants: (props?: ({
|
|
20
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
21
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
-
declare const accordionContentVariants: (props?: ({
|
|
23
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
24
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
-
|
|
26
|
-
type AccordionVariantProps = VariantProps<typeof accordionVariants>;
|
|
27
|
-
type AccordionType = "single" | "multiple";
|
|
28
|
-
type AccordionBaseProps = AccordionVariantProps & {
|
|
29
|
-
type?: AccordionType;
|
|
30
|
-
/** Controlled value for `single` mode. */
|
|
31
|
-
value?: string;
|
|
32
|
-
/** Controlled values for `multiple` mode. */
|
|
33
|
-
values?: string[];
|
|
34
|
-
defaultValue?: string;
|
|
35
|
-
defaultValues?: string[];
|
|
36
|
-
onValueChange?: (value: string | undefined) => void;
|
|
37
|
-
onValuesChange?: (values: string[]) => void;
|
|
38
|
-
className?: string;
|
|
39
|
-
children?: ReactNode;
|
|
40
|
-
};
|
|
41
|
-
type AccordionProps = AccordionBaseProps;
|
|
42
|
-
type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
43
|
-
value: string;
|
|
44
|
-
ref?: Ref<HTMLDivElement>;
|
|
45
|
-
};
|
|
46
|
-
type AccordionTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
47
|
-
ref?: Ref<HTMLButtonElement>;
|
|
48
|
-
};
|
|
49
|
-
type AccordionContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
50
|
-
ref?: Ref<HTMLDivElement>;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
declare function AccordionItem({ className, value, children, ref, ...rest }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
54
|
-
declare namespace AccordionItem {
|
|
55
|
-
var displayName: string;
|
|
56
|
-
}
|
|
57
|
-
declare function AccordionTrigger({ className, children, ref, ...rest }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
declare namespace AccordionTrigger {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
|
-
declare function AccordionContent({ className, children, ref, }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
|
|
62
|
-
declare namespace AccordionContent {
|
|
63
|
-
var displayName: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { type AccordionProps as A, type AccordionBaseProps as a, AccordionContent as b, type AccordionContentProps as c, AccordionItem as d, type AccordionItemProps as e, type AccordionTransition as f, AccordionTrigger as g, type AccordionTriggerProps as h, type AccordionType as i, accordionContentVariants as j, accordionItemVariants as k, accordionTriggerVariants as l, accordionVariants as m, accordionContentTransitionPresets as n };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentPropsWithRef, ElementType, ComponentPropsWithoutRef, Ref } from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
|
|
6
|
-
declare const avatarVariants: (props?: ({
|
|
7
|
-
appearance?: "default" | "muted" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
8
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare const avatarImageVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
11
|
-
declare const avatarFallbackVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
12
|
-
declare const avatarGroupVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
13
|
-
|
|
14
|
-
type AvatarVariantProps = VariantProps<typeof avatarVariants>;
|
|
15
|
-
interface AvatarBaseProps extends ComponentPropsWithRef<"span"> {
|
|
16
|
-
size?: AvatarVariantProps["size"];
|
|
17
|
-
appearance?: AvatarVariantProps["appearance"];
|
|
18
|
-
as?: ElementType;
|
|
19
|
-
}
|
|
20
|
-
type AvatarProps = Omit<AvatarBaseProps, "as">;
|
|
21
|
-
type AvatarImageProps = ComponentPropsWithoutRef<"img">;
|
|
22
|
-
type AvatarFallbackProps = ComponentPropsWithoutRef<"span"> & {
|
|
23
|
-
delayMs?: number;
|
|
24
|
-
};
|
|
25
|
-
type AvatarGroupProps = ComponentPropsWithoutRef<"div"> & {
|
|
26
|
-
/** Max avatars before +N overflow label */
|
|
27
|
-
max?: number;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
declare function AvatarImage({ className, onLoad, onError, ref, ...rest }: AvatarImageProps & {
|
|
31
|
-
ref?: Ref<HTMLImageElement>;
|
|
32
|
-
}): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare namespace AvatarImage {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
36
|
-
declare function AvatarFallback({ className, delayMs, ref, ...rest }: AvatarFallbackProps & {
|
|
37
|
-
ref?: Ref<HTMLSpanElement>;
|
|
38
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
39
|
-
declare namespace AvatarFallback {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
}
|
|
42
|
-
declare function AvatarGroup({ className, max, children, ref, ...rest }: AvatarGroupProps & {
|
|
43
|
-
ref?: Ref<HTMLDivElement>;
|
|
44
|
-
}): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare namespace AvatarGroup {
|
|
46
|
-
var displayName: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { type AvatarProps as A, type AvatarBaseProps as a, AvatarFallback as b, type AvatarFallbackProps as c, AvatarGroup as d, type AvatarGroupProps as e, AvatarImage as f, type AvatarImageProps as g, avatarFallbackVariants as h, avatarGroupVariants as i, avatarImageVariants as j, avatarVariants as k };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentPropsWithRef, ElementType, ComponentPropsWithoutRef, Ref } from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
|
|
6
|
-
declare const avatarVariants: (props?: ({
|
|
7
|
-
appearance?: "default" | "muted" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
8
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare const avatarImageVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
11
|
-
declare const avatarFallbackVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
12
|
-
declare const avatarGroupVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
13
|
-
|
|
14
|
-
type AvatarVariantProps = VariantProps<typeof avatarVariants>;
|
|
15
|
-
interface AvatarBaseProps extends ComponentPropsWithRef<"span"> {
|
|
16
|
-
size?: AvatarVariantProps["size"];
|
|
17
|
-
appearance?: AvatarVariantProps["appearance"];
|
|
18
|
-
as?: ElementType;
|
|
19
|
-
}
|
|
20
|
-
type AvatarProps = Omit<AvatarBaseProps, "as">;
|
|
21
|
-
type AvatarImageProps = ComponentPropsWithoutRef<"img">;
|
|
22
|
-
type AvatarFallbackProps = ComponentPropsWithoutRef<"span"> & {
|
|
23
|
-
delayMs?: number;
|
|
24
|
-
};
|
|
25
|
-
type AvatarGroupProps = ComponentPropsWithoutRef<"div"> & {
|
|
26
|
-
/** Max avatars before +N overflow label */
|
|
27
|
-
max?: number;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
declare function AvatarImage({ className, onLoad, onError, ref, ...rest }: AvatarImageProps & {
|
|
31
|
-
ref?: Ref<HTMLImageElement>;
|
|
32
|
-
}): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare namespace AvatarImage {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
36
|
-
declare function AvatarFallback({ className, delayMs, ref, ...rest }: AvatarFallbackProps & {
|
|
37
|
-
ref?: Ref<HTMLSpanElement>;
|
|
38
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
39
|
-
declare namespace AvatarFallback {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
}
|
|
42
|
-
declare function AvatarGroup({ className, max, children, ref, ...rest }: AvatarGroupProps & {
|
|
43
|
-
ref?: Ref<HTMLDivElement>;
|
|
44
|
-
}): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare namespace AvatarGroup {
|
|
46
|
-
var displayName: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { type AvatarProps as A, type AvatarBaseProps as a, AvatarFallback as b, type AvatarFallbackProps as c, AvatarGroup as d, type AvatarGroupProps as e, AvatarImage as f, type AvatarImageProps as g, avatarFallbackVariants as h, avatarGroupVariants as i, avatarImageVariants as j, avatarVariants as k };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { ComponentPropsWithRef, ElementType, ReactNode, Ref, HTMLAttributes } from 'react';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
|
|
6
|
-
declare const cardVariants: (props?: ({
|
|
7
|
-
appearance?: "default" | "glass" | "outline" | "ghost" | "elevated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
8
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
-
rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
declare const cardHeaderVariants: (props?: ({
|
|
12
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
14
|
-
declare const cardFooterVariants: (props?: ({
|
|
15
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
16
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
-
declare const cardTitleVariants: (props?: ({
|
|
18
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
-
declare const cardDescriptionVariants: (props?: ({
|
|
21
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
22
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
23
|
-
|
|
24
|
-
type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
25
|
-
interface CardBaseProps extends ComponentPropsWithRef<"article"> {
|
|
26
|
-
appearance?: CardVariantProps["appearance"];
|
|
27
|
-
size?: CardVariantProps["size"];
|
|
28
|
-
rounded?: CardVariantProps["rounded"];
|
|
29
|
-
as?: ElementType;
|
|
30
|
-
}
|
|
31
|
-
type CardProps = Omit<CardBaseProps, "as">;
|
|
32
|
-
type CardSectionProps = {
|
|
33
|
-
className?: string;
|
|
34
|
-
children?: ReactNode;
|
|
35
|
-
};
|
|
36
|
-
type CardTitleProps = {
|
|
37
|
-
as?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
38
|
-
className?: string;
|
|
39
|
-
children?: ReactNode;
|
|
40
|
-
ref?: Ref<HTMLHeadingElement>;
|
|
41
|
-
} & Omit<HTMLAttributes<HTMLHeadingElement>, "className" | "children">;
|
|
42
|
-
type CardDescriptionProps = {
|
|
43
|
-
as?: "p" | "span" | "div";
|
|
44
|
-
className?: string;
|
|
45
|
-
children?: ReactNode;
|
|
46
|
-
ref?: Ref<HTMLElement>;
|
|
47
|
-
} & Omit<HTMLAttributes<HTMLElement>, "className" | "children">;
|
|
48
|
-
|
|
49
|
-
declare function CardHeader({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
|
|
50
|
-
declare namespace CardHeader {
|
|
51
|
-
var displayName: string;
|
|
52
|
-
}
|
|
53
|
-
declare function CardBody({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
|
|
54
|
-
declare namespace CardBody {
|
|
55
|
-
var displayName: string;
|
|
56
|
-
}
|
|
57
|
-
declare function CardFooter({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
declare namespace CardFooter {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
|
-
declare function CardTitle({ className, children, as, ref, ...rest }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
62
|
-
declare namespace CardTitle {
|
|
63
|
-
var displayName: string;
|
|
64
|
-
}
|
|
65
|
-
declare function CardDescription({ className, children, as, ref, ...rest }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
66
|
-
declare namespace CardDescription {
|
|
67
|
-
var displayName: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export { type CardProps as C, type CardBaseProps as a, CardBody as b, CardDescription as c, type CardDescriptionProps as d, CardFooter as e, CardHeader as f, type CardSectionProps as g, CardTitle as h, type CardTitleProps as i, type CardVariantProps as j, cardDescriptionVariants as k, cardFooterVariants as l, cardHeaderVariants as m, cardTitleVariants as n, cardVariants as o };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { ComponentPropsWithRef, ElementType, ReactNode, Ref, HTMLAttributes } from 'react';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
|
|
6
|
-
declare const cardVariants: (props?: ({
|
|
7
|
-
appearance?: "default" | "glass" | "outline" | "ghost" | "elevated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
8
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
-
rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
declare const cardHeaderVariants: (props?: ({
|
|
12
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
14
|
-
declare const cardFooterVariants: (props?: ({
|
|
15
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
16
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
-
declare const cardTitleVariants: (props?: ({
|
|
18
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
-
declare const cardDescriptionVariants: (props?: ({
|
|
21
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
22
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
23
|
-
|
|
24
|
-
type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
25
|
-
interface CardBaseProps extends ComponentPropsWithRef<"article"> {
|
|
26
|
-
appearance?: CardVariantProps["appearance"];
|
|
27
|
-
size?: CardVariantProps["size"];
|
|
28
|
-
rounded?: CardVariantProps["rounded"];
|
|
29
|
-
as?: ElementType;
|
|
30
|
-
}
|
|
31
|
-
type CardProps = Omit<CardBaseProps, "as">;
|
|
32
|
-
type CardSectionProps = {
|
|
33
|
-
className?: string;
|
|
34
|
-
children?: ReactNode;
|
|
35
|
-
};
|
|
36
|
-
type CardTitleProps = {
|
|
37
|
-
as?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
38
|
-
className?: string;
|
|
39
|
-
children?: ReactNode;
|
|
40
|
-
ref?: Ref<HTMLHeadingElement>;
|
|
41
|
-
} & Omit<HTMLAttributes<HTMLHeadingElement>, "className" | "children">;
|
|
42
|
-
type CardDescriptionProps = {
|
|
43
|
-
as?: "p" | "span" | "div";
|
|
44
|
-
className?: string;
|
|
45
|
-
children?: ReactNode;
|
|
46
|
-
ref?: Ref<HTMLElement>;
|
|
47
|
-
} & Omit<HTMLAttributes<HTMLElement>, "className" | "children">;
|
|
48
|
-
|
|
49
|
-
declare function CardHeader({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
|
|
50
|
-
declare namespace CardHeader {
|
|
51
|
-
var displayName: string;
|
|
52
|
-
}
|
|
53
|
-
declare function CardBody({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
|
|
54
|
-
declare namespace CardBody {
|
|
55
|
-
var displayName: string;
|
|
56
|
-
}
|
|
57
|
-
declare function CardFooter({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
|
|
58
|
-
declare namespace CardFooter {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
|
-
declare function CardTitle({ className, children, as, ref, ...rest }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
62
|
-
declare namespace CardTitle {
|
|
63
|
-
var displayName: string;
|
|
64
|
-
}
|
|
65
|
-
declare function CardDescription({ className, children, as, ref, ...rest }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
66
|
-
declare namespace CardDescription {
|
|
67
|
-
var displayName: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export { type CardProps as C, type CardBaseProps as a, CardBody as b, CardDescription as c, type CardDescriptionProps as d, CardFooter as e, CardHeader as f, type CardSectionProps as g, CardTitle as h, type CardTitleProps as i, type CardVariantProps as j, cardDescriptionVariants as k, cardFooterVariants as l, cardHeaderVariants as m, cardTitleVariants as n, cardVariants as o };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locks the document body scroll while `locked` is true by setting `document.body.style.overflow`
|
|
3
|
-
* to `"hidden"`. Uses a module-level lock count so multiple concurrent callers (nested modals,
|
|
4
|
-
* drawer + modal, several hook instances) only restore the original inline `overflow` after the
|
|
5
|
-
* last lock releases.
|
|
6
|
-
*
|
|
7
|
-
* Typical use: modals, drawers, and full-screen overlays where background content must not scroll.
|
|
8
|
-
*
|
|
9
|
-
* @param locked - When `true`, body scroll is hidden; when `false`, this instance releases its
|
|
10
|
-
* lock; the prior overflow is restored only when no instance still holds a lock.
|
|
11
|
-
*/
|
|
12
|
-
declare const useBodyScrollLock: (locked: boolean) => void;
|
|
13
|
-
|
|
14
|
-
export { useBodyScrollLock };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction, RefObject } from 'react';
|
|
2
|
-
|
|
3
|
-
/** DOM events that can represent an “outside” press for closing overlays. */
|
|
4
|
-
type ClickOutsideEventType = "mousedown" | "pointerdown" | "touchstart";
|
|
5
|
-
type UseClickOutsideParams = {
|
|
6
|
-
/** Called with `false` when a qualifying event target is outside `ref.current`. */
|
|
7
|
-
setOpen: (open: boolean) => void | Dispatch<SetStateAction<boolean>>;
|
|
8
|
-
/** Root element of the floating UI; clicks inside this node do not close. */
|
|
9
|
-
ref: RefObject<HTMLElement | null>;
|
|
10
|
-
/** Defaults to `["mousedown"]` for backward compatibility */
|
|
11
|
-
listenEvents?: ClickOutsideEventType[];
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Registers document-level listeners so that when the user activates outside of `ref`, `setOpen(false)`
|
|
15
|
-
* runs. Useful for dropdowns, popovers, and menus paired with `open` state.
|
|
16
|
-
*
|
|
17
|
-
* @param params.setOpen - State setter or callback that closes the surface.
|
|
18
|
-
* @param params.ref - Container ref; outside is determined with `contains()` on the event target.
|
|
19
|
-
* @param params.listenEvents - Which events to listen for; default is `mousedown` only.
|
|
20
|
-
*/
|
|
21
|
-
declare const useClickOutside: ({ setOpen, ref, listenEvents, }: UseClickOutsideParams) => void;
|
|
22
|
-
|
|
23
|
-
export { type ClickOutsideEventType, type UseClickOutsideParams, useClickOutside };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type UseClipboardResult = {
|
|
2
|
-
/** `true` after a successful `copy` until the reset delay elapses or `reset` is called. */
|
|
3
|
-
copied: boolean;
|
|
4
|
-
/** Set when the Clipboard API is missing or `writeText` rejects (e.g. permission denied). */
|
|
5
|
-
error: Error | undefined;
|
|
6
|
-
/** Writes `text` via `navigator.clipboard.writeText`; returns whether the write succeeded. */
|
|
7
|
-
copy: (text: string) => Promise<boolean>;
|
|
8
|
-
/** Clears `copied`/`error` and cancels any pending auto-reset timeout. */
|
|
9
|
-
reset: () => void;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Wraps the async Clipboard API with React state for UX feedback (“Copied!”) and error surfacing.
|
|
13
|
-
*
|
|
14
|
-
* After a successful copy, `copied` flips to `true` for `resetDelay` ms (or stays true if `resetDelay` is 0).
|
|
15
|
-
* SSR-safe: `copy` resolves `false` with an error when `navigator.clipboard` is unavailable.
|
|
16
|
-
*
|
|
17
|
-
* @param resetDelay - Milliseconds before `copied` auto-clears after success; `0` disables auto-clear.
|
|
18
|
-
* @returns `{ copied, error, copy, reset }` for rendering and handlers.
|
|
19
|
-
*/
|
|
20
|
-
declare function useClipboard(resetDelay?: number): UseClipboardResult;
|
|
21
|
-
|
|
22
|
-
export { type UseClipboardResult, useClipboard };
|
|
@@ -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,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 };
|