@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
package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverCarouselClassNames: function() {
|
|
13
|
+
return teachingPopoverCarouselClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverCarouselStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverCarouselStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const teachingPopoverCarouselClassNames = {
|
|
21
|
+
root: 'fui-TeachingPopoverCarousel'
|
|
22
|
+
};
|
|
23
|
+
// Todo: Page change animation & styles
|
|
24
|
+
const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
25
|
+
root: {}
|
|
26
|
+
}, {});
|
|
27
|
+
const useTeachingPopoverCarouselStyles_unstable = (state)=>{
|
|
28
|
+
const styles = useStyles();
|
|
29
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselClassNames.root, styles.root, state.root.className);
|
|
30
|
+
return state;
|
|
31
|
+
}; //# sourceMappingURL=useTeachingPopoverCarouselStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverCarouselStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nexport const teachingPopoverCarouselClassNames = {\n root: 'fui-TeachingPopoverCarousel'\n};\n// Todo: Page change animation & styles\nconst useStyles = /*#__PURE__*/__styles({\n root: {}\n}, {});\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(teachingPopoverCarouselClassNames.root, styles.root, state.root.className);\n return state;\n};\n//# sourceMappingURL=useTeachingPopoverCarouselStyles.styles.js.map"],"names":["teachingPopoverCarouselClassNames","useTeachingPopoverCarouselStyles_unstable","root","useStyles","__styles","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,iCAAiC;eAAjCA;;IAQAC,yCAAyC;eAAzCA;;;uBAT0B;AAChC,MAAMD,oCAAoC;IAC/CE,MAAM;AACR;AACA,uCAAuC;AACvC,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCF,MAAM,CAAC;AACT,GAAG,CAAC;AAEG,MAAMD,4CAA4CI,CAAAA;IACvD,MAAMC,SAASH;IACfE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,kCAAkCE,IAAI,EAAEI,OAAOJ,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IAC7G,OAAOF;AACT,GACA,mEAAmE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "TeachingPopoverCarouselCard", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return TeachingPopoverCarouselCard;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _useTeachingPopoverCarouselCard = require("./useTeachingPopoverCarouselCard");
|
|
14
|
+
const _renderTeachingPopoverCarouselCard = require("./renderTeachingPopoverCarouselCard");
|
|
15
|
+
const _useTeachingPopoverCarouselCardStylesstyles = require("./useTeachingPopoverCarouselCardStyles.styles");
|
|
16
|
+
const TeachingPopoverCarouselCard = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
17
|
+
const state = (0, _useTeachingPopoverCarouselCard.useTeachingPopoverCarouselCard_unstable)(props, ref);
|
|
18
|
+
(0, _useTeachingPopoverCarouselCardStylesstyles.useTeachingPopoverCarouselCardStyles_unstable)(state);
|
|
19
|
+
return (0, _renderTeachingPopoverCarouselCard.renderTeachingPopoverCarouselCard_unstable)(state);
|
|
20
|
+
});
|
|
21
|
+
TeachingPopoverCarouselCard.displayName = 'TeachingPopoverCarouselCard';
|
package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselCard.js"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopoverCarouselCard_unstable } from './useTeachingPopoverCarouselCard';\nimport { renderTeachingPopoverCarouselCard_unstable } from './renderTeachingPopoverCarouselCard';\nimport { useTeachingPopoverCarouselCardStyles_unstable } from './useTeachingPopoverCarouselCardStyles.styles';\n/**\n * Define a styled TeachingPopoverCarouselCard, using the `useTeachingPopoverCarouselCard_unstable` and `useTeachingPopoverCarouselCardStyles_unstable`\n * hooks.\n *\n * TeachingPopoverCarouselCard is the definition of a single page view within the carousel, they are shown one at a time and can be navigated through sequentially.\n */ export const TeachingPopoverCarouselCard = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useTeachingPopoverCarouselCard_unstable(props, ref);\n useTeachingPopoverCarouselCardStyles_unstable(state);\n return renderTeachingPopoverCarouselCard_unstable(state);\n});\nTeachingPopoverCarouselCard.displayName = 'TeachingPopoverCarouselCard';\n"],"names":["TeachingPopoverCarouselCard","React","forwardRef","props","ref","state","useTeachingPopoverCarouselCard_unstable","useTeachingPopoverCarouselCardStyles_unstable","renderTeachingPopoverCarouselCard_unstable","displayName"],"mappings":";;;;+BASiBA;;;eAAAA;;;;iEATM;gDACiC;mDACG;4DACG;AAMnD,MAAMA,8BAA8B,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAClF,MAAMC,QAAQC,IAAAA,uEAAuC,EAACH,OAAOC;IAC7DG,IAAAA,yFAA6C,EAACF;IAC9C,OAAOG,IAAAA,6EAA0C,EAACH;AACtD;AACAL,4BAA4BS,WAAW,GAAG"}
|
package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./TeachingPopoverCarouselCard"), exports);
|
|
7
|
+
_export_star._(require("./TeachingPopoverCarouselCard.types"), exports);
|
|
8
|
+
_export_star._(require("./renderTeachingPopoverCarouselCard"), exports);
|
|
9
|
+
_export_star._(require("./useTeachingPopoverCarouselCard"), exports);
|
|
10
|
+
_export_star._(require("./useTeachingPopoverCarouselCardStyles.styles"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './TeachingPopoverCarouselCard';\nexport * from './TeachingPopoverCarouselCard.types';\nexport * from './renderTeachingPopoverCarouselCard';\nexport * from './useTeachingPopoverCarouselCard';\nexport * from './useTeachingPopoverCarouselCardStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
|
package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderTeachingPopoverCarouselCard_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return renderTeachingPopoverCarouselCard_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
|
|
12
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
|
+
const renderTeachingPopoverCarouselCard_unstable = (state)=>{
|
|
14
|
+
(0, _reactutilities.assertSlots)(state);
|
|
15
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
|
|
16
|
+
};
|
package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderTeachingPopoverCarouselCard.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of TeachingPopoverCarouselCard\n */ export const renderTeachingPopoverCarouselCard_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.root, {});\n};\n"],"names":["renderTeachingPopoverCarouselCard_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJa;gCACF;AAGjB,MAAMA,6CAA6C,CAACC;IAC3DC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AAC3C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useTeachingPopoverCarouselCard_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useTeachingPopoverCarouselCard_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
+
const _Carouseltem = require("../TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem");
|
|
15
|
+
const useTeachingPopoverCarouselCard_unstable = (props, ref)=>{
|
|
16
|
+
const { value } = props;
|
|
17
|
+
return {
|
|
18
|
+
value,
|
|
19
|
+
components: {
|
|
20
|
+
root: _Carouseltem.CarouselItem
|
|
21
|
+
},
|
|
22
|
+
root: _reactutilities.slot.always({
|
|
23
|
+
...(0, _reactutilities.getIntrinsicElementProps)('div', {
|
|
24
|
+
ref,
|
|
25
|
+
...props
|
|
26
|
+
}),
|
|
27
|
+
value
|
|
28
|
+
}, {
|
|
29
|
+
elementType: _Carouseltem.CarouselItem
|
|
30
|
+
})
|
|
31
|
+
};
|
|
32
|
+
};
|
package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverCarouselCard.js"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport { CarouselItem } from '../TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem';\n/**\n * Returns the props and state required to render the component\n * @param props - TeachingPopoverCarouselCard properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarouselCard\n */ export const useTeachingPopoverCarouselCard_unstable = (props, ref)=>{\n const { value } = props;\n return {\n value,\n components: {\n root: CarouselItem\n },\n root: slot.always({\n ...getIntrinsicElementProps('div', {\n ref,\n ...props\n }),\n value\n }, {\n elementType: CarouselItem\n })\n };\n};\n"],"names":["useTeachingPopoverCarouselCard_unstable","props","ref","value","components","root","CarouselItem","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAOiBA;;;eAAAA;;;;gCAP8B;iEACxB;6BACM;AAKlB,MAAMA,0CAA0C,CAACC,OAAOC;IAC/D,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAClB,OAAO;QACHE;QACAC,YAAY;YACRC,MAAMC,yBAAY;QACtB;QACAD,MAAME,oBAAI,CAACC,MAAM,CAAC;YACd,GAAGC,IAAAA,wCAAwB,EAAC,OAAO;gBAC/BP;gBACA,GAAGD,KAAK;YACZ,EAAE;YACFE;QACJ,GAAG;YACCO,aAAaJ,yBAAY;QAC7B;IACJ;AACJ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverCarouselCardClassNames: function() {
|
|
13
|
+
return teachingPopoverCarouselCardClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverCarouselCardStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverCarouselCardStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const teachingPopoverCarouselCardClassNames = {
|
|
21
|
+
root: 'fui-TeachingPopoverCarouselCard'
|
|
22
|
+
};
|
|
23
|
+
const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
24
|
+
root: {}
|
|
25
|
+
}, {});
|
|
26
|
+
const useTeachingPopoverCarouselCardStyles_unstable = (state)=>{
|
|
27
|
+
const styles = useStyles();
|
|
28
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselCardClassNames.root, styles.root, state.root.className);
|
|
29
|
+
return state;
|
|
30
|
+
}; //# sourceMappingURL=useTeachingPopoverCarouselCardStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverCarouselCardStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nexport const teachingPopoverCarouselCardClassNames = {\n root: 'fui-TeachingPopoverCarouselCard'\n};\nconst useStyles = /*#__PURE__*/__styles({\n root: {}\n}, {});\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselCardStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(teachingPopoverCarouselCardClassNames.root, styles.root, state.root.className);\n return state;\n};\n//# sourceMappingURL=useTeachingPopoverCarouselCardStyles.styles.js.map"],"names":["teachingPopoverCarouselCardClassNames","useTeachingPopoverCarouselCardStyles_unstable","root","useStyles","__styles","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,qCAAqC;eAArCA;;IAOAC,6CAA6C;eAA7CA;;;uBAR0B;AAChC,MAAMD,wCAAwC;IACnDE,MAAM;AACR;AACA,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCF,MAAM,CAAC;AACT,GAAG,CAAC;AAEG,MAAMD,gDAAgDI,CAAAA;IAC3D,MAAMC,SAASH;IACfE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,sCAAsCE,IAAI,EAAEI,OAAOJ,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IACjH,OAAOF;AACT,GACA,uEAAuE"}
|
package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "TeachingPopoverCarouselFooter", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return TeachingPopoverCarouselFooter;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _useTeachingPopoverCarouselFooter = require("./useTeachingPopoverCarouselFooter");
|
|
14
|
+
const _renderTeachingPopoverCarouselFooter = require("./renderTeachingPopoverCarouselFooter");
|
|
15
|
+
const _useTeachingPopoverCarouselFooterStylesstyles = require("./useTeachingPopoverCarouselFooterStyles.styles");
|
|
16
|
+
const TeachingPopoverCarouselFooter = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
17
|
+
const state = (0, _useTeachingPopoverCarouselFooter.useTeachingPopoverCarouselFooter_unstable)(props, ref);
|
|
18
|
+
(0, _useTeachingPopoverCarouselFooterStylesstyles.useTeachingPopoverCarouselFooterStyles_unstable)(state);
|
|
19
|
+
return (0, _renderTeachingPopoverCarouselFooter.renderTeachingPopoverCarouselFooter_unstable)(state);
|
|
20
|
+
});
|
|
21
|
+
TeachingPopoverCarouselFooter.displayName = 'TeachingPopoverCarouselFooter';
|
package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselFooter.js"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopoverCarouselFooter_unstable } from './useTeachingPopoverCarouselFooter';\nimport { renderTeachingPopoverCarouselFooter_unstable } from './renderTeachingPopoverCarouselFooter';\nimport { useTeachingPopoverCarouselFooterStyles_unstable } from './useTeachingPopoverCarouselFooterStyles.styles';\n/**\n * Define a styled TeachingPopoverCarouselFooter, using the `useTeachingPopoverCarouselFooter_unstable` and `useTeachingPopoverCarouselFooterStyles_unstable`\n * hooks.\n *\n * TeachingPopoverCarouselFooter contains previous/next buttons configured for carousel navigation, and a root slot for page count and/or page index navigation.\n */ export const TeachingPopoverCarouselFooter = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useTeachingPopoverCarouselFooter_unstable(props, ref);\n useTeachingPopoverCarouselFooterStyles_unstable(state);\n return renderTeachingPopoverCarouselFooter_unstable(state);\n});\nTeachingPopoverCarouselFooter.displayName = 'TeachingPopoverCarouselFooter';\n"],"names":["TeachingPopoverCarouselFooter","React","forwardRef","props","ref","state","useTeachingPopoverCarouselFooter_unstable","useTeachingPopoverCarouselFooterStyles_unstable","renderTeachingPopoverCarouselFooter_unstable","displayName"],"mappings":";;;;+BASiBA;;;eAAAA;;;;iEATM;kDACmC;qDACG;8DACG;AAMrD,MAAMA,gCAAgC,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACpF,MAAMC,QAAQC,IAAAA,2EAAyC,EAACH,OAAOC;IAC/DG,IAAAA,6FAA+C,EAACF;IAChD,OAAOG,IAAAA,iFAA4C,EAACH;AACxD;AACAL,8BAA8BS,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselFooter.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;iEAAuB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./TeachingPopoverCarouselFooter"), exports);
|
|
7
|
+
_export_star._(require("./TeachingPopoverCarouselFooter.types"), exports);
|
|
8
|
+
_export_star._(require("./renderTeachingPopoverCarouselFooter"), exports);
|
|
9
|
+
_export_star._(require("./useTeachingPopoverCarouselFooter"), exports);
|
|
10
|
+
_export_star._(require("./useTeachingPopoverCarouselFooterStyles.styles"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './TeachingPopoverCarouselFooter';\nexport * from './TeachingPopoverCarouselFooter.types';\nexport * from './renderTeachingPopoverCarouselFooter';\nexport * from './useTeachingPopoverCarouselFooter';\nexport * from './useTeachingPopoverCarouselFooterStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
|
package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderTeachingPopoverCarouselFooter_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return renderTeachingPopoverCarouselFooter_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
|
|
12
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
|
+
const renderTeachingPopoverCarouselFooter_unstable = (state)=>{
|
|
14
|
+
(0, _reactutilities.assertSlots)(state);
|
|
15
|
+
const { layout } = state;
|
|
16
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
|
|
17
|
+
children: [
|
|
18
|
+
layout === 'centered' && state.previous && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.previous, {}),
|
|
19
|
+
state.root.children,
|
|
20
|
+
layout === 'offset' && state.previous && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.previous, {}),
|
|
21
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(state.next, {})
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderTeachingPopoverCarouselFooter.js"],"sourcesContent":[" import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of TeachingPopoverCarouselFooter\n */ export const renderTeachingPopoverCarouselFooter_unstable = (state)=>{\n assertSlots(state);\n const { layout } = state;\n return /*#__PURE__*/ _jsxs(state.root, {\n children: [\n layout === 'centered' && state.previous && /*#__PURE__*/ _jsx(state.previous, {}),\n state.root.children,\n layout === 'offset' && state.previous && /*#__PURE__*/ _jsx(state.previous, {}),\n /*#__PURE__*/ _jsx(state.next, {})\n ]\n });\n};\n"],"names":["renderTeachingPopoverCarouselFooter_unstable","state","assertSlots","layout","_jsxs","root","children","previous","_jsx","next"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJ4B;gCACjB;AAGjB,MAAMA,+CAA+C,CAACC;IAC7DC,IAAAA,2BAAW,EAACD;IACZ,MAAM,EAAEE,MAAM,EAAE,GAAGF;IACnB,OAAO,WAAW,GAAGG,IAAAA,gBAAK,EAACH,MAAMI,IAAI,EAAE;QACnCC,UAAU;YACNH,WAAW,cAAcF,MAAMM,QAAQ,IAAI,WAAW,GAAGC,IAAAA,eAAI,EAACP,MAAMM,QAAQ,EAAE,CAAC;YAC/EN,MAAMI,IAAI,CAACC,QAAQ;YACnBH,WAAW,YAAYF,MAAMM,QAAQ,IAAI,WAAW,GAAGC,IAAAA,eAAI,EAACP,MAAMM,QAAQ,EAAE,CAAC;YAC7E,WAAW,GAAGC,IAAAA,eAAI,EAACP,MAAMQ,IAAI,EAAE,CAAC;SACnC;IACL;AACJ"}
|
package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useTeachingPopoverCarouselFooter_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useTeachingPopoverCarouselFooter_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
+
const _TeachingPopoverCarouselFooterButton = require("../TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton");
|
|
15
|
+
const useTeachingPopoverCarouselFooter_unstable = (props, ref)=>{
|
|
16
|
+
const { layout = 'centered', initialStepText, finalStepText } = props;
|
|
17
|
+
const previous = _reactutilities.slot.optional(props.previous, {
|
|
18
|
+
defaultProps: {
|
|
19
|
+
navType: 'prev',
|
|
20
|
+
altText: initialStepText
|
|
21
|
+
},
|
|
22
|
+
renderByDefault: true,
|
|
23
|
+
elementType: _TeachingPopoverCarouselFooterButton.TeachingPopoverCarouselFooterButton
|
|
24
|
+
});
|
|
25
|
+
const next = _reactutilities.slot.always(props.next, {
|
|
26
|
+
defaultProps: {
|
|
27
|
+
navType: 'next',
|
|
28
|
+
altText: finalStepText
|
|
29
|
+
},
|
|
30
|
+
elementType: _TeachingPopoverCarouselFooterButton.TeachingPopoverCarouselFooterButton
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
layout,
|
|
34
|
+
components: {
|
|
35
|
+
root: 'div',
|
|
36
|
+
next: _TeachingPopoverCarouselFooterButton.TeachingPopoverCarouselFooterButton,
|
|
37
|
+
previous: _TeachingPopoverCarouselFooterButton.TeachingPopoverCarouselFooterButton
|
|
38
|
+
},
|
|
39
|
+
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
|
|
40
|
+
ref,
|
|
41
|
+
...props
|
|
42
|
+
}), {
|
|
43
|
+
elementType: 'div'
|
|
44
|
+
}),
|
|
45
|
+
previous,
|
|
46
|
+
next
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverCarouselFooter.js"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport { TeachingPopoverCarouselFooterButton } from '../TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton';\nexport const useTeachingPopoverCarouselFooter_unstable = (props, ref)=>{\n const { layout = 'centered', initialStepText, finalStepText } = props;\n const previous = slot.optional(props.previous, {\n defaultProps: {\n navType: 'prev',\n altText: initialStepText\n },\n renderByDefault: true,\n elementType: TeachingPopoverCarouselFooterButton\n });\n const next = slot.always(props.next, {\n defaultProps: {\n navType: 'next',\n altText: finalStepText\n },\n elementType: TeachingPopoverCarouselFooterButton\n });\n return {\n layout,\n components: {\n root: 'div',\n next: TeachingPopoverCarouselFooterButton,\n previous: TeachingPopoverCarouselFooterButton\n },\n root: slot.always(getIntrinsicElementProps('div', {\n ref,\n ...props\n }), {\n elementType: 'div'\n }),\n previous,\n next\n };\n};\n"],"names":["useTeachingPopoverCarouselFooter_unstable","props","ref","layout","initialStepText","finalStepText","previous","slot","optional","defaultProps","navType","altText","renderByDefault","elementType","TeachingPopoverCarouselFooterButton","next","always","components","root","getIntrinsicElementProps"],"mappings":";;;;+BAGaA;;;eAAAA;;;;gCAHkC;iEACxB;qDAC6B;AAC7C,MAAMA,4CAA4C,CAACC,OAAOC;IAC7D,MAAM,EAAEC,SAAS,UAAU,EAAEC,eAAe,EAAEC,aAAa,EAAE,GAAGJ;IAChE,MAAMK,WAAWC,oBAAI,CAACC,QAAQ,CAACP,MAAMK,QAAQ,EAAE;QAC3CG,cAAc;YACVC,SAAS;YACTC,SAASP;QACb;QACAQ,iBAAiB;QACjBC,aAAaC,wEAAmC;IACpD;IACA,MAAMC,OAAOR,oBAAI,CAACS,MAAM,CAACf,MAAMc,IAAI,EAAE;QACjCN,cAAc;YACVC,SAAS;YACTC,SAASN;QACb;QACAQ,aAAaC,wEAAmC;IACpD;IACA,OAAO;QACHX;QACAc,YAAY;YACRC,MAAM;YACNH,MAAMD,wEAAmC;YACzCR,UAAUQ,wEAAmC;QACjD;QACAI,MAAMX,oBAAI,CAACS,MAAM,CAACG,IAAAA,wCAAwB,EAAC,OAAO;YAC9CjB;YACA,GAAGD,KAAK;QACZ,IAAI;YACAY,aAAa;QACjB;QACAP;QACAS;IACJ;AACJ"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
teachingPopoverCarouselFooterClassNames: function() {
|
|
13
|
+
return teachingPopoverCarouselFooterClassNames;
|
|
14
|
+
},
|
|
15
|
+
useTeachingPopoverCarouselFooterStyles_unstable: function() {
|
|
16
|
+
return useTeachingPopoverCarouselFooterStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const teachingPopoverCarouselFooterClassNames = {
|
|
21
|
+
root: 'fui-TeachingPopoverCarouselFooter',
|
|
22
|
+
previous: 'fui-TeachingPopoverCarouselFooter__previous',
|
|
23
|
+
next: 'fui-TeachingPopoverCarouselFooter__next'
|
|
24
|
+
};
|
|
25
|
+
// Todo: Page change animation & styles
|
|
26
|
+
const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
27
|
+
root: {
|
|
28
|
+
mc9l5x: "f22iagw",
|
|
29
|
+
Beiy3e4: "f1063pyq"
|
|
30
|
+
},
|
|
31
|
+
rootCentered: {
|
|
32
|
+
Brf1p80: "f1869bpl",
|
|
33
|
+
i8kkvl: "f4px1ci",
|
|
34
|
+
Belr9w4: "fn67r4l"
|
|
35
|
+
},
|
|
36
|
+
rootRightAligned: {
|
|
37
|
+
i8kkvl: "f4px1ci",
|
|
38
|
+
Belr9w4: "fn67r4l",
|
|
39
|
+
Bp34fd5: "f1y65ohq"
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
d: [
|
|
43
|
+
".f22iagw{display:flex;}",
|
|
44
|
+
".f1063pyq{flex-direction:row;}",
|
|
45
|
+
".f1869bpl{justify-content:space-between;}",
|
|
46
|
+
".f4px1ci{column-gap:8px;}",
|
|
47
|
+
".fn67r4l{row-gap:8px;}",
|
|
48
|
+
".f1y65ohq :first-child{-webkit-margin-end:auto;margin-inline-end:auto;}"
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
const useTeachingPopoverCarouselFooterStyles_unstable = (state)=>{
|
|
52
|
+
const styles = useStyles();
|
|
53
|
+
const { layout } = state;
|
|
54
|
+
state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.root, styles.root, layout === 'centered' ? styles.rootCentered : styles.rootRightAligned, state.root.className);
|
|
55
|
+
if (state.previous) {
|
|
56
|
+
state.previous.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);
|
|
57
|
+
}
|
|
58
|
+
state.next.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.next, state.next.className);
|
|
59
|
+
return state;
|
|
60
|
+
}; //# sourceMappingURL=useTeachingPopoverCarouselFooterStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverCarouselFooterStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nexport const teachingPopoverCarouselFooterClassNames = {\n root: 'fui-TeachingPopoverCarouselFooter',\n previous: 'fui-TeachingPopoverCarouselFooter__previous',\n next: 'fui-TeachingPopoverCarouselFooter__next'\n};\n// Todo: Page change animation & styles\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n mc9l5x: \"f22iagw\",\n Beiy3e4: \"f1063pyq\"\n },\n rootCentered: {\n Brf1p80: \"f1869bpl\",\n i8kkvl: \"f4px1ci\",\n Belr9w4: \"fn67r4l\"\n },\n rootRightAligned: {\n i8kkvl: \"f4px1ci\",\n Belr9w4: \"fn67r4l\",\n Bp34fd5: \"f1y65ohq\"\n }\n}, {\n d: [\".f22iagw{display:flex;}\", \".f1063pyq{flex-direction:row;}\", \".f1869bpl{justify-content:space-between;}\", \".f4px1ci{column-gap:8px;}\", \".fn67r4l{row-gap:8px;}\", \".f1y65ohq :first-child{-webkit-margin-end:auto;margin-inline-end:auto;}\"]\n});\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselFooterStyles_unstable = state => {\n const styles = useStyles();\n const {\n layout\n } = state;\n state.root.className = mergeClasses(teachingPopoverCarouselFooterClassNames.root, styles.root, layout === 'centered' ? styles.rootCentered : styles.rootRightAligned, state.root.className);\n if (state.previous) {\n state.previous.className = mergeClasses(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);\n }\n state.next.className = mergeClasses(teachingPopoverCarouselFooterClassNames.next, state.next.className);\n return state;\n};\n//# sourceMappingURL=useTeachingPopoverCarouselFooterStyles.styles.js.map"],"names":["teachingPopoverCarouselFooterClassNames","useTeachingPopoverCarouselFooterStyles_unstable","root","previous","next","useStyles","__styles","mc9l5x","Beiy3e4","rootCentered","Brf1p80","i8kkvl","Belr9w4","rootRightAligned","Bp34fd5","d","state","styles","layout","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,uCAAuC;eAAvCA;;IAyBAC,+CAA+C;eAA/CA;;;uBA1BsC;AAC5C,MAAMD,0CAA0C;IACrDE,MAAM;IACNC,UAAU;IACVC,MAAM;AACR;AACA,uCAAuC;AACvC,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCJ,MAAM;QACJK,QAAQ;QACRC,SAAS;IACX;IACAC,cAAc;QACZC,SAAS;QACTC,QAAQ;QACRC,SAAS;IACX;IACAC,kBAAkB;QAChBF,QAAQ;QACRC,SAAS;QACTE,SAAS;IACX;AACF,GAAG;IACDC,GAAG;QAAC;QAA2B;QAAkC;QAA6C;QAA6B;QAA0B;KAA0E;AACjP;AAEO,MAAMd,kDAAkDe,CAAAA;IAC7D,MAAMC,SAASZ;IACf,MAAM,EACJa,MAAM,EACP,GAAGF;IACJA,MAAMd,IAAI,CAACiB,SAAS,GAAGC,IAAAA,mBAAY,EAACpB,wCAAwCE,IAAI,EAAEe,OAAOf,IAAI,EAAEgB,WAAW,aAAaD,OAAOR,YAAY,GAAGQ,OAAOJ,gBAAgB,EAAEG,MAAMd,IAAI,CAACiB,SAAS;IAC1L,IAAIH,MAAMb,QAAQ,EAAE;QAClBa,MAAMb,QAAQ,CAACgB,SAAS,GAAGC,IAAAA,mBAAY,EAACpB,wCAAwCG,QAAQ,EAAEa,MAAMb,QAAQ,CAACgB,SAAS;IACpH;IACAH,MAAMZ,IAAI,CAACe,SAAS,GAAGC,IAAAA,mBAAY,EAACpB,wCAAwCI,IAAI,EAAEY,MAAMZ,IAAI,CAACe,SAAS;IACtG,OAAOH;AACT,GACA,yEAAyE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "TeachingPopoverCarouselFooterButton", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return TeachingPopoverCarouselFooterButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _useTeachingPopoverCarouselFooterButton = require("./useTeachingPopoverCarouselFooterButton");
|
|
14
|
+
const _renderTeachingPopoverCarouselFooterButton = require("./renderTeachingPopoverCarouselFooterButton");
|
|
15
|
+
const _useTeachingPopoverCarouselFooterButtonStylesstyles = require("./useTeachingPopoverCarouselFooterButtonStyles.styles");
|
|
16
|
+
const TeachingPopoverCarouselFooterButton = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
17
|
+
const state = (0, _useTeachingPopoverCarouselFooterButton.useTeachingPopoverCarouselFooterButton_unstable)(props, ref);
|
|
18
|
+
(0, _useTeachingPopoverCarouselFooterButtonStylesstyles.useTeachingPopoverCarouselFooterButtonStyles_unstable)(state);
|
|
19
|
+
return (0, _renderTeachingPopoverCarouselFooterButton.renderTeachingPopoverCarouselFooterButton_unstable)(state);
|
|
20
|
+
});
|
|
21
|
+
TeachingPopoverCarouselFooterButton.displayName = 'TeachingPopoverCarouselFooterButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["TeachingPopoverCarouselFooterButton.js"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopoverCarouselFooterButton_unstable } from './useTeachingPopoverCarouselFooterButton';\nimport { renderTeachingPopoverCarouselFooterButton_unstable } from './renderTeachingPopoverCarouselFooterButton';\nimport { useTeachingPopoverCarouselFooterButtonStyles_unstable } from './useTeachingPopoverCarouselFooterButtonStyles.styles';\n/**\n * TeachingPopoverCarouselFooterButton component\n *\n * TeachingPopoverCarouselFooterButton extends Button and injects additional styling and onClick functionality\n * to match the context provided by TeachingPopover & TeachingPopoverCarousel\n */ export const TeachingPopoverCarouselFooterButton = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useTeachingPopoverCarouselFooterButton_unstable(props, ref);\n useTeachingPopoverCarouselFooterButtonStyles_unstable(state);\n return renderTeachingPopoverCarouselFooterButton_unstable(state);\n});\nTeachingPopoverCarouselFooterButton.displayName = 'TeachingPopoverCarouselFooterButton';\n"],"names":["TeachingPopoverCarouselFooterButton","React","forwardRef","props","ref","state","useTeachingPopoverCarouselFooterButton_unstable","useTeachingPopoverCarouselFooterButtonStyles_unstable","renderTeachingPopoverCarouselFooterButton_unstable","displayName"],"mappings":";;;;+BASiBA;;;eAAAA;;;;iEATM;wDACyC;2DACG;oEACG;AAM3D,MAAMA,sCAAsC,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC1F,MAAMC,QAAQC,IAAAA,uFAA+C,EAACH,OAAOC;IACrEG,IAAAA,yGAAqD,EAACF;IACtD,OAAOG,IAAAA,6FAAkD,EAACH;AAC9D;AACAL,oCAAoCS,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./TeachingPopoverCarouselFooterButton"), exports);
|
|
7
|
+
_export_star._(require("./TeachingPopoverCarouselFooterButton.types"), exports);
|
|
8
|
+
_export_star._(require("./renderTeachingPopoverCarouselFooterButton"), exports);
|
|
9
|
+
_export_star._(require("./useTeachingPopoverCarouselFooterButton"), exports);
|
|
10
|
+
_export_star._(require("./useTeachingPopoverCarouselFooterButtonStyles.styles"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './TeachingPopoverCarouselFooterButton';\nexport * from './TeachingPopoverCarouselFooterButton.types';\nexport * from './renderTeachingPopoverCarouselFooterButton';\nexport * from './useTeachingPopoverCarouselFooterButton';\nexport * from './useTeachingPopoverCarouselFooterButtonStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderTeachingPopoverCarouselFooterButton_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return renderTeachingPopoverCarouselFooterButton_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
|
|
12
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
|
+
const renderTeachingPopoverCarouselFooterButton_unstable = (state)=>{
|
|
14
|
+
(0, _reactutilities.assertSlots)(state);
|
|
15
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["renderTeachingPopoverCarouselFooterButton.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of TeachingPopoverCarouselFooterButton\n */ export const renderTeachingPopoverCarouselFooterButton_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.root, {});\n};\n"],"names":["renderTeachingPopoverCarouselFooterButton_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJa;gCACF;AAGjB,MAAMA,qDAAqD,CAACC;IACnEC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AAC3C"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useTeachingPopoverCarouselFooterButton_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useTeachingPopoverCarouselFooterButton_unstable;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
14
|
+
const _reactpopover = require("@fluentui/react-popover");
|
|
15
|
+
const _CarouselContext = require("../TeachingPopoverCarousel/Carousel/CarouselContext");
|
|
16
|
+
const _reactbutton = require("@fluentui/react-button");
|
|
17
|
+
const _useCarouselValues = require("../TeachingPopoverCarousel/Carousel/useCarouselValues");
|
|
18
|
+
const useTeachingPopoverCarouselFooterButton_unstable = (props, ref)=>{
|
|
19
|
+
const { navType, altText } = props;
|
|
20
|
+
const popoverAppearance = (0, _reactpopover.usePopoverContext_unstable)((context)=>context.appearance);
|
|
21
|
+
const selectPageByDirection = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.selectPageByDirection);
|
|
22
|
+
const values = (0, _useCarouselValues.useCarouselValues_unstable)((snapshot)=>snapshot);
|
|
23
|
+
const activeValue = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.value);
|
|
24
|
+
const handleClick = (event)=>{
|
|
25
|
+
if (event.isDefaultPrevented()) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
selectPageByDirection(event, navType);
|
|
29
|
+
};
|
|
30
|
+
const handleButtonClick = (0, _reactutilities.useEventCallback)((0, _reactutilities.mergeCallbacks)(handleClick, props.onClick));
|
|
31
|
+
const isTrailing = _react.useMemo(()=>{
|
|
32
|
+
if (!activeValue) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
if (navType === 'prev') {
|
|
36
|
+
return values.indexOf(activeValue) === 0;
|
|
37
|
+
}
|
|
38
|
+
return values.indexOf(activeValue) === values.length - 1;
|
|
39
|
+
}, [
|
|
40
|
+
navType,
|
|
41
|
+
activeValue,
|
|
42
|
+
values
|
|
43
|
+
]);
|
|
44
|
+
let buttonAppearanceType;
|
|
45
|
+
if (navType === 'next') {
|
|
46
|
+
buttonAppearanceType = popoverAppearance === 'brand' ? undefined : 'primary';
|
|
47
|
+
} else {
|
|
48
|
+
buttonAppearanceType = popoverAppearance === 'brand' ? 'outline' : undefined;
|
|
49
|
+
}
|
|
50
|
+
/* Handle altText on trailing step */ let buttonChild = props.children;
|
|
51
|
+
if (isTrailing) {
|
|
52
|
+
buttonChild = altText;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
...(0, _reactbutton.useButton_unstable)({
|
|
56
|
+
appearance: buttonAppearanceType,
|
|
57
|
+
...props
|
|
58
|
+
}, ref),
|
|
59
|
+
navType,
|
|
60
|
+
popoverAppearance,
|
|
61
|
+
altText,
|
|
62
|
+
// Override useButton root slot
|
|
63
|
+
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('button', {
|
|
64
|
+
ref,
|
|
65
|
+
appearance: buttonAppearanceType,
|
|
66
|
+
...props,
|
|
67
|
+
onClick: handleButtonClick,
|
|
68
|
+
children: buttonChild
|
|
69
|
+
}), {
|
|
70
|
+
elementType: 'button'
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useTeachingPopoverCarouselFooterButton.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-utilities';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarouselContext_unstable } from '../TeachingPopoverCarousel/Carousel/CarouselContext';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '@fluentui/react-button';\nimport { useCarouselValues_unstable } from '../TeachingPopoverCarousel/Carousel/useCarouselValues';\n/**\n * Create the state required to render TeachingPopoverCarouselFooterButton.\n *\n * The returned state can be modified with hooks such as useTeachingPopoverCarouselFooterButtonStyles_unstable,\n * before being passed to renderTeachingPopoverCarouselFooterButton_unstable.\n *\n * @param props - props from this instance of TeachingPopoverCarouselFooterButton\n * @param ref - reference to root HTMLDivElement of TeachingPopoverCarouselFooterButton\n */ export const useTeachingPopoverCarouselFooterButton_unstable = (props, ref)=>{\n const { navType, altText } = props;\n const popoverAppearance = usePopoverContext_unstable((context)=>context.appearance);\n const selectPageByDirection = useCarouselContext_unstable((c)=>c.selectPageByDirection);\n const values = useCarouselValues_unstable((snapshot)=>snapshot);\n const activeValue = useCarouselContext_unstable((c)=>c.value);\n const handleClick = (event)=>{\n if (event.isDefaultPrevented()) {\n return;\n }\n selectPageByDirection(event, navType);\n };\n const handleButtonClick = useEventCallback(mergeCallbacks(handleClick, props.onClick));\n const isTrailing = React.useMemo(()=>{\n if (!activeValue) {\n return false;\n }\n if (navType === 'prev') {\n return values.indexOf(activeValue) === 0;\n }\n return values.indexOf(activeValue) === values.length - 1;\n }, [\n navType,\n activeValue,\n values\n ]);\n let buttonAppearanceType;\n if (navType === 'next') {\n buttonAppearanceType = popoverAppearance === 'brand' ? undefined : 'primary';\n } else {\n buttonAppearanceType = popoverAppearance === 'brand' ? 'outline' : undefined;\n }\n /* Handle altText on trailing step */ let buttonChild = props.children;\n if (isTrailing) {\n buttonChild = altText;\n }\n return {\n ...useButton_unstable({\n appearance: buttonAppearanceType,\n ...props\n }, ref),\n navType,\n popoverAppearance,\n altText,\n // Override useButton root slot\n root: slot.always(getIntrinsicElementProps('button', {\n ref,\n appearance: buttonAppearanceType,\n ...props,\n onClick: handleButtonClick,\n children: buttonChild\n }), {\n elementType: 'button'\n })\n };\n};\n"],"names":["useTeachingPopoverCarouselFooterButton_unstable","props","ref","navType","altText","popoverAppearance","usePopoverContext_unstable","context","appearance","selectPageByDirection","useCarouselContext_unstable","c","values","useCarouselValues_unstable","snapshot","activeValue","value","handleClick","event","isDefaultPrevented","handleButtonClick","useEventCallback","mergeCallbacks","onClick","isTrailing","React","useMemo","indexOf","length","buttonAppearanceType","undefined","buttonChild","children","useButton_unstable","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAeiBA;;;eAAAA;;;;iEAfM;gCACwC;8BACpB;iCACC;6BAET;mCACQ;AAShC,MAAMA,kDAAkD,CAACC,OAAOC;IACvE,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAC7B,MAAMI,oBAAoBC,IAAAA,wCAA0B,EAAC,CAACC,UAAUA,QAAQC,UAAU;IAClF,MAAMC,wBAAwBC,IAAAA,4CAA2B,EAAC,CAACC,IAAIA,EAAEF,qBAAqB;IACtF,MAAMG,SAASC,IAAAA,6CAA0B,EAAC,CAACC,WAAWA;IACtD,MAAMC,cAAcL,IAAAA,4CAA2B,EAAC,CAACC,IAAIA,EAAEK,KAAK;IAC5D,MAAMC,cAAc,CAACC;QACjB,IAAIA,MAAMC,kBAAkB,IAAI;YAC5B;QACJ;QACAV,sBAAsBS,OAAOf;IACjC;IACA,MAAMiB,oBAAoBC,IAAAA,gCAAgB,EAACC,IAAAA,8BAAc,EAACL,aAAahB,MAAMsB,OAAO;IACpF,MAAMC,aAAaC,OAAMC,OAAO,CAAC;QAC7B,IAAI,CAACX,aAAa;YACd,OAAO;QACX;QACA,IAAIZ,YAAY,QAAQ;YACpB,OAAOS,OAAOe,OAAO,CAACZ,iBAAiB;QAC3C;QACA,OAAOH,OAAOe,OAAO,CAACZ,iBAAiBH,OAAOgB,MAAM,GAAG;IAC3D,GAAG;QACCzB;QACAY;QACAH;KACH;IACD,IAAIiB;IACJ,IAAI1B,YAAY,QAAQ;QACpB0B,uBAAuBxB,sBAAsB,UAAUyB,YAAY;IACvE,OAAO;QACHD,uBAAuBxB,sBAAsB,UAAU,YAAYyB;IACvE;IACA,mCAAmC,GAAG,IAAIC,cAAc9B,MAAM+B,QAAQ;IACtE,IAAIR,YAAY;QACZO,cAAc3B;IAClB;IACA,OAAO;QACH,GAAG6B,IAAAA,+BAAkB,EAAC;YAClBzB,YAAYqB;YACZ,GAAG5B,KAAK;QACZ,GAAGC,IAAI;QACPC;QACAE;QACAD;QACA,+BAA+B;QAC/B8B,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,UAAU;YACjDnC;YACAM,YAAYqB;YACZ,GAAG5B,KAAK;YACRsB,SAASH;YACTY,UAAUD;QACd,IAAI;YACAO,aAAa;QACjB;IACJ;AACJ"}
|