@kadoui/react 2.0.1 → 2.1.2
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 +1052 -376
- package/dist/react-components/Accordion/Accordion.d.ts +1 -0
- package/dist/react-components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/react-components/Accordion/Accordion.js +1 -0
- package/dist/react-components/Accordion/AccordionBody.d.ts +1 -2
- package/dist/react-components/Accordion/AccordionBody.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionContext.d.ts +1 -5
- package/dist/react-components/Accordion/AccordionContext.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionRoot.d.ts +1 -2
- package/dist/react-components/Accordion/AccordionRoot.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionToggle.d.ts +1 -4
- package/dist/react-components/Accordion/AccordionToggle.d.ts.map +1 -1
- package/dist/react-components/Accordion/accordionTypes.d.ts +12 -0
- package/dist/react-components/Accordion/accordionTypes.d.ts.map +1 -0
- package/dist/react-components/Accordion/accordionTypes.js +1 -0
- package/dist/react-components/Affix/Affix.d.ts +1 -2
- package/dist/react-components/Affix/Affix.d.ts.map +1 -1
- package/dist/react-components/Affix/affixTypes.d.ts +3 -0
- package/dist/react-components/Affix/affixTypes.d.ts.map +1 -0
- package/dist/react-components/Affix/affixTypes.js +1 -0
- package/dist/react-components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/react-components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/react-components/Breadcrumbs/Breadcrumbs.js +1 -0
- package/dist/react-components/Breadcrumbs/BreadcrumbsContext.d.ts +1 -4
- package/dist/react-components/Breadcrumbs/BreadcrumbsContext.d.ts.map +1 -1
- package/dist/react-components/Breadcrumbs/BreadcrumbsItem.d.ts +1 -4
- package/dist/react-components/Breadcrumbs/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/react-components/Breadcrumbs/BreadcrumbsRoot.d.ts +1 -4
- package/dist/react-components/Breadcrumbs/BreadcrumbsRoot.d.ts.map +1 -1
- package/dist/react-components/Breadcrumbs/breadcrumbsTypes.d.ts +11 -0
- package/dist/react-components/Breadcrumbs/breadcrumbsTypes.d.ts.map +1 -0
- package/dist/react-components/Breadcrumbs/breadcrumbsTypes.js +1 -0
- package/dist/react-components/Carousel/Carousel.d.ts +1 -0
- package/dist/react-components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/react-components/Carousel/Carousel.js +1 -0
- package/dist/react-components/Carousel/CarouselContainer.d.ts +1 -2
- package/dist/react-components/Carousel/CarouselContainer.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselContext.d.ts +1 -8
- package/dist/react-components/Carousel/CarouselContext.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselLeftFade.d.ts +1 -3
- package/dist/react-components/Carousel/CarouselLeftFade.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.d.ts +1 -2
- package/dist/react-components/Carousel/CarouselNextBtn.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselPrevBtn.d.ts +1 -2
- package/dist/react-components/Carousel/CarouselPrevBtn.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselRightFade.d.ts +1 -3
- package/dist/react-components/Carousel/CarouselRightFade.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselRoot.d.ts +1 -4
- package/dist/react-components/Carousel/CarouselRoot.d.ts.map +1 -1
- package/dist/react-components/Carousel/carouselTypes.d.ts +17 -0
- package/dist/react-components/Carousel/carouselTypes.d.ts.map +1 -0
- package/dist/react-components/Carousel/carouselTypes.js +1 -0
- package/dist/react-components/Choice/Choice.d.ts +1 -0
- package/dist/react-components/Choice/Choice.d.ts.map +1 -1
- package/dist/react-components/Choice/Choice.js +1 -0
- package/dist/react-components/Choice/ChoiceContext.d.ts +1 -16
- package/dist/react-components/Choice/ChoiceContext.d.ts.map +1 -1
- package/dist/react-components/Choice/ChoiceNavigation.d.ts +1 -3
- package/dist/react-components/Choice/ChoiceNavigation.d.ts.map +1 -1
- package/dist/react-components/Choice/ChoiceRoot.d.ts +1 -4
- package/dist/react-components/Choice/ChoiceRoot.d.ts.map +1 -1
- package/dist/react-components/Choice/ChoiceTrigger.d.ts +1 -5
- package/dist/react-components/Choice/ChoiceTrigger.d.ts.map +1 -1
- package/dist/react-components/Choice/choiceTypes.d.ts +23 -0
- package/dist/react-components/Choice/choiceTypes.d.ts.map +1 -0
- package/dist/react-components/Choice/choiceTypes.js +1 -0
- package/dist/react-components/ClientOnly/ClientOnly.d.ts +1 -2
- package/dist/react-components/ClientOnly/ClientOnly.d.ts.map +1 -1
- package/dist/react-components/ClientOnly/clientOnlyTypes.d.ts +3 -0
- package/dist/react-components/ClientOnly/clientOnlyTypes.d.ts.map +1 -0
- package/dist/react-components/ClientOnly/clientOnlyTypes.js +1 -0
- package/dist/react-components/Clipboard/Clipboard.d.ts +1 -6
- package/dist/react-components/Clipboard/Clipboard.d.ts.map +1 -1
- package/dist/react-components/Clipboard/clipboardTypes.d.ts +7 -0
- package/dist/react-components/Clipboard/clipboardTypes.d.ts.map +1 -0
- package/dist/react-components/Clipboard/clipboardTypes.js +1 -0
- package/dist/react-components/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/react-components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/react-components/ContextMenu/ContextMenu.js +1 -0
- package/dist/react-components/ContextMenu/ContextMenuBody.d.ts +1 -2
- package/dist/react-components/ContextMenu/ContextMenuBody.d.ts.map +1 -1
- package/dist/react-components/ContextMenu/ContextMenuContext.d.ts +1 -10
- package/dist/react-components/ContextMenu/ContextMenuContext.d.ts.map +1 -1
- package/dist/react-components/ContextMenu/ContextMenuContext.js +1 -1
- package/dist/react-components/ContextMenu/ContextMenuItem.d.ts +1 -3
- package/dist/react-components/ContextMenu/ContextMenuItem.d.ts.map +1 -1
- package/dist/react-components/ContextMenu/ContextMenuNavigation.d.ts +1 -3
- package/dist/react-components/ContextMenu/ContextMenuNavigation.d.ts.map +1 -1
- package/dist/react-components/ContextMenu/ContextMenuNavigation.js +1 -1
- package/dist/react-components/ContextMenu/ContextMenuRoot.d.ts +1 -2
- package/dist/react-components/ContextMenu/ContextMenuRoot.d.ts.map +1 -1
- package/dist/react-components/ContextMenu/contextMenuTypes.d.ts +16 -0
- package/dist/react-components/ContextMenu/contextMenuTypes.d.ts.map +1 -0
- package/dist/react-components/ContextMenu/contextMenuTypes.js +1 -0
- package/dist/react-components/Drawer/Drawer.d.ts +1 -0
- package/dist/react-components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/react-components/Drawer/Drawer.js +1 -0
- package/dist/react-components/Drawer/DrawerBody.d.ts +1 -4
- package/dist/react-components/Drawer/DrawerBody.d.ts.map +1 -1
- package/dist/react-components/Drawer/DrawerBody.js +1 -1
- package/dist/react-components/Drawer/DrawerContext.d.ts +1 -5
- package/dist/react-components/Drawer/DrawerContext.d.ts.map +1 -1
- package/dist/react-components/Drawer/DrawerPortal.d.ts +1 -2
- package/dist/react-components/Drawer/DrawerPortal.d.ts.map +1 -1
- package/dist/react-components/Drawer/DrawerPortal.js +1 -1
- package/dist/react-components/Drawer/DrawerRoot.d.ts +1 -2
- package/dist/react-components/Drawer/DrawerRoot.d.ts.map +1 -1
- package/dist/react-components/Drawer/DrawerRoot.js +1 -1
- package/dist/react-components/Drawer/DrawerToggle.d.ts +1 -2
- package/dist/react-components/Drawer/DrawerToggle.d.ts.map +1 -1
- package/dist/react-components/Drawer/drawerTypes.d.ts +13 -0
- package/dist/react-components/Drawer/drawerTypes.d.ts.map +1 -0
- package/dist/react-components/Drawer/drawerTypes.js +1 -0
- package/dist/react-components/DrawerSheet/DrawerSheet.d.ts +2 -0
- package/dist/react-components/DrawerSheet/DrawerSheet.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/DrawerSheet.js +1 -0
- package/dist/react-components/DrawerSheet/browser.d.ts +8 -0
- package/dist/react-components/DrawerSheet/browser.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/browser.js +27 -0
- package/dist/react-components/DrawerSheet/constants.d.ts +12 -0
- package/dist/react-components/DrawerSheet/constants.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/constants.js +11 -0
- package/dist/react-components/DrawerSheet/context.d.ts +38 -0
- package/dist/react-components/DrawerSheet/context.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/context.js +39 -0
- package/dist/react-components/DrawerSheet/helpers.d.ts +17 -0
- package/dist/react-components/DrawerSheet/helpers.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/helpers.js +97 -0
- package/dist/react-components/DrawerSheet/index.d.ts +147 -0
- package/dist/react-components/DrawerSheet/index.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/index.js +803 -0
- package/dist/react-components/DrawerSheet/types.d.ts +7 -0
- package/dist/react-components/DrawerSheet/types.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/types.js +1 -0
- package/dist/react-components/DrawerSheet/use-composed-refs.d.ts +14 -0
- package/dist/react-components/DrawerSheet/use-composed-refs.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-composed-refs.js +30 -0
- package/dist/react-components/DrawerSheet/use-controllable-state.d.ts +9 -0
- package/dist/react-components/DrawerSheet/use-controllable-state.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-controllable-state.js +41 -0
- package/dist/react-components/DrawerSheet/use-position-fixed.d.ts +19 -0
- package/dist/react-components/DrawerSheet/use-position-fixed.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-position-fixed.js +109 -0
- package/dist/react-components/DrawerSheet/use-prevent-scroll.d.ts +18 -0
- package/dist/react-components/DrawerSheet/use-prevent-scroll.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-prevent-scroll.js +237 -0
- package/dist/react-components/DrawerSheet/use-scale-background.d.ts +2 -0
- package/dist/react-components/DrawerSheet/use-scale-background.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-scale-background.js +50 -0
- package/dist/react-components/DrawerSheet/use-snap-points.d.ts +32 -0
- package/dist/react-components/DrawerSheet/use-snap-points.d.ts.map +1 -0
- package/dist/react-components/DrawerSheet/use-snap-points.js +200 -0
- package/dist/react-components/Modal/Modal.d.ts +1 -0
- package/dist/react-components/Modal/Modal.d.ts.map +1 -1
- package/dist/react-components/Modal/Modal.js +1 -0
- package/dist/react-components/Modal/ModalBody.d.ts +1 -2
- package/dist/react-components/Modal/ModalBody.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalBody.js +1 -1
- package/dist/react-components/Modal/ModalContent.d.ts +1 -2
- package/dist/react-components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalContext.d.ts +1 -5
- package/dist/react-components/Modal/ModalContext.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalHeader.d.ts +1 -2
- package/dist/react-components/Modal/ModalHeader.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalPortal.d.ts +1 -2
- package/dist/react-components/Modal/ModalPortal.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalPortal.js +1 -1
- package/dist/react-components/Modal/ModalRoot.d.ts +1 -4
- package/dist/react-components/Modal/ModalRoot.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalRoot.js +1 -1
- package/dist/react-components/Modal/ModalTrigger.d.ts +1 -2
- package/dist/react-components/Modal/ModalTrigger.d.ts.map +1 -1
- package/dist/react-components/Modal/modalTypes.d.ts +15 -0
- package/dist/react-components/Modal/modalTypes.d.ts.map +1 -0
- package/dist/react-components/Modal/modalTypes.js +1 -0
- package/dist/react-components/Otp/Otp.d.ts +1 -0
- package/dist/react-components/Otp/Otp.d.ts.map +1 -1
- package/dist/react-components/Otp/Otp.js +1 -0
- package/dist/react-components/Otp/OtpContext.d.ts +2 -6
- package/dist/react-components/Otp/OtpContext.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpHiddenInput.d.ts +1 -2
- package/dist/react-components/Otp/OtpHiddenInput.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpInputs.d.ts +1 -5
- package/dist/react-components/Otp/OtpInputs.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpRoot.d.ts +1 -4
- package/dist/react-components/Otp/OtpRoot.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpRoot.js +1 -1
- package/dist/react-components/Otp/otpTypes.d.ts +15 -0
- package/dist/react-components/Otp/otpTypes.d.ts.map +1 -0
- package/dist/react-components/Otp/otpTypes.js +1 -0
- package/dist/react-components/Pagination/PaginationContext.d.ts +1 -10
- package/dist/react-components/Pagination/PaginationContext.d.ts.map +1 -1
- package/dist/react-components/Pagination/PaginationCounts.d.ts +1 -2
- package/dist/react-components/Pagination/PaginationCounts.d.ts.map +1 -1
- package/dist/react-components/Pagination/PaginationNextBtn.d.ts +1 -4
- package/dist/react-components/Pagination/PaginationNextBtn.d.ts.map +1 -1
- package/dist/react-components/Pagination/PaginationPrevBtn.d.ts +1 -4
- package/dist/react-components/Pagination/PaginationPrevBtn.d.ts.map +1 -1
- package/dist/react-components/Pagination/PaginationSearchParamsRoot.d.ts +1 -4
- package/dist/react-components/Pagination/PaginationSearchParamsRoot.d.ts.map +1 -1
- package/dist/react-components/Pagination/PaginationStateRoot.d.ts +1 -7
- package/dist/react-components/Pagination/PaginationStateRoot.d.ts.map +1 -1
- package/dist/react-components/Pagination/PaginationTypes.d.ts +23 -1
- package/dist/react-components/Pagination/PaginationTypes.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInput.d.ts +1 -0
- package/dist/react-components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInput.js +1 -0
- package/dist/react-components/PasswordInput/PasswordInputContext.d.ts +1 -5
- package/dist/react-components/PasswordInput/PasswordInputContext.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputField.d.ts +1 -2
- package/dist/react-components/PasswordInput/PasswordInputField.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputRoot.d.ts +1 -2
- package/dist/react-components/PasswordInput/PasswordInputRoot.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputToggle.d.ts +1 -4
- package/dist/react-components/PasswordInput/PasswordInputToggle.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/passwordInputTypes.d.ts +11 -0
- package/dist/react-components/PasswordInput/passwordInputTypes.d.ts.map +1 -0
- package/dist/react-components/PasswordInput/passwordInputTypes.js +1 -0
- package/dist/react-components/Popover/Popover.d.ts +1 -0
- package/dist/react-components/Popover/Popover.d.ts.map +1 -1
- package/dist/react-components/Popover/Popover.js +1 -0
- package/dist/react-components/Popover/PopoverBody.d.ts +1 -4
- package/dist/react-components/Popover/PopoverBody.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverContext.d.ts +1 -8
- package/dist/react-components/Popover/PopoverContext.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverNavigation.d.ts +2 -2
- package/dist/react-components/Popover/PopoverNavigation.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverNavigation.js +1 -1
- package/dist/react-components/Popover/PopoverRoot.d.ts +1 -5
- package/dist/react-components/Popover/PopoverRoot.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverToggle.d.ts +1 -2
- package/dist/react-components/Popover/PopoverToggle.d.ts.map +1 -1
- package/dist/react-components/Popover/popoverTypes.d.ts +18 -0
- package/dist/react-components/Popover/popoverTypes.d.ts.map +1 -0
- package/dist/react-components/Popover/popoverTypes.js +1 -0
- package/dist/react-components/Portal/Portal.d.ts +1 -4
- package/dist/react-components/Portal/Portal.d.ts.map +1 -1
- package/dist/react-components/Portal/portalTypes.d.ts +5 -0
- package/dist/react-components/Portal/portalTypes.d.ts.map +1 -0
- package/dist/react-components/Portal/portalTypes.js +1 -0
- package/dist/react-components/Progress/Progress.d.ts +1 -0
- package/dist/react-components/Progress/Progress.d.ts.map +1 -1
- package/dist/react-components/Progress/Progress.js +1 -0
- package/dist/react-components/Progress/ProgressBar.d.ts +1 -4
- package/dist/react-components/Progress/ProgressBar.d.ts.map +1 -1
- package/dist/react-components/Progress/ProgressContext.d.ts +1 -4
- package/dist/react-components/Progress/ProgressContext.d.ts.map +1 -1
- package/dist/react-components/Progress/ProgressRoot.d.ts +1 -5
- package/dist/react-components/Progress/ProgressRoot.d.ts.map +1 -1
- package/dist/react-components/Progress/progressTypes.d.ts +14 -0
- package/dist/react-components/Progress/progressTypes.d.ts.map +1 -0
- package/dist/react-components/Progress/progressTypes.js +1 -0
- package/dist/react-components/QrCode/QrCode.d.ts +1 -6
- package/dist/react-components/QrCode/QrCode.d.ts.map +1 -1
- package/dist/react-components/QrCode/qrCodeTypes.d.ts +7 -0
- package/dist/react-components/QrCode/qrCodeTypes.d.ts.map +1 -0
- package/dist/react-components/QrCode/qrCodeTypes.js +1 -0
- package/dist/react-components/Rating/Rating.d.ts +2 -1
- package/dist/react-components/Rating/Rating.d.ts.map +1 -1
- package/dist/react-components/Rating/Rating.js +1 -0
- package/dist/react-components/Rating/RatingContext.d.ts +1 -5
- package/dist/react-components/Rating/RatingContext.d.ts.map +1 -1
- package/dist/react-components/Rating/RatingItems.d.ts +1 -8
- package/dist/react-components/Rating/RatingItems.d.ts.map +1 -1
- package/dist/react-components/Rating/RatingRoot.d.ts +1 -2
- package/dist/react-components/Rating/RatingRoot.d.ts.map +1 -1
- package/dist/react-components/Rating/ratingTypes.d.ts +14 -0
- package/dist/react-components/Rating/ratingTypes.d.ts.map +1 -0
- package/dist/react-components/Rating/ratingTypes.js +1 -0
- package/dist/react-components/Sheet/Sheet.d.ts +1 -0
- package/dist/react-components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/react-components/Sheet/Sheet.js +1 -0
- package/dist/react-components/Sheet/SheetBody.d.ts +1 -2
- package/dist/react-components/Sheet/SheetBody.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetBody.js +1 -1
- package/dist/react-components/Sheet/SheetContent.d.ts +1 -2
- package/dist/react-components/Sheet/SheetContent.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetContext.d.ts +1 -9
- package/dist/react-components/Sheet/SheetContext.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetHandlebar.d.ts +1 -2
- package/dist/react-components/Sheet/SheetHandlebar.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetHeader.d.ts +1 -2
- package/dist/react-components/Sheet/SheetHeader.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetPortal.d.ts +1 -2
- package/dist/react-components/Sheet/SheetPortal.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetPortal.js +1 -1
- package/dist/react-components/Sheet/SheetRoot.d.ts +1 -2
- package/dist/react-components/Sheet/SheetRoot.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetRoot.js +1 -1
- package/dist/react-components/Sheet/SheetToggle.d.ts +1 -2
- package/dist/react-components/Sheet/SheetToggle.d.ts.map +1 -1
- package/dist/react-components/Sheet/sheetTypes.d.ts +17 -0
- package/dist/react-components/Sheet/sheetTypes.d.ts.map +1 -0
- package/dist/react-components/Sheet/sheetTypes.js +1 -0
- package/dist/react-components/ShowMore/ShowMore.d.ts +1 -0
- package/dist/react-components/ShowMore/ShowMore.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMore.js +1 -0
- package/dist/react-components/ShowMore/ShowMoreContent.d.ts +1 -2
- package/dist/react-components/ShowMore/ShowMoreContent.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreContext.d.ts +1 -8
- package/dist/react-components/ShowMore/ShowMoreContext.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreFade.d.ts +1 -2
- package/dist/react-components/ShowMore/ShowMoreFade.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreRoot.d.ts +1 -5
- package/dist/react-components/ShowMore/ShowMoreRoot.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreToggle.d.ts +1 -2
- package/dist/react-components/ShowMore/ShowMoreToggle.d.ts.map +1 -1
- package/dist/react-components/ShowMore/showMoreTypes.d.ts +16 -0
- package/dist/react-components/ShowMore/showMoreTypes.d.ts.map +1 -0
- package/dist/react-components/ShowMore/showMoreTypes.js +1 -0
- package/dist/react-components/Spoiler/Spoiler.d.ts +1 -0
- package/dist/react-components/Spoiler/Spoiler.d.ts.map +1 -1
- package/dist/react-components/Spoiler/Spoiler.js +1 -0
- package/dist/react-components/Spoiler/SpoilerBlur.d.ts +1 -2
- package/dist/react-components/Spoiler/SpoilerBlur.d.ts.map +1 -1
- package/dist/react-components/Spoiler/SpoilerContext.d.ts +1 -5
- package/dist/react-components/Spoiler/SpoilerContext.d.ts.map +1 -1
- package/dist/react-components/Spoiler/SpoilerRoot.d.ts +1 -2
- package/dist/react-components/Spoiler/SpoilerRoot.d.ts.map +1 -1
- package/dist/react-components/Spoiler/spoilerTypes.d.ts +8 -0
- package/dist/react-components/Spoiler/spoilerTypes.d.ts.map +1 -0
- package/dist/react-components/Spoiler/spoilerTypes.js +1 -0
- package/dist/react-components/Submit/Submit.d.ts +1 -0
- package/dist/react-components/Submit/Submit.d.ts.map +1 -1
- package/dist/react-components/Submit/Submit.js +1 -0
- package/dist/react-components/Submit/SubmitContext.d.ts +1 -3
- package/dist/react-components/Submit/SubmitContext.d.ts.map +1 -1
- package/dist/react-components/Submit/SubmitLoader.d.ts +2 -5
- package/dist/react-components/Submit/SubmitLoader.d.ts.map +1 -1
- package/dist/react-components/Submit/SubmitRoot.d.ts +1 -4
- package/dist/react-components/Submit/SubmitRoot.d.ts.map +1 -1
- package/dist/react-components/Submit/submitTypes.d.ts +11 -0
- package/dist/react-components/Submit/submitTypes.d.ts.map +1 -0
- package/dist/react-components/Submit/submitTypes.js +1 -0
- package/dist/react-components/Swap/Swap.d.ts +1 -0
- package/dist/react-components/Swap/Swap.d.ts.map +1 -1
- package/dist/react-components/Swap/Swap.js +1 -0
- package/dist/react-components/Swap/SwapBtn.d.ts +1 -4
- package/dist/react-components/Swap/SwapBtn.d.ts.map +1 -1
- package/dist/react-components/Swap/SwapContext.d.ts +1 -6
- package/dist/react-components/Swap/SwapContext.d.ts.map +1 -1
- package/dist/react-components/Swap/SwapRoot.d.ts +1 -6
- package/dist/react-components/Swap/SwapRoot.d.ts.map +1 -1
- package/dist/react-components/Swap/swapTypes.d.ts +15 -0
- package/dist/react-components/Swap/swapTypes.d.ts.map +1 -0
- package/dist/react-components/Swap/swapTypes.js +1 -0
- package/dist/react-components/Tabs/Tabs.d.ts +1 -0
- package/dist/react-components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/react-components/Tabs/Tabs.js +1 -0
- package/dist/react-components/Tabs/TabsContext.d.ts +1 -5
- package/dist/react-components/Tabs/TabsContext.d.ts.map +1 -1
- package/dist/react-components/Tabs/TabsList.d.ts +1 -2
- package/dist/react-components/Tabs/TabsList.d.ts.map +1 -1
- package/dist/react-components/Tabs/TabsPanel.d.ts +1 -4
- package/dist/react-components/Tabs/TabsPanel.d.ts.map +1 -1
- package/dist/react-components/Tabs/TabsRoot.d.ts +1 -5
- package/dist/react-components/Tabs/TabsRoot.d.ts.map +1 -1
- package/dist/react-components/Tabs/TabsTab.d.ts +1 -4
- package/dist/react-components/Tabs/TabsTab.d.ts.map +1 -1
- package/dist/react-components/Tabs/tabsTypes.d.ts +18 -0
- package/dist/react-components/Tabs/tabsTypes.d.ts.map +1 -0
- package/dist/react-components/Tabs/tabsTypes.js +1 -0
- package/dist/react-components/Theme/Theme.d.ts +1 -0
- package/dist/react-components/Theme/Theme.d.ts.map +1 -1
- package/dist/react-components/Theme/Theme.js +1 -0
- package/dist/react-components/Theme/ThemeContext.d.ts +1 -5
- package/dist/react-components/Theme/ThemeContext.d.ts.map +1 -1
- package/dist/react-components/Theme/ThemeProvider.d.ts +1 -3
- package/dist/react-components/Theme/ThemeProvider.d.ts.map +1 -1
- package/dist/react-components/Theme/themeTypes.d.ts +8 -0
- package/dist/react-components/Theme/themeTypes.d.ts.map +1 -0
- package/dist/react-components/Theme/themeTypes.js +1 -0
- package/dist/react-components/Theme/useTheme.d.ts +2 -2
- package/dist/react-components/drawer-sheet/DrawerSheet.d.ts +23 -0
- package/dist/react-components/drawer-sheet/DrawerSheet.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheet.js +22 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.js +13 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBody.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBody.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetBody.js +165 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContent.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContent.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContent.js +16 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContext.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContext.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetContext.js +2 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.js +5 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.js +5 -0
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.js +13 -0
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.d.ts +15 -0
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.js +75 -0
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.js +130 -0
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.d.ts +3 -0
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.js +11 -0
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.d.ts +4 -0
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.js +5 -0
- package/dist/react-components/drawer-sheet/drawerSheetTypes.d.ts +30 -0
- package/dist/react-components/drawer-sheet/drawerSheetTypes.d.ts.map +1 -0
- package/dist/react-components/drawer-sheet/drawerSheetTypes.js +1 -0
- package/dist/react-exports.d.ts +1 -0
- package/dist/react-exports.d.ts.map +1 -1
- package/dist/react-exports.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { set, isVertical } from './helpers';
|
|
3
|
+
import { TRANSITIONS, VELOCITY_THRESHOLD } from './constants';
|
|
4
|
+
import { useControllableState } from './use-controllable-state';
|
|
5
|
+
export function useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints, drawerRef, overlayRef, fadeFromIndex, onSnapPointChange, direction = 'bottom', container, snapToSequentialPoint, }) {
|
|
6
|
+
const [activeSnapPoint, setActiveSnapPoint] = useControllableState({
|
|
7
|
+
prop: activeSnapPointProp,
|
|
8
|
+
defaultProp: snapPoints?.[0],
|
|
9
|
+
onChange: setActiveSnapPointProp,
|
|
10
|
+
});
|
|
11
|
+
const [windowDimensions, setWindowDimensions] = React.useState(typeof window !== 'undefined'
|
|
12
|
+
? {
|
|
13
|
+
innerWidth: window.innerWidth,
|
|
14
|
+
innerHeight: window.innerHeight,
|
|
15
|
+
}
|
|
16
|
+
: undefined);
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
function onResize() {
|
|
19
|
+
setWindowDimensions({
|
|
20
|
+
innerWidth: window.innerWidth,
|
|
21
|
+
innerHeight: window.innerHeight,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
window.addEventListener('resize', onResize);
|
|
25
|
+
return () => window.removeEventListener('resize', onResize);
|
|
26
|
+
}, []);
|
|
27
|
+
const isLastSnapPoint = React.useMemo(() => activeSnapPoint === snapPoints?.[snapPoints.length - 1] || null, [snapPoints, activeSnapPoint]);
|
|
28
|
+
const activeSnapPointIndex = React.useMemo(() => snapPoints?.findIndex((snapPoint) => snapPoint === activeSnapPoint) ?? null, [snapPoints, activeSnapPoint]);
|
|
29
|
+
const shouldFade = (snapPoints &&
|
|
30
|
+
snapPoints.length > 0 &&
|
|
31
|
+
(fadeFromIndex || fadeFromIndex === 0) &&
|
|
32
|
+
!Number.isNaN(fadeFromIndex) &&
|
|
33
|
+
snapPoints[fadeFromIndex] === activeSnapPoint) ||
|
|
34
|
+
!snapPoints;
|
|
35
|
+
const snapPointsOffset = React.useMemo(() => {
|
|
36
|
+
const containerSize = container
|
|
37
|
+
? { width: container.getBoundingClientRect().width, height: container.getBoundingClientRect().height }
|
|
38
|
+
: typeof window !== 'undefined'
|
|
39
|
+
? { width: window.innerWidth, height: window.innerHeight }
|
|
40
|
+
: { width: 0, height: 0 };
|
|
41
|
+
return (snapPoints?.map((snapPoint) => {
|
|
42
|
+
const isPx = typeof snapPoint === 'string';
|
|
43
|
+
let snapPointAsNumber = 0;
|
|
44
|
+
if (isPx) {
|
|
45
|
+
snapPointAsNumber = parseInt(snapPoint, 10);
|
|
46
|
+
}
|
|
47
|
+
if (isVertical(direction)) {
|
|
48
|
+
const height = isPx ? snapPointAsNumber : windowDimensions ? snapPoint * containerSize.height : 0;
|
|
49
|
+
if (windowDimensions) {
|
|
50
|
+
return direction === 'bottom' ? containerSize.height - height : -containerSize.height + height;
|
|
51
|
+
}
|
|
52
|
+
return height;
|
|
53
|
+
}
|
|
54
|
+
const width = isPx ? snapPointAsNumber : windowDimensions ? snapPoint * containerSize.width : 0;
|
|
55
|
+
if (windowDimensions) {
|
|
56
|
+
return direction === 'right' ? containerSize.width - width : -containerSize.width + width;
|
|
57
|
+
}
|
|
58
|
+
return width;
|
|
59
|
+
}) ?? []);
|
|
60
|
+
}, [snapPoints, windowDimensions, container, direction]);
|
|
61
|
+
const activeSnapPointOffset = React.useMemo(() => (activeSnapPointIndex !== null ? snapPointsOffset?.[activeSnapPointIndex] : null), [snapPointsOffset, activeSnapPointIndex]);
|
|
62
|
+
const snapToPoint = React.useCallback((dimension) => {
|
|
63
|
+
const newSnapPointIndex = snapPointsOffset?.findIndex((snapPointDim) => snapPointDim === dimension) ?? null;
|
|
64
|
+
onSnapPointChange(newSnapPointIndex);
|
|
65
|
+
set(drawerRef.current, {
|
|
66
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
|
67
|
+
transform: isVertical(direction) ? `translate3d(0, ${dimension}px, 0)` : `translate3d(${dimension}px, 0, 0)`,
|
|
68
|
+
});
|
|
69
|
+
if (snapPointsOffset &&
|
|
70
|
+
newSnapPointIndex !== snapPointsOffset.length - 1 &&
|
|
71
|
+
fadeFromIndex !== undefined &&
|
|
72
|
+
newSnapPointIndex !== fadeFromIndex &&
|
|
73
|
+
newSnapPointIndex < fadeFromIndex) {
|
|
74
|
+
set(overlayRef.current, {
|
|
75
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
|
76
|
+
opacity: '0',
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
set(overlayRef.current, {
|
|
81
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
|
82
|
+
opacity: '1',
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)]);
|
|
86
|
+
}, [drawerRef, snapPoints, snapPointsOffset, fadeFromIndex, overlayRef, setActiveSnapPoint]);
|
|
87
|
+
React.useEffect(() => {
|
|
88
|
+
if (activeSnapPoint || activeSnapPointProp) {
|
|
89
|
+
const newIndex = snapPoints?.findIndex((snapPoint) => snapPoint === activeSnapPointProp || snapPoint === activeSnapPoint) ?? -1;
|
|
90
|
+
if (snapPointsOffset && newIndex !== -1 && typeof snapPointsOffset[newIndex] === 'number') {
|
|
91
|
+
snapToPoint(snapPointsOffset[newIndex]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}, [activeSnapPoint, activeSnapPointProp, snapPoints, snapPointsOffset, snapToPoint]);
|
|
95
|
+
function onRelease({ draggedDistance, closeDrawer, velocity, dismissible, }) {
|
|
96
|
+
if (fadeFromIndex === undefined)
|
|
97
|
+
return;
|
|
98
|
+
const currentPosition = direction === 'bottom' || direction === 'right'
|
|
99
|
+
? (activeSnapPointOffset ?? 0) - draggedDistance
|
|
100
|
+
: (activeSnapPointOffset ?? 0) + draggedDistance;
|
|
101
|
+
const isOverlaySnapPoint = activeSnapPointIndex === fadeFromIndex - 1;
|
|
102
|
+
const isFirst = activeSnapPointIndex === 0;
|
|
103
|
+
const hasDraggedUp = draggedDistance > 0;
|
|
104
|
+
if (isOverlaySnapPoint) {
|
|
105
|
+
set(overlayRef.current, {
|
|
106
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (!snapToSequentialPoint && velocity > 2 && !hasDraggedUp) {
|
|
110
|
+
if (dismissible)
|
|
111
|
+
closeDrawer();
|
|
112
|
+
else
|
|
113
|
+
snapToPoint(snapPointsOffset[0]); // snap to initial point
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (!snapToSequentialPoint && velocity > 2 && hasDraggedUp && snapPointsOffset && snapPoints) {
|
|
117
|
+
snapToPoint(snapPointsOffset[snapPoints.length - 1]);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
// Find the closest snap point to the current position
|
|
121
|
+
const closestSnapPoint = snapPointsOffset?.reduce((prev, curr) => {
|
|
122
|
+
if (typeof prev !== 'number' || typeof curr !== 'number')
|
|
123
|
+
return prev;
|
|
124
|
+
return Math.abs(curr - currentPosition) < Math.abs(prev - currentPosition) ? curr : prev;
|
|
125
|
+
});
|
|
126
|
+
const dim = isVertical(direction) ? window.innerHeight : window.innerWidth;
|
|
127
|
+
if (velocity > VELOCITY_THRESHOLD && Math.abs(draggedDistance) < dim * 0.4) {
|
|
128
|
+
const dragDirection = hasDraggedUp ? 1 : -1; // 1 = up, -1 = down
|
|
129
|
+
// Don't do anything if we swipe upwards while being on the last snap point
|
|
130
|
+
if (dragDirection > 0 && isLastSnapPoint && snapPoints) {
|
|
131
|
+
snapToPoint(snapPointsOffset[snapPoints.length - 1]);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (isFirst && dragDirection < 0 && dismissible) {
|
|
135
|
+
closeDrawer();
|
|
136
|
+
}
|
|
137
|
+
if (activeSnapPointIndex === null)
|
|
138
|
+
return;
|
|
139
|
+
snapToPoint(snapPointsOffset[activeSnapPointIndex + dragDirection]);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
snapToPoint(closestSnapPoint);
|
|
143
|
+
}
|
|
144
|
+
function onDrag({ draggedDistance }) {
|
|
145
|
+
if (activeSnapPointOffset === null)
|
|
146
|
+
return;
|
|
147
|
+
const newValue = direction === 'bottom' || direction === 'right'
|
|
148
|
+
? activeSnapPointOffset - draggedDistance
|
|
149
|
+
: activeSnapPointOffset + draggedDistance;
|
|
150
|
+
// Don't do anything if we exceed the last(biggest) snap point
|
|
151
|
+
if ((direction === 'bottom' || direction === 'right') && newValue < snapPointsOffset[snapPointsOffset.length - 1]) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if ((direction === 'top' || direction === 'left') && newValue > snapPointsOffset[snapPointsOffset.length - 1]) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
set(drawerRef.current, {
|
|
158
|
+
transform: isVertical(direction) ? `translate3d(0, ${newValue}px, 0)` : `translate3d(${newValue}px, 0, 0)`,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function getPercentageDragged(absDraggedDistance, isDraggingDown) {
|
|
162
|
+
if (!snapPoints || typeof activeSnapPointIndex !== 'number' || !snapPointsOffset || fadeFromIndex === undefined)
|
|
163
|
+
return null;
|
|
164
|
+
// If this is true we are dragging to a snap point that is supposed to have an overlay
|
|
165
|
+
const isOverlaySnapPoint = activeSnapPointIndex === fadeFromIndex - 1;
|
|
166
|
+
const isOverlaySnapPointOrHigher = activeSnapPointIndex >= fadeFromIndex;
|
|
167
|
+
if (isOverlaySnapPointOrHigher && isDraggingDown) {
|
|
168
|
+
return 0;
|
|
169
|
+
}
|
|
170
|
+
// Don't animate, but still use this one if we are dragging away from the overlaySnapPoint
|
|
171
|
+
if (isOverlaySnapPoint && !isDraggingDown)
|
|
172
|
+
return 1;
|
|
173
|
+
if (!shouldFade && !isOverlaySnapPoint)
|
|
174
|
+
return null;
|
|
175
|
+
// Either fadeFrom index or the one before
|
|
176
|
+
const targetSnapPointIndex = isOverlaySnapPoint ? activeSnapPointIndex + 1 : activeSnapPointIndex - 1;
|
|
177
|
+
// Get the distance from overlaySnapPoint to the one before or vice-versa to calculate the opacity percentage accordingly
|
|
178
|
+
const snapPointDistance = isOverlaySnapPoint
|
|
179
|
+
? snapPointsOffset[targetSnapPointIndex] - snapPointsOffset[targetSnapPointIndex - 1]
|
|
180
|
+
: snapPointsOffset[targetSnapPointIndex + 1] - snapPointsOffset[targetSnapPointIndex];
|
|
181
|
+
const percentageDragged = absDraggedDistance / Math.abs(snapPointDistance);
|
|
182
|
+
if (isOverlaySnapPoint) {
|
|
183
|
+
return 1 - percentageDragged;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
return percentageDragged;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return {
|
|
190
|
+
isLastSnapPoint,
|
|
191
|
+
activeSnapPoint,
|
|
192
|
+
shouldFade,
|
|
193
|
+
getPercentageDragged,
|
|
194
|
+
setActiveSnapPoint,
|
|
195
|
+
activeSnapPointIndex,
|
|
196
|
+
onRelease,
|
|
197
|
+
onDrag,
|
|
198
|
+
snapPointsOffset,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,KAAK;;;;;;CAMhB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,KAAK;;;;;;CAMhB,CAAC;AAEH,cAAc,cAAc,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ModalBodyPropsT = HTMLMotionProps<"div">;
|
|
1
|
+
import type { ModalBodyPropsT } from "./modalTypes";
|
|
3
2
|
export declare function ModalBody(p: ModalBodyPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=ModalBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalBody.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,wBAAgB,SAAS,CAAC,CAAC,EAAE,eAAe,2CA4B3C"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use, useEffect, useRef } from "react";
|
|
4
4
|
import { AnimatePresence, motion } from "framer-motion";
|
|
5
|
-
import { ModalContext } from "./ModalContext";
|
|
6
5
|
import { FRAMER_MOTION_DURATION } from "../../configs";
|
|
6
|
+
import { ModalContext } from "./ModalContext";
|
|
7
7
|
export function ModalBody(p) {
|
|
8
8
|
const { isOpen } = use(ModalContext);
|
|
9
9
|
const bodyRef = useRef(null);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ModalContentPropsT = ComponentProps<"div">;
|
|
1
|
+
import type { ModalContentPropsT } from "./modalTypes";
|
|
3
2
|
export declare function ModalContent({ onClick, ...p }: ModalContentPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=ModalContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalContent.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ModalContent.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,kBAAkB,2CAUjE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ModalContextT = {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
|
-
};
|
|
1
|
+
import type { ModalContextT } from "./modalTypes";
|
|
6
2
|
export declare const ModalContext: import("react").Context<ModalContextT>;
|
|
7
3
|
//# sourceMappingURL=ModalContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalContext.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalContext.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,YAAY,wCAAoD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ModalHeaderPropsT = ComponentProps<"div">;
|
|
1
|
+
import type { ModalHeaderPropsT } from "./modalTypes";
|
|
3
2
|
export declare function ModalHeader({ onClick, ...p }: ModalHeaderPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=ModalHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,2CAU/D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ModalPortalPropsT = HTMLMotionProps<"div">;
|
|
1
|
+
import type { ModalPortalPropsT } from "./modalTypes";
|
|
3
2
|
export declare function ModalPortal({ onClick, ...p }: ModalPortalPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=ModalPortal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalPortal.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalPortal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalPortal.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalPortal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,2CAuB/D"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { motion, AnimatePresence } from "framer-motion";
|
|
5
|
+
import { ClientOnly } from "../ClientOnly/ClientOnly";
|
|
5
6
|
import { Portal } from "../Portal/Portal";
|
|
6
7
|
import { ModalContext } from "./ModalContext";
|
|
7
|
-
import { ClientOnly } from "../ClientOnly/ClientOnly";
|
|
8
8
|
export function ModalPortal({ onClick, ...p }) {
|
|
9
9
|
const { isOpen, setOpen } = use(ModalContext);
|
|
10
10
|
return (_jsx(ClientOnly, { children: _jsx(Portal, { children: _jsx(AnimatePresence, { children: isOpen ? (_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, onClick: (ev) => {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ModalRootPropsT = PropsWithChildren & {
|
|
3
|
-
defaultOpen?: boolean;
|
|
4
|
-
};
|
|
1
|
+
import type { ModalRootPropsT } from "./modalTypes";
|
|
5
2
|
export declare function ModalRoot({ children, defaultOpen }: ModalRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=ModalRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalRoot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalRoot.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,WAAmB,EAAE,EAAE,eAAe,2CA0C3E"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { usePathname } from "next/navigation";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
|
-
import { ModalContext } from "./ModalContext";
|
|
6
5
|
import { getBrowserScrollbarWith } from "../../utils-exports";
|
|
6
|
+
import { ModalContext } from "./ModalContext";
|
|
7
7
|
export function ModalRoot({ children, defaultOpen = false }) {
|
|
8
8
|
const pathname = usePathname();
|
|
9
9
|
const [isOpen, setOpen] = useState(defaultOpen);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ModalTogglePropsT = ComponentProps<"button">;
|
|
1
|
+
import type { ModalTogglePropsT } from "./modalTypes";
|
|
3
2
|
export declare function ModalToggle({ onClick, ...props }: ModalTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=ModalTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalTrigger.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalTrigger.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalTrigger.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/ModalTrigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAYnE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLMotionProps } from "framer-motion";
|
|
2
|
+
import type { ComponentProps, Dispatch, PropsWithChildren, SetStateAction } from "react";
|
|
3
|
+
export type ModalContextT = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
};
|
|
7
|
+
export type ModalRootPropsT = PropsWithChildren & {
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ModalContentPropsT = ComponentProps<"div">;
|
|
11
|
+
export type ModalHeaderPropsT = ComponentProps<"div">;
|
|
12
|
+
export type ModalTogglePropsT = ComponentProps<"button">;
|
|
13
|
+
export type ModalBodyPropsT = HTMLMotionProps<"div">;
|
|
14
|
+
export type ModalPortalPropsT = HTMLMotionProps<"div">;
|
|
15
|
+
//# sourceMappingURL=modalTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modalTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Modal/modalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Otp.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/Otp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,GAAG;;;CAGd,CAAC"}
|
|
1
|
+
{"version":3,"file":"Otp.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/Otp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,GAAG;;;CAGd,CAAC;AAEH,cAAc,YAAY,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
inputs?: RefObject<(HTMLInputElement | null)[]>;
|
|
4
|
-
getInputsValue: () => string;
|
|
5
|
-
};
|
|
6
|
-
export declare const OtpContext: import("react").Context<createContextT>;
|
|
1
|
+
import type { OtpContextT } from "./otpTypes";
|
|
2
|
+
export declare const OtpContext: import("react").Context<OtpContextT>;
|
|
7
3
|
//# sourceMappingURL=OtpContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpContext.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OtpContext.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,UAAU,sCAErB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type OtpHiddenInputPropsT = ComponentProps<"input">;
|
|
1
|
+
import type { OtpHiddenInputPropsT } from "./otpTypes";
|
|
3
2
|
export declare function OtpHiddenInput({ name, ...p }: OtpHiddenInputPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=OtpHiddenInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpHiddenInput.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpHiddenInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OtpHiddenInput.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpHiddenInput.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,oBAAoB,2CAMlE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type OtpInputsPropsT = ComponentProps<"input"> & {
|
|
3
|
-
length: number;
|
|
4
|
-
onLastChange?: (otp: string) => void;
|
|
5
|
-
};
|
|
1
|
+
import type { OtpInputsPropsT } from "./otpTypes";
|
|
6
2
|
export declare function OtpInputs({ name, length, onLastChange, ...props }: OtpInputsPropsT): import("react/jsx-runtime").JSX.Element[];
|
|
7
3
|
//# sourceMappingURL=OtpInputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpInputs.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpInputs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OtpInputs.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpInputs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,6CAwElF"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type OtpRootPropsT = Omit<AccessNavigationPropsT, "direction"> & {
|
|
3
|
-
autoFocus?: boolean;
|
|
4
|
-
};
|
|
1
|
+
import type { OtpRootPropsT } from "./otpTypes";
|
|
5
2
|
export declare function OtpRoot({ autoFocus, ...p }: OtpRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=OtpRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtpRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpRoot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OtpRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/OtpRoot.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,aAAa,2CAqBzD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
|
+
import { AccessNavigation } from "../AccessNavigation/AccessNavigation";
|
|
4
5
|
import { OtpContext } from "./OtpContext";
|
|
5
|
-
import { AccessNavigation, } from "../AccessNavigation/AccessNavigation";
|
|
6
6
|
export function OtpRoot({ autoFocus, ...p }) {
|
|
7
7
|
const inputs = useRef([]);
|
|
8
8
|
useEffect(() => {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentProps, RefObject } from "react";
|
|
2
|
+
import type { AccessNavigationPropsT } from "../AccessNavigation/AccessNavigation";
|
|
3
|
+
export type OtpContextT = {
|
|
4
|
+
inputs?: RefObject<(HTMLInputElement | null)[]>;
|
|
5
|
+
getInputsValue: () => string;
|
|
6
|
+
};
|
|
7
|
+
export type OtpRootPropsT = Omit<AccessNavigationPropsT, "direction"> & {
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type OtpInputsPropsT = ComponentProps<"input"> & {
|
|
11
|
+
length: number;
|
|
12
|
+
onLastChange?: (otp: string) => void;
|
|
13
|
+
};
|
|
14
|
+
export type OtpHiddenInputPropsT = ComponentProps<"input">;
|
|
15
|
+
//# sourceMappingURL=otpTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otpTypes.d.ts","sourceRoot":"","sources":["../../../src/react-components/Otp/otpTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC,gBAAgB,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,MAAM,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC,GAAG;IACtE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PaginationPagesT } from "./PaginationTypes";
|
|
3
|
-
export type PaginationContextT = {
|
|
4
|
-
pages?: PaginationPagesT[];
|
|
5
|
-
pagesLength: number;
|
|
6
|
-
page: number;
|
|
7
|
-
setPage: Dispatch<SetStateAction<number>>;
|
|
8
|
-
nextPage: () => void;
|
|
9
|
-
prevPage: () => void;
|
|
10
|
-
};
|
|
1
|
+
import type { PaginationContextT } from "./PaginationTypes";
|
|
11
2
|
export declare const PaginationContext: import("react").Context<PaginationContextT>;
|
|
12
3
|
//# sourceMappingURL=PaginationContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationContext.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginationContext.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,6CAE7B,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type PaginationCountsPropsT = Omit<ComponentProps<"button">, "children">;
|
|
1
|
+
import type { PaginationCountsPropsT } from "./PaginationTypes";
|
|
3
2
|
export declare function PaginationCounts({ onClick, ...p }: PaginationCountsPropsT): import("react/jsx-runtime").JSX.Element[];
|
|
4
3
|
//# sourceMappingURL=PaginationCounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationCounts.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationCounts.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginationCounts.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationCounts.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,sBAAsB,6CAezE"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type PaginationNextBtnPropsT = ComponentProps<"button"> & {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
};
|
|
1
|
+
import type { PaginationNextBtnPropsT } from "./PaginationTypes";
|
|
5
2
|
export declare function PaginationNextBtn({ onClick, disabled, ...p }: PaginationNextBtnPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=PaginationNextBtn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationNextBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationNextBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginationNextBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationNextBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,uBAAuB,2CAarF"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type PaginationPrevBtnPropsT = ComponentProps<"button"> & {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
};
|
|
1
|
+
import type { PaginationPrevBtnPropsT } from "./PaginationTypes";
|
|
5
2
|
export declare function PaginationPrevBtn({ onClick, disabled, ...p }: PaginationPrevBtnPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=PaginationPrevBtn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationPrevBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginationPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationPrevBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,uBAAuB,2CAarF"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type PaginationSearchParamsRootPropsT = PaginationPropsT & {
|
|
3
|
-
pageKey?: string;
|
|
4
|
-
};
|
|
1
|
+
import type { PaginationSearchParamsRootPropsT } from "./PaginationTypes";
|
|
5
2
|
export declare function PaginationSearchParamsRoot({ pages, pagesLength, pageKey, ...p }: PaginationSearchParamsRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=PaginationSearchParamsRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationSearchParamsRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationSearchParamsRoot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginationSearchParamsRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationSearchParamsRoot.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAE1E,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,EACL,WAAW,EACX,OAAO,EACP,GAAG,CAAC,EACL,EAAE,gCAAgC,2CAgDlC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PaginationPropsT } from "./PaginationTypes";
|
|
3
|
-
type PaginationStateRootPropsT = PaginationPropsT & {
|
|
4
|
-
page: number;
|
|
5
|
-
setPage: Dispatch<SetStateAction<number>>;
|
|
6
|
-
};
|
|
1
|
+
import type { PaginationStateRootPropsT } from "./PaginationTypes";
|
|
7
2
|
export declare function PaginationStateRoot({ page, setPage, pages, pagesLength, ...p }: PaginationStateRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
3
|
//# sourceMappingURL=PaginationStateRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationStateRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationStateRoot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaginationStateRoot.d.ts","sourceRoot":"","sources":["../../../src/react-components/Pagination/PaginationStateRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,CAAC,EAAE,EAAE,yBAAyB,2CAoBzG"}
|