@fluentui/react-teaching-popover 9.74.7-experimental.cli-api.20261006-ccaa611d58.0 → 9.75.0-experimental.css-modules.20261031-810ab07afb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -14
- package/README.md +27 -0
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/lib/components/TeachingPopover/TeachingPopover.js.map +1 -1
- package/lib/components/TeachingPopover/TeachingPopover.types.js.map +1 -1
- package/lib/components/TeachingPopover/index.js.map +1 -1
- package/lib/components/TeachingPopover/renderTeachingPopover.js.map +1 -1
- package/lib/components/TeachingPopover/useTeachingPopover.js +1 -1
- package/lib/components/TeachingPopover/useTeachingPopover.js.map +1 -1
- package/lib/components/TeachingPopover/useTeachingPopoverContextValues.js.map +1 -1
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.js.map +1 -1
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.module.css +43 -0
- package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -1
- package/lib/components/TeachingPopoverBody/index.js.map +1 -1
- package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -1
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -1
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.css.js +20 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.css.js +20 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js +45 -11
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js +2 -2
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/constants.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.module.css +4 -0
- package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js +2 -2
- package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -1
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.css.js +9 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.css.js +9 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.module.css +4 -0
- package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselCard/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.css.js +9 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.css.js +9 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.module.css +19 -0
- package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooter/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.css.js +16 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.css.js +16 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.module.css +39 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js +2 -2
- package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.css.js +20 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.css.js +20 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.module.css +15 -0
- package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.css.js +9 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.css.js +9 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNav/valueIdContext.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.module.css +59 -0
- package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNavButton/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js +2 -2
- package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.css.js +12 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.css.js +12 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.module.css +7 -0
- package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/index.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js +2 -2
- package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -1
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.css.js +11 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.css.js +11 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.js.map +1 -1
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.module.css +45 -0
- package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -1
- package/lib/components/TeachingPopoverFooter/index.js.map +1 -1
- package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -1
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +1 -1
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -1
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.css.js +18 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.css.js +18 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.js.map +1 -1
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.module.css +69 -0
- package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -1
- package/lib/components/TeachingPopoverHeader/index.js.map +1 -1
- package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -1
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -1
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.css.js +19 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.css.js +19 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -1
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.module.css +8 -0
- package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -1
- package/lib/components/TeachingPopoverSurface/index.js.map +1 -1
- package/lib/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js.map +1 -1
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -1
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.css.js +15 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.css.js +15 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.module.css +46 -0
- package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/index.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleBase.js.map +1 -1
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.css.js +15 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.css.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.css.js +15 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.css.js.map +1 -0
- package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map +1 -1
- package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -1
- package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -1
- package/lib/components/TeachingPopoverTrigger/index.js.map +1 -1
- package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -1
- package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -1
- package/lib-commonjs/TeachingPopover.cjs +5 -5
- package/lib-commonjs/TeachingPopoverBody.cjs +7 -7
- package/lib-commonjs/TeachingPopoverCarousel.cjs +8 -8
- package/lib-commonjs/TeachingPopoverCarouselCard.cjs +6 -6
- package/lib-commonjs/TeachingPopoverCarouselFooter.cjs +6 -6
- package/lib-commonjs/TeachingPopoverCarouselFooterButton.cjs +7 -7
- package/lib-commonjs/TeachingPopoverCarouselNav.cjs +7 -7
- package/lib-commonjs/TeachingPopoverCarouselNavButton.cjs +7 -7
- package/lib-commonjs/TeachingPopoverCarouselPageCount.cjs +6 -6
- package/lib-commonjs/TeachingPopoverFooter.cjs +7 -7
- package/lib-commonjs/TeachingPopoverHeader.cjs +7 -7
- package/lib-commonjs/TeachingPopoverSurface.cjs +6 -6
- package/lib-commonjs/TeachingPopoverTitle.cjs +7 -7
- package/lib-commonjs/TeachingPopoverTrigger.cjs +4 -4
- package/lib-commonjs/components/TeachingPopover/TeachingPopover.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopover/index.cjs +5 -5
- package/lib-commonjs/components/TeachingPopover/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopover/renderTeachingPopover.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopover/useTeachingPopover.cjs +1 -1
- package/lib-commonjs/components/TeachingPopover/useTeachingPopover.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopover/useTeachingPopoverContextValues.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.module.css +43 -0
- package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverBody/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.cjs +4 -4
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.css.cjs +42 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.cjs +4 -4
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.css.cjs +42 -0
- package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.cjs +43 -9
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.cjs +4 -4
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/createCarouselStore.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselValues.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.module.css +4 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/index.cjs +8 -8
- package/lib-commonjs/components/TeachingPopoverCarousel/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.module.css +4 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/index.cjs +6 -6
- package/lib-commonjs/components/TeachingPopoverCarouselCard/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.module.css +19 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.cjs +6 -6
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.css.cjs +35 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.css.cjs +35 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.module.css +39 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.css.cjs +37 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.css.cjs +37 -0
- package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.module.css +15 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverCarouselNav/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.cjs +4 -4
- package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.module.css +59 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.css.cjs +29 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.css.cjs +29 -0
- package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.module.css +7 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.cjs +6 -6
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.cjs +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.module.css +45 -0
- package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverFooter/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.cjs +4 -4
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.css.cjs +37 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.css.cjs +37 -0
- package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.module.css +69 -0
- package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverHeader/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.css.cjs +38 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.css.cjs +38 -0
- package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.module.css +8 -0
- package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/index.cjs +6 -6
- package/lib-commonjs/components/TeachingPopoverSurface/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/renderTeachingPopoverSurface.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.module.css +46 -0
- package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/index.cjs +7 -7
- package/lib-commonjs/components/TeachingPopoverTitle/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleBase.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.css.cjs +34 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.css.cjs +34 -0
- package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTrigger/index.cjs +4 -4
- package/lib-commonjs/components/TeachingPopoverTrigger/index.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.cjs.map +1 -1
- package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.cjs.map +1 -1
- package/lib-commonjs/index.cjs +75 -75
- package/lib-commonjs/index.cjs.map +1 -1
- package/package.json +16 -16
- package/dist/metadata/api/api-root.json +0 -1
- package/dist/metadata/index.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,77 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-teaching-popover
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Sat, 31 Oct 2026 11:08:38 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.
|
|
7
|
+
## [9.75.0-experimental.css-modules.20261031-810ab07afb.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-teaching-popover_v9.75.0-experimental.css-modules.20261031-810ab07afb.0)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-teaching-popover_v9.7.
|
|
9
|
+
Sat, 31 Oct 2026 11:08:38 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-teaching-popover_v9.7.9..@fluentui/react-teaching-popover_v9.75.0-experimental.css-modules.20261031-810ab07afb.0)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release 9.
|
|
15
|
-
- Bump @fluentui/react-aria to v9.
|
|
16
|
-
- Bump @fluentui/react-button to v9.
|
|
17
|
-
- Bump @fluentui/react-context-selector to v9.
|
|
18
|
-
- Bump @fluentui/react-jsx-runtime to v9.
|
|
19
|
-
- Bump @fluentui/react-popover to v9.
|
|
20
|
-
- Bump @fluentui/react-shared-contexts to v9.
|
|
21
|
-
- Bump @fluentui/react-tabster to v9.
|
|
22
|
-
- Bump @fluentui/react-theme to v9.
|
|
23
|
-
- Bump @fluentui/react-utilities to v9.
|
|
14
|
+
- Release 9.75.0-experimental.css-modules.20261031-810ab07afb ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
15
|
+
- Bump @fluentui/react-aria to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-button to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-context-selector to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
|
+
- Bump @fluentui/react-jsx-runtime to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-popover to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-shared-contexts to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
|
+
- Bump @fluentui/react-tabster to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
22
|
+
- Bump @fluentui/react-theme to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
23
|
+
- Bump @fluentui/react-utilities to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
24
|
+
|
|
25
|
+
## [9.7.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-teaching-popover_v9.7.9)
|
|
26
|
+
|
|
27
|
+
Thu, 22 Oct 2026 11:25:58 GMT
|
|
28
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-teaching-popover_v9.7.8..@fluentui/react-teaching-popover_v9.7.9)
|
|
29
|
+
|
|
30
|
+
### Patches
|
|
31
|
+
|
|
32
|
+
- Bump @fluentui/react-button to v9.11.3 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
33
|
+
|
|
34
|
+
## [9.7.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-teaching-popover_v9.7.8)
|
|
35
|
+
|
|
36
|
+
Mon, 19 Oct 2026 16:49:00 GMT
|
|
37
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-teaching-popover_v9.7.7..@fluentui/react-teaching-popover_v9.7.8)
|
|
38
|
+
|
|
39
|
+
### Patches
|
|
40
|
+
|
|
41
|
+
- fix: Announce carousel page changes after render. ([PR #36643](https://github.com/microsoft/fluentui/pull/36643) by paulmardling@microsoft.com)
|
|
42
|
+
- Bump @fluentui/react-aria to v9.17.16 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
43
|
+
- Bump @fluentui/react-button to v9.11.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
44
|
+
- Bump @fluentui/react-context-selector to v9.2.21 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
45
|
+
- Bump @fluentui/react-jsx-runtime to v9.4.7 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
46
|
+
- Bump @fluentui/react-popover to v9.14.10 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
47
|
+
- Bump @fluentui/react-tabster to v9.26.19 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
48
|
+
- Bump @fluentui/react-utilities to v9.27.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
49
|
+
|
|
50
|
+
## [9.7.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-teaching-popover_v9.7.7)
|
|
51
|
+
|
|
52
|
+
Wed, 23 Sep 2026 09:04:33 GMT
|
|
53
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-teaching-popover_v9.7.6..@fluentui/react-teaching-popover_v9.7.7)
|
|
54
|
+
|
|
55
|
+
### Patches
|
|
56
|
+
|
|
57
|
+
- Bump @fluentui/react-popover to v9.14.9 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
58
|
+
|
|
59
|
+
## [9.7.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-teaching-popover_v9.7.6)
|
|
60
|
+
|
|
61
|
+
Tue, 22 Sep 2026 11:25:39 GMT
|
|
62
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-teaching-popover_v9.7.5..@fluentui/react-teaching-popover_v9.7.6)
|
|
63
|
+
|
|
64
|
+
### Patches
|
|
65
|
+
|
|
66
|
+
- fix: remove unused react-dom and @types/react-dom peer dependencies, mark @types/react as optional, require use-sync-external-store ^1.4.0 for react 19 support ([PR #36559](https://github.com/microsoft/fluentui/pull/36559) by martinhochel@microsoft.com)
|
|
67
|
+
- Bump @fluentui/react-aria to v9.17.15 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
68
|
+
- Bump @fluentui/react-button to v9.11.1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
69
|
+
- Bump @fluentui/react-context-selector to v9.2.20 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
70
|
+
- Bump @fluentui/react-jsx-runtime to v9.4.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
71
|
+
- Bump @fluentui/react-popover to v9.14.8 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
72
|
+
- Bump @fluentui/react-shared-contexts to v9.26.4 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
73
|
+
- Bump @fluentui/react-tabster to v9.26.18 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
74
|
+
- Bump @fluentui/react-utilities to v9.26.7 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
24
75
|
|
|
25
76
|
## [9.7.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-teaching-popover_v9.7.5)
|
|
26
77
|
|
package/README.md
CHANGED
|
@@ -26,6 +26,33 @@ For more complicated features, we recommend using the TeachingPopoverCarousel, t
|
|
|
26
26
|
</TeachingPopover>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
## Opt-in CSS Modules composition
|
|
30
|
+
|
|
31
|
+
The `.styles.css` alternatives retain public cross-package style hooks, just like
|
|
32
|
+
Nav and Carousel: TeachingPopoverSurface calls `usePopoverSurfaceStyles_unstable`
|
|
33
|
+
from `@fluentui/react-popover`, and TeachingPopoverCarouselFooterButton calls
|
|
34
|
+
`useButtonStyles_unstable` from `@fluentui/react-button`. Do not replace these with
|
|
35
|
+
private deep imports or duplicate their base rules.
|
|
36
|
+
|
|
37
|
+
Opt-in resolver swaps must cover those base packages, including public re-exports,
|
|
38
|
+
as well as TeachingPopover, for both source `.styles` and built
|
|
39
|
+
`.styles.js` → `.styles.css.js` imports. Base modules are imported before derived
|
|
40
|
+
stylesheets. CSS Modules must be processed and CSS assets retained in the
|
|
41
|
+
`fluentui` layer. Swapping only TeachingPopover intentionally leaves Griffel base
|
|
42
|
+
hooks in the graph; unlayered Griffel rules can override layered CSS, so that
|
|
43
|
+
hybrid is not guaranteed to match the fully selected CSS implementation.
|
|
44
|
+
|
|
45
|
+
Surface preserves its local-class-before-base-hook call order and returns the
|
|
46
|
+
base hook's result, including arrow styling. With both alternatives selected, its
|
|
47
|
+
later stylesheet supplies padding, radius, minimum width, and box sizing while
|
|
48
|
+
Popover supplies appearance, typography, and positioning-arrow styles.
|
|
49
|
+
FooterButton calls Button first, merges its returned state, and then adds its
|
|
50
|
+
local root and brand navigation classes with caller classes last. Button still
|
|
51
|
+
supplies sizing, icon, disabled, focus, and interaction styles. Class-list order
|
|
52
|
+
does not determine CSS precedence: its brand hover/active colors and inherited
|
|
53
|
+
forced-colors/focus rules need browser cascade verification before claiming
|
|
54
|
+
parity. Hook tests verify composition, not computed-style or VRT parity.
|
|
55
|
+
|
|
29
56
|
## Sample Code - Carousel
|
|
30
57
|
|
|
31
58
|
```jsx
|
package/dist/index.d.cts
CHANGED
|
@@ -600,8 +600,9 @@ export declare type TeachingPopoverTriggerState = PopoverTriggerState;
|
|
|
600
600
|
|
|
601
601
|
declare type UseCarouselOptions = {
|
|
602
602
|
/**
|
|
603
|
-
* Localizes the string used to announce carousel page changes to screen reader users
|
|
604
|
-
*
|
|
603
|
+
* Localizes the string used to announce carousel page changes to screen reader users.
|
|
604
|
+
* Runs after the destination page renders. When omitted, page changes are not announced.
|
|
605
|
+
* Return an empty string to suppress an announcement.
|
|
605
606
|
*/
|
|
606
607
|
announcement?: (newValue: string) => string;
|
|
607
608
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -600,8 +600,9 @@ export declare type TeachingPopoverTriggerState = PopoverTriggerState;
|
|
|
600
600
|
|
|
601
601
|
declare type UseCarouselOptions = {
|
|
602
602
|
/**
|
|
603
|
-
* Localizes the string used to announce carousel page changes to screen reader users
|
|
604
|
-
*
|
|
603
|
+
* Localizes the string used to announce carousel page changes to screen reader users.
|
|
604
|
+
* Runs after the destination page renders. When omitted, page changes are not announced.
|
|
605
|
+
* Return an empty string to suppress an announcement.
|
|
605
606
|
*/
|
|
606
607
|
announcement?: (newValue: string) => string;
|
|
607
608
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopover/TeachingPopover.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useTeachingPopover_unstable } from './useTeachingPopover';\nimport { renderTeachingPopover_unstable } from './renderTeachingPopover';\nimport type { TeachingPopoverProps } from './TeachingPopover.types';\nimport { useTeachingPopoverContextValues_unstable } from './useTeachingPopoverContextValues';\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 const contextValues = useTeachingPopoverContextValues_unstable(state);\n\n return renderTeachingPopover_unstable(state, contextValues);\n};\n\nTeachingPopover.displayName = 'TeachingPopover';\n"],"names":["useTeachingPopover_unstable","renderTeachingPopover_unstable","useTeachingPopoverContextValues_unstable","TeachingPopover","props","state","contextValues","displayName"],"mappings":"AAAA;AAGA,SAASA,2BAA2B,QAAQ,0BAAuB;AACnE,SAASC,8BAA8B,QAAQ,6BAA0B;AAEzE,SAASC,wCAAwC,QAAQ,uCAAoC;AAE7F;;CAEC,GACD,OAAO,MAAMC,kBAAkDC,CAAAA;IAC7D,MAAMC,QAAQL,4BAA4BI;IAC1C,MAAME,gBAAgBJ,yCAAyCG;IAE/D,OAAOJ,+BAA+BI,OAAOC;AAC/C,EAAE;AAEFH,gBAAgBI,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopover/TeachingPopover.types.ts"],"sourcesContent":["import type { PopoverState, PopoverProps, PopoverContextValues } 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\nexport type TeachingPopoverContextValues = PopoverContextValues;\n"],"names":[],"mappings":"AAYA,WAAgE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopover/index.ts"],"sourcesContent":["export { TeachingPopover } from './TeachingPopover';\nexport type { TeachingPopoverProps, TeachingPopoverState } from './TeachingPopover.types';\nexport { renderTeachingPopover_unstable } from './renderTeachingPopover';\nexport { useTeachingPopover_unstable } from './useTeachingPopover';\nexport { useTeachingPopoverContextValues_unstable } from './useTeachingPopoverContextValues';\n"],"names":["TeachingPopover","renderTeachingPopover_unstable","useTeachingPopover_unstable","useTeachingPopoverContextValues_unstable"],"mappings":"AAAA,SAASA,eAAe,QAAQ,uBAAoB;AAEpD,SAASC,8BAA8B,QAAQ,6BAA0B;AACzE,SAASC,2BAA2B,QAAQ,0BAAuB;AACnE,SAASC,wCAAwC,QAAQ,uCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopover/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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { usePopover_unstable } from "@fluentui/react-popover";
|
|
3
3
|
export const useTeachingPopover_unstable = (props)=>{
|
|
4
|
-
const popoverState = usePopover_unstable(props);
|
|
5
4
|
var _props_withArrow, _props_trapFocus;
|
|
5
|
+
const popoverState = usePopover_unstable(props);
|
|
6
6
|
return {
|
|
7
7
|
...popoverState,
|
|
8
8
|
withArrow: (_props_withArrow = props.withArrow) !== null && _props_withArrow !== void 0 ? _props_withArrow : true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopover/useTeachingPopover.ts"],"sourcesContent":["'use client';\n\nimport { 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;AAEA,SAASA,mBAAmB,QAAQ,0BAA0B;AAG9D,OAAO,MAAMC,8BAA8B,CAACC;QAK7BA,kBAEAA;IANb,MAAMC,eAAeH,oBAAoBE;IAEzC,OAAO;QACL,GAAGC,YAAY;QACfC,SAAS,GAAEF,mBAAAA,MAAME,SAAS,cAAfF,8BAAAA,mBAAmB;QAC9B,+EAA+E;QAC/EG,SAAS,GAAEH,mBAAAA,MAAMG,SAAS,cAAfH,8BAAAA,mBAAmB;IAChC;AACF,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopover/useTeachingPopoverContextValues.ts"],"sourcesContent":["'use client';\n\nimport { usePopoverContextValues_unstable } from '@fluentui/react-popover';\nimport type { TeachingPopoverContextValues, TeachingPopoverState } from './TeachingPopover.types';\n\nexport const useTeachingPopoverContextValues_unstable: (state: TeachingPopoverState) => TeachingPopoverContextValues =\n usePopoverContextValues_unstable;\n"],"names":["usePopoverContextValues_unstable","useTeachingPopoverContextValues_unstable"],"mappings":"AAAA;AAEA,SAASA,gCAAgC,QAAQ,0BAA0B;AAG3E,OAAO,MAAMC,2CACXD,iCAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/TeachingPopoverBody.tsx"],"sourcesContent":["'use client';\n\nimport * 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;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,+BAA+B,QAAQ,8BAA2B;AAC3E,SAASC,kCAAkC,QAAQ,iCAA8B;AACjF,SAASC,qCAAqC,QAAQ,2CAAwC;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,43 @@
|
|
|
1
|
+
@layer fluentui {
|
|
2
|
+
.root {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding-bottom: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.media {
|
|
9
|
+
grid-area: media;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
width: auto;
|
|
12
|
+
margin-bottom: 12px;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.short {
|
|
19
|
+
aspect-ratio: 288 / 117;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.medium {
|
|
23
|
+
aspect-ratio: 288 / 176;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tall {
|
|
27
|
+
aspect-ratio: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@supports not (aspect-ratio: 1) {
|
|
31
|
+
.short {
|
|
32
|
+
height: 117px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.medium {
|
|
36
|
+
height: 176px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tall {
|
|
40
|
+
height: 288px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/TeachingPopoverBody.types.ts"],"sourcesContent":["import type { 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":"AAiBA,WAC0D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/index.ts"],"sourcesContent":["export { TeachingPopoverBody } from './TeachingPopoverBody';\nexport type {\n TeachingPopoverBodyProps,\n TeachingPopoverBodySlots,\n TeachingPopoverBodyState,\n} from './TeachingPopoverBody.types';\nexport { renderTeachingPopoverBody_unstable } from './renderTeachingPopoverBody';\nexport { useTeachingPopoverBody_unstable } from './useTeachingPopoverBody';\nexport {\n teachingPopoverBodyClassNames,\n useMediaStyles,\n useTeachingPopoverBodyStyles_unstable,\n} from './useTeachingPopoverBodyStyles.styles';\n"],"names":["TeachingPopoverBody","renderTeachingPopoverBody_unstable","useTeachingPopoverBody_unstable","teachingPopoverBodyClassNames","useMediaStyles","useTeachingPopoverBodyStyles_unstable"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,2BAAwB;AAM5D,SAASC,kCAAkC,QAAQ,iCAA8B;AACjF,SAASC,+BAA+B,QAAQ,8BAA2B;AAC3E,SACEC,6BAA6B,EAC7BC,cAAc,EACdC,qCAAqC,QAChC,2CAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/renderTeachingPopoverBody.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverBodyState } from './TeachingPopoverBody.types';\nimport type { TeachingPopoverBodySlots } from './TeachingPopoverBody.types';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TeachingPopoverBody\n */\nexport const renderTeachingPopoverBody_unstable = (state: TeachingPopoverBodyState): JSXElement => {\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;AAGxD;;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/useTeachingPopoverBody.ts"],"sourcesContent":["import type * 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":["getIntrinsicElementProps","slot","useTeachingPopoverBody_unstable","props","ref","mediaLength","components","root","media","always","elementType","optional"],"mappings":"AACA,SAASA,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,WAAW,EAAEA,wBAAAA,yBAAAA,cAAe;IAC9B;AACF,EAAE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TeachingPopoverBody.module.css";
|
|
3
|
+
export const teachingPopoverBodyClassNames = {
|
|
4
|
+
root: 'fui-TeachingPopoverBody',
|
|
5
|
+
media: 'fui-TeachingPopoverBody__media'
|
|
6
|
+
};
|
|
7
|
+
/** Compatibility export: returns the media class names of the Griffel implementation. */ export const useMediaStyles = ()=>({
|
|
8
|
+
base: styles.media,
|
|
9
|
+
short: styles.short,
|
|
10
|
+
medium: styles.medium,
|
|
11
|
+
tall: styles.tall
|
|
12
|
+
});
|
|
13
|
+
/** Applies style classnames to slots */ export const useTeachingPopoverBodyStyles_unstable = (state)=>{
|
|
14
|
+
const { mediaLength } = state;
|
|
15
|
+
state.root.className = clsx(teachingPopoverBodyClassNames.root, styles.root, state.root.className);
|
|
16
|
+
if (state.media) {
|
|
17
|
+
state.media.className = clsx(teachingPopoverBodyClassNames.media, styles.media, styles[mediaLength], state.media.className);
|
|
18
|
+
}
|
|
19
|
+
return state;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { TeachingPopoverBodySlots, TeachingPopoverBodyState } from './TeachingPopoverBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport styles from './TeachingPopoverBody.module.css';\n\nexport const teachingPopoverBodyClassNames: SlotClassNames<TeachingPopoverBodySlots> = {\n root: 'fui-TeachingPopoverBody',\n media: 'fui-TeachingPopoverBody__media',\n};\n\n/** Compatibility export: returns the media class names of the Griffel implementation. */\nexport const useMediaStyles = (): Record<'base' | 'short' | 'medium' | 'tall', string> => ({\n base: styles.media,\n short: styles.short,\n medium: styles.medium,\n tall: styles.tall,\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverBodyStyles_unstable = (state: TeachingPopoverBodyState): TeachingPopoverBodyState => {\n const { mediaLength } = state;\n\n state.root.className = clsx(teachingPopoverBodyClassNames.root, styles.root, state.root.className);\n\n if (state.media) {\n state.media.className = clsx(\n teachingPopoverBodyClassNames.media,\n styles.media,\n styles[mediaLength],\n state.media.className,\n );\n }\n\n return state;\n};\n"],"names":["clsx","styles","teachingPopoverBodyClassNames","root","media","useMediaStyles","base","short","medium","tall","useTeachingPopoverBodyStyles_unstable","state","mediaLength","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,mCAAmC;AAEtD,OAAO,MAAMC,gCAA0E;IACrFC,MAAM;IACNC,OAAO;AACT,EAAE;AAEF,uFAAuF,GACvF,OAAO,MAAMC,iBAAiB,IAA6D,CAAA;QACzFC,MAAML,OAAOG,KAAK;QAClBG,OAAON,OAAOM,KAAK;QACnBC,QAAQP,OAAOO,MAAM;QACrBC,MAAMR,OAAOQ,IAAI;IACnB,CAAA,EAAG;AAEH,sCAAsC,GACtC,OAAO,MAAMC,wCAAwC,CAACC;IACpD,MAAM,EAAEC,WAAW,EAAE,GAAGD;IAExBA,MAAMR,IAAI,CAACU,SAAS,GAAGb,KAAKE,8BAA8BC,IAAI,EAAEF,OAAOE,IAAI,EAAEQ,MAAMR,IAAI,CAACU,SAAS;IAEjG,IAAIF,MAAMP,KAAK,EAAE;QACfO,MAAMP,KAAK,CAACS,SAAS,GAAGb,KACtBE,8BAA8BE,KAAK,EACnCH,OAAOG,KAAK,EACZH,MAAM,CAACW,YAAY,EACnBD,MAAMP,KAAK,CAACS,SAAS;IAEzB;IAEA,OAAOF;AACT,EAAE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./TeachingPopoverBody.module.css";
|
|
3
|
+
export const teachingPopoverBodyClassNames = {
|
|
4
|
+
root: 'fui-TeachingPopoverBody',
|
|
5
|
+
media: 'fui-TeachingPopoverBody__media'
|
|
6
|
+
};
|
|
7
|
+
/** Compatibility export: returns the media class names of the Griffel implementation. */ export const useMediaStyles = ()=>({
|
|
8
|
+
base: styles.media,
|
|
9
|
+
short: styles.short,
|
|
10
|
+
medium: styles.medium,
|
|
11
|
+
tall: styles.tall
|
|
12
|
+
});
|
|
13
|
+
/** Applies style classnames to slots */ export const useTeachingPopoverBodyStyles_unstable = (state)=>{
|
|
14
|
+
const { mediaLength } = state;
|
|
15
|
+
state.root.className = clsx(teachingPopoverBodyClassNames.root, styles.root, state.root.className);
|
|
16
|
+
if (state.media) {
|
|
17
|
+
state.media.className = clsx(teachingPopoverBodyClassNames.media, styles.media, styles[mediaLength], state.media.className);
|
|
18
|
+
}
|
|
19
|
+
return state;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { TeachingPopoverBodySlots, TeachingPopoverBodyState } from './TeachingPopoverBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport styles from './TeachingPopoverBody.module.css';\n\nexport const teachingPopoverBodyClassNames: SlotClassNames<TeachingPopoverBodySlots> = {\n root: 'fui-TeachingPopoverBody',\n media: 'fui-TeachingPopoverBody__media',\n};\n\n/** Compatibility export: returns the media class names of the Griffel implementation. */\nexport const useMediaStyles = (): Record<'base' | 'short' | 'medium' | 'tall', string> => ({\n base: styles.media,\n short: styles.short,\n medium: styles.medium,\n tall: styles.tall,\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverBodyStyles_unstable = (state: TeachingPopoverBodyState): TeachingPopoverBodyState => {\n const { mediaLength } = state;\n\n state.root.className = clsx(teachingPopoverBodyClassNames.root, styles.root, state.root.className);\n\n if (state.media) {\n state.media.className = clsx(\n teachingPopoverBodyClassNames.media,\n styles.media,\n styles[mediaLength],\n state.media.className,\n );\n }\n\n return state;\n};\n"],"names":["clsx","styles","teachingPopoverBodyClassNames","root","media","useMediaStyles","base","short","medium","tall","useTeachingPopoverBodyStyles_unstable","state","mediaLength","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,mCAAmC;AAEtD,OAAO,MAAMC,gCAA0E;IACrFC,MAAM;IACNC,OAAO;AACT,EAAE;AAEF,uFAAuF,GACvF,OAAO,MAAMC,iBAAiB,IAA6D,CAAA;QACzFC,MAAML,OAAOG,KAAK;QAClBG,OAAON,OAAOM,KAAK;QACnBC,QAAQP,OAAOO,MAAM;QACrBC,MAAMR,OAAOQ,IAAI;IACnB,CAAA,EAAG;AAEH,sCAAsC,GACtC,OAAO,MAAMC,wCAAwC,CAACC;IACpD,MAAM,EAAEC,WAAW,EAAE,GAAGD;IAExBA,MAAMR,IAAI,CAACU,SAAS,GAAGb,KAAKE,8BAA8BC,IAAI,EAAEF,OAAOE,IAAI,EAAEQ,MAAMR,IAAI,CAACU,SAAS;IAEjG,IAAIF,MAAMP,KAAK,EAAE;QACfO,MAAMP,KAAK,CAACS,SAAS,GAAGb,KACtBE,8BAA8BE,KAAK,EACnCH,OAAOG,KAAK,EACZH,MAAM,CAACW,YAAY,EACnBD,MAAMP,KAAK,CAACS,SAAS;IAEzB;IAEA,OAAOF;AACT,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { TeachingPopoverBodySlots, TeachingPopoverBodyState } from './TeachingPopoverBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const teachingPopoverBodyClassNames: SlotClassNames<TeachingPopoverBodySlots> = {\n root: 'fui-TeachingPopoverBody',\n media: 'fui-TeachingPopoverBody__media',\n};\n\nconst popoverBodyDimension = 288;\n\nexport const useMediaStyles = makeStyles({\n base: {\n gridArea: 'media',\n overflow: 'hidden',\n width: 'auto',\n marginBottom: '12px',\n verticalAlign: 'middle',\n justifyContent: 'center',\n display: 'flex',\n },\n short: {\n aspectRatio: popoverBodyDimension / 117,\n '@supports not (aspect-ratio)': {\n height: '117px',\n },\n },\n medium: {\n aspectRatio: popoverBodyDimension / 176,\n '@supports not (aspect-ratio)': {\n height: '176px',\n },\n },\n tall: {\n aspectRatio: 1,\n '@supports not (aspect-ratio)': {\n height: `${popoverBodyDimension}px`,\n },\n },\n});\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n paddingBottom: '12px',\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverBodyStyles_unstable = (state: TeachingPopoverBodyState): TeachingPopoverBodyState => {\n const { mediaLength } = state;\n const styles = useStyles();\n const mediaStyles = useMediaStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverBodyClassNames.root, styles.root, state.root.className);\n\n if (state.media) {\n // eslint-disable-next-line react-hooks/immutability\n state.media.className = mergeClasses(\n teachingPopoverBodyClassNames.media,\n mediaStyles.base,\n mediaStyles[mediaLength],\n state.media.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","teachingPopoverBodyClassNames","root","media","popoverBodyDimension","useMediaStyles","base","gridArea","overflow","width","marginBottom","verticalAlign","justifyContent","display","short","aspectRatio","height","medium","tall","useStyles","flexDirection","paddingBottom","useTeachingPopoverBodyStyles_unstable","state","mediaLength","styles","mediaStyles","className"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAI1D,OAAO,MAAMC,gCAA0E;IACrFC,MAAM;IACNC,OAAO;AACT,EAAE;AAEF,MAAMC,uBAAuB;AAE7B,OAAO,MAAMC,iBAAiBN,WAAW;IACvCO,MAAM;QACJC,UAAU;QACVC,UAAU;QACVC,OAAO;QACPC,cAAc;QACdC,eAAe;QACfC,gBAAgB;QAChBC,SAAS;IACX;IACAC,OAAO;QACLC,aAAaX,uBAAuB;QACpC,gCAAgC;YAC9BY,QAAQ;QACV;IACF;IACAC,QAAQ;QACNF,aAAaX,uBAAuB;QACpC,gCAAgC;YAC9BY,QAAQ;QACV;IACF;IACAE,MAAM;QACJH,aAAa;QACb,gCAAgC;YAC9BC,QAAQ,GAAGZ,qBAAqB,EAAE,CAAC;QACrC;IACF;AACF,GAAG;AAEH,MAAMe,YAAYpB,WAAW;IAC3BG,MAAM;QACJW,SAAS;QACTO,eAAe;QACfC,eAAe;IACjB;AACF;AAEA,sCAAsC,GACtC,OAAO,MAAMC,wCAAwC,CAACC;IACpD,MAAM,EAAEC,WAAW,EAAE,GAAGD;IACxB,MAAME,SAASN;IACf,MAAMO,cAAcrB;IAEpB,oDAAoD;IACpDkB,MAAMrB,IAAI,CAACyB,SAAS,GAAG3B,aAAaC,8BAA8BC,IAAI,EAAEuB,OAAOvB,IAAI,EAAEqB,MAAMrB,IAAI,CAACyB,SAAS;IAEzG,IAAIJ,MAAMpB,KAAK,EAAE;QACf,oDAAoD;QACpDoB,MAAMpB,KAAK,CAACwB,SAAS,GAAG3B,aACtBC,8BAA8BE,KAAK,EACnCuB,YAAYpB,IAAI,EAChBoB,WAAW,CAACF,YAAY,EACxBD,MAAMpB,KAAK,CAACwB,SAAS;IAEzB;IAEA,OAAOJ;AACT,EAAE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { isHTMLElement, useMergedRefs, useControllableState, useEventCallback } from "@fluentui/react-utilities";
|
|
3
|
+
import { isHTMLElement, useMergedRefs, useControllableState, useEventCallback, useIsomorphicLayoutEffect } from "@fluentui/react-utilities";
|
|
4
4
|
import { useAnnounce, useFluent_unstable as useFluent } from "@fluentui/react-shared-contexts";
|
|
5
|
-
import { CAROUSEL_ITEM } from "./constants.js";
|
|
5
|
+
import { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from "./constants.js";
|
|
6
6
|
import { useCarouselWalker_unstable } from "./useCarouselWalker.js";
|
|
7
7
|
import { createCarouselStore } from "./createCarouselStore.js";
|
|
8
8
|
// TODO: Migrate this into an external @fluentui/carousel component
|
|
@@ -20,6 +20,41 @@ export function useCarousel_unstable(options) {
|
|
|
20
20
|
});
|
|
21
21
|
const rootRef = React.useRef(null);
|
|
22
22
|
const { announce } = useAnnounce();
|
|
23
|
+
const previousValueRef = React.useRef(value);
|
|
24
|
+
const pendingAnnouncementRef = React.useRef(null);
|
|
25
|
+
const announcePage = useEventCallback(()=>{
|
|
26
|
+
const pendingValue = pendingAnnouncementRef.current;
|
|
27
|
+
const active = carouselWalker.active();
|
|
28
|
+
if (pendingValue === null || (active === null || active === void 0 ? void 0 : active.value) !== pendingValue) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
pendingAnnouncementRef.current = null;
|
|
32
|
+
const text = announcement === null || announcement === void 0 ? void 0 : announcement(pendingValue);
|
|
33
|
+
if (text) {
|
|
34
|
+
announce(text, {
|
|
35
|
+
polite: true
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
useIsomorphicLayoutEffect(()=>{
|
|
40
|
+
if (!announcement) {
|
|
41
|
+
pendingAnnouncementRef.current = null;
|
|
42
|
+
}
|
|
43
|
+
if (previousValueRef.current === value) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
previousValueRef.current = value;
|
|
47
|
+
pendingAnnouncementRef.current = null;
|
|
48
|
+
if (value === null || !announcement) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
pendingAnnouncementRef.current = value;
|
|
52
|
+
announcePage();
|
|
53
|
+
}, [
|
|
54
|
+
value,
|
|
55
|
+
announcement,
|
|
56
|
+
announcePage
|
|
57
|
+
]);
|
|
23
58
|
if (process.env.NODE_ENV !== 'production') {
|
|
24
59
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
25
60
|
React.useEffect(()=>{
|
|
@@ -50,7 +85,8 @@ export function useCarousel_unstable(options) {
|
|
|
50
85
|
const config = {
|
|
51
86
|
attributes: true,
|
|
52
87
|
attributeFilter: [
|
|
53
|
-
CAROUSEL_ITEM
|
|
88
|
+
CAROUSEL_ITEM,
|
|
89
|
+
CAROUSEL_ACTIVE_ITEM
|
|
54
90
|
],
|
|
55
91
|
childList: true,
|
|
56
92
|
subtree: true
|
|
@@ -60,14 +96,14 @@ export function useCarousel_unstable(options) {
|
|
|
60
96
|
for (const mutation of mutationList){
|
|
61
97
|
for (const addedNode of Array.from(mutation.addedNodes)){
|
|
62
98
|
if (isHTMLElement(addedNode) && addedNode.hasAttribute(CAROUSEL_ITEM)) {
|
|
99
|
+
var _ref;
|
|
63
100
|
const newValue = addedNode.getAttribute(CAROUSEL_ITEM);
|
|
64
101
|
const newNode = carouselWalker.find(newValue);
|
|
65
102
|
if (!(newNode === null || newNode === void 0 ? void 0 : newNode.value)) {
|
|
66
103
|
return;
|
|
67
104
|
}
|
|
68
105
|
const previousNode = carouselWalker.prevPage(newNode === null || newNode === void 0 ? void 0 : newNode.value);
|
|
69
|
-
|
|
70
|
-
store.insertValue(newValue, (_previousNode_value = previousNode === null || previousNode === void 0 ? void 0 : previousNode.value) !== null && _previousNode_value !== void 0 ? _previousNode_value : null);
|
|
106
|
+
store.insertValue(newValue, (_ref = previousNode === null || previousNode === void 0 ? void 0 : previousNode.value) !== null && _ref !== void 0 ? _ref : null);
|
|
71
107
|
}
|
|
72
108
|
}
|
|
73
109
|
for (const removedNode of Array.from(mutation.removedNodes)){
|
|
@@ -77,6 +113,8 @@ export function useCarousel_unstable(options) {
|
|
|
77
113
|
}
|
|
78
114
|
}
|
|
79
115
|
}
|
|
116
|
+
// Selector-based context updates can commit cards after the carousel's layout effect.
|
|
117
|
+
announcePage();
|
|
80
118
|
};
|
|
81
119
|
// Create an observer instance linked to the callback function
|
|
82
120
|
const observer = new win.MutationObserver(callback);
|
|
@@ -85,8 +123,10 @@ export function useCarousel_unstable(options) {
|
|
|
85
123
|
// Later, you can stop observing
|
|
86
124
|
return ()=>{
|
|
87
125
|
observer.disconnect();
|
|
126
|
+
pendingAnnouncementRef.current = null;
|
|
88
127
|
};
|
|
89
128
|
}, [
|
|
129
|
+
announcePage,
|
|
90
130
|
carouselWalker,
|
|
91
131
|
store,
|
|
92
132
|
win
|
|
@@ -98,12 +138,6 @@ export function useCarousel_unstable(options) {
|
|
|
98
138
|
type: 'click',
|
|
99
139
|
value: newValue
|
|
100
140
|
});
|
|
101
|
-
const announceText = announcement === null || announcement === void 0 ? void 0 : announcement(newValue);
|
|
102
|
-
if (announceText) {
|
|
103
|
-
announce(announceText, {
|
|
104
|
-
polite: true
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
141
|
});
|
|
108
142
|
const selectPageByDirection = useEventCallback((event, direction)=>{
|
|
109
143
|
const active = carouselWalker.active();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/Carousel.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement, useMergedRefs, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport { useAnnounce, useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { CAROUSEL_ITEM } from './constants';\nimport { useCarouselWalker_unstable } from './useCarouselWalker';\nimport { createCarouselStore } from './createCarouselStore';\nimport type { CarouselStore, UseCarouselOptions } from './Carousel.types';\nimport type { CarouselContextValue } from './CarouselContext';\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 carouselRef: React.RefObject<HTMLDivElement | null>;\n carousel: {\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>, newValue: string) => void;\n };\n} {\n const { announcement, onValueChange, onFinish } = options;\n\n const { targetDocument } = useFluent();\n const win = targetDocument?.defaultView;\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 const { announce } = useAnnounce();\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 if (!win) {\n return;\n }\n\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 win.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, win]);\n\n const updateSlide = useEventCallback(\n (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>, newValue: string) => {\n setValue(newValue);\n onValueChange?.(event, { event, type: 'click', value: newValue });\n\n const announceText = announcement?.(newValue);\n if (announceText) {\n announce(announceText, { polite: true });\n }\n },\n );\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 updateSlide(event, newPage?.value);\n } else {\n onFinish?.(event, { event, type: 'click', value: active?.value });\n }\n });\n\n return {\n carouselRef: useMergedRefs(rootRef, carouselRef),\n carousel: {\n store,\n value,\n selectPageByDirection,\n selectPageByValue: updateSlide,\n },\n };\n}\n"],"names":["React","isHTMLElement","useMergedRefs","useControllableState","useEventCallback","useAnnounce","useFluent_unstable","useFluent","CAROUSEL_ITEM","useCarouselWalker_unstable","createCarouselStore","useCarousel_unstable","options","announcement","onValueChange","onFinish","targetDocument","win","defaultView","ref","carouselRef","walker","carouselWalker","store","useState","value","setValue","defaultState","defaultValue","state","initialState","rootRef","useRef","announce","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","updateSlide","event","type","announceText","polite","selectPageByDirection","direction","active","newPage","nextPage","carousel","selectPageByValue"],"mappings":"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"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/Carousel.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n isHTMLElement,\n useMergedRefs,\n useControllableState,\n useEventCallback,\n useIsomorphicLayoutEffect,\n} from '@fluentui/react-utilities';\nimport { useAnnounce, useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from './constants';\nimport { useCarouselWalker_unstable } from './useCarouselWalker';\nimport { createCarouselStore } from './createCarouselStore';\nimport type { CarouselStore, UseCarouselOptions } from './Carousel.types';\nimport type { CarouselContextValue } from './CarouselContext';\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 carouselRef: React.RefObject<HTMLDivElement | null>;\n carousel: {\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>, newValue: string) => void;\n };\n} {\n const { announcement, onValueChange, onFinish } = options;\n\n const { targetDocument } = useFluent();\n const win = targetDocument?.defaultView;\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 const { announce } = useAnnounce();\n\n const previousValueRef = React.useRef(value);\n const pendingAnnouncementRef = React.useRef<string | null>(null);\n\n const announcePage = useEventCallback(() => {\n const pendingValue = pendingAnnouncementRef.current;\n const active = carouselWalker.active();\n if (pendingValue === null || active?.value !== pendingValue) {\n return;\n }\n\n pendingAnnouncementRef.current = null;\n const text = announcement?.(pendingValue);\n if (text) {\n announce(text, { polite: true });\n }\n });\n\n useIsomorphicLayoutEffect(() => {\n if (!announcement) {\n pendingAnnouncementRef.current = null;\n }\n\n if (previousValueRef.current === value) {\n return;\n }\n\n previousValueRef.current = value;\n pendingAnnouncementRef.current = null;\n if (value === null || !announcement) {\n return;\n }\n\n pendingAnnouncementRef.current = value;\n announcePage();\n }, [value, announcement, announcePage]);\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 if (!win) {\n return;\n }\n\n const config: MutationObserverInit = {\n attributes: true,\n attributeFilter: [CAROUSEL_ITEM, CAROUSEL_ACTIVE_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 // Selector-based context updates can commit cards after the carousel's layout effect.\n announcePage();\n };\n\n // Create an observer instance linked to the callback function\n const observer = new win.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 pendingAnnouncementRef.current = null;\n };\n }, [announcePage, carouselWalker, store, win]);\n\n const updateSlide = useEventCallback(\n (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>, newValue: string) => {\n setValue(newValue);\n onValueChange?.(event, { event, type: 'click', value: newValue });\n },\n );\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 updateSlide(event, newPage?.value);\n } else {\n onFinish?.(event, { event, type: 'click', value: active?.value });\n }\n });\n\n return {\n carouselRef: useMergedRefs(rootRef, carouselRef),\n carousel: {\n store,\n value,\n selectPageByDirection,\n selectPageByValue: updateSlide,\n },\n };\n}\n"],"names":["React","isHTMLElement","useMergedRefs","useControllableState","useEventCallback","useIsomorphicLayoutEffect","useAnnounce","useFluent_unstable","useFluent","CAROUSEL_ACTIVE_ITEM","CAROUSEL_ITEM","useCarouselWalker_unstable","createCarouselStore","useCarousel_unstable","options","announcement","onValueChange","onFinish","targetDocument","win","defaultView","ref","carouselRef","walker","carouselWalker","store","useState","value","setValue","defaultState","defaultValue","state","initialState","rootRef","useRef","announce","previousValueRef","pendingAnnouncementRef","announcePage","pendingValue","current","active","text","polite","process","env","NODE_ENV","useEffect","console","error","allItems","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","updateSlide","event","type","selectPageByDirection","direction","newPage","nextPage","carousel","selectPageByValue"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/Carousel.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { EventData, EventHandler } 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 UseCarouselOptions = {\n /**\n * Localizes the string used to announce carousel page changes to screen reader users.\n * Runs after the destination page renders. When omitted, page changes are not announced.\n * Return an empty string to suppress an announcement.\n */\n announcement?: (newValue: string) => string;\n\n /**\n * The initial page to display in uncontrolled mode.\n */\n defaultValue?: string;\n\n /**\n * The value of the currently active page.\n */\n value?: string;\n\n /**\n * Callback to notify a page change.\n */\n onValueChange?: EventHandler<CarouselValueChangeData>;\n\n /**\n * Callback to notify when the final button step of a carousel has been activated.\n */\n onFinish?: EventHandler<CarouselValueChangeData>;\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":[],"mappings":"AA8CA,WAKE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/CarouselContext.ts"],"sourcesContent":["'use client';\n\nimport type { ContextSelector } from '@fluentui/react-context-selector';\nimport { type Context, createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type * 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","createCarouselStore","carouselContextDefaultValue","store","value","selectPageByDirection","selectPageByValue","CarouselContext","undefined","CarouselProvider","Provider","useCarouselContext_unstable","selector","ctx"],"mappings":"AAAA;AAGA,SAAuBA,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AAInG,SAASC,mBAAmB,QAAQ,2BAAwB;AAY5D,OAAO,MAAMC,8BAAoD;IAC/DC,OAAOF;IACPG,OAAO;IACPC,uBAAuB;IACrB,SAAS,GACX;IACAC,mBAAmB;IACjB,SAAS,GACX;AACF,EAAE;AAEF,MAAMC,kBAAiDR,cACrDS;AAGF,OAAO,MAAMC,mBAAmBF,gBAAgBG,QAAQ,CAAC;AAEzD,OAAO,MAAMC,8BAA8B,CAAIC,WAC7CZ,mBAAmBO,iBAAiB,CAACM,MAAMX,2BAA2B,GAAKU,SAASC,MAAM"}
|
package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.ts"],"sourcesContent":["import type { 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":"AAiBA;;CAEC,GACD,WAEqC"}
|