@fluentui/react-teaching-popover 0.0.0-nightly-20240423-0406.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +324 -0
- package/LICENSE +15 -0
- package/README.md +66 -0
- package/dist/index.d.ts +715 -0
- package/lib/TeachingPopover.js +1 -0
- package/lib/TeachingPopover.js.map +1 -0
- package/lib/TeachingPopoverBody.js +1 -0
- package/lib/TeachingPopoverBody.js.map +1 -0
- package/lib/TeachingPopoverCarousel.js +1 -0
- package/lib/TeachingPopoverCarousel.js.map +1 -0
- package/lib/TeachingPopoverCarouselCard.js +1 -0
- package/lib/TeachingPopoverCarouselCard.js.map +1 -0
- package/lib/TeachingPopoverCarouselFooter.js +1 -0
- package/lib/TeachingPopoverCarouselFooter.js.map +1 -0
- package/lib/TeachingPopoverCarouselFooterButton.js +1 -0
- package/lib/TeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib/TeachingPopoverCarouselNav.js +1 -0
- package/lib/TeachingPopoverCarouselNav.js.map +1 -0
- package/lib/TeachingPopoverCarouselNavButton.js +1 -0
- package/lib/TeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib/TeachingPopoverCarouselPageCount.js +1 -0
- package/lib/TeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib/TeachingPopoverFooter.js +1 -0
- package/lib/TeachingPopoverFooter.js.map +1 -0
- package/lib/TeachingPopoverHeader.js +1 -0
- package/lib/TeachingPopoverHeader.js.map +1 -0
- package/lib/TeachingPopoverSurface.js +1 -0
- package/lib/TeachingPopoverSurface.js.map +1 -0
- package/lib/TeachingPopoverTitle.js +1 -0
- package/lib/TeachingPopoverTitle.js.map +1 -0
- package/lib/TeachingPopoverTrigger.js +1 -0
- package/lib/TeachingPopoverTrigger.js.map +1 -0
- package/lib/components/TeachingPopover/TeachingPopover.js +10 -0
- package/lib/components/TeachingPopover/TeachingPopover.js.map +1 -0
- package/lib/components/TeachingPopover/TeachingPopover.types.js +1 -0
- package/lib/components/TeachingPopover/TeachingPopover.types.js.map +1 -0
- package/lib/components/TeachingPopover/index.js +4 -0
- package/lib/components/TeachingPopover/index.js.map +1 -0
- package/lib/components/TeachingPopover/renderTeachingPopover.js +4 -0
- package/lib/components/TeachingPopover/renderTeachingPopover.js.map +1 -0
- package/lib/components/TeachingPopover/useTeachingPopover.js +11 -0
- package/lib/components/TeachingPopover/useTeachingPopover.js.map +1 -0
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.js +17 -0
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.js.map +1 -0
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js +1 -0
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -0
- package/lib/components/TeachingPopoverBody/index.js +5 -0
- package/lib/components/TeachingPopoverBody/index.js.map +1 -0
- package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js +13 -0
- package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js +25 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js +58 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js +123 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js +14 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js +11 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js +8 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js +28 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/constants.js +2 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/constants.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js +60 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js +6 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js +98 -0
- package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js +19 -0
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js +1 -0
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/index.js +6 -0
- package/lib/components/TeachingPopoverCarousel/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js +12 -0
- package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js +32 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js +12 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js +15 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js +15 -0
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js +1 -0
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/index.js +5 -0
- package/lib/components/TeachingPopoverCarouselCard/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js +8 -0
- package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js +25 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js +14 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js +15 -0
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/index.js +5 -0
- package/lib/components/TeachingPopoverCarouselFooter/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js +16 -0
- package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js +37 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js +39 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js +15 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/index.js +5 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js +8 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js +71 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js +64 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js +15 -0
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js +1 -0
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/index.js +5 -0
- package/lib/components/TeachingPopoverCarouselNav/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js +15 -0
- package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js +35 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js +35 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/valueIdContext.js +8 -0
- package/lib/components/TeachingPopoverCarouselNav/valueIdContext.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js +14 -0
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/index.js +5 -0
- package/lib/components/TeachingPopoverCarouselNavButton/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js +8 -0
- package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js +52 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js +104 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js +14 -0
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/index.js +5 -0
- package/lib/components/TeachingPopoverCarouselPageCount/index.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js +8 -0
- package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +34 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js +25 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.js +18 -0
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js +1 -0
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/index.js +5 -0
- package/lib/components/TeachingPopoverFooter/index.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js +13 -0
- package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +57 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js +68 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.js +18 -0
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js +1 -0
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/index.js +5 -0
- package/lib/components/TeachingPopoverHeader/index.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js +14 -0
- package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js +54 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js +108 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js +16 -0
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js +1 -0
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/index.js +5 -0
- package/lib/components/TeachingPopoverSurface/index.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js +9 -0
- package/lib/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js +14 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js +37 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.js +18 -0
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js +1 -0
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/index.js +5 -0
- package/lib/components/TeachingPopoverTitle/index.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js +13 -0
- package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js +46 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js +80 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js.map +1 -0
- package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js +12 -0
- package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -0
- package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js +1 -0
- package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -0
- package/lib/components/TeachingPopoverTrigger/index.js +4 -0
- package/lib/components/TeachingPopoverTrigger/index.js.map +1 -0
- package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js +5 -0
- package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -0
- package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js +9 -0
- package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -0
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/TeachingPopover.js +6 -0
- package/lib-commonjs/TeachingPopover.js.map +1 -0
- package/lib-commonjs/TeachingPopoverBody.js +6 -0
- package/lib-commonjs/TeachingPopoverBody.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarousel.js +6 -0
- package/lib-commonjs/TeachingPopoverCarousel.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarouselCard.js +6 -0
- package/lib-commonjs/TeachingPopoverCarouselCard.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarouselFooter.js +6 -0
- package/lib-commonjs/TeachingPopoverCarouselFooter.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarouselFooterButton.js +6 -0
- package/lib-commonjs/TeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarouselNav.js +6 -0
- package/lib-commonjs/TeachingPopoverCarouselNav.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarouselNavButton.js +6 -0
- package/lib-commonjs/TeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib-commonjs/TeachingPopoverCarouselPageCount.js +6 -0
- package/lib-commonjs/TeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib-commonjs/TeachingPopoverFooter.js +6 -0
- package/lib-commonjs/TeachingPopoverFooter.js.map +1 -0
- package/lib-commonjs/TeachingPopoverHeader.js +6 -0
- package/lib-commonjs/TeachingPopoverHeader.js.map +1 -0
- package/lib-commonjs/TeachingPopoverSurface.js +6 -0
- package/lib-commonjs/TeachingPopoverSurface.js.map +1 -0
- package/lib-commonjs/TeachingPopoverTitle.js +6 -0
- package/lib-commonjs/TeachingPopoverTitle.js.map +1 -0
- package/lib-commonjs/TeachingPopoverTrigger.js +6 -0
- package/lib-commonjs/TeachingPopoverTrigger.js.map +1 -0
- package/lib-commonjs/components/TeachingPopover/TeachingPopover.js +19 -0
- package/lib-commonjs/components/TeachingPopover/TeachingPopover.js.map +1 -0
- package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.js +4 -0
- package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopover/index.js +9 -0
- package/lib-commonjs/components/TeachingPopover/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopover/renderTeachingPopover.js +12 -0
- package/lib-commonjs/components/TeachingPopover/renderTeachingPopover.js.map +1 -0
- package/lib-commonjs/components/TeachingPopover/useTeachingPopover.js +21 -0
- package/lib-commonjs/components/TeachingPopover/useTeachingPopover.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.js +23 -0
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverBody/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.js +21 -0
- package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.js +32 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js +98 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.js +132 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.js +6 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.js +36 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js +19 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js +16 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js +39 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.js +20 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js +70 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js +16 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js +109 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js +25 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/index.js +11 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js +20 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js +43 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js +22 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js +31 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js +21 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js +16 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js +32 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js +30 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js +21 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js +6 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js +24 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js +48 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js +60 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js +21 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js +16 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js +73 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js +129 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js +21 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js +6 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js +23 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js +42 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js +84 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.js +30 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js +21 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js +16 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js +55 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js +240 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js +21 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js +6 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js +16 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +37 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js +42 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.js +21 -0
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverFooter/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js +21 -0
- package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +64 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js +135 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.js +23 -0
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverHeader/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js +22 -0
- package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.js +61 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js +230 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.js +23 -0
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverSurface/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js +17 -0
- package/lib-commonjs/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.js +17 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js +89 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.js +23 -0
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/index.js +10 -0
- package/lib-commonjs/components/TeachingPopoverTitle/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js +21 -0
- package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.js +53 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js +185 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js +21 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js +4 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/index.js +9 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/index.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js +15 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js +15 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -0
- package/lib-commonjs/index.js +224 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopover/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopover.ts"],"sourcesContent":["export * from './components/TeachingPopover/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverBody/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverBody.ts"],"sourcesContent":["export * from './components/TeachingPopoverBody/index';\n"],"names":[],"mappings":"AAAA,cAAc,yCAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarousel/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarousel.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarousel/index';\n"],"names":[],"mappings":"AAAA,cAAc,6CAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarouselCard/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselCard.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarouselCard/index';\n"],"names":[],"mappings":"AAAA,cAAc,iDAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarouselFooter/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselFooter.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarouselFooter/index';\n"],"names":[],"mappings":"AAAA,cAAc,mDAAmD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarouselFooterButton/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselFooterButton.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarouselFooterButton/index';\n"],"names":[],"mappings":"AAAA,cAAc,yDAAyD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarouselNav/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselNav.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarouselNav/index';\n"],"names":[],"mappings":"AAAA,cAAc,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarouselNavButton/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselNavButton.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarouselNavButton/index';\n"],"names":[],"mappings":"AAAA,cAAc,sDAAsD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverCarouselPageCount/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselPageCount.ts"],"sourcesContent":["export * from './components/TeachingPopoverCarouselPageCount/index';\n"],"names":[],"mappings":"AAAA,cAAc,sDAAsD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverFooter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverFooter.ts"],"sourcesContent":["export * from './components/TeachingPopoverFooter';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverHeader/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverHeader.ts"],"sourcesContent":["export * from './components/TeachingPopoverHeader/index';\n"],"names":[],"mappings":"AAAA,cAAc,2CAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverSurface/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverSurface.ts"],"sourcesContent":["export * from './components/TeachingPopoverSurface/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverTitle/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverTitle.ts"],"sourcesContent":["export * from './components/TeachingPopoverTitle/index';\n"],"names":[],"mappings":"AAAA,cAAc,0CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/TeachingPopoverTrigger/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverTrigger.ts"],"sourcesContent":["export * from './components/TeachingPopoverTrigger/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useTeachingPopover_unstable } from './useTeachingPopover';
|
|
3
|
+
import { renderTeachingPopover_unstable } from './renderTeachingPopover';
|
|
4
|
+
/**
|
|
5
|
+
* An extension class of Popover which defaults to withArrow and FocusTrap enabled.
|
|
6
|
+
*/ export const TeachingPopover = (props)=>{
|
|
7
|
+
const state = useTeachingPopover_unstable(props);
|
|
8
|
+
return renderTeachingPopover_unstable(state);
|
|
9
|
+
};
|
|
10
|
+
TeachingPopover.displayName = 'TeachingPopover';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopover.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopover_unstable } from './useTeachingPopover';\nimport { renderTeachingPopover_unstable } from './renderTeachingPopover';\nimport type { TeachingPopoverProps } from './TeachingPopover.types';\n\n/**\n * An extension class of Popover which defaults to withArrow and FocusTrap enabled.\n */\nexport const TeachingPopover: React.FC<TeachingPopoverProps> = props => {\n const state = useTeachingPopover_unstable(props);\n\n return renderTeachingPopover_unstable(state);\n};\n\nTeachingPopover.displayName = 'TeachingPopover';\n"],"names":["React","useTeachingPopover_unstable","renderTeachingPopover_unstable","TeachingPopover","props","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,0BAA0B;AAGzE;;CAEC,GACD,OAAO,MAAMC,kBAAkDC,CAAAA;IAC7D,MAAMC,QAAQJ,4BAA4BG;IAE1C,OAAOF,+BAA+BG;AACxC,EAAE;AAEFF,gBAAgBG,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopover.types.ts"],"sourcesContent":["import type { PopoverState, PopoverProps } from '@fluentui/react-popover';\n\n/**\n * TeachingPopover Props\n */\nexport type TeachingPopoverProps = PopoverProps;\n\n/**\n * TeachingPopover State\n */\nexport type TeachingPopoverState = PopoverState;\n"],"names":[],"mappings":"AAAA,WAUgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TeachingPopover';\nexport * from './TeachingPopover.types';\nexport * from './renderTeachingPopover';\nexport * from './useTeachingPopover';\n"],"names":[],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,0BAA0B;AACxC,cAAc,0BAA0B;AACxC,cAAc,uBAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderTeachingPopover.tsx"],"sourcesContent":["import { renderPopover_unstable } from '@fluentui/react-popover';\n\n/**\n * Render the final JSX of TeachingPopover\n */\nexport const renderTeachingPopover_unstable = renderPopover_unstable;\n"],"names":["renderPopover_unstable","renderTeachingPopover_unstable"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,0BAA0B;AAEjE;;CAEC,GACD,OAAO,MAAMC,iCAAiCD,uBAAuB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { usePopover_unstable } from '@fluentui/react-popover';
|
|
2
|
+
export const useTeachingPopover_unstable = (props)=>{
|
|
3
|
+
const popoverState = usePopover_unstable(props);
|
|
4
|
+
var _props_withArrow, _props_trapFocus;
|
|
5
|
+
return {
|
|
6
|
+
...popoverState,
|
|
7
|
+
withArrow: (_props_withArrow = props.withArrow) !== null && _props_withArrow !== void 0 ? _props_withArrow : true,
|
|
8
|
+
// We trap focus because the default TeachingPopover view has buttons/carousel.
|
|
9
|
+
trapFocus: (_props_trapFocus = props.trapFocus) !== null && _props_trapFocus !== void 0 ? _props_trapFocus : true
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopover.ts"],"sourcesContent":["import { usePopover_unstable } from '@fluentui/react-popover';\nimport type { TeachingPopoverProps, TeachingPopoverState } from './TeachingPopover.types';\n\nexport const useTeachingPopover_unstable = (props: TeachingPopoverProps): TeachingPopoverState => {\n const popoverState = usePopover_unstable(props);\n\n return {\n ...popoverState,\n withArrow: props.withArrow ?? true,\n // We trap focus because the default TeachingPopover view has buttons/carousel.\n trapFocus: props.trapFocus ?? true,\n };\n};\n"],"names":["usePopover_unstable","useTeachingPopover_unstable","props","popoverState","withArrow","trapFocus"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,0BAA0B;AAG9D,OAAO,MAAMC,8BAA8B,CAACC;IAC1C,MAAMC,eAAeH,oBAAoBE;QAI5BA,kBAEAA;IAJb,OAAO;QACL,GAAGC,YAAY;QACfC,WAAWF,CAAAA,mBAAAA,MAAME,SAAS,cAAfF,8BAAAA,mBAAmB;QAC9B,+EAA+E;QAC/EG,WAAWH,CAAAA,mBAAAA,MAAMG,SAAS,cAAfH,8BAAAA,mBAAmB;IAChC;AACF,EAAE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useTeachingPopoverBody_unstable } from './useTeachingPopoverBody';
|
|
3
|
+
import { renderTeachingPopoverBody_unstable } from './renderTeachingPopoverBody';
|
|
4
|
+
import { useTeachingPopoverBodyStyles_unstable } from './useTeachingPopoverBodyStyles.styles';
|
|
5
|
+
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
6
|
+
/**
|
|
7
|
+
* Define a styled TeachingPopoverBody, using the `useTeachingPopoverBody_unstable` and `useTeachingPopoverBodyStyles_unstable`
|
|
8
|
+
* hooks.
|
|
9
|
+
*
|
|
10
|
+
* TeachingPopoverBody is used to host content within a TeachingPopover, and provides a standardized media slot
|
|
11
|
+
*/ export const TeachingPopoverBody = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
12
|
+
const state = useTeachingPopoverBody_unstable(props, ref);
|
|
13
|
+
useTeachingPopoverBodyStyles_unstable(state);
|
|
14
|
+
useCustomStyleHook_unstable('useTeachingPopoverBodyStyles_unstable')(state);
|
|
15
|
+
return renderTeachingPopoverBody_unstable(state);
|
|
16
|
+
});
|
|
17
|
+
TeachingPopoverBody.displayName = 'TeachingPopoverBody';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopoverBody_unstable } from './useTeachingPopoverBody';\nimport { renderTeachingPopoverBody_unstable } from './renderTeachingPopoverBody';\nimport { useTeachingPopoverBodyStyles_unstable } from './useTeachingPopoverBodyStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { TeachingPopoverBodyProps } from './TeachingPopoverBody.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled TeachingPopoverBody, using the `useTeachingPopoverBody_unstable` and `useTeachingPopoverBodyStyles_unstable`\n * hooks.\n *\n * TeachingPopoverBody is used to host content within a TeachingPopover, and provides a standardized media slot\n */\nexport const TeachingPopoverBody: ForwardRefComponent<TeachingPopoverBodyProps> = React.forwardRef((props, ref) => {\n const state = useTeachingPopoverBody_unstable(props, ref);\n\n useTeachingPopoverBodyStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTeachingPopoverBodyStyles_unstable')(state);\n\n return renderTeachingPopoverBody_unstable(state);\n});\n\nTeachingPopoverBody.displayName = 'TeachingPopoverBody';\n"],"names":["React","useTeachingPopoverBody_unstable","renderTeachingPopoverBody_unstable","useTeachingPopoverBodyStyles_unstable","useCustomStyleHook_unstable","TeachingPopoverBody","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,+BAA+B,QAAQ,2BAA2B;AAC3E,SAASC,kCAAkC,QAAQ,8BAA8B;AACjF,SAASC,qCAAqC,QAAQ,wCAAwC;AAC9F,SAASC,2BAA2B,QAAQ,kCAAkC;AAI9E;;;;;CAKC,GACD,OAAO,MAAMC,oCAAqEL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACzG,MAAMC,QAAQR,gCAAgCM,OAAOC;IAErDL,sCAAsCM;IAEtCL,4BAA4B,yCAAyCK;IAErE,OAAOP,mCAAmCO;AAC5C,GAAG;AAEHJ,oBAAoBK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverBody.types.ts"],"sourcesContent":["import { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TeachingPopoverBodySlots = {\n /**\n * The element wrapping the buttons.\n */\n root: NonNullable<Slot<'div'>>;\n /**\n * Optional Media Content.\n */\n media?: Slot<'span'>;\n};\n\nexport type TeachingPopoverBodyProps = ComponentProps<TeachingPopoverBodySlots> & {\n mediaLength?: 'short' | 'medium' | 'tall';\n};\n\nexport type TeachingPopoverBodyState = ComponentState<TeachingPopoverBodySlots> &\n Required<Pick<TeachingPopoverBodyProps, 'mediaLength'>>;\n"],"names":[],"mappings":"AAAA,WAkB0D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TeachingPopoverBody';\nexport * from './TeachingPopoverBody.types';\nexport * from './renderTeachingPopoverBody';\nexport * from './useTeachingPopoverBody';\nexport * from './useTeachingPopoverBodyStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,2BAA2B;AACzC,cAAc,wCAAwC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from '@fluentui/react-utilities';
|
|
3
|
+
/**
|
|
4
|
+
* Render the final JSX of TeachingPopoverBody
|
|
5
|
+
*/ export const renderTeachingPopoverBody_unstable = (state)=>{
|
|
6
|
+
assertSlots(state);
|
|
7
|
+
return /*#__PURE__*/ _jsxs(state.root, {
|
|
8
|
+
children: [
|
|
9
|
+
state.media && /*#__PURE__*/ _jsx(state.media, {}),
|
|
10
|
+
state.root.children
|
|
11
|
+
]
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderTeachingPopoverBody.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverBodyState } from './TeachingPopoverBody.types';\nimport { TeachingPopoverBodySlots } from './TeachingPopoverBody.types';\nimport { assertSlots } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TeachingPopoverBody\n */\nexport const renderTeachingPopoverBody_unstable = (state: TeachingPopoverBodyState) => {\n assertSlots<TeachingPopoverBodySlots>(state);\n\n return (\n <state.root>\n {state.media && <state.media />}\n {state.root.children}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTeachingPopoverBody_unstable","state","root","media","children"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAGjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD;;CAEC,GACD,OAAO,MAAMC,qCAAqC,CAACC;IACjDF,YAAsCE;IAEtC,qBACE,MAACA,MAAMC,IAAI;;YACRD,MAAME,KAAK,kBAAI,KAACF,MAAME,KAAK;YAC3BF,MAAMC,IAAI,CAACE,QAAQ;;;AAG1B,EAAE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
|
|
3
|
+
/**
|
|
4
|
+
* Returns the props and state required to render the component
|
|
5
|
+
* @param props - TeachingPopoverBody properties
|
|
6
|
+
* @param ref - reference to root HTMLElement of TeachingPopoverBody
|
|
7
|
+
*/ export const useTeachingPopoverBody_unstable = (props, ref)=>{
|
|
8
|
+
const { mediaLength } = props;
|
|
9
|
+
return {
|
|
10
|
+
components: {
|
|
11
|
+
root: 'div',
|
|
12
|
+
media: 'span'
|
|
13
|
+
},
|
|
14
|
+
root: slot.always(getIntrinsicElementProps('div', {
|
|
15
|
+
ref,
|
|
16
|
+
...props
|
|
17
|
+
}), {
|
|
18
|
+
elementType: 'div'
|
|
19
|
+
}),
|
|
20
|
+
media: slot.optional(props.media, {
|
|
21
|
+
elementType: 'span'
|
|
22
|
+
}),
|
|
23
|
+
mediaLength: mediaLength !== null && mediaLength !== void 0 ? mediaLength : 'short'
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverBody.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { TeachingPopoverBodyProps, TeachingPopoverBodyState } from './TeachingPopoverBody.types';\n/**\n * Returns the props and state required to render the component\n * @param props - TeachingPopoverBody properties\n * @param ref - reference to root HTMLElement of TeachingPopoverBody\n */\nexport const useTeachingPopoverBody_unstable = (\n props: TeachingPopoverBodyProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverBodyState => {\n const { mediaLength } = props;\n\n return {\n components: {\n root: 'div',\n media: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n ...props,\n }),\n { elementType: 'div' },\n ),\n media: slot.optional(props.media, { elementType: 'span' }),\n mediaLength: mediaLength ?? 'short',\n };\n};\n"],"names":["React","getIntrinsicElementProps","slot","useTeachingPopoverBody_unstable","props","ref","mediaLength","components","root","media","always","elementType","optional"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAE3E;;;;CAIC,GACD,OAAO,MAAMC,kCAAkC,CAC7CC,OACAC;IAEA,MAAM,EAAEC,WAAW,EAAE,GAAGF;IAExB,OAAO;QACLG,YAAY;YACVC,MAAM;YACNC,OAAO;QACT;QACAD,MAAMN,KAAKQ,MAAM,CACfT,yBAAyB,OAAO;YAC9BI;YACA,GAAGD,KAAK;QACV,IACA;YAAEO,aAAa;QAAM;QAEvBF,OAAOP,KAAKU,QAAQ,CAACR,MAAMK,KAAK,EAAE;YAAEE,aAAa;QAAO;QACxDL,aAAaA,wBAAAA,yBAAAA,cAAe;IAC9B;AACF,EAAE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __styles, mergeClasses, shorthands } from '@griffel/react';
|
|
2
|
+
export const teachingPopoverBodyClassNames = {
|
|
3
|
+
root: 'fui-TeachingPopoverBody',
|
|
4
|
+
media: 'fui-TeachingPopoverBody__media'
|
|
5
|
+
};
|
|
6
|
+
export const useMediaStyles = /*#__PURE__*/__styles({
|
|
7
|
+
base: {
|
|
8
|
+
Ijaq50: "f11uok23",
|
|
9
|
+
Br312pm: "f1qdfnnj",
|
|
10
|
+
nk6f5a: "f1s27gz",
|
|
11
|
+
Bw0ie65: "f86d0yl",
|
|
12
|
+
B68tc82: "f1p9o1ba",
|
|
13
|
+
Bmxbyg5: "f1sil6mw",
|
|
14
|
+
a9b677: "f1dxqujg",
|
|
15
|
+
jrapky: "f1jlhsmd",
|
|
16
|
+
ha4doy: "fmrv4ls",
|
|
17
|
+
Brf1p80: "f4d9j23",
|
|
18
|
+
mc9l5x: "f22iagw"
|
|
19
|
+
},
|
|
20
|
+
short: {
|
|
21
|
+
Bubjx69: "f1taewuw",
|
|
22
|
+
Bmuttt3: "fs5pxn9"
|
|
23
|
+
},
|
|
24
|
+
medium: {
|
|
25
|
+
Bubjx69: "f7da563",
|
|
26
|
+
Bmuttt3: "f98prui"
|
|
27
|
+
},
|
|
28
|
+
tall: {
|
|
29
|
+
Bubjx69: "f9ikmtg",
|
|
30
|
+
Bmuttt3: "fqws08j"
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
d: [".f11uok23{grid-row-start:media;}", ".f1qdfnnj{grid-column-start:media;}", ".f1s27gz{grid-row-end:media;}", ".f86d0yl{grid-column-end:media;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1dxqujg{width:288px;}", ".f1jlhsmd{margin-bottom:12px;}", ".fmrv4ls{vertical-align:middle;}", ".f4d9j23{justify-content:center;}", ".f22iagw{display:flex;}", ".f1taewuw{aspect-ratio:2.4615384615384617;}", ".f7da563{aspect-ratio:1.6363636363636365;}", ".f9ikmtg{aspect-ratio:1;}"],
|
|
34
|
+
t: ["@supports not (aspect-ratio){.fs5pxn9{height:117px;}}", "@supports not (aspect-ratio){.f98prui{height:176px;}}", "@supports not (aspect-ratio){.fqws08j{height:288px;}}"]
|
|
35
|
+
});
|
|
36
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
37
|
+
root: {
|
|
38
|
+
mc9l5x: "f22iagw",
|
|
39
|
+
Beiy3e4: "f1vx9l62",
|
|
40
|
+
Byoj8tv: "fpe6lb7"
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
d: [".f22iagw{display:flex;}", ".f1vx9l62{flex-direction:column;}", ".fpe6lb7{padding-bottom:12px;}"]
|
|
44
|
+
});
|
|
45
|
+
/** Applies style classnames to slots */
|
|
46
|
+
export const useTeachingPopoverBodyStyles_unstable = state => {
|
|
47
|
+
const {
|
|
48
|
+
mediaLength
|
|
49
|
+
} = state;
|
|
50
|
+
const styles = useStyles();
|
|
51
|
+
const mediaStyles = useMediaStyles();
|
|
52
|
+
state.root.className = mergeClasses(teachingPopoverBodyClassNames.root, styles.root, state.root.className);
|
|
53
|
+
if (state.media) {
|
|
54
|
+
state.media.className = mergeClasses(teachingPopoverBodyClassNames.media, mediaStyles.base, mediaStyles[mediaLength], state.media.className);
|
|
55
|
+
}
|
|
56
|
+
return state;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=useTeachingPopoverBodyStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","shorthands","teachingPopoverBodyClassNames","root","media","useMediaStyles","base","Ijaq50","Br312pm","nk6f5a","Bw0ie65","B68tc82","Bmxbyg5","a9b677","jrapky","ha4doy","Brf1p80","mc9l5x","short","Bubjx69","Bmuttt3","medium","tall","d","t","useStyles","Beiy3e4","Byoj8tv","useTeachingPopoverBodyStyles_unstable","state","mediaLength","styles","mediaStyles","className"],"sources":["useTeachingPopoverBodyStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nexport const teachingPopoverBodyClassNames = {\n root: 'fui-TeachingPopoverBody',\n media: 'fui-TeachingPopoverBody__media'\n};\nexport const useMediaStyles = makeStyles({\n base: {\n ...shorthands.gridArea('media'),\n ...shorthands.overflow('hidden'),\n width: '288px',\n marginBottom: '12px',\n verticalAlign: 'middle',\n justifyContent: 'center',\n display: 'flex'\n },\n short: {\n aspectRatio: 288 / 117,\n '@supports not (aspect-ratio)': {\n height: '117px'\n }\n },\n medium: {\n aspectRatio: 288 / 176,\n '@supports not (aspect-ratio)': {\n height: '176px'\n }\n },\n tall: {\n aspectRatio: 288 / 288,\n '@supports not (aspect-ratio)': {\n height: '288px'\n }\n }\n});\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n paddingBottom: '12px'\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverBodyStyles_unstable = (state)=>{\n const { mediaLength } = state;\n const styles = useStyles();\n const mediaStyles = useMediaStyles();\n state.root.className = mergeClasses(teachingPopoverBodyClassNames.root, styles.root, state.root.className);\n if (state.media) {\n state.media.className = mergeClasses(teachingPopoverBodyClassNames.media, mediaStyles.base, mediaStyles[mediaLength], state.media.className);\n }\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,OAAO,MAAMC,6BAA6B,GAAG;EACzCC,IAAI,EAAE,yBAAyB;EAC/BC,KAAK,EAAE;AACX,CAAC;AACD,OAAO,MAAMC,cAAc,gBAAGN,QAAA;EAAAO,IAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAC,MAAA;IAAAF,OAAA;IAAAC,OAAA;EAAA;EAAAE,IAAA;IAAAH,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAG,CAAA;EAAAC,CAAA;AAAA,CA4B7B,CAAC;AACF,MAAMC,SAAS,gBAAG1B,QAAA;EAAAI,IAAA;IAAAc,MAAA;IAAAS,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAJ,CAAA;AAAA,CAMjB,CAAC;AACF;AAAyC,OAAO,MAAMK,qCAAqC,GAAIC,KAAK,IAAG;EACnG,MAAM;IAAEC;EAAY,CAAC,GAAGD,KAAK;EAC7B,MAAME,MAAM,GAAGN,SAAS,CAAC,CAAC;EAC1B,MAAMO,WAAW,GAAG3B,cAAc,CAAC,CAAC;EACpCwB,KAAK,CAAC1B,IAAI,CAAC8B,SAAS,GAAGjC,YAAY,CAACE,6BAA6B,CAACC,IAAI,EAAE4B,MAAM,CAAC5B,IAAI,EAAE0B,KAAK,CAAC1B,IAAI,CAAC8B,SAAS,CAAC;EAC1G,IAAIJ,KAAK,CAACzB,KAAK,EAAE;IACbyB,KAAK,CAACzB,KAAK,CAAC6B,SAAS,GAAGjC,YAAY,CAACE,6BAA6B,CAACE,KAAK,EAAE4B,WAAW,CAAC1B,IAAI,EAAE0B,WAAW,CAACF,WAAW,CAAC,EAAED,KAAK,CAACzB,KAAK,CAAC6B,SAAS,CAAC;EAChJ;EACA,OAAOJ,KAAK;AAChB,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { isHTMLElement, useMergedRefs, useControllableState, useEventCallback } from '@fluentui/react-utilities';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { CAROUSEL_ITEM } from './constants';
|
|
4
|
+
import { useCarouselWalker_unstable } from './useCarouselWalker';
|
|
5
|
+
import { createCarouselStore } from './createCarouselStore';
|
|
6
|
+
// TODO: Migrate this into an external @fluentui/carousel component
|
|
7
|
+
// For now, we won't export this publicly, is only for internal TeachingPopover use until stabilized.
|
|
8
|
+
export function useCarousel_unstable(options) {
|
|
9
|
+
const { onValueChange, onFinish } = options;
|
|
10
|
+
const { ref: carouselRef, walker: carouselWalker } = useCarouselWalker_unstable();
|
|
11
|
+
const [store] = React.useState(()=>createCarouselStore());
|
|
12
|
+
const [value, setValue] = useControllableState({
|
|
13
|
+
defaultState: options.defaultValue,
|
|
14
|
+
state: options.value,
|
|
15
|
+
initialState: null
|
|
16
|
+
});
|
|
17
|
+
const rootRef = React.useRef(null);
|
|
18
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
19
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
20
|
+
React.useEffect(()=>{
|
|
21
|
+
if (value === null) {
|
|
22
|
+
// eslint-disable-next-line no-console
|
|
23
|
+
console.error('useCarousel: Carousel needs to have a `defaultValue` or `value` prop set. If you want to control the value, use the `value` prop.');
|
|
24
|
+
}
|
|
25
|
+
}, [
|
|
26
|
+
value
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
React.useEffect(()=>{
|
|
30
|
+
var _rootRef_current;
|
|
31
|
+
const allItems = (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.querySelectorAll(`[${CAROUSEL_ITEM}]`);
|
|
32
|
+
for(let i = 0; i < allItems.length; i++){
|
|
33
|
+
store.addValue(allItems.item(i).getAttribute(CAROUSEL_ITEM));
|
|
34
|
+
}
|
|
35
|
+
return ()=>{
|
|
36
|
+
store.clear();
|
|
37
|
+
};
|
|
38
|
+
}, [
|
|
39
|
+
store
|
|
40
|
+
]);
|
|
41
|
+
React.useEffect(()=>{
|
|
42
|
+
const config = {
|
|
43
|
+
attributes: true,
|
|
44
|
+
attributeFilter: [
|
|
45
|
+
CAROUSEL_ITEM
|
|
46
|
+
],
|
|
47
|
+
childList: true,
|
|
48
|
+
subtree: true
|
|
49
|
+
};
|
|
50
|
+
// Callback function to execute when mutations are observed
|
|
51
|
+
const callback = (mutationList)=>{
|
|
52
|
+
for (const mutation of mutationList){
|
|
53
|
+
for (const addedNode of Array.from(mutation.addedNodes)){
|
|
54
|
+
if (isHTMLElement(addedNode) && addedNode.hasAttribute(CAROUSEL_ITEM)) {
|
|
55
|
+
const newValue = addedNode.getAttribute(CAROUSEL_ITEM);
|
|
56
|
+
const newNode = carouselWalker.find(newValue);
|
|
57
|
+
if (!(newNode === null || newNode === void 0 ? void 0 : newNode.value)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const previousNode = carouselWalker.prevPage(newNode === null || newNode === void 0 ? void 0 : newNode.value);
|
|
61
|
+
var _previousNode_value;
|
|
62
|
+
store.insertValue(newValue, (_previousNode_value = previousNode === null || previousNode === void 0 ? void 0 : previousNode.value) !== null && _previousNode_value !== void 0 ? _previousNode_value : null);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
for (const removedNode of Array.from(mutation.removedNodes)){
|
|
66
|
+
if (isHTMLElement(removedNode) && (removedNode === null || removedNode === void 0 ? void 0 : removedNode.hasAttribute(CAROUSEL_ITEM))) {
|
|
67
|
+
const removedValue = removedNode.getAttribute(CAROUSEL_ITEM);
|
|
68
|
+
store.removeValue(removedValue);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
// Create an observer instance linked to the callback function
|
|
74
|
+
const observer = new MutationObserver(callback);
|
|
75
|
+
// Start observing the target node for configured mutations
|
|
76
|
+
observer.observe(rootRef.current, config);
|
|
77
|
+
// Later, you can stop observing
|
|
78
|
+
return ()=>{
|
|
79
|
+
observer.disconnect();
|
|
80
|
+
};
|
|
81
|
+
}, [
|
|
82
|
+
carouselWalker,
|
|
83
|
+
store
|
|
84
|
+
]);
|
|
85
|
+
const selectPageByDirection = useEventCallback((event, direction)=>{
|
|
86
|
+
const active = carouselWalker.active();
|
|
87
|
+
if (!(active === null || active === void 0 ? void 0 : active.value)) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const newPage = direction === 'prev' ? carouselWalker.prevPage(active.value) : carouselWalker.nextPage(active.value);
|
|
91
|
+
if (newPage) {
|
|
92
|
+
setValue(newPage === null || newPage === void 0 ? void 0 : newPage.value);
|
|
93
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(event, {
|
|
94
|
+
event,
|
|
95
|
+
type: 'click',
|
|
96
|
+
value: newPage === null || newPage === void 0 ? void 0 : newPage.value
|
|
97
|
+
});
|
|
98
|
+
} else {
|
|
99
|
+
onFinish === null || onFinish === void 0 ? void 0 : onFinish(event, {
|
|
100
|
+
event,
|
|
101
|
+
type: 'click',
|
|
102
|
+
value: active === null || active === void 0 ? void 0 : active.value
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const selectPageByValue = useEventCallback((event, _value)=>{
|
|
107
|
+
setValue(_value);
|
|
108
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(event, {
|
|
109
|
+
event,
|
|
110
|
+
type: 'click',
|
|
111
|
+
value: _value
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
return {
|
|
115
|
+
carouselRef: useMergedRefs(rootRef, carouselRef),
|
|
116
|
+
carousel: {
|
|
117
|
+
store,
|
|
118
|
+
value,
|
|
119
|
+
selectPageByDirection,
|
|
120
|
+
selectPageByValue
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Carousel.tsx"],"sourcesContent":["import {\n isHTMLElement,\n useMergedRefs,\n useControllableState,\n type EventHandler,\n useEventCallback,\n} from '@fluentui/react-utilities';\nimport * as React from 'react';\n\nimport { CAROUSEL_ITEM } from './constants';\nimport { useCarouselWalker_unstable } from './useCarouselWalker';\nimport { createCarouselStore } from './createCarouselStore';\nimport type { CarouselValueChangeData } from './Carousel.types';\nimport { CarouselContextValue } from './CarouselContext';\n\nexport type UseCarouselOptions = {\n defaultValue?: string;\n value?: string;\n\n onValueChange?: EventHandler<CarouselValueChangeData>;\n onFinish?: EventHandler<CarouselValueChangeData>;\n};\n\n// TODO: Migrate this into an external @fluentui/carousel component\n// For now, we won't export this publicly, is only for internal TeachingPopover use until stabilized.\nexport function useCarousel_unstable(options: UseCarouselOptions) {\n const { onValueChange, onFinish } = options;\n\n const { ref: carouselRef, walker: carouselWalker } = useCarouselWalker_unstable();\n const [store] = React.useState(() => createCarouselStore());\n\n const [value, setValue] = useControllableState({\n defaultState: options.defaultValue,\n state: options.value,\n initialState: null,\n });\n const rootRef = React.useRef<HTMLDivElement>(null);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (value === null) {\n // eslint-disable-next-line no-console\n console.error(\n 'useCarousel: Carousel needs to have a `defaultValue` or `value` prop set. If you want to control the value, use the `value` prop.',\n );\n }\n }, [value]);\n }\n\n React.useEffect(() => {\n const allItems = rootRef.current?.querySelectorAll(`[${CAROUSEL_ITEM}]`)!;\n\n for (let i = 0; i < allItems.length; i++) {\n store.addValue(allItems.item(i).getAttribute(CAROUSEL_ITEM)!);\n }\n\n return () => {\n store.clear();\n };\n }, [store]);\n\n React.useEffect(() => {\n const config: MutationObserverInit = {\n attributes: true,\n attributeFilter: [CAROUSEL_ITEM],\n childList: true,\n subtree: true,\n };\n\n // Callback function to execute when mutations are observed\n const callback: MutationCallback = mutationList => {\n for (const mutation of mutationList) {\n for (const addedNode of Array.from(mutation.addedNodes)) {\n if (isHTMLElement(addedNode) && addedNode.hasAttribute(CAROUSEL_ITEM)) {\n const newValue = addedNode.getAttribute(CAROUSEL_ITEM)!;\n const newNode = carouselWalker.find(newValue);\n if (!newNode?.value) {\n return;\n }\n\n const previousNode = carouselWalker.prevPage(newNode?.value);\n store.insertValue(newValue, previousNode?.value ?? null);\n }\n }\n\n for (const removedNode of Array.from(mutation.removedNodes)) {\n if (isHTMLElement(removedNode) && removedNode?.hasAttribute(CAROUSEL_ITEM)) {\n const removedValue = removedNode.getAttribute(CAROUSEL_ITEM)!;\n\n store.removeValue(removedValue);\n }\n }\n }\n };\n\n // Create an observer instance linked to the callback function\n const observer = new MutationObserver(callback);\n\n // Start observing the target node for configured mutations\n observer.observe(rootRef.current!, config);\n\n // Later, you can stop observing\n return () => {\n observer.disconnect();\n };\n }, [carouselWalker, store]);\n\n const selectPageByDirection: CarouselContextValue['selectPageByDirection'] = useEventCallback((event, direction) => {\n const active = carouselWalker.active();\n\n if (!active?.value) {\n return;\n }\n\n const newPage =\n direction === 'prev' ? carouselWalker.prevPage(active.value) : carouselWalker.nextPage(active.value);\n\n if (newPage) {\n setValue(newPage?.value);\n onValueChange?.(event, { event, type: 'click', value: newPage?.value });\n } else {\n onFinish?.(event, { event, type: 'click', value: active?.value });\n }\n });\n\n const selectPageByValue: CarouselContextValue['selectPageByValue'] = useEventCallback((event, _value) => {\n setValue(_value);\n onValueChange?.(event, { event, type: 'click', value: _value });\n });\n\n return {\n carouselRef: useMergedRefs(rootRef, carouselRef),\n carousel: {\n store,\n value,\n selectPageByDirection,\n selectPageByValue,\n },\n };\n}\n"],"names":["isHTMLElement","useMergedRefs","useControllableState","useEventCallback","React","CAROUSEL_ITEM","useCarouselWalker_unstable","createCarouselStore","useCarousel_unstable","options","onValueChange","onFinish","ref","carouselRef","walker","carouselWalker","store","useState","value","setValue","defaultState","defaultValue","state","initialState","rootRef","useRef","process","env","NODE_ENV","useEffect","console","error","allItems","current","querySelectorAll","i","length","addValue","item","getAttribute","clear","config","attributes","attributeFilter","childList","subtree","callback","mutationList","mutation","addedNode","Array","from","addedNodes","hasAttribute","newValue","newNode","find","previousNode","prevPage","insertValue","removedNode","removedNodes","removedValue","removeValue","observer","MutationObserver","observe","disconnect","selectPageByDirection","event","direction","active","newPage","nextPage","type","selectPageByValue","_value","carousel"],"mappings":"AAAA,SACEA,aAAa,EACbC,aAAa,EACbC,oBAAoB,EAEpBC,gBAAgB,QACX,4BAA4B;AACnC,YAAYC,WAAW,QAAQ;AAE/B,SAASC,aAAa,QAAQ,cAAc;AAC5C,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,mBAAmB,QAAQ,wBAAwB;AAY5D,mEAAmE;AACnE,qGAAqG;AACrG,OAAO,SAASC,qBAAqBC,OAA2B;IAC9D,MAAM,EAAEC,aAAa,EAAEC,QAAQ,EAAE,GAAGF;IAEpC,MAAM,EAAEG,KAAKC,WAAW,EAAEC,QAAQC,cAAc,EAAE,GAAGT;IACrD,MAAM,CAACU,MAAM,GAAGZ,MAAMa,QAAQ,CAAC,IAAMV;IAErC,MAAM,CAACW,OAAOC,SAAS,GAAGjB,qBAAqB;QAC7CkB,cAAcX,QAAQY,YAAY;QAClCC,OAAOb,QAAQS,KAAK;QACpBK,cAAc;IAChB;IACA,MAAMC,UAAUpB,MAAMqB,MAAM,CAAiB;IAE7C,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;QACzC,sDAAsD;QACtDxB,MAAMyB,SAAS,CAAC;YACd,IAAIX,UAAU,MAAM;gBAClB,sCAAsC;gBACtCY,QAAQC,KAAK,CACX;YAEJ;QACF,GAAG;YAACb;SAAM;IACZ;IAEAd,MAAMyB,SAAS,CAAC;YACGL;QAAjB,MAAMQ,YAAWR,mBAAAA,QAAQS,OAAO,cAAfT,uCAAAA,iBAAiBU,gBAAgB,CAAC,CAAC,CAAC,EAAE7B,cAAc,CAAC,CAAC;QAEvE,IAAK,IAAI8B,IAAI,GAAGA,IAAIH,SAASI,MAAM,EAAED,IAAK;YACxCnB,MAAMqB,QAAQ,CAACL,SAASM,IAAI,CAACH,GAAGI,YAAY,CAAClC;QAC/C;QAEA,OAAO;YACLW,MAAMwB,KAAK;QACb;IACF,GAAG;QAACxB;KAAM;IAEVZ,MAAMyB,SAAS,CAAC;QACd,MAAMY,SAA+B;YACnCC,YAAY;YACZC,iBAAiB;gBAACtC;aAAc;YAChCuC,WAAW;YACXC,SAAS;QACX;QAEA,2DAA2D;QAC3D,MAAMC,WAA6BC,CAAAA;YACjC,KAAK,MAAMC,YAAYD,aAAc;gBACnC,KAAK,MAAME,aAAaC,MAAMC,IAAI,CAACH,SAASI,UAAU,EAAG;oBACvD,IAAIpD,cAAciD,cAAcA,UAAUI,YAAY,CAAChD,gBAAgB;wBACrE,MAAMiD,WAAWL,UAAUV,YAAY,CAAClC;wBACxC,MAAMkD,UAAUxC,eAAeyC,IAAI,CAACF;wBACpC,IAAI,EAACC,oBAAAA,8BAAAA,QAASrC,KAAK,GAAE;4BACnB;wBACF;wBAEA,MAAMuC,eAAe1C,eAAe2C,QAAQ,CAACH,oBAAAA,8BAAAA,QAASrC,KAAK;4BAC/BuC;wBAA5BzC,MAAM2C,WAAW,CAACL,UAAUG,CAAAA,sBAAAA,yBAAAA,mCAAAA,aAAcvC,KAAK,cAAnBuC,iCAAAA,sBAAuB;oBACrD;gBACF;gBAEA,KAAK,MAAMG,eAAeV,MAAMC,IAAI,CAACH,SAASa,YAAY,EAAG;oBAC3D,IAAI7D,cAAc4D,iBAAgBA,wBAAAA,kCAAAA,YAAaP,YAAY,CAAChD,iBAAgB;wBAC1E,MAAMyD,eAAeF,YAAYrB,YAAY,CAAClC;wBAE9CW,MAAM+C,WAAW,CAACD;oBACpB;gBACF;YACF;QACF;QAEA,8DAA8D;QAC9D,MAAME,WAAW,IAAIC,iBAAiBnB;QAEtC,2DAA2D;QAC3DkB,SAASE,OAAO,CAAC1C,QAAQS,OAAO,EAAGQ;QAEnC,gCAAgC;QAChC,OAAO;YACLuB,SAASG,UAAU;QACrB;IACF,GAAG;QAACpD;QAAgBC;KAAM;IAE1B,MAAMoD,wBAAuEjE,iBAAiB,CAACkE,OAAOC;QACpG,MAAMC,SAASxD,eAAewD,MAAM;QAEpC,IAAI,EAACA,mBAAAA,6BAAAA,OAAQrD,KAAK,GAAE;YAClB;QACF;QAEA,MAAMsD,UACJF,cAAc,SAASvD,eAAe2C,QAAQ,CAACa,OAAOrD,KAAK,IAAIH,eAAe0D,QAAQ,CAACF,OAAOrD,KAAK;QAErG,IAAIsD,SAAS;YACXrD,SAASqD,oBAAAA,8BAAAA,QAAStD,KAAK;YACvBR,0BAAAA,oCAAAA,cAAgB2D,OAAO;gBAAEA;gBAAOK,MAAM;gBAASxD,KAAK,EAAEsD,oBAAAA,8BAAAA,QAAStD,KAAK;YAAC;QACvE,OAAO;YACLP,qBAAAA,+BAAAA,SAAW0D,OAAO;gBAAEA;gBAAOK,MAAM;gBAASxD,KAAK,EAAEqD,mBAAAA,6BAAAA,OAAQrD,KAAK;YAAC;QACjE;IACF;IAEA,MAAMyD,oBAA+DxE,iBAAiB,CAACkE,OAAOO;QAC5FzD,SAASyD;QACTlE,0BAAAA,oCAAAA,cAAgB2D,OAAO;YAAEA;YAAOK,MAAM;YAASxD,OAAO0D;QAAO;IAC/D;IAEA,OAAO;QACL/D,aAAaZ,cAAcuB,SAASX;QACpCgE,UAAU;YACR7D;YACAE;YACAkD;YACAO;QACF;IACF;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Carousel.types.ts"],"sourcesContent":["import * as React from 'react';\nimport { EventData } from '@fluentui/react-utilities';\n\nexport type CarouselStore = {\n clear: () => void;\n addValue: (value: string) => void;\n insertValue: (value: string, prev: string | null) => void;\n removeValue: (value: string) => void;\n subscribe: (listener: () => void) => () => void;\n getSnapshot: () => string[];\n};\n\nexport type CarouselItem = {\n el: HTMLElement;\n value: string | null;\n};\n\nexport type CarouselValueChangeData = EventData<'click', React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>> & {\n /**\n * The value to be set after event has occurred.\n */\n value?: string;\n};\n"],"names":["React"],"mappings":"AAAA,YAAYA,WAAW,QAAQ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createContext, useContextSelector } from '@fluentui/react-context-selector';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createCarouselStore } from './createCarouselStore';
|
|
4
|
+
export const carouselContextDefaultValue = {
|
|
5
|
+
store: createCarouselStore(),
|
|
6
|
+
value: null,
|
|
7
|
+
selectPageByDirection: ()=>{
|
|
8
|
+
/** noop */ },
|
|
9
|
+
selectPageByValue: ()=>{
|
|
10
|
+
/** noop */ }
|
|
11
|
+
};
|
|
12
|
+
const CarouselContext = createContext(undefined);
|
|
13
|
+
export const CarouselProvider = CarouselContext.Provider;
|
|
14
|
+
export const useCarouselContext_unstable = (selector)=>useContextSelector(CarouselContext, (ctx = carouselContextDefaultValue)=>selector(ctx));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["CarouselContext.ts"],"sourcesContent":["import { type Context, ContextSelector, createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport * as React from 'react';\n\nimport type { CarouselStore } from './Carousel.types';\nimport { createCarouselStore } from './createCarouselStore';\n\nexport type CarouselContextValue = {\n store: CarouselStore;\n value: string | null;\n selectPageByDirection: (\n event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>,\n direction: 'next' | 'prev',\n ) => void;\n selectPageByValue: (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>, value: string) => void;\n};\n\nexport const carouselContextDefaultValue: CarouselContextValue = {\n store: createCarouselStore(),\n value: null,\n selectPageByDirection: () => {\n /** noop */\n },\n selectPageByValue: () => {\n /** noop */\n },\n};\n\nconst CarouselContext: Context<CarouselContextValue> = createContext<CarouselContextValue | undefined>(\n undefined,\n) as Context<CarouselContextValue>;\n\nexport const CarouselProvider = CarouselContext.Provider;\n\nexport const useCarouselContext_unstable = <T>(selector: ContextSelector<CarouselContextValue, T>): T =>\n useContextSelector(CarouselContext, (ctx = carouselContextDefaultValue) => selector(ctx));\n"],"names":["createContext","useContextSelector","React","createCarouselStore","carouselContextDefaultValue","store","value","selectPageByDirection","selectPageByValue","CarouselContext","undefined","CarouselProvider","Provider","useCarouselContext_unstable","selector","ctx"],"mappings":"AAAA,SAAwCA,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AACpH,YAAYC,WAAW,QAAQ;AAG/B,SAASC,mBAAmB,QAAQ,wBAAwB;AAY5D,OAAO,MAAMC,8BAAoD;IAC/DC,OAAOF;IACPG,OAAO;IACPC,uBAAuB;IACrB,SAAS,GACX;IACAC,mBAAmB;IACjB,SAAS,GACX;AACF,EAAE;AAEF,MAAMC,kBAAiDT,cACrDU;AAGF,OAAO,MAAMC,mBAAmBF,gBAAgBG,QAAQ,CAAC;AAEzD,OAAO,MAAMC,8BAA8B,CAAIC,WAC7Cb,mBAAmBQ,iBAAiB,CAACM,MAAMX,2BAA2B,GAAKU,SAASC,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["CarouselItem.types.ts"],"sourcesContent":["import { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type CarouselItemSlots = {\n /**\n * The element wrapping carousel pages and navigation.\n */\n root: NonNullable<Slot<'div'>>;\n};\n\nexport type CarouselItemProps = ComponentProps<CarouselItemSlots> & {\n /**\n * The value used to identify a page,\n * it should be unique and is necessary for pagination\n */\n value: string;\n};\n\n/**\n * TeachingPopoverCarousel State and Context Hooks\n */\nexport type CarouselItemState = ComponentState<Required<CarouselItemSlots>> & {\n visible: boolean;\n} & Pick<CarouselItemProps, 'value'>;\n"],"names":[],"mappings":"AAAA,WAsBqC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useCarouselItem_unstable } from './useCarouselItem';
|
|
3
|
+
import { renderCarouselItem_unstable } from './renderCarouselItem';
|
|
4
|
+
/**
|
|
5
|
+
* Define a CarouselItem, using the `useCarouselItem_unstable` and 'renderCarouselItem_unstable' hooks.
|
|
6
|
+
* It has no styling opinions.
|
|
7
|
+
*/ export const CarouselItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
const state = useCarouselItem_unstable(props, ref);
|
|
9
|
+
return renderCarouselItem_unstable(state);
|
|
10
|
+
});
|
|
11
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Carouseltem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { CarouselItemProps } from './CarouselItem.types';\nimport { useCarouselItem_unstable } from './useCarouselItem';\nimport { renderCarouselItem_unstable } from './renderCarouselItem';\n\n/**\n * Define a CarouselItem, using the `useCarouselItem_unstable` and 'renderCarouselItem_unstable' hooks.\n * It has no styling opinions.\n */\nexport const CarouselItem: ForwardRefComponent<CarouselItemProps> = React.forwardRef((props, ref) => {\n const state = useCarouselItem_unstable(props, ref);\n\n return renderCarouselItem_unstable(state);\n});\n\nCarouselItem.displayName = 'CarouselItem';\n"],"names":["React","useCarouselItem_unstable","renderCarouselItem_unstable","CarouselItem","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAI/B,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,uBAAuB;AAEnE;;;CAGC,GACD,OAAO,MAAMC,6BAAuDH,MAAMI,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,QAAQN,yBAAyBI,OAAOC;IAE9C,OAAOJ,4BAA4BK;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
+
import { assertSlots } from '@fluentui/react-utilities';
|
|
3
|
+
/**
|
|
4
|
+
* Render the final JSX of TeachingPopoverCarousel
|
|
5
|
+
*/ export const renderCarouselItem_unstable = (state)=>{
|
|
6
|
+
assertSlots(state);
|
|
7
|
+
return /*#__PURE__*/ _jsx(state.root, {});
|
|
8
|
+
};
|
package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderCarouselItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { CarouselItemState, CarouselItemSlots } from './CarouselItem.types';\n\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */\nexport const renderCarouselItem_unstable = (state: CarouselItemState) => {\n assertSlots<CarouselItemSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderCarouselItem_unstable","state","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,8BAA8B,CAACC;IAC1CF,YAA+BE;IAE/B,qBAAO,KAACA,MAAMC,IAAI;AACpB,EAAE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
|
|
3
|
+
import { useCarouselContext_unstable } from '../CarouselContext';
|
|
4
|
+
import { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from '../constants';
|
|
5
|
+
export const useCarouselItem_unstable = (props, ref)=>{
|
|
6
|
+
const { value } = props;
|
|
7
|
+
const visible = useCarouselContext_unstable((c)=>c.value === value);
|
|
8
|
+
const state = {
|
|
9
|
+
value,
|
|
10
|
+
visible,
|
|
11
|
+
components: {
|
|
12
|
+
root: 'div'
|
|
13
|
+
},
|
|
14
|
+
root: slot.always(getIntrinsicElementProps('div', {
|
|
15
|
+
ref,
|
|
16
|
+
[CAROUSEL_ITEM]: value,
|
|
17
|
+
[CAROUSEL_ACTIVE_ITEM]: visible,
|
|
18
|
+
hidden: !visible,
|
|
19
|
+
...props
|
|
20
|
+
}), {
|
|
21
|
+
elementType: 'div'
|
|
22
|
+
})
|
|
23
|
+
};
|
|
24
|
+
if (!visible) {
|
|
25
|
+
state.root.children = null;
|
|
26
|
+
}
|
|
27
|
+
return state;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useCarouselItem.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport { CarouselItemProps, CarouselItemState } from './CarouselItem.types';\nimport { useCarouselContext_unstable } from '../CarouselContext';\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from '../constants';\n\nexport const useCarouselItem_unstable = (\n props: CarouselItemProps,\n ref: React.Ref<HTMLDivElement>,\n): CarouselItemState => {\n const { value } = props;\n\n const visible = useCarouselContext_unstable(c => c.value === value);\n const state: CarouselItemState = {\n value,\n visible,\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n [CAROUSEL_ITEM]: value,\n [CAROUSEL_ACTIVE_ITEM]: visible,\n hidden: !visible,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n\n if (!visible) {\n state.root.children = null;\n }\n\n return state;\n};\n"],"names":["React","getIntrinsicElementProps","slot","useCarouselContext_unstable","CAROUSEL_ACTIVE_ITEM","CAROUSEL_ITEM","useCarouselItem_unstable","props","ref","value","visible","c","state","components","root","always","hidden","elementType","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAE3E,SAASC,2BAA2B,QAAQ,qBAAqB;AACjE,SAASC,oBAAoB,EAAEC,aAAa,QAAQ,eAAe;AAEnE,OAAO,MAAMC,2BAA2B,CACtCC,OACAC;IAEA,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAElB,MAAMG,UAAUP,4BAA4BQ,CAAAA,IAAKA,EAAEF,KAAK,KAAKA;IAC7D,MAAMG,QAA2B;QAC/BH;QACAC;QACAG,YAAY;YACVC,MAAM;QACR;QACAA,MAAMZ,KAAKa,MAAM,CACfd,yBAAyB,OAAO;YAC9BO;YACA,CAACH,cAAc,EAAEI;YACjB,CAACL,qBAAqB,EAAEM;YACxBM,QAAQ,CAACN;YACT,GAAGH,KAAK;QACV,IACA;YAAEU,aAAa;QAAM;IAEzB;IAEA,IAAI,CAACP,SAAS;QACZE,MAAME,IAAI,CAACI,QAAQ,GAAG;IACxB;IAEA,OAAON;AACT,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["constants.ts"],"sourcesContent":["export const CAROUSEL_ITEM = 'data-carousel-item';\nexport const CAROUSEL_ACTIVE_ITEM = 'data-carousel-active-item';\n"],"names":["CAROUSEL_ITEM","CAROUSEL_ACTIVE_ITEM"],"mappings":"AAAA,OAAO,MAAMA,gBAAgB,qBAAqB;AAClD,OAAO,MAAMC,uBAAuB,4BAA4B"}
|