@kadoui/react 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-components/Accordion/AccordionBody.d.ts +1 -1
- package/dist/react-components/Accordion/AccordionBody.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionBody.js +2 -2
- package/dist/react-components/Accordion/AccordionToggle.d.ts +1 -1
- package/dist/react-components/Accordion/AccordionToggle.d.ts.map +1 -1
- package/dist/react-components/Accordion/AccordionToggle.js +3 -3
- package/dist/react-components/Accordion/accordionTypes.d.ts +1 -1
- package/dist/react-components/Accordion/accordionTypes.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.d.ts +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselNextBtn.js +2 -2
- package/dist/react-components/Carousel/CarouselPrevBtn.d.ts +1 -1
- package/dist/react-components/Carousel/CarouselPrevBtn.d.ts.map +1 -1
- package/dist/react-components/Carousel/CarouselPrevBtn.js +2 -2
- package/dist/react-components/Choice/ChoiceToggle.d.ts +2 -2
- package/dist/react-components/Choice/ChoiceToggle.d.ts.map +1 -1
- package/dist/react-components/Choice/ChoiceToggle.js +1 -1
- package/dist/react-components/Choice/choiceTypes.d.ts +1 -1
- package/dist/react-components/Choice/choiceTypes.d.ts.map +1 -1
- package/dist/react-components/Clipboard/Clipboard.d.ts +1 -1
- package/dist/react-components/Clipboard/Clipboard.d.ts.map +1 -1
- package/dist/react-components/Clipboard/Clipboard.js +2 -2
- package/dist/react-components/Drawer/DrawerToggle.d.ts +1 -1
- package/dist/react-components/Drawer/DrawerToggle.d.ts.map +1 -1
- package/dist/react-components/Drawer/DrawerToggle.js +3 -3
- package/dist/react-components/Drawer/drawerTypes.d.ts +1 -1
- package/dist/react-components/Drawer/drawerTypes.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalToggle.d.ts +1 -1
- package/dist/react-components/Modal/ModalToggle.d.ts.map +1 -1
- package/dist/react-components/Modal/ModalToggle.js +3 -3
- package/dist/react-components/Modal/modalTypes.d.ts +1 -1
- package/dist/react-components/Modal/modalTypes.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpInputs.d.ts +1 -1
- package/dist/react-components/Otp/OtpInputs.d.ts.map +1 -1
- package/dist/react-components/Otp/OtpInputs.js +2 -2
- package/dist/react-components/PasswordInput/PasswordInputField.d.ts +1 -1
- package/dist/react-components/PasswordInput/PasswordInputField.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputField.js +2 -2
- package/dist/react-components/PasswordInput/PasswordInputRoot.d.ts +1 -1
- package/dist/react-components/PasswordInput/PasswordInputRoot.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputRoot.js +2 -2
- package/dist/react-components/PasswordInput/PasswordInputToggle.d.ts +1 -1
- package/dist/react-components/PasswordInput/PasswordInputToggle.d.ts.map +1 -1
- package/dist/react-components/PasswordInput/PasswordInputToggle.js +2 -2
- package/dist/react-components/PasswordInput/passwordInputTypes.d.ts +1 -1
- package/dist/react-components/PasswordInput/passwordInputTypes.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverToggle.d.ts +1 -1
- package/dist/react-components/Popover/PopoverToggle.d.ts.map +1 -1
- package/dist/react-components/Popover/PopoverToggle.js +3 -3
- package/dist/react-components/Popover/popoverTypes.d.ts +1 -1
- package/dist/react-components/Popover/popoverTypes.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetToggle.d.ts +1 -1
- package/dist/react-components/Sheet/SheetToggle.d.ts.map +1 -1
- package/dist/react-components/Sheet/SheetToggle.js +3 -3
- package/dist/react-components/Sheet/sheetTypes.d.ts +1 -1
- package/dist/react-components/Sheet/sheetTypes.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreContent.d.ts +1 -1
- package/dist/react-components/ShowMore/ShowMoreContent.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreContent.js +2 -2
- package/dist/react-components/ShowMore/ShowMoreToggle.d.ts.map +1 -1
- package/dist/react-components/ShowMore/ShowMoreToggle.js +1 -1
- package/dist/react-components/ShowMore/showMoreTypes.d.ts +1 -1
- package/dist/react-components/ShowMore/showMoreTypes.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/AccessNavigation/AccessNavigation.d.ts +0 -8
- package/dist/components/AccessNavigation/AccessNavigation.d.ts.map +0 -1
- package/dist/components/AccessNavigation/AccessNavigation.js +0 -51
- package/dist/components/Accordion/Accordion.d.ts +0 -8
- package/dist/components/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/Accordion/Accordion.js +0 -7
- package/dist/components/Accordion/AccordionBody.d.ts +0 -4
- package/dist/components/Accordion/AccordionBody.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionBody.js +0 -11
- package/dist/components/Accordion/AccordionContext.d.ts +0 -7
- package/dist/components/Accordion/AccordionContext.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionContext.js +0 -2
- package/dist/components/Accordion/AccordionRoot.d.ts +0 -4
- package/dist/components/Accordion/AccordionRoot.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionRoot.js +0 -8
- package/dist/components/Accordion/AccordionToggle.d.ts +0 -6
- package/dist/components/Accordion/AccordionToggle.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionToggle.js +0 -11
- package/dist/components/Affix/Affix.d.ts +0 -4
- package/dist/components/Affix/Affix.d.ts.map +0 -1
- package/dist/components/Affix/Affix.js +0 -35
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -5
- package/dist/components/Breadcrumbs/BreadcrumbsContext.d.ts +0 -6
- package/dist/components/Breadcrumbs/BreadcrumbsContext.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/BreadcrumbsContext.js +0 -2
- package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -6
- package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/BreadcrumbsItem.js +0 -8
- package/dist/components/Breadcrumbs/BreadcrumbsRoot.d.ts +0 -6
- package/dist/components/Breadcrumbs/BreadcrumbsRoot.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/BreadcrumbsRoot.js +0 -6
- package/dist/components/Carousel/Carousel.d.ts +0 -14
- package/dist/components/Carousel/Carousel.d.ts.map +0 -1
- package/dist/components/Carousel/Carousel.js +0 -13
- package/dist/components/Carousel/CarouselContainer.d.ts +0 -4
- package/dist/components/Carousel/CarouselContainer.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselContainer.js +0 -75
- package/dist/components/Carousel/CarouselContext.d.ts +0 -10
- package/dist/components/Carousel/CarouselContext.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselContext.js +0 -2
- package/dist/components/Carousel/CarouselLeftFade.d.ts +0 -5
- package/dist/components/Carousel/CarouselLeftFade.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselLeftFade.js +0 -11
- package/dist/components/Carousel/CarouselNextBtn.d.ts +0 -4
- package/dist/components/Carousel/CarouselNextBtn.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselNextBtn.js +0 -11
- package/dist/components/Carousel/CarouselPrevBtn.d.ts +0 -4
- package/dist/components/Carousel/CarouselPrevBtn.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselPrevBtn.js +0 -11
- package/dist/components/Carousel/CarouselRightFade.d.ts +0 -5
- package/dist/components/Carousel/CarouselRightFade.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselRightFade.js +0 -11
- package/dist/components/Carousel/CarouselRoot.d.ts +0 -6
- package/dist/components/Carousel/CarouselRoot.d.ts.map +0 -1
- package/dist/components/Carousel/CarouselRoot.js +0 -52
- package/dist/components/Choice/Choice.d.ts +0 -6
- package/dist/components/Choice/Choice.d.ts.map +0 -1
- package/dist/components/Choice/Choice.js +0 -5
- package/dist/components/Choice/ChoiceContext.d.ts +0 -18
- package/dist/components/Choice/ChoiceContext.d.ts.map +0 -1
- package/dist/components/Choice/ChoiceContext.js +0 -3
- package/dist/components/Choice/ChoiceRoot.d.ts +0 -6
- package/dist/components/Choice/ChoiceRoot.d.ts.map +0 -1
- package/dist/components/Choice/ChoiceRoot.js +0 -6
- package/dist/components/Choice/ChoiceTrigger.d.ts +0 -7
- package/dist/components/Choice/ChoiceTrigger.d.ts.map +0 -1
- package/dist/components/Choice/ChoiceTrigger.js +0 -33
- package/dist/components/ClientOnly/ClientOnly.d.ts +0 -4
- package/dist/components/ClientOnly/ClientOnly.d.ts.map +0 -1
- package/dist/components/ClientOnly/ClientOnly.js +0 -6
- package/dist/components/Clipboard/Clipboard.d.ts +0 -8
- package/dist/components/Clipboard/Clipboard.d.ts.map +0 -1
- package/dist/components/Clipboard/Clipboard.js +0 -11
- package/dist/components/ContextMenu/ContextMenu.d.ts +0 -10
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +0 -1
- package/dist/components/ContextMenu/ContextMenu.js +0 -9
- package/dist/components/ContextMenu/ContextMenuBody.d.ts +0 -4
- package/dist/components/ContextMenu/ContextMenuBody.d.ts.map +0 -1
- package/dist/components/ContextMenu/ContextMenuBody.js +0 -15
- package/dist/components/ContextMenu/ContextMenuContext.d.ts +0 -12
- package/dist/components/ContextMenu/ContextMenuContext.d.ts.map +0 -1
- package/dist/components/ContextMenu/ContextMenuContext.js +0 -2
- package/dist/components/ContextMenu/ContextMenuItem.d.ts +0 -5
- package/dist/components/ContextMenu/ContextMenuItem.d.ts.map +0 -1
- package/dist/components/ContextMenu/ContextMenuItem.js +0 -11
- package/dist/components/ContextMenu/ContextMenuNavigation.d.ts +0 -5
- package/dist/components/ContextMenu/ContextMenuNavigation.d.ts.map +0 -1
- package/dist/components/ContextMenu/ContextMenuNavigation.js +0 -9
- package/dist/components/ContextMenu/ContextMenuRoot.d.ts +0 -4
- package/dist/components/ContextMenu/ContextMenuRoot.d.ts.map +0 -1
- package/dist/components/ContextMenu/ContextMenuRoot.js +0 -58
- package/dist/components/Drawer/Drawer.d.ts +0 -10
- package/dist/components/Drawer/Drawer.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.js +0 -9
- package/dist/components/Drawer/DrawerBody.d.ts +0 -6
- package/dist/components/Drawer/DrawerBody.d.ts.map +0 -1
- package/dist/components/Drawer/DrawerBody.js +0 -40
- package/dist/components/Drawer/DrawerContext.d.ts +0 -7
- package/dist/components/Drawer/DrawerContext.d.ts.map +0 -1
- package/dist/components/Drawer/DrawerContext.js +0 -2
- package/dist/components/Drawer/DrawerPortal.d.ts +0 -4
- package/dist/components/Drawer/DrawerPortal.d.ts.map +0 -1
- package/dist/components/Drawer/DrawerPortal.js +0 -14
- package/dist/components/Drawer/DrawerRoot.d.ts +0 -4
- package/dist/components/Drawer/DrawerRoot.d.ts.map +0 -1
- package/dist/components/Drawer/DrawerRoot.js +0 -41
- package/dist/components/Drawer/DrawerToggle.d.ts +0 -4
- package/dist/components/Drawer/DrawerToggle.d.ts.map +0 -1
- package/dist/components/Drawer/DrawerToggle.js +0 -11
- package/dist/components/LinkLoader/LinkLoader.d.ts +0 -6
- package/dist/components/LinkLoader/LinkLoader.d.ts.map +0 -1
- package/dist/components/LinkLoader/LinkLoader.js +0 -6
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/Modal.d.ts.map +0 -1
- package/dist/components/Modal/Modal.js +0 -13
- package/dist/components/Modal/ModalBody.d.ts +0 -4
- package/dist/components/Modal/ModalBody.d.ts.map +0 -1
- package/dist/components/Modal/ModalBody.js +0 -19
- package/dist/components/Modal/ModalContent.d.ts +0 -4
- package/dist/components/Modal/ModalContent.d.ts.map +0 -1
- package/dist/components/Modal/ModalContent.js +0 -8
- package/dist/components/Modal/ModalContext.d.ts +0 -7
- package/dist/components/Modal/ModalContext.d.ts.map +0 -1
- package/dist/components/Modal/ModalContext.js +0 -2
- package/dist/components/Modal/ModalHeader.d.ts +0 -4
- package/dist/components/Modal/ModalHeader.d.ts.map +0 -1
- package/dist/components/Modal/ModalHeader.js +0 -8
- package/dist/components/Modal/ModalPortal.d.ts +0 -4
- package/dist/components/Modal/ModalPortal.d.ts.map +0 -1
- package/dist/components/Modal/ModalPortal.js +0 -14
- package/dist/components/Modal/ModalRoot.d.ts +0 -6
- package/dist/components/Modal/ModalRoot.d.ts.map +0 -1
- package/dist/components/Modal/ModalRoot.js +0 -41
- package/dist/components/Modal/ModalTrigger.d.ts +0 -4
- package/dist/components/Modal/ModalTrigger.d.ts.map +0 -1
- package/dist/components/Modal/ModalTrigger.js +0 -11
- package/dist/components/Otp/Otp.d.ts +0 -8
- package/dist/components/Otp/Otp.d.ts.map +0 -1
- package/dist/components/Otp/Otp.js +0 -7
- package/dist/components/Otp/OtpContext.d.ts +0 -7
- package/dist/components/Otp/OtpContext.d.ts.map +0 -1
- package/dist/components/Otp/OtpContext.js +0 -4
- package/dist/components/Otp/OtpHiddenInput.d.ts +0 -4
- package/dist/components/Otp/OtpHiddenInput.d.ts.map +0 -1
- package/dist/components/Otp/OtpHiddenInput.js +0 -8
- package/dist/components/Otp/OtpInputs.d.ts +0 -7
- package/dist/components/Otp/OtpInputs.d.ts.map +0 -1
- package/dist/components/Otp/OtpInputs.js +0 -55
- package/dist/components/Otp/OtpRoot.d.ts +0 -6
- package/dist/components/Otp/OtpRoot.d.ts.map +0 -1
- package/dist/components/Otp/OtpRoot.js +0 -17
- package/dist/components/Pagination/Pagination.d.ts +0 -19
- package/dist/components/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.js +0 -14
- package/dist/components/Pagination/PaginationContext.d.ts +0 -12
- package/dist/components/Pagination/PaginationContext.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationContext.js +0 -2
- package/dist/components/Pagination/PaginationCounts.d.ts +0 -4
- package/dist/components/Pagination/PaginationCounts.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationCounts.js +0 -11
- package/dist/components/Pagination/PaginationNextBtn.d.ts +0 -6
- package/dist/components/Pagination/PaginationNextBtn.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationNextBtn.js +0 -11
- package/dist/components/Pagination/PaginationPages.d.ts +0 -2
- package/dist/components/Pagination/PaginationPages.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationPages.js +0 -7
- package/dist/components/Pagination/PaginationPrevBtn.d.ts +0 -6
- package/dist/components/Pagination/PaginationPrevBtn.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationPrevBtn.js +0 -11
- package/dist/components/Pagination/PaginationSearchParamsRoot.d.ts +0 -6
- package/dist/components/Pagination/PaginationSearchParamsRoot.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationSearchParamsRoot.js +0 -42
- package/dist/components/Pagination/PaginationStateRoot.d.ts +0 -9
- package/dist/components/Pagination/PaginationStateRoot.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationStateRoot.js +0 -16
- package/dist/components/Pagination/PaginationTypes.d.ts +0 -17
- package/dist/components/Pagination/PaginationTypes.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationTypes.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -8
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInput.js +0 -7
- package/dist/components/PasswordInput/PasswordInputContext.d.ts +0 -7
- package/dist/components/PasswordInput/PasswordInputContext.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInputContext.js +0 -2
- package/dist/components/PasswordInput/PasswordInputField.d.ts +0 -4
- package/dist/components/PasswordInput/PasswordInputField.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInputField.js +0 -8
- package/dist/components/PasswordInput/PasswordInputRoot.d.ts +0 -4
- package/dist/components/PasswordInput/PasswordInputRoot.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInputRoot.js +0 -8
- package/dist/components/PasswordInput/PasswordInputToggle.d.ts +0 -6
- package/dist/components/PasswordInput/PasswordInputToggle.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInputToggle.js +0 -11
- package/dist/components/Popover/Popover.d.ts +0 -10
- package/dist/components/Popover/Popover.d.ts.map +0 -1
- package/dist/components/Popover/Popover.js +0 -9
- package/dist/components/Popover/PopoverAccessNavigation.d.ts +0 -3
- package/dist/components/Popover/PopoverAccessNavigation.d.ts.map +0 -1
- package/dist/components/Popover/PopoverAccessNavigation.js +0 -5
- package/dist/components/Popover/PopoverBody.d.ts +0 -6
- package/dist/components/Popover/PopoverBody.d.ts.map +0 -1
- package/dist/components/Popover/PopoverBody.js +0 -13
- package/dist/components/Popover/PopoverContext.d.ts +0 -10
- package/dist/components/Popover/PopoverContext.d.ts.map +0 -1
- package/dist/components/Popover/PopoverContext.js +0 -2
- package/dist/components/Popover/PopoverNavigation.d.ts +0 -3
- package/dist/components/Popover/PopoverNavigation.d.ts.map +0 -1
- package/dist/components/Popover/PopoverNavigation.js +0 -5
- package/dist/components/Popover/PopoverRoot.d.ts +0 -7
- package/dist/components/Popover/PopoverRoot.d.ts.map +0 -1
- package/dist/components/Popover/PopoverRoot.js +0 -51
- package/dist/components/Popover/PopoverToggle.d.ts +0 -4
- package/dist/components/Popover/PopoverToggle.d.ts.map +0 -1
- package/dist/components/Popover/PopoverToggle.js +0 -14
- package/dist/components/Portal/Portal.d.ts +0 -6
- package/dist/components/Portal/Portal.d.ts.map +0 -1
- package/dist/components/Portal/Portal.js +0 -10
- package/dist/components/Progress/Progress.d.ts +0 -6
- package/dist/components/Progress/Progress.d.ts.map +0 -1
- package/dist/components/Progress/Progress.js +0 -5
- package/dist/components/Progress/ProgressBar.d.ts +0 -6
- package/dist/components/Progress/ProgressBar.d.ts.map +0 -1
- package/dist/components/Progress/ProgressBar.js +0 -10
- package/dist/components/Progress/ProgressContext.d.ts +0 -6
- package/dist/components/Progress/ProgressContext.d.ts.map +0 -1
- package/dist/components/Progress/ProgressContext.js +0 -2
- package/dist/components/Progress/ProgressRoot.d.ts +0 -7
- package/dist/components/Progress/ProgressRoot.d.ts.map +0 -1
- package/dist/components/Progress/ProgressRoot.js +0 -6
- package/dist/components/QrCode/QrCode.d.ts +0 -8
- package/dist/components/QrCode/QrCode.d.ts.map +0 -1
- package/dist/components/QrCode/QrCode.js +0 -15
- package/dist/components/Rating/Rating.d.ts +0 -5
- package/dist/components/Rating/Rating.d.ts.map +0 -1
- package/dist/components/Rating/Rating.js +0 -5
- package/dist/components/Rating/RatingContext.d.ts +0 -7
- package/dist/components/Rating/RatingContext.d.ts.map +0 -1
- package/dist/components/Rating/RatingContext.js +0 -2
- package/dist/components/Rating/RatingItems.d.ts +0 -10
- package/dist/components/Rating/RatingItems.d.ts.map +0 -1
- package/dist/components/Rating/RatingItems.js +0 -13
- package/dist/components/Rating/RatingRoot.d.ts +0 -4
- package/dist/components/Rating/RatingRoot.d.ts.map +0 -1
- package/dist/components/Rating/RatingRoot.js +0 -8
- package/dist/components/SelectBox/SelectBox.d.ts +0 -17
- package/dist/components/SelectBox/SelectBox.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBox.js +0 -16
- package/dist/components/SelectBox/SelectBoxContext.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxContext.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxContext.js +0 -3
- package/dist/components/SelectBox/SelectBoxField.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxField.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxField.js +0 -8
- package/dist/components/SelectBox/SelectBoxInput.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxInput.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxInput.js +0 -4
- package/dist/components/SelectBox/SelectBoxList.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxList.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxList.js +0 -9
- package/dist/components/SelectBox/SelectBoxOptions.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxOptions.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxOptions.js +0 -42
- package/dist/components/SelectBox/SelectBoxRoot.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxRoot.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxRoot.js +0 -29
- package/dist/components/SelectBox/SelectBoxSearchField.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxSearchField.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxSearchField.js +0 -8
- package/dist/components/SelectBox/SelectBoxSearchInput.d.ts +0 -3
- package/dist/components/SelectBox/SelectBoxSearchInput.d.ts.map +0 -1
- package/dist/components/SelectBox/SelectBoxSearchInput.js +0 -4
- package/dist/components/SelectBox/selectBoxTypes.d.ts +0 -35
- package/dist/components/SelectBox/selectBoxTypes.d.ts.map +0 -1
- package/dist/components/SelectBox/selectBoxTypes.js +0 -1
- package/dist/components/SelectBox/types.d.ts +0 -5
- package/dist/components/SelectBox/types.d.ts.map +0 -1
- package/dist/components/SelectBox/types.js +0 -1
- package/dist/components/Sheet/Sheet.d.ts +0 -16
- package/dist/components/Sheet/Sheet.d.ts.map +0 -1
- package/dist/components/Sheet/Sheet.js +0 -15
- package/dist/components/Sheet/SheetBody.d.ts +0 -4
- package/dist/components/Sheet/SheetBody.d.ts.map +0 -1
- package/dist/components/Sheet/SheetBody.js +0 -37
- package/dist/components/Sheet/SheetContent.d.ts +0 -4
- package/dist/components/Sheet/SheetContent.d.ts.map +0 -1
- package/dist/components/Sheet/SheetContent.js +0 -16
- package/dist/components/Sheet/SheetContext.d.ts +0 -11
- package/dist/components/Sheet/SheetContext.d.ts.map +0 -1
- package/dist/components/Sheet/SheetContext.js +0 -2
- package/dist/components/Sheet/SheetHandlebar.d.ts +0 -4
- package/dist/components/Sheet/SheetHandlebar.d.ts.map +0 -1
- package/dist/components/Sheet/SheetHandlebar.js +0 -5
- package/dist/components/Sheet/SheetHeader.d.ts +0 -4
- package/dist/components/Sheet/SheetHeader.d.ts.map +0 -1
- package/dist/components/Sheet/SheetHeader.js +0 -5
- package/dist/components/Sheet/SheetPortal.d.ts +0 -4
- package/dist/components/Sheet/SheetPortal.d.ts.map +0 -1
- package/dist/components/Sheet/SheetPortal.js +0 -11
- package/dist/components/Sheet/SheetRoot.d.ts +0 -4
- package/dist/components/Sheet/SheetRoot.d.ts.map +0 -1
- package/dist/components/Sheet/SheetRoot.js +0 -57
- package/dist/components/Sheet/SheetToggle.d.ts +0 -4
- package/dist/components/Sheet/SheetToggle.d.ts.map +0 -1
- package/dist/components/Sheet/SheetToggle.js +0 -11
- package/dist/components/ShowMore/ShowMore.d.ts +0 -10
- package/dist/components/ShowMore/ShowMore.d.ts.map +0 -1
- package/dist/components/ShowMore/ShowMore.js +0 -9
- package/dist/components/ShowMore/ShowMoreContent.d.ts +0 -4
- package/dist/components/ShowMore/ShowMoreContent.d.ts.map +0 -1
- package/dist/components/ShowMore/ShowMoreContent.js +0 -19
- package/dist/components/ShowMore/ShowMoreContext.d.ts +0 -10
- package/dist/components/ShowMore/ShowMoreContext.d.ts.map +0 -1
- package/dist/components/ShowMore/ShowMoreContext.js +0 -2
- package/dist/components/ShowMore/ShowMoreFade.d.ts +0 -4
- package/dist/components/ShowMore/ShowMoreFade.d.ts.map +0 -1
- package/dist/components/ShowMore/ShowMoreFade.js +0 -8
- package/dist/components/ShowMore/ShowMoreRoot.d.ts +0 -7
- package/dist/components/ShowMore/ShowMoreRoot.d.ts.map +0 -1
- package/dist/components/ShowMore/ShowMoreRoot.js +0 -21
- package/dist/components/ShowMore/ShowMoreToggle.d.ts +0 -4
- package/dist/components/ShowMore/ShowMoreToggle.d.ts.map +0 -1
- package/dist/components/ShowMore/ShowMoreToggle.js +0 -14
- package/dist/components/Spoiler/Spoiler.d.ts +0 -6
- package/dist/components/Spoiler/Spoiler.d.ts.map +0 -1
- package/dist/components/Spoiler/Spoiler.js +0 -5
- package/dist/components/Spoiler/SpoilerBlur.d.ts +0 -4
- package/dist/components/Spoiler/SpoilerBlur.d.ts.map +0 -1
- package/dist/components/Spoiler/SpoilerBlur.js +0 -8
- package/dist/components/Spoiler/SpoilerContext.d.ts +0 -7
- package/dist/components/Spoiler/SpoilerContext.d.ts.map +0 -1
- package/dist/components/Spoiler/SpoilerContext.js +0 -2
- package/dist/components/Spoiler/SpoilerRoot.d.ts +0 -4
- package/dist/components/Spoiler/SpoilerRoot.d.ts.map +0 -1
- package/dist/components/Spoiler/SpoilerRoot.js +0 -8
- package/dist/components/Submit/Submit.d.ts +0 -6
- package/dist/components/Submit/Submit.d.ts.map +0 -1
- package/dist/components/Submit/Submit.js +0 -5
- package/dist/components/Submit/SubmitContext.d.ts +0 -5
- package/dist/components/Submit/SubmitContext.d.ts.map +0 -1
- package/dist/components/Submit/SubmitContext.js +0 -2
- package/dist/components/Submit/SubmitLoader.d.ts +0 -6
- package/dist/components/Submit/SubmitLoader.d.ts.map +0 -1
- package/dist/components/Submit/SubmitLoader.js +0 -7
- package/dist/components/Submit/SubmitRoot.d.ts +0 -6
- package/dist/components/Submit/SubmitRoot.d.ts.map +0 -1
- package/dist/components/Submit/SubmitRoot.js +0 -8
- package/dist/components/Swap/Swap.d.ts +0 -6
- package/dist/components/Swap/Swap.d.ts.map +0 -1
- package/dist/components/Swap/Swap.js +0 -5
- package/dist/components/Swap/SwapBtn.d.ts +0 -6
- package/dist/components/Swap/SwapBtn.d.ts.map +0 -1
- package/dist/components/Swap/SwapBtn.js +0 -16
- package/dist/components/Swap/SwapContext.d.ts +0 -8
- package/dist/components/Swap/SwapContext.d.ts.map +0 -1
- package/dist/components/Swap/SwapContext.js +0 -2
- package/dist/components/Swap/SwapRoot.d.ts +0 -8
- package/dist/components/Swap/SwapRoot.d.ts.map +0 -1
- package/dist/components/Swap/SwapRoot.js +0 -6
- package/dist/components/Tabs/Tabs.d.ts +0 -10
- package/dist/components/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.js +0 -9
- package/dist/components/Tabs/TabsContext.d.ts +0 -7
- package/dist/components/Tabs/TabsContext.d.ts.map +0 -1
- package/dist/components/Tabs/TabsContext.js +0 -5
- package/dist/components/Tabs/TabsList.d.ts +0 -4
- package/dist/components/Tabs/TabsList.d.ts.map +0 -1
- package/dist/components/Tabs/TabsList.js +0 -6
- package/dist/components/Tabs/TabsPanel.d.ts +0 -6
- package/dist/components/Tabs/TabsPanel.d.ts.map +0 -1
- package/dist/components/Tabs/TabsPanel.js +0 -9
- package/dist/components/Tabs/TabsRoot.d.ts +0 -7
- package/dist/components/Tabs/TabsRoot.d.ts.map +0 -1
- package/dist/components/Tabs/TabsRoot.js +0 -6
- package/dist/components/Tabs/TabsTab.d.ts +0 -6
- package/dist/components/Tabs/TabsTab.d.ts.map +0 -1
- package/dist/components/Tabs/TabsTab.js +0 -11
- package/dist/components/Theme/Theme.d.ts +0 -4
- package/dist/components/Theme/Theme.d.ts.map +0 -1
- package/dist/components/Theme/Theme.js +0 -3
- package/dist/components/Theme/ThemeContext.d.ts +0 -7
- package/dist/components/Theme/ThemeContext.d.ts.map +0 -1
- package/dist/components/Theme/ThemeContext.js +0 -3
- package/dist/components/Theme/ThemeProvider.d.ts +0 -5
- package/dist/components/Theme/ThemeProvider.d.ts.map +0 -1
- package/dist/components/Theme/ThemeProvider.js +0 -29
- package/dist/components/Theme/ThemeScript.d.ts +0 -2
- package/dist/components/Theme/ThemeScript.d.ts.map +0 -1
- package/dist/components/Theme/ThemeScript.js +0 -35
- package/dist/components/Theme/useTheme.d.ts +0 -5
- package/dist/components/Theme/useTheme.d.ts.map +0 -1
- package/dist/components/Theme/useTheme.js +0 -7
- package/dist/components/ThemeAdapter/ThemeAdapter.d.ts +0 -2
- package/dist/components/ThemeAdapter/ThemeAdapter.d.ts.map +0 -1
- package/dist/components/ThemeAdapter/ThemeAdapter.js +0 -22
- package/dist/index.d.ts +0 -29
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -28
- package/dist/react-components/Choice/ChoiceTrigger.d.ts +0 -3
- package/dist/react-components/Choice/ChoiceTrigger.d.ts.map +0 -1
- package/dist/react-components/Choice/ChoiceTrigger.js +0 -33
- package/dist/react-components/DrawerSheet/DrawerSheet.d.ts +0 -2
- package/dist/react-components/DrawerSheet/DrawerSheet.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/DrawerSheet.js +0 -1
- package/dist/react-components/DrawerSheet/browser.d.ts +0 -8
- package/dist/react-components/DrawerSheet/browser.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/browser.js +0 -27
- package/dist/react-components/DrawerSheet/constants.d.ts +0 -12
- package/dist/react-components/DrawerSheet/constants.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/constants.js +0 -11
- package/dist/react-components/DrawerSheet/context.d.ts +0 -38
- package/dist/react-components/DrawerSheet/context.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/context.js +0 -39
- package/dist/react-components/DrawerSheet/helpers.d.ts +0 -17
- package/dist/react-components/DrawerSheet/helpers.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/helpers.js +0 -97
- package/dist/react-components/DrawerSheet/index.d.ts +0 -147
- package/dist/react-components/DrawerSheet/index.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/index.js +0 -803
- package/dist/react-components/DrawerSheet/types.d.ts +0 -7
- package/dist/react-components/DrawerSheet/types.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/types.js +0 -1
- package/dist/react-components/DrawerSheet/use-composed-refs.d.ts +0 -14
- package/dist/react-components/DrawerSheet/use-composed-refs.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/use-composed-refs.js +0 -30
- package/dist/react-components/DrawerSheet/use-controllable-state.d.ts +0 -9
- package/dist/react-components/DrawerSheet/use-controllable-state.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/use-controllable-state.js +0 -41
- package/dist/react-components/DrawerSheet/use-position-fixed.d.ts +0 -19
- package/dist/react-components/DrawerSheet/use-position-fixed.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/use-position-fixed.js +0 -109
- package/dist/react-components/DrawerSheet/use-prevent-scroll.d.ts +0 -18
- package/dist/react-components/DrawerSheet/use-prevent-scroll.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/use-prevent-scroll.js +0 -237
- package/dist/react-components/DrawerSheet/use-scale-background.d.ts +0 -2
- package/dist/react-components/DrawerSheet/use-scale-background.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/use-scale-background.js +0 -50
- package/dist/react-components/DrawerSheet/use-snap-points.d.ts +0 -32
- package/dist/react-components/DrawerSheet/use-snap-points.d.ts.map +0 -1
- package/dist/react-components/DrawerSheet/use-snap-points.js +0 -200
- package/dist/react-components/Modal/ModalTrigger.d.ts +0 -3
- package/dist/react-components/Modal/ModalTrigger.d.ts.map +0 -1
- package/dist/react-components/Modal/ModalTrigger.js +0 -11
- package/dist/react-components/drawer-sheet/DrawerSheet.d.ts +0 -23
- package/dist/react-components/drawer-sheet/DrawerSheet.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheet.js +0 -22
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetBackdrop.js +0 -13
- package/dist/react-components/drawer-sheet/DrawerSheetBody.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetBody.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetBody.js +0 -165
- package/dist/react-components/drawer-sheet/DrawerSheetContent.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetContent.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetContent.js +0 -16
- package/dist/react-components/drawer-sheet/DrawerSheetContext.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetContext.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetContext.js +0 -2
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetHandlebar.js +0 -5
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetHeader.js +0 -5
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetPortal.js +0 -13
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.d.ts +0 -15
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetProvider.js +0 -75
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetRoot.js +0 -130
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.d.ts +0 -3
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetToggle.js +0 -11
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.d.ts +0 -4
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/DrawerSheetViewport.js +0 -5
- package/dist/react-components/drawer-sheet/drawerSheetTypes.d.ts +0 -30
- package/dist/react-components/drawer-sheet/drawerSheetTypes.d.ts.map +0 -1
- package/dist/react-components/drawer-sheet/drawerSheetTypes.js +0 -1
- package/dist/utils.d.ts +0 -4
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -3
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, RefObject } from "react";
|
|
2
|
-
export type AccessNavigationPropsT = ComponentPropsWithoutRef<"div"> & {
|
|
3
|
-
ref?: RefObject<HTMLDivElement | null>;
|
|
4
|
-
focusOnMount?: boolean;
|
|
5
|
-
direction?: "y" | "x";
|
|
6
|
-
};
|
|
7
|
-
export declare function AccessNavigation({ ref, focusOnMount, direction, dir, onKeyDown, ...p }: AccessNavigationPropsT): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=AccessNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/AccessNavigation/AccessNavigation.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAiB,SAAS,EAAqB,MAAM,OAAO,CAAC;AAI9F,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACrE,GAAG,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CACvB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,YAAY,EACZ,SAAe,EACf,GAAG,EACH,SAAS,EACT,GAAG,CAAC,EACL,EAAE,sBAAsB,2CAwExB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useRef } from "react";
|
|
4
|
-
import { selectAccessibleChildren } from "../../utils";
|
|
5
|
-
export function AccessNavigation({ ref, focusOnMount, direction = "y", dir, onKeyDown, ...p }) {
|
|
6
|
-
const accessNavigationRef = ref || useRef(null);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (!accessNavigationRef.current)
|
|
9
|
-
return;
|
|
10
|
-
const focusableChildren = selectAccessibleChildren(accessNavigationRef.current);
|
|
11
|
-
if (focusOnMount) {
|
|
12
|
-
setTimeout(() => {
|
|
13
|
-
focusableChildren[0]?.focus();
|
|
14
|
-
}, 150);
|
|
15
|
-
}
|
|
16
|
-
}, []);
|
|
17
|
-
const handleKeyDown = (ev) => {
|
|
18
|
-
const focusableChildren = selectAccessibleChildren(ev.currentTarget);
|
|
19
|
-
if (!focusableChildren.length) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const currentDir = (dir ||
|
|
23
|
-
document.documentElement.getAttribute("dir") ||
|
|
24
|
-
"ltr");
|
|
25
|
-
const currentIndex = focusableChildren.findIndex((item) => item === document.activeElement);
|
|
26
|
-
if (ev.key ===
|
|
27
|
-
(direction === "y"
|
|
28
|
-
? "ArrowDown"
|
|
29
|
-
: currentDir === "ltr"
|
|
30
|
-
? "ArrowRight"
|
|
31
|
-
: "ArrowLeft")) {
|
|
32
|
-
ev.preventDefault();
|
|
33
|
-
ev.stopPropagation();
|
|
34
|
-
const nextIndex = currentIndex === -1 || currentIndex === focusableChildren.length - 1
|
|
35
|
-
? 0
|
|
36
|
-
: currentIndex + 1;
|
|
37
|
-
focusableChildren[nextIndex]?.focus();
|
|
38
|
-
}
|
|
39
|
-
if (ev.key ===
|
|
40
|
-
(direction === "y" ? "ArrowUp" : currentDir === "ltr" ? "ArrowLeft" : "ArrowRight")) {
|
|
41
|
-
ev.preventDefault();
|
|
42
|
-
ev.stopPropagation();
|
|
43
|
-
const prevIndex = currentIndex <= 0 ? focusableChildren.length - 1 : currentIndex - 1;
|
|
44
|
-
focusableChildren[prevIndex]?.focus();
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
return (_jsx("div", { dir: dir, ref: accessNavigationRef, onKeyDown: (ev) => {
|
|
48
|
-
onKeyDown?.(ev);
|
|
49
|
-
handleKeyDown(ev);
|
|
50
|
-
}, ...p }));
|
|
51
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AccordionBody } from "./AccordionBody";
|
|
2
|
-
import { AccordionRoot } from "./AccordionRoot";
|
|
3
|
-
import { AccordionToggle } from "./AccordionToggle";
|
|
4
|
-
export declare const Accordion: typeof AccordionRoot & {
|
|
5
|
-
Toggle: typeof AccordionToggle;
|
|
6
|
-
Body: typeof AccordionBody;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,SAAS;;;CAGpB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { HTMLMotionProps } from "framer-motion";
|
|
2
|
-
export type AccordionBodyPropsT = HTMLMotionProps<"div">;
|
|
3
|
-
export declare function AccordionBody({ children, ...props }: AccordionBodyPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=AccordionBody.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionBody.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionBody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAU,MAAM,eAAe,CAAC;AAIzE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAEzD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAiBxE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
5
|
-
import { AccordionContext } from "./AccordionContext";
|
|
6
|
-
export function AccordionBody({ children, ...props }) {
|
|
7
|
-
const { isOpen } = use(AccordionContext);
|
|
8
|
-
return (_jsx(AnimatePresence, { children: isOpen ?
|
|
9
|
-
_jsx(motion.div, { initial: { height: 0, opacity: 0 }, animate: { height: "auto", opacity: 1 }, exit: { height: 0, opacity: 0 }, ...props, children: children })
|
|
10
|
-
: null }));
|
|
11
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from "react";
|
|
2
|
-
export type AccordionContextT = {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
|
-
};
|
|
6
|
-
export declare const AccordionContext: import("react").Context<AccordionContextT>;
|
|
7
|
-
//# sourceMappingURL=AccordionContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionContext.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAA;AAED,eAAO,MAAM,gBAAgB,4CAA4D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAIpD,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAEpD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,2CAQ9D"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { AccordionContext } from "./AccordionContext";
|
|
5
|
-
export function AccordionRoot({ children }) {
|
|
6
|
-
const [isOpen, setOpen] = useState(false);
|
|
7
|
-
return (_jsx(AccordionContext, { value: { isOpen, setOpen }, children: children }));
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, ReactNode } from "react";
|
|
2
|
-
export type AccordionTogglePropsT = ComponentProps<"button"> & {
|
|
3
|
-
icon?: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare function AccordionToggle({ onClick, ...props }: AccordionTogglePropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=AccordionToggle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionToggle.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionToggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAI5D,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC7D,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAa3E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { AccordionContext } from "./AccordionContext";
|
|
5
|
-
export function AccordionToggle({ onClick, ...props }) {
|
|
6
|
-
const { isOpen, setOpen } = use(AccordionContext);
|
|
7
|
-
return (_jsx("button", { "data-state": isOpen, onClick: (ev) => {
|
|
8
|
-
onClick?.(ev);
|
|
9
|
-
setOpen((prev) => !prev);
|
|
10
|
-
}, ...props }));
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Affix.d.ts","sourceRoot":"","sources":["../../../src/components/Affix/Affix.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnD,eAAO,MAAM,KAAK,GAAI,mBAAmB,WAAW,4CA2CnD,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useEffect } from "react";
|
|
4
|
-
export const Affix = ({ onClick, ...p }) => {
|
|
5
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
6
|
-
const [lastScrollY, setLastScrollY] = useState(0);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
const handleScroll = () => {
|
|
9
|
-
const currentScrollY = window.scrollY;
|
|
10
|
-
const viewportHeight = window.innerHeight;
|
|
11
|
-
const scrollThreshold = viewportHeight * 0.5;
|
|
12
|
-
if (currentScrollY > scrollThreshold && currentScrollY > lastScrollY) {
|
|
13
|
-
setIsVisible(true);
|
|
14
|
-
}
|
|
15
|
-
else if (currentScrollY < lastScrollY && currentScrollY < scrollThreshold) {
|
|
16
|
-
setIsVisible(false);
|
|
17
|
-
}
|
|
18
|
-
setLastScrollY(currentScrollY);
|
|
19
|
-
};
|
|
20
|
-
window.addEventListener("scroll", handleScroll, {
|
|
21
|
-
passive: true,
|
|
22
|
-
});
|
|
23
|
-
return () => window.removeEventListener("scroll", handleScroll);
|
|
24
|
-
}, [lastScrollY]);
|
|
25
|
-
const scrollToTop = () => {
|
|
26
|
-
window.scrollTo({
|
|
27
|
-
top: 0,
|
|
28
|
-
behavior: "smooth",
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
return (_jsx("button", { "data-state": isVisible, onClick: (ev) => {
|
|
32
|
-
onClick?.(ev);
|
|
33
|
-
scrollToTop();
|
|
34
|
-
}, ...p }));
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,WAAW;;CAEtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsContext.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,8CAAgE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
export type BreadcrumbsItemPropsT = ComponentProps<"div"> & {
|
|
3
|
-
isLastItem?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare function BreadcrumbsItem({ isLastItem, children, ...p }: BreadcrumbsItemPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=BreadcrumbsItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsItem.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAO,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,UAAkB,EAClB,QAAQ,EACR,GAAG,CAAC,EACL,EAAE,qBAAqB,2CAUvB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { BreadcrumbsContext } from "./BreadcrumbsContext";
|
|
5
|
-
export function BreadcrumbsItem({ isLastItem = false, children, ...p }) {
|
|
6
|
-
const { separator } = use(BreadcrumbsContext);
|
|
7
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { ...p, children: children }), !isLastItem && separator] }));
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
export type BreadcrumbsRootPropsT = ComponentProps<"nav"> & {
|
|
3
|
-
separator: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare function BreadcrumbsRoot({ separator, ...p }: BreadcrumbsRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=BreadcrumbsRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC1D,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,GAAG,CAAC,EACL,EAAE,qBAAqB,2CAMvB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { BreadcrumbsContext } from "./BreadcrumbsContext";
|
|
4
|
-
export function BreadcrumbsRoot({ separator, ...p }) {
|
|
5
|
-
return (_jsx(BreadcrumbsContext, { value: { separator }, children: _jsx("nav", { ...p }) }));
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CarouselRoot } from "./CarouselRoot";
|
|
2
|
-
import { CarouselNextBtn } from "./CarouselNextBtn";
|
|
3
|
-
import { CarouselPrevBtn } from "./CarouselPrevBtn";
|
|
4
|
-
import { CarouselLeftFade } from "./CarouselLeftFade";
|
|
5
|
-
import { CarouselContainer } from "./CarouselContainer";
|
|
6
|
-
import { CarouselRightFade } from "./CarouselRightFade";
|
|
7
|
-
export declare const Carousel: typeof CarouselRoot & {
|
|
8
|
-
Container: typeof CarouselContainer;
|
|
9
|
-
LeftFade: typeof CarouselLeftFade;
|
|
10
|
-
RightFade: typeof CarouselRightFade;
|
|
11
|
-
NextBtn: typeof CarouselNextBtn;
|
|
12
|
-
PrevBtn: typeof CarouselPrevBtn;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=Carousel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,QAAQ;;;;;;CAMnB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CarouselRoot } from "./CarouselRoot";
|
|
2
|
-
import { CarouselNextBtn } from "./CarouselNextBtn";
|
|
3
|
-
import { CarouselPrevBtn } from "./CarouselPrevBtn";
|
|
4
|
-
import { CarouselLeftFade } from "./CarouselLeftFade";
|
|
5
|
-
import { CarouselContainer } from "./CarouselContainer";
|
|
6
|
-
import { CarouselRightFade } from "./CarouselRightFade";
|
|
7
|
-
export const Carousel = Object.assign(CarouselRoot, {
|
|
8
|
-
Container: CarouselContainer,
|
|
9
|
-
LeftFade: CarouselLeftFade,
|
|
10
|
-
RightFade: CarouselRightFade,
|
|
11
|
-
NextBtn: CarouselNextBtn,
|
|
12
|
-
PrevBtn: CarouselPrevBtn,
|
|
13
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
export type CarouselContainerPropsT = ComponentProps<"div">;
|
|
3
|
-
export declare function CarouselContainer({ children, style, ...p }: CarouselContainerPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=CarouselContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAuC,MAAM,OAAO,CAAC;AAIjF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE5D,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,uBAAuB,2CA4FnF"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use, useCallback, useEffect, useRef } from "react";
|
|
4
|
-
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselContainer({ children, style, ...p }) {
|
|
6
|
-
const { scrollRef, mouseScroll, childrenWidth } = use(CarouselContext);
|
|
7
|
-
const isDragging = useRef(false);
|
|
8
|
-
const startX = useRef(0);
|
|
9
|
-
const startScrollLeft = useRef(0);
|
|
10
|
-
const cleanupRef = useRef(null);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
return () => {
|
|
13
|
-
cleanupRef.current?.();
|
|
14
|
-
};
|
|
15
|
-
}, []);
|
|
16
|
-
const handleMouseDown = useCallback((e) => {
|
|
17
|
-
if (!mouseScroll || !scrollRef.current)
|
|
18
|
-
return;
|
|
19
|
-
isDragging.current = true;
|
|
20
|
-
startX.current = e.pageX;
|
|
21
|
-
startScrollLeft.current = scrollRef.current.scrollLeft;
|
|
22
|
-
scrollRef.current.style.scrollBehavior = "auto";
|
|
23
|
-
scrollRef.current.style.cursor = "grabbing";
|
|
24
|
-
scrollRef.current.style.userSelect = "none";
|
|
25
|
-
const onMouseMove = (ev) => {
|
|
26
|
-
if (!isDragging.current || !scrollRef.current)
|
|
27
|
-
return;
|
|
28
|
-
ev.preventDefault();
|
|
29
|
-
const dx = ev.pageX - startX.current;
|
|
30
|
-
scrollRef.current.scrollLeft = startScrollLeft.current - dx;
|
|
31
|
-
};
|
|
32
|
-
const onMouseUp = (ev) => {
|
|
33
|
-
if (!isDragging.current || !scrollRef.current)
|
|
34
|
-
return;
|
|
35
|
-
isDragging.current = false;
|
|
36
|
-
scrollRef.current.style.cursor = "grab";
|
|
37
|
-
scrollRef.current.style.userSelect = "";
|
|
38
|
-
document.removeEventListener("mousemove", onMouseMove);
|
|
39
|
-
document.removeEventListener("mouseup", onMouseUp);
|
|
40
|
-
cleanupRef.current = null;
|
|
41
|
-
if (mouseScroll === "auto") {
|
|
42
|
-
scrollRef.current.style.scrollBehavior = "";
|
|
43
|
-
}
|
|
44
|
-
else if (mouseScroll === "swipe") {
|
|
45
|
-
scrollRef.current.style.scrollBehavior = "";
|
|
46
|
-
const dx = ev.pageX - startX.current;
|
|
47
|
-
if (Math.abs(dx) > 10) {
|
|
48
|
-
scrollRef.current.scrollTo({
|
|
49
|
-
left: dx > 0
|
|
50
|
-
? startScrollLeft.current - childrenWidth
|
|
51
|
-
: startScrollLeft.current + childrenWidth,
|
|
52
|
-
behavior: "smooth",
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
scrollRef.current.scrollTo({
|
|
57
|
-
left: startScrollLeft.current,
|
|
58
|
-
behavior: "smooth",
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
document.addEventListener("mousemove", onMouseMove);
|
|
64
|
-
document.addEventListener("mouseup", onMouseUp);
|
|
65
|
-
cleanupRef.current = () => {
|
|
66
|
-
document.removeEventListener("mousemove", onMouseMove);
|
|
67
|
-
document.removeEventListener("mouseup", onMouseUp);
|
|
68
|
-
};
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
}, [mouseScroll, scrollRef, childrenWidth]);
|
|
71
|
-
return (_jsx("div", { ref: scrollRef, onMouseDown: mouseScroll ? handleMouseDown : undefined, style: {
|
|
72
|
-
...(mouseScroll ? { cursor: "grab" } : {}),
|
|
73
|
-
...style,
|
|
74
|
-
}, ...p, children: children }));
|
|
75
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
export type CarouselContextPropsT = {
|
|
3
|
-
scrollRef: RefObject<HTMLDivElement | null>;
|
|
4
|
-
leftOpacity: number;
|
|
5
|
-
rightOpacity: number;
|
|
6
|
-
childrenWidth: number;
|
|
7
|
-
mouseScroll?: "auto" | "swipe";
|
|
8
|
-
};
|
|
9
|
-
export declare const CarouselContext: import("react").Context<CarouselContextPropsT>;
|
|
10
|
-
//# sourceMappingURL=CarouselContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselContext.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAChC,CAAA;AAED,eAAO,MAAM,eAAe,gDAAoE,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
type CarouselLeftFadePropsT = ComponentProps<"div">;
|
|
3
|
-
export declare function CarouselLeftFade({ style, ...p }: CarouselLeftFadePropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export {};
|
|
5
|
-
//# sourceMappingURL=CarouselLeftFade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselLeftFade.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselLeftFade.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAO,MAAM,OAAO,CAAC;AAIjD,KAAK,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,sBAAsB,2CAYvE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselLeftFade({ style, ...p }) {
|
|
6
|
-
const { leftOpacity } = use(CarouselContext);
|
|
7
|
-
return (_jsx("div", { style: {
|
|
8
|
-
opacity: leftOpacity,
|
|
9
|
-
...style
|
|
10
|
-
}, ...p }));
|
|
11
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
export type CarouselNextBtnPropsT = ComponentProps<"button">;
|
|
3
|
-
export declare function CarouselNextBtn({ onClick, ...props }: CarouselNextBtnPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=CarouselNextBtn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselNextBtn.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselNextBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAO,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAY3E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselNextBtn({ onClick, ...props }) {
|
|
6
|
-
const { scrollRef, childrenWidth } = use(CarouselContext);
|
|
7
|
-
return (_jsx("button", { onClick: (ev) => {
|
|
8
|
-
onClick?.(ev);
|
|
9
|
-
scrollRef.current?.scrollTo(scrollRef.current.scrollLeft + childrenWidth, 0);
|
|
10
|
-
}, ...props }));
|
|
11
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
export type CarouselPrevBtnPropsT = ComponentProps<"button">;
|
|
3
|
-
export declare function CarouselPrevBtn({ onClick, ...props }: CarouselPrevBtnPropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=CarouselPrevBtn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselPrevBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAO,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE7D,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAY3E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselPrevBtn({ onClick, ...props }) {
|
|
6
|
-
const { scrollRef, childrenWidth } = use(CarouselContext);
|
|
7
|
-
return (_jsx("button", { onClick: (ev) => {
|
|
8
|
-
onClick?.(ev);
|
|
9
|
-
scrollRef.current?.scrollTo(scrollRef.current.scrollLeft - childrenWidth, 0);
|
|
10
|
-
}, ...props }));
|
|
11
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
type CarouselRightFadePropsT = ComponentProps<"div">;
|
|
3
|
-
export declare function CarouselRightFade({ style, ...p }: CarouselRightFadePropsT): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export {};
|
|
5
|
-
//# sourceMappingURL=CarouselRightFade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRightFade.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselRightFade.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAO,MAAM,OAAO,CAAC;AAIjD,KAAK,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,uBAAuB,2CAYzE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselRightFade({ style, ...p }) {
|
|
6
|
-
const { rightOpacity } = use(CarouselContext);
|
|
7
|
-
return (_jsx("div", { style: {
|
|
8
|
-
opacity: rightOpacity,
|
|
9
|
-
...style
|
|
10
|
-
}, ...p }));
|
|
11
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps } from "react";
|
|
2
|
-
export type CarouselRootPropsT = ComponentProps<"div"> & {
|
|
3
|
-
mouseScroll?: "auto" | "swipe";
|
|
4
|
-
};
|
|
5
|
-
export declare function CarouselRoot({ dir, mouseScroll, ...p }: CarouselRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=CarouselRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAA+B,MAAM,OAAO,CAAC;AAIzE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACvD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAChC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,CAAC,EAAE,EAAE,kBAAkB,2CA+D1E"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import { CarouselContext } from "./CarouselContext";
|
|
5
|
-
export function CarouselRoot({ dir, mouseScroll, ...p }) {
|
|
6
|
-
const scrollRef = useRef(null);
|
|
7
|
-
const [leftOpacity, setLeftOpacity] = useState(0);
|
|
8
|
-
const [rightOpacity, setRightOpacity] = useState(0);
|
|
9
|
-
const [childrenWidth, setChildrenWidth] = useState(0);
|
|
10
|
-
const updateFade = () => {
|
|
11
|
-
const el = scrollRef.current;
|
|
12
|
-
if (!el)
|
|
13
|
-
return;
|
|
14
|
-
const { scrollLeft, scrollWidth, clientWidth } = el;
|
|
15
|
-
const maxScroll = scrollWidth - clientWidth;
|
|
16
|
-
if (maxScroll <= 0) {
|
|
17
|
-
setLeftOpacity(0);
|
|
18
|
-
setRightOpacity(0);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const scrollRatio = Math.abs(+(scrollLeft / maxScroll));
|
|
22
|
-
const left = +Math.min(1, scrollRatio * 2).toFixed(1);
|
|
23
|
-
const right = +Math.min(1, (1 - scrollRatio) * 2).toFixed(1);
|
|
24
|
-
const currentDir = (dir ||
|
|
25
|
-
document.documentElement.getAttribute("dir") ||
|
|
26
|
-
"ltr");
|
|
27
|
-
setLeftOpacity(currentDir === "ltr" ? right : left);
|
|
28
|
-
setRightOpacity(currentDir === "ltr" ? left : right);
|
|
29
|
-
};
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
const el = scrollRef.current;
|
|
32
|
-
if (!el)
|
|
33
|
-
return;
|
|
34
|
-
// Finding children width
|
|
35
|
-
const children = Array.from(el.querySelectorAll(".carousel-children"));
|
|
36
|
-
const sumChildrenWidth = children
|
|
37
|
-
.map((child) => child.scrollWidth)
|
|
38
|
-
.reduce((acc, cur) => {
|
|
39
|
-
return acc + cur;
|
|
40
|
-
}, 0);
|
|
41
|
-
const findedChildrenWidth = sumChildrenWidth / children.length;
|
|
42
|
-
setChildrenWidth(findedChildrenWidth);
|
|
43
|
-
updateFade();
|
|
44
|
-
el.addEventListener("scroll", updateFade);
|
|
45
|
-
window.addEventListener("resize", updateFade);
|
|
46
|
-
return () => {
|
|
47
|
-
el.removeEventListener("scroll", updateFade);
|
|
48
|
-
window.removeEventListener("resize", updateFade);
|
|
49
|
-
};
|
|
50
|
-
}, []);
|
|
51
|
-
return (_jsx(CarouselContext, { value: { scrollRef, leftOpacity, rightOpacity, childrenWidth, mouseScroll }, children: _jsx("div", { ...p }) }));
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Choice.d.ts","sourceRoot":"","sources":["../../../src/components/Choice/Choice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,MAAM;;CAEjB,CAAC"}
|