@fluentui/react-teaching-popover 9.7.7 → 9.7.9

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.
Files changed (285) hide show
  1. package/CHANGELOG.md +27 -2
  2. package/dist/index.d.cts +3 -2
  3. package/dist/index.d.ts +3 -2
  4. package/lib/components/TeachingPopover/TeachingPopover.js.map +1 -1
  5. package/lib/components/TeachingPopover/TeachingPopover.types.js.map +1 -1
  6. package/lib/components/TeachingPopover/index.js.map +1 -1
  7. package/lib/components/TeachingPopover/renderTeachingPopover.js.map +1 -1
  8. package/lib/components/TeachingPopover/useTeachingPopover.js +1 -1
  9. package/lib/components/TeachingPopover/useTeachingPopover.js.map +1 -1
  10. package/lib/components/TeachingPopover/useTeachingPopoverContextValues.js.map +1 -1
  11. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.js.map +1 -1
  12. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -1
  13. package/lib/components/TeachingPopoverBody/index.js.map +1 -1
  14. package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -1
  15. package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -1
  16. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js.map +1 -1
  17. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js +45 -11
  18. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -1
  19. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -1
  20. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -1
  21. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -1
  22. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -1
  23. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js +2 -2
  24. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map +1 -1
  25. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -1
  26. package/lib/components/TeachingPopoverCarousel/Carousel/constants.js.map +1 -1
  27. package/lib/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js.map +1 -1
  28. package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js.map +1 -1
  29. package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js.map +1 -1
  30. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js.map +1 -1
  31. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -1
  32. package/lib/components/TeachingPopoverCarousel/index.js.map +1 -1
  33. package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js +2 -2
  34. package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js.map +1 -1
  35. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -1
  36. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -1
  37. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js.map +1 -1
  38. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map +1 -1
  39. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -1
  40. package/lib/components/TeachingPopoverCarouselCard/index.js.map +1 -1
  41. package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -1
  42. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -1
  43. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js.map +1 -1
  44. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map +1 -1
  45. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -1
  46. package/lib/components/TeachingPopoverCarouselFooter/index.js.map +1 -1
  47. package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -1
  48. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -1
  49. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js.map +1 -1
  50. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js.map +1 -1
  51. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -1
  52. package/lib/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -1
  53. package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js +2 -2
  54. package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js.map +1 -1
  55. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -1
  56. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.js.map +1 -1
  57. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js.map +1 -1
  58. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -1
  59. package/lib/components/TeachingPopoverCarouselNav/index.js.map +1 -1
  60. package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -1
  61. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -1
  62. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js.map +1 -1
  63. package/lib/components/TeachingPopoverCarouselNav/valueIdContext.js.map +1 -1
  64. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js.map +1 -1
  65. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -1
  66. package/lib/components/TeachingPopoverCarouselNavButton/index.js.map +1 -1
  67. package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js +2 -2
  68. package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js.map +1 -1
  69. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -1
  70. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js.map +1 -1
  71. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js.map +1 -1
  72. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -1
  73. package/lib/components/TeachingPopoverCarouselPageCount/index.js.map +1 -1
  74. package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js +2 -2
  75. package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js.map +1 -1
  76. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +1 -1
  77. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -1
  78. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js.map +1 -1
  79. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.js.map +1 -1
  80. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -1
  81. package/lib/components/TeachingPopoverFooter/index.js.map +1 -1
  82. package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -1
  83. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +1 -1
  84. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -1
  85. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js.map +1 -1
  86. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.js.map +1 -1
  87. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -1
  88. package/lib/components/TeachingPopoverHeader/index.js.map +1 -1
  89. package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -1
  90. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -1
  91. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js.map +1 -1
  92. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -1
  93. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -1
  94. package/lib/components/TeachingPopoverSurface/index.js.map +1 -1
  95. package/lib/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js.map +1 -1
  96. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -1
  97. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js.map +1 -1
  98. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.js.map +1 -1
  99. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -1
  100. package/lib/components/TeachingPopoverTitle/index.js.map +1 -1
  101. package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -1
  102. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -1
  103. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleBase.js.map +1 -1
  104. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map +1 -1
  105. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -1
  106. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -1
  107. package/lib/components/TeachingPopoverTrigger/index.js.map +1 -1
  108. package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -1
  109. package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -1
  110. package/lib-commonjs/TeachingPopover.cjs +5 -5
  111. package/lib-commonjs/TeachingPopoverBody.cjs +7 -7
  112. package/lib-commonjs/TeachingPopoverCarousel.cjs +8 -8
  113. package/lib-commonjs/TeachingPopoverCarouselCard.cjs +6 -6
  114. package/lib-commonjs/TeachingPopoverCarouselFooter.cjs +6 -6
  115. package/lib-commonjs/TeachingPopoverCarouselFooterButton.cjs +7 -7
  116. package/lib-commonjs/TeachingPopoverCarouselNav.cjs +7 -7
  117. package/lib-commonjs/TeachingPopoverCarouselNavButton.cjs +7 -7
  118. package/lib-commonjs/TeachingPopoverCarouselPageCount.cjs +6 -6
  119. package/lib-commonjs/TeachingPopoverFooter.cjs +7 -7
  120. package/lib-commonjs/TeachingPopoverHeader.cjs +7 -7
  121. package/lib-commonjs/TeachingPopoverSurface.cjs +6 -6
  122. package/lib-commonjs/TeachingPopoverTitle.cjs +7 -7
  123. package/lib-commonjs/TeachingPopoverTrigger.cjs +4 -4
  124. package/lib-commonjs/components/TeachingPopover/TeachingPopover.cjs.map +1 -1
  125. package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.cjs.map +1 -1
  126. package/lib-commonjs/components/TeachingPopover/index.cjs +5 -5
  127. package/lib-commonjs/components/TeachingPopover/index.cjs.map +1 -1
  128. package/lib-commonjs/components/TeachingPopover/renderTeachingPopover.cjs.map +1 -1
  129. package/lib-commonjs/components/TeachingPopover/useTeachingPopover.cjs +1 -1
  130. package/lib-commonjs/components/TeachingPopover/useTeachingPopover.cjs.map +1 -1
  131. package/lib-commonjs/components/TeachingPopover/useTeachingPopoverContextValues.cjs.map +1 -1
  132. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.cjs.map +1 -1
  133. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.cjs.map +1 -1
  134. package/lib-commonjs/components/TeachingPopoverBody/index.cjs +7 -7
  135. package/lib-commonjs/components/TeachingPopoverBody/index.cjs.map +1 -1
  136. package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.cjs.map +1 -1
  137. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.cjs.map +1 -1
  138. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.cjs +4 -4
  139. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.cjs.map +1 -1
  140. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.cjs +4 -4
  141. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.cjs.map +1 -1
  142. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.cjs +43 -9
  143. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.cjs.map +1 -1
  144. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.cjs.map +1 -1
  145. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.cjs +4 -4
  146. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.cjs.map +1 -1
  147. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.cjs.map +1 -1
  148. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.cjs.map +1 -1
  149. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.cjs.map +1 -1
  150. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.cjs.map +1 -1
  151. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.cjs +3 -3
  152. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.cjs.map +1 -1
  153. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/createCarouselStore.cjs.map +1 -1
  154. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselValues.cjs.map +1 -1
  155. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.cjs.map +1 -1
  156. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.cjs.map +1 -1
  157. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.cjs.map +1 -1
  158. package/lib-commonjs/components/TeachingPopoverCarousel/index.cjs +8 -8
  159. package/lib-commonjs/components/TeachingPopoverCarousel/index.cjs.map +1 -1
  160. package/lib-commonjs/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.cjs.map +1 -1
  161. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.cjs +3 -3
  162. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.cjs.map +1 -1
  163. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.cjs.map +1 -1
  164. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.cjs +3 -3
  165. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.cjs.map +1 -1
  166. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.cjs +3 -3
  167. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.cjs.map +1 -1
  168. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.cjs.map +1 -1
  169. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.cjs.map +1 -1
  170. package/lib-commonjs/components/TeachingPopoverCarouselCard/index.cjs +6 -6
  171. package/lib-commonjs/components/TeachingPopoverCarouselCard/index.cjs.map +1 -1
  172. package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.cjs.map +1 -1
  173. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.cjs.map +1 -1
  174. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.cjs +3 -3
  175. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.cjs.map +1 -1
  176. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.cjs +3 -3
  177. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.cjs.map +1 -1
  178. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.cjs.map +1 -1
  179. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.cjs.map +1 -1
  180. package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.cjs +6 -6
  181. package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.cjs.map +1 -1
  182. package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.cjs.map +1 -1
  183. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.cjs.map +1 -1
  184. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.cjs +3 -3
  185. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.cjs.map +1 -1
  186. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.cjs +3 -3
  187. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.cjs.map +1 -1
  188. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.cjs.map +1 -1
  189. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.cjs.map +1 -1
  190. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.cjs +7 -7
  191. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.cjs.map +1 -1
  192. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.cjs.map +1 -1
  193. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.cjs +3 -3
  194. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.cjs.map +1 -1
  195. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.cjs +3 -3
  196. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.cjs.map +1 -1
  197. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.cjs +3 -3
  198. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.raw.cjs.map +1 -1
  199. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.cjs.map +1 -1
  200. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.cjs.map +1 -1
  201. package/lib-commonjs/components/TeachingPopoverCarouselNav/index.cjs +7 -7
  202. package/lib-commonjs/components/TeachingPopoverCarouselNav/index.cjs.map +1 -1
  203. package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.cjs.map +1 -1
  204. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.cjs +3 -3
  205. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.cjs.map +1 -1
  206. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.cjs +3 -3
  207. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.cjs.map +1 -1
  208. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.cjs +3 -3
  209. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.cjs.map +1 -1
  210. package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.cjs +4 -4
  211. package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.cjs.map +1 -1
  212. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.cjs.map +1 -1
  213. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.cjs.map +1 -1
  214. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.cjs +7 -7
  215. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.cjs.map +1 -1
  216. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.cjs.map +1 -1
  217. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.cjs +3 -3
  218. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.cjs.map +1 -1
  219. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.cjs +3 -3
  220. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.cjs.map +1 -1
  221. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.cjs +3 -3
  222. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.cjs.map +1 -1
  223. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.cjs.map +1 -1
  224. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.cjs.map +1 -1
  225. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.cjs +6 -6
  226. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.cjs.map +1 -1
  227. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.cjs.map +1 -1
  228. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.cjs +1 -1
  229. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.cjs.map +1 -1
  230. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.cjs +3 -3
  231. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.cjs.map +1 -1
  232. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.cjs +3 -3
  233. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.cjs.map +1 -1
  234. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.cjs.map +1 -1
  235. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.cjs.map +1 -1
  236. package/lib-commonjs/components/TeachingPopoverFooter/index.cjs +7 -7
  237. package/lib-commonjs/components/TeachingPopoverFooter/index.cjs.map +1 -1
  238. package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.cjs.map +1 -1
  239. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.cjs +4 -4
  240. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.cjs.map +1 -1
  241. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.cjs +3 -3
  242. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.cjs.map +1 -1
  243. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.cjs +3 -3
  244. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.cjs.map +1 -1
  245. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.cjs.map +1 -1
  246. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.cjs.map +1 -1
  247. package/lib-commonjs/components/TeachingPopoverHeader/index.cjs +7 -7
  248. package/lib-commonjs/components/TeachingPopoverHeader/index.cjs.map +1 -1
  249. package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.cjs.map +1 -1
  250. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.cjs +3 -3
  251. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.cjs.map +1 -1
  252. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.cjs +3 -3
  253. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.cjs.map +1 -1
  254. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.cjs +3 -3
  255. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.cjs.map +1 -1
  256. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.cjs.map +1 -1
  257. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.cjs.map +1 -1
  258. package/lib-commonjs/components/TeachingPopoverSurface/index.cjs +6 -6
  259. package/lib-commonjs/components/TeachingPopoverSurface/index.cjs.map +1 -1
  260. package/lib-commonjs/components/TeachingPopoverSurface/renderTeachingPopoverSurface.cjs.map +1 -1
  261. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.cjs.map +1 -1
  262. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.cjs +3 -3
  263. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.cjs.map +1 -1
  264. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.cjs +3 -3
  265. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.cjs.map +1 -1
  266. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.cjs.map +1 -1
  267. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.cjs.map +1 -1
  268. package/lib-commonjs/components/TeachingPopoverTitle/index.cjs +7 -7
  269. package/lib-commonjs/components/TeachingPopoverTitle/index.cjs.map +1 -1
  270. package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.cjs.map +1 -1
  271. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.cjs.map +1 -1
  272. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleBase.cjs.map +1 -1
  273. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.cjs +3 -3
  274. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.cjs.map +1 -1
  275. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.cjs +3 -3
  276. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.cjs.map +1 -1
  277. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.cjs.map +1 -1
  278. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.cjs.map +1 -1
  279. package/lib-commonjs/components/TeachingPopoverTrigger/index.cjs +4 -4
  280. package/lib-commonjs/components/TeachingPopoverTrigger/index.cjs.map +1 -1
  281. package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.cjs.map +1 -1
  282. package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.cjs.map +1 -1
  283. package/lib-commonjs/index.cjs +75 -75
  284. package/lib-commonjs/index.cjs.map +1 -1
  285. package/package.json +8 -8
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- teachingPopoverBodyClassNames: function() {
13
+ get teachingPopoverBodyClassNames () {
14
14
  return teachingPopoverBodyClassNames;
15
15
  },
16
- useMediaStyles: function() {
16
+ get useMediaStyles () {
17
17
  return useMediaStyles;
18
18
  },
19
- useTeachingPopoverBodyStyles_unstable: function() {
19
+ get useTeachingPopoverBodyStyles_unstable () {
20
20
  return useTeachingPopoverBodyStyles_unstable;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useTeachingPopoverBodyStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nexport const teachingPopoverBodyClassNames = {\n root: 'fui-TeachingPopoverBody',\n media: 'fui-TeachingPopoverBody__media'\n};\nconst popoverBodyDimension = 288;\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});\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n paddingBottom: '12px'\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverBodyStyles_unstable = (state)=>{\n const { mediaLength } = state;\n const styles = useStyles();\n const mediaStyles = useMediaStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverBodyClassNames.root, styles.root, state.root.className);\n if (state.media) {\n // eslint-disable-next-line react-hooks/immutability\n state.media.className = mergeClasses(teachingPopoverBodyClassNames.media, mediaStyles.base, mediaStyles[mediaLength], state.media.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","teachingPopoverBodyClassNames","root","media","popoverBodyDimension","useMediaStyles","base","Bw0ie65","Br312pm","nk6f5a","Ijaq50","Bq1tomu","B68tc82","Bmxbyg5","Bpg54ce","a9b677","jrapky","ha4doy","Brf1p80","mc9l5x","short","Bubjx69","Bfd67p1","medium","tall","d","p","t","useStyles","Beiy3e4","Byoj8tv","useTeachingPopoverBodyStyles_unstable","state","mediaLength","styles","mediaStyles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAECE,6BAA6B;;;kBAKf;;;yCAoCgE;eAArC8B;;;uBA1Cb,gBAAgB;AAClD,sCAAsC;IACzC7B,IAAI,EAAE,yBAAyB;IAC/BC,KAAK,EAAE;AACX,CAAC;AACD,MAAMC,oBAAoB,GAAG,GAAG;AACzB,MAAMC,iBAAc,WAAA,OAAGN,eAAA,EAAA;IAAAO,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,KAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,MAAA,EAAA;QAAAF,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAE,IAAA,EAAA;QAAAH,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAG,CAAA,EAAA;QAAA;YAAA;YAAA;gBAAAC,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;YAAA;YAAA;gBAAAA,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CA4B7B,CAAC;AACF,MAAMC,SAAS,GAAA,WAAA,OAAG7B,eAAA,EAAA;IAAAG,IAAA,EAAA;QAAAiB,MAAA,EAAA;QAAAU,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAL,CAAA,EAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAMjB,CAAC;AAC8C,+CAA+CO,KAAK,IAAG;IACnG,MAAM,EAAEC,WAAAA,EAAa,GAAGD,KAAK;IAC7B,MAAME,MAAM,GAAGN,SAAS,CAAC,CAAC;IAC1B,MAAMO,WAAW,GAAG9B,cAAc,CAAC,CAAC;IACpC,oDAAA;IACA2B,KAAK,CAAC9B,IAAI,CAACkC,SAAS,GAAGpC,uBAAY,EAACC,6BAA6B,CAACC,IAAI,EAAEgC,MAAM,CAAChC,IAAI,EAAE8B,KAAK,CAAC9B,IAAI,CAACkC,SAAS,CAAC;IAC1G,IAAIJ,KAAK,CAAC7B,KAAK,EAAE;QACb,oDAAA;QACA6B,KAAK,CAAC7B,KAAK,CAACiC,SAAS,OAAGpC,mBAAY,EAACC,6BAA6B,CAACE,KAAK,EAAEgC,WAAW,CAAC7B,IAAI,EAAE6B,WAAW,CAACF,WAAW,CAAC,EAAED,KAAK,CAAC7B,KAAK,CAACiC,SAAS,CAAC;IAChJ;IACA,OAAOJ,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTeachingPopoverBodyStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nexport const teachingPopoverBodyClassNames = {\n root: 'fui-TeachingPopoverBody',\n media: 'fui-TeachingPopoverBody__media'\n};\nconst popoverBodyDimension = 288;\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});\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n paddingBottom: '12px'\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverBodyStyles_unstable = (state)=>{\n const { mediaLength } = state;\n const styles = useStyles();\n const mediaStyles = useMediaStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverBodyClassNames.root, styles.root, state.root.className);\n if (state.media) {\n // eslint-disable-next-line react-hooks/immutability\n state.media.className = mergeClasses(teachingPopoverBodyClassNames.media, mediaStyles.base, mediaStyles[mediaLength], state.media.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","teachingPopoverBodyClassNames","root","media","popoverBodyDimension","useMediaStyles","base","Bw0ie65","Br312pm","nk6f5a","Ijaq50","Bq1tomu","B68tc82","Bmxbyg5","Bpg54ce","a9b677","jrapky","ha4doy","Brf1p80","mc9l5x","short","Bubjx69","Bfd67p1","medium","tall","d","p","t","useStyles","Beiy3e4","Byoj8tv","useTeachingPopoverBodyStyles_unstable","state","mediaLength","styles","mediaStyles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAECE,6BAA6B;;;;;;QAyCY8B,qCAAqC;;;;uBA1ClD,gBAAgB;AAClD,sCAAsC;IACzC7B,IAAI,EAAE,yBAAyB;IAC/BC,KAAK,EAAE;AACX,CAAC;AACD,MAAMC,oBAAoB,GAAG,GAAG;AACzB,MAAMC,cAAc,GAAA,WAAA,OAAGN,eAAA,EAAA;IAAAO,IAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,E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AAIJ,KAAK,CAAC7B,KAAK,EAAE;QACb,oDAAA;QACA6B,KAAK,CAAC7B,KAAK,CAACiC,SAAS,OAAGpC,mBAAY,EAACC,6BAA6B,CAACE,KAAK,EAAEgC,WAAW,CAAC7B,IAAI,EAAE6B,WAAW,CAACF,WAAW,CAAC,EAAED,KAAK,CAAC7B,KAAK,CAACiC,SAAS,CAAC;IAChJ;IACA,OAAOJ,KAAK;AAChB,CAAC"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- teachingPopoverBodyClassNames: function() {
13
+ get teachingPopoverBodyClassNames () {
14
14
  return teachingPopoverBodyClassNames;
15
15
  },
16
- useMediaStyles: function() {
16
+ get useMediaStyles () {
17
17
  return useMediaStyles;
18
18
  },
19
- useTeachingPopoverBodyStyles_unstable: function() {
19
+ get useTeachingPopoverBodyStyles_unstable () {
20
20
  return useTeachingPopoverBodyStyles_unstable;
21
21
  }
22
22
  });
@@ -1 +1 @@
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;;;;;;;;;;;;IAMaE,6BAAAA;;;kBAOAI;;;yCAuCAiB;eAAAA;;;uBAlD4B,iBAAiB;AAInD,sCAAgF;IACrFpB,MAAM;IACNC,OAAO;AACT,EAAE;AAEF,MAAMC,uBAAuB;AAEtB,MAAMC,qBAAiBN,iBAAAA,EAAW;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,gBAAYpB,iBAAAA,EAAW;IAC3BG,MAAM;QACJW,SAAS;QACTO,eAAe;QACfC,eAAe;IACjB;AACF;AAGO,8CAA8C,CAACE;IACpD,MAAM,EAAEC,WAAW,EAAE,GAAGD;IACxB,MAAME,SAASN;IACf,MAAMO,cAAcrB;IAEpB,oDAAoD;IACpDkB,MAAMrB,IAAI,CAACyB,SAAS,OAAG3B,mBAAAA,EAAaC,8BAA8BC,IAAI,EAAEuB,OAAOvB,IAAI,EAAEqB,MAAMrB,IAAI,CAACyB,SAAS;IAEzG,IAAIJ,MAAMpB,KAAK,EAAE;QACf,oDAAoD;QACpDoB,MAAMpB,KAAK,CAACwB,SAAS,OAAG3B,mBAAAA,EACtBC,8BAA8BE,KAAK,EACnCuB,YAAYpB,IAAI,EAChBoB,WAAW,CAACF,YAAY,EACxBD,MAAMpB,KAAK,CAACwB,SAAS;IAEzB;IAEA,OAAOJ;AACT,EAAE"}
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;;;;;;;;;;;;QAMaE;;;;;;QA8CAqB;;;;uBAlD4B,iBAAiB;AAInD,sCAAgF;IACrFpB,MAAM;IACNC,OAAO;AACT,EAAE;AAEF,MAAMC,uBAAuB;AAEtB,MAAMC,qBAAiBN,iBAAAA,EAAW;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,gBAAYpB,iBAAAA,EAAW;IAC3BG,MAAM;QACJW,SAAS;QACTO,eAAe;QACfC,eAAe;IACjB;AACF;AAGO,8CAA8C,CAACE;IACpD,MAAM,EAAEC,WAAW,EAAE,GAAGD;IACxB,MAAME,SAASN;IACf,MAAMO,cAAcrB;IAEpB,oDAAoD;IACpDkB,MAAMrB,IAAI,CAACyB,SAAS,OAAG3B,mBAAAA,EAAaC,8BAA8BC,IAAI,EAAEuB,OAAOvB,IAAI,EAAEqB,MAAMrB,IAAI,CAACyB,SAAS;IAEzG,IAAIJ,MAAMpB,KAAK,EAAE;QACf,oDAAoD;QACpDoB,MAAMpB,KAAK,CAACwB,SAAS,OAAG3B,mBAAAA,EACtBC,8BAA8BE,KAAK,EACnCuB,YAAYpB,IAAI,EAChBoB,WAAW,CAACF,YAAY,EACxBD,MAAMpB,KAAK,CAACwB,SAAS;IAEzB;IAEA,OAAOJ;AACT,EAAE"}
@@ -29,6 +29,41 @@ function useCarousel_unstable(options) {
29
29
  });
30
30
  const rootRef = _react.useRef(null);
31
31
  const { announce } = (0, _reactsharedcontexts.useAnnounce)();
32
+ const previousValueRef = _react.useRef(value);
33
+ const pendingAnnouncementRef = _react.useRef(null);
34
+ const announcePage = (0, _reactutilities.useEventCallback)(()=>{
35
+ const pendingValue = pendingAnnouncementRef.current;
36
+ const active = carouselWalker.active();
37
+ if (pendingValue === null || (active === null || active === void 0 ? void 0 : active.value) !== pendingValue) {
38
+ return;
39
+ }
40
+ pendingAnnouncementRef.current = null;
41
+ const text = announcement === null || announcement === void 0 ? void 0 : announcement(pendingValue);
42
+ if (text) {
43
+ announce(text, {
44
+ polite: true
45
+ });
46
+ }
47
+ });
48
+ (0, _reactutilities.useIsomorphicLayoutEffect)(()=>{
49
+ if (!announcement) {
50
+ pendingAnnouncementRef.current = null;
51
+ }
52
+ if (previousValueRef.current === value) {
53
+ return;
54
+ }
55
+ previousValueRef.current = value;
56
+ pendingAnnouncementRef.current = null;
57
+ if (value === null || !announcement) {
58
+ return;
59
+ }
60
+ pendingAnnouncementRef.current = value;
61
+ announcePage();
62
+ }, [
63
+ value,
64
+ announcement,
65
+ announcePage
66
+ ]);
32
67
  if (process.env.NODE_ENV !== 'production') {
33
68
  // eslint-disable-next-line react-hooks/rules-of-hooks
34
69
  _react.useEffect(()=>{
@@ -59,7 +94,8 @@ function useCarousel_unstable(options) {
59
94
  const config = {
60
95
  attributes: true,
61
96
  attributeFilter: [
62
- _constants.CAROUSEL_ITEM
97
+ _constants.CAROUSEL_ITEM,
98
+ _constants.CAROUSEL_ACTIVE_ITEM
63
99
  ],
64
100
  childList: true,
65
101
  subtree: true
@@ -69,14 +105,14 @@ function useCarousel_unstable(options) {
69
105
  for (const mutation of mutationList){
70
106
  for (const addedNode of Array.from(mutation.addedNodes)){
71
107
  if ((0, _reactutilities.isHTMLElement)(addedNode) && addedNode.hasAttribute(_constants.CAROUSEL_ITEM)) {
108
+ var _ref;
72
109
  const newValue = addedNode.getAttribute(_constants.CAROUSEL_ITEM);
73
110
  const newNode = carouselWalker.find(newValue);
74
111
  if (!(newNode === null || newNode === void 0 ? void 0 : newNode.value)) {
75
112
  return;
76
113
  }
77
114
  const previousNode = carouselWalker.prevPage(newNode === null || newNode === void 0 ? void 0 : newNode.value);
78
- var _previousNode_value;
79
- store.insertValue(newValue, (_previousNode_value = previousNode === null || previousNode === void 0 ? void 0 : previousNode.value) !== null && _previousNode_value !== void 0 ? _previousNode_value : null);
115
+ store.insertValue(newValue, (_ref = previousNode === null || previousNode === void 0 ? void 0 : previousNode.value) !== null && _ref !== void 0 ? _ref : null);
80
116
  }
81
117
  }
82
118
  for (const removedNode of Array.from(mutation.removedNodes)){
@@ -86,6 +122,8 @@ function useCarousel_unstable(options) {
86
122
  }
87
123
  }
88
124
  }
125
+ // Selector-based context updates can commit cards after the carousel's layout effect.
126
+ announcePage();
89
127
  };
90
128
  // Create an observer instance linked to the callback function
91
129
  const observer = new win.MutationObserver(callback);
@@ -94,8 +132,10 @@ function useCarousel_unstable(options) {
94
132
  // Later, you can stop observing
95
133
  return ()=>{
96
134
  observer.disconnect();
135
+ pendingAnnouncementRef.current = null;
97
136
  };
98
137
  }, [
138
+ announcePage,
99
139
  carouselWalker,
100
140
  store,
101
141
  win
@@ -107,12 +147,6 @@ function useCarousel_unstable(options) {
107
147
  type: 'click',
108
148
  value: newValue
109
149
  });
110
- const announceText = announcement === null || announcement === void 0 ? void 0 : announcement(newValue);
111
- if (announceText) {
112
- announce(announceText, {
113
- polite: true
114
- });
115
- }
116
150
  });
117
151
  const selectPageByDirection = (0, _reactutilities.useEventCallback)((event, direction)=>{
118
152
  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":"AAAA;;;;;+BA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A,KAAAA,IAAAA,OAAQ1D,KAAK;YAAC;QACjE;IACF;IAEA,OAAO;QACLL,iBAAalB,6BAAAA,EAAc6B,SAASX;QACpCkE,UAAU;YACR/D;YACAE;YACAwD;YACAM,mBAAmBX;QACrB;IACF;AACF"}
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":"AAAA;;;;;+BAoBgBa;;;;;;;iEAlBO,QAAQ;gCAOxB,4BAA4B;qCAC0B,kCAAkC;2BAE3C,iBAAc;mCACvB,yBAAsB;qCAC7B,2BAAwB;AAMrD,8BAA8BC,OAA2B;IAY9D,MAAM,EAAEC,YAAY,EAAEC,aAAa,EAAEC,QAAQ,EAAE,GAAGH;IAElD,MAAM,EAAEI,cAAc,EAAE,OAAGV,uCAAAA;IAC3B,MAAMW,MAAMD,mBAAAA,QAAAA,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAgBE,WAAW;IACvC,MAAM,EAAEC,KAAKC,WAAW,EAAEC,QAAQC,cAAc,EAAE,OAAGb,6CAAAA;IACrD,MAAM,CAACc,MAAM,GAAGzB,OAAM0B,QAAQ,CAAC,QAAMd,wCAAAA;IAErC,MAAM,CAACe,OAAOC,SAAS,OAAGzB,oCAAAA,EAAqB;QAC7C0B,cAAcf,QAAQgB,YAAY;QAClCC,OAAOjB,QAAQa,KAAK;QACpBK,cAAc;IAChB;IACA,MAAMC,UAAUjC,OAAMkC,MAAM,CAAiB;IAE7C,MAAM,EAAEC,QAAQ,EAAE,OAAG7B,gCAAAA;IAErB,MAAM8B,mBAAmBpC,OAAMkC,MAAM,CAACP;IACtC,MAAMU,yBAAyBrC,OAAMkC,MAAM,CAAgB;IAE3D,MAAMI,mBAAelC,gCAAAA,EAAiB;QACpC,MAAMmC,eAAeF,uBAAuBG,OAAO;QACnD,MAAMC,SAASjB,eAAeiB,MAAM;QACpC,IAAIF,iBAAiB,QAAQE,CAAAA,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,KAAAA,IAAAA,OAAQd,KAAAA,AAAK,MAAKY,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AE1C,2DAA2D;QAC3DkB,SAASE,OAAO,CAAClD,QAAQO,OAAO,EAAGkB;QAEnC,gCAAgC;QAChC,OAAO;YACLuB,SAASG,UAAU;YACnB/C,uBAAuBG,OAAO,GAAG;QACnC;IACF,GAAG;QAACF;QAAcd;QAAgBC;QAAON;KAAI;IAE7C,MAAMkE,kBAAcjF,gCAAAA,EAClB,CAACkF,OAAgEf;QAC/D3C,SAAS2C;QACTvD,kBAAAA,QAAAA,kBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,cAAgBsE,OAAO;YAAEA;YAAOC,MAAM;YAAS5D,OAAO4C;QAAS;IACjE;IAGF,MAAMiB,wBAAuEpF,oCAAAA,EAAiB,CAACkF,OAAOG;QACpG,MAAMhD,SAASjB,eAAeiB,MAAM;QAEpC,IAAI,EAACA,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,KAAAA,IAAAA,OAAQd,KAAAA,AAAK,GAAE;YAClB;QACF;QAEA,MAAM+D,UACJD,cAAc,SAASjE,eAAemD,QAAQ,CAAClC,OAAOd,KAAK,IAAIH,eAAemE,QAAQ,CAAClD,OAAOd,KAAK;QAErG,IAAI+D,SAAS;YACXL,YAAYC,OAAOI,YAAAA,QAAAA,YAAAA,KAAAA,IAAAA,KAAAA,IAAAA,QAAS/D,KAAK;QACnC,OAAO;YACLV,aAAAA,QAAAA,aAAAA,KAAAA,IAAAA,KAAAA,IAAAA,SAAWqE,OAAO;gBAAEA;gBAAOC,MAAM;gBAAS5D,KAAK,EAAEc,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,KAAAA,IAAAA,OAAQd,KAAK;YAAC;QACjE;IACF;IAEA,OAAO;QACLL,iBAAapB,6BAAAA,EAAc+B,SAASX;QACpCsE,UAAU;YACRnE;YACAE;YACA6D;YACAK,mBAAmBR;QACrB;IACF;AACF"}
@@ -1 +1 @@
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 * Defaults to: undefined\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":""}
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":""}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- CarouselProvider: function() {
13
+ get CarouselProvider () {
14
14
  return CarouselProvider;
15
15
  },
16
- carouselContextDefaultValue: function() {
16
+ get carouselContextDefaultValue () {
17
17
  return carouselContextDefaultValue;
18
18
  },
19
- useCarouselContext_unstable: function() {
19
+ get useCarouselContext_unstable () {
20
20
  return useCarouselContext_unstable;
21
21
  }
22
22
  });
@@ -1 +1 @@
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;;;;;;;;;;;;oBAkCaU;;;+BAfAP;;;+BAiBAS;;;;sCAjCmD,mCAAmC;qCAI/D,2BAAwB;AAYrD,MAAMT,8BAAoD;IAC/DC,WAAOF,wCAAAA;IACPG,OAAO;IACPC,uBAAuB;IACrB,SAAS,GACX;IACAC,mBAAmB;IACjB,SAAS,GACX;AACF,EAAE;AAEF,MAAMC,sBAAiDR,mCAAAA,EACrDS;AAGK,MAAMC,mBAAmBF,gBAAgBG,QAAQ,CAAC;AAElD,MAAMC,8BAA8B,CAAIC,eAC7CZ,wCAAAA,EAAmBO,iBAAiB,CAACM,MAAMX,2BAA2B,GAAKU,SAASC,MAAM"}
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;;;;;;;;;;;;QAkCaU;;;;;;;;;;sCA/BmD,mCAAmC;qCAI/D,2BAAwB;AAYrD,MAAMP,8BAAoD;IAC/DC,WAAOF,wCAAAA;IACPG,OAAO;IACPC,uBAAuB;IACrB,SAAS,GACX;IACAC,mBAAmB;IACjB,SAAS,GACX;AACF,EAAE;AAEF,MAAMC,sBAAiDR,mCAAAA,EACrDS;AAGK,yBAAyBD,gBAAgBG,QAAQ,CAAC;AAElD,MAAMC,8BAA8B,CAAIC,eAC7CZ,wCAAAA,EAAmBO,iBAAiB,CAACM,MAAMX,2BAA2B,GAAKU,SAASC,MAAM"}
@@ -1 +1 @@
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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport type { CarouselItemProps } from './CarouselItem.types';\nimport { useCarouselItem_unstable } from './useCarouselItem';\nimport { renderCarouselItem_unstable } from './renderCarouselItem';\n\n/**\n * Define a CarouselItem, using the `useCarouselItem_unstable` and 'renderCarouselItem_unstable' hooks.\n * It has no styling opinions.\n */\nexport const CarouselItem: ForwardRefComponent<CarouselItemProps> = React.forwardRef((props, ref) => {\n const state = useCarouselItem_unstable(props, ref);\n\n return renderCarouselItem_unstable(state);\n});\n\nCarouselItem.displayName = 'CarouselItem';\n"],"names":["React","useCarouselItem_unstable","renderCarouselItem_unstable","CarouselItem","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;iCAIU,uBAAoB;oCACjB,0BAAuB;AAM5D,MAAMG,eAAAA,WAAAA,GAAuDH,OAAMI,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,YAAQN,yCAAAA,EAAyBI,OAAOC;IAE9C,WAAOJ,+CAAAA,EAA4BK;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../../../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport type { CarouselItemProps } from './CarouselItem.types';\nimport { useCarouselItem_unstable } from './useCarouselItem';\nimport { renderCarouselItem_unstable } from './renderCarouselItem';\n\n/**\n * Define a CarouselItem, using the `useCarouselItem_unstable` and 'renderCarouselItem_unstable' hooks.\n * It has no styling opinions.\n */\nexport const CarouselItem: ForwardRefComponent<CarouselItemProps> = React.forwardRef((props, ref) => {\n const state = useCarouselItem_unstable(props, ref);\n\n return renderCarouselItem_unstable(state);\n});\n\nCarouselItem.displayName = 'CarouselItem';\n"],"names":["React","useCarouselItem_unstable","renderCarouselItem_unstable","CarouselItem","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;iCAIU,uBAAoB;oCACjB,0BAAuB;AAM5D,MAAMG,eAAAA,WAAAA,GAAuDH,OAAMI,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,YAAQN,yCAAAA,EAAyBI,OAAOC;IAE9C,WAAOJ,+CAAAA,EAA4BK;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { CarouselItemState, CarouselItemSlots } from './CarouselItem.types';\n\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */\nexport const renderCarouselItem_unstable = (state: CarouselItemState): JSXElement => {\n assertSlots<CarouselItemSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderCarouselItem_unstable","state","root"],"mappings":";;;;;;;;;;4BACA,gDAAiD;gCAErB,4BAA4B;AAOjD,MAAMC,8BAA8B,CAACC;QAC1CF,2BAAAA,EAA+BE;IAE/B,OAAA,WAAA,OAAO,eAAA,EAACA,MAAMC,IAAI,EAAA,CAAA;AACpB,EAAE"}
1
+ {"version":3,"sources":["../../../../../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { CarouselItemState, CarouselItemSlots } from './CarouselItem.types';\n\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */\nexport const renderCarouselItem_unstable = (state: CarouselItemState): JSXElement => {\n assertSlots<CarouselItemSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderCarouselItem_unstable","state","root"],"mappings":";;;;;;;;;;;gCACA,gDAAiD,GAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAOjD,MAAMC,8BAA8B,CAACC;QAC1CF,2BAAAA,EAA+BE;IAE/B,OAAA,WAAA,OAAO,eAAA,EAACA,MAAMC,IAAI,EAAA,CAAA;AACpB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { CarouselItemProps, CarouselItemState } from './CarouselItem.types';\nimport { useCarouselContext_unstable } from '../CarouselContext';\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from '../constants';\n\nexport const useCarouselItem_unstable = (\n props: CarouselItemProps,\n ref: React.Ref<HTMLDivElement>,\n): CarouselItemState => {\n const { value } = props;\n\n const visible = useCarouselContext_unstable(c => c.value === value);\n const state: CarouselItemState = {\n value,\n visible,\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n [CAROUSEL_ITEM]: value,\n [CAROUSEL_ACTIVE_ITEM]: visible,\n hidden: !visible,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n\n if (!visible) {\n state.root.children = null;\n }\n\n return state;\n};\n"],"names":["getIntrinsicElementProps","slot","useCarouselContext_unstable","CAROUSEL_ACTIVE_ITEM","CAROUSEL_ITEM","useCarouselItem_unstable","props","ref","value","visible","c","state","components","root","always","hidden","elementType","children"],"mappings":"AAAA;;;;;+BAQaK;;;;;;gCALkC,4BAA4B;iCAE/B,wBAAqB;2BACb,kBAAe;AAE5D,iCAAiC,CACtCC,OACAC;IAEA,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAElB,MAAMG,cAAUP,4CAAAA,EAA4BQ,CAAAA,IAAKA,EAAEF,KAAK,KAAKA;IAC7D,MAAMG,QAA2B;QAC/BH;QACAC;QACAG,YAAY;YACVC,MAAM;QACR;QACAA,MAAMZ,oBAAAA,CAAKa,MAAM,CACfd,4CAAAA,EAAyB,OAAO;YAC9BO;YACA,CAACH,wBAAAA,CAAc,EAAEI;YACjB,CAACL,+BAAAA,CAAqB,EAAEM;YACxBM,QAAQ,CAACN;YACT,GAAGH,KAAK;QACV,IACA;YAAEU,aAAa;QAAM;IAEzB;IAEA,IAAI,CAACP,SAAS;QACZE,MAAME,IAAI,CAACI,QAAQ,GAAG;IACxB;IAEA,OAAON;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../../../src/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { CarouselItemProps, CarouselItemState } from './CarouselItem.types';\nimport { useCarouselContext_unstable } from '../CarouselContext';\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from '../constants';\n\nexport const useCarouselItem_unstable = (\n props: CarouselItemProps,\n ref: React.Ref<HTMLDivElement>,\n): CarouselItemState => {\n const { value } = props;\n\n const visible = useCarouselContext_unstable(c => c.value === value);\n const state: CarouselItemState = {\n value,\n visible,\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n [CAROUSEL_ITEM]: value,\n [CAROUSEL_ACTIVE_ITEM]: visible,\n hidden: !visible,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n\n if (!visible) {\n state.root.children = null;\n }\n\n return state;\n};\n"],"names":["getIntrinsicElementProps","slot","useCarouselContext_unstable","CAROUSEL_ACTIVE_ITEM","CAROUSEL_ITEM","useCarouselItem_unstable","props","ref","value","visible","c","state","components","root","always","hidden","elementType","children"],"mappings":"AAAA;;;;;+BAQaK;;;;;;gCALkC,4BAA4B;iCAE/B,wBAAqB;2BACb,kBAAe;AAE5D,iCAAiC,CACtCC,OACAC;IAEA,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAElB,MAAMG,cAAUP,4CAAAA,EAA4BQ,CAAAA,IAAKA,EAAEF,KAAK,KAAKA;IAC7D,MAAMG,QAA2B;QAC/BH;QACAC;QACAG,YAAY;YACVC,MAAM;QACR;QACAA,MAAMZ,oBAAAA,CAAKa,MAAM,CACfd,4CAAAA,EAAyB,OAAO;YAC9BO;YACA,CAACH,wBAAAA,CAAc,EAAEI;YACjB,CAACL,+BAAAA,CAAqB,EAAEM;YACxBM,QAAQ,CAACN;YACT,GAAGH,KAAK;QACV,IACA;YAAEU,aAAa;QAAM;IAEzB;IAEA,IAAI,CAACP,SAAS;QACZE,MAAME,IAAI,CAACI,QAAQ,GAAG;IACxB;IAEA,OAAON;AACT,EAAE"}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- CAROUSEL_ACTIVE_ITEM: function() {
12
+ get CAROUSEL_ACTIVE_ITEM () {
13
13
  return CAROUSEL_ACTIVE_ITEM;
14
14
  },
15
- CAROUSEL_ITEM: function() {
15
+ get CAROUSEL_ITEM () {
16
16
  return CAROUSEL_ITEM;
17
17
  }
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/constants.ts"],"sourcesContent":["export const CAROUSEL_ITEM = 'data-carousel-item';\nexport const CAROUSEL_ACTIVE_ITEM = 'data-carousel-active-item';\n"],"names":["CAROUSEL_ITEM","CAROUSEL_ACTIVE_ITEM"],"mappings":";;;;;;;;;;;wBACaC;;;iBADAD;;;;AAAN,MAAMA,gBAAgB,qBAAqB;AAC3C,MAAMC,uBAAuB,4BAA4B"}
1
+ {"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/constants.ts"],"sourcesContent":["export const CAROUSEL_ITEM = 'data-carousel-item';\nexport const CAROUSEL_ACTIVE_ITEM = 'data-carousel-active-item';\n"],"names":["CAROUSEL_ITEM","CAROUSEL_ACTIVE_ITEM"],"mappings":";;;;;;;;;;;;;;;;;;AAAO,MAAMA,gBAAgB,qBAAqB;AAC3C,MAAMC,uBAAuB,4BAA4B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/createCarouselStore.ts"],"sourcesContent":["import { type CarouselStore } from './Carousel.types';\n\nexport const createCarouselStore = (): CarouselStore => {\n let values: string[] = [];\n let listeners: Array<() => void> = [];\n\n const carouselStore = {\n clear() {\n values = [];\n emitChange();\n },\n addValue(value: string) {\n values = [...values, value];\n\n emitChange();\n },\n insertValue(value: string, prev: string | null) {\n if (!prev) {\n values = [value, ...values];\n } else {\n const pos = values.indexOf(prev);\n values.splice(pos + 1, 0, value);\n // Required to be defined as a 'new' array for useSyncExternalStore\n values = [...values];\n }\n emitChange();\n },\n removeValue(value: string) {\n const pos = values.indexOf(value);\n values.splice(pos, 1);\n // Required to be defined as a 'new' array for useSyncExternalStore\n values = [...values];\n emitChange();\n },\n subscribe(listener: () => void) {\n listeners = [...listeners, listener];\n\n return () => {\n listeners = listeners.filter(l => l !== listener);\n };\n },\n getSnapshot() {\n return values;\n },\n };\n\n function emitChange() {\n for (const listener of listeners) {\n listener();\n }\n }\n\n return carouselStore;\n};\n"],"names":["createCarouselStore","values","listeners","carouselStore","clear","emitChange","addValue","value","insertValue","prev","pos","indexOf","splice","removeValue","subscribe","listener","filter","l","getSnapshot"],"mappings":";;;;+BAEaA;;;;;;AAAN,4BAA4B;IACjC,IAAIC,SAAmB,EAAE;IACzB,IAAIC,YAA+B,EAAE;IAErC,MAAMC,gBAAgB;QACpBC;YACEH,SAAS,EAAE;YACXI;QACF;QACAC,UAASC,KAAa;YACpBN,SAAS;mBAAIA;gBAAQM;aAAM;YAE3BF;QACF;QACAG,aAAYD,KAAa,EAAEE,IAAmB;YAC5C,IAAI,CAACA,MAAM;gBACTR,SAAS;oBAACM;uBAAUN;iBAAO;YAC7B,OAAO;gBACL,MAAMS,MAAMT,OAAOU,OAAO,CAACF;gBAC3BR,OAAOW,MAAM,CAACF,MAAM,GAAG,GAAGH;gBAC1B,mEAAmE;gBACnEN,SAAS;uBAAIA;iBAAO;YACtB;YACAI;QACF;QACAQ,aAAYN,KAAa;YACvB,MAAMG,MAAMT,OAAOU,OAAO,CAACJ;YAC3BN,OAAOW,MAAM,CAACF,KAAK;YACnB,mEAAmE;YACnET,SAAS;mBAAIA;aAAO;YACpBI;QACF;QACAS,WAAUC,QAAoB;YAC5Bb,YAAY;mBAAIA;gBAAWa;aAAS;YAEpC,OAAO;gBACLb,YAAYA,UAAUc,MAAM,CAACC,CAAAA,IAAKA,MAAMF;YAC1C;QACF;QACAG;YACE,OAAOjB;QACT;IACF;IAEA,SAASI;QACP,KAAK,MAAMU,YAAYb,UAAW;YAChCa;QACF;IACF;IAEA,OAAOZ;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/createCarouselStore.ts"],"sourcesContent":["import { type CarouselStore } from './Carousel.types';\n\nexport const createCarouselStore = (): CarouselStore => {\n let values: string[] = [];\n let listeners: Array<() => void> = [];\n\n const carouselStore = {\n clear() {\n values = [];\n emitChange();\n },\n addValue(value: string) {\n values = [...values, value];\n\n emitChange();\n },\n insertValue(value: string, prev: string | null) {\n if (!prev) {\n values = [value, ...values];\n } else {\n const pos = values.indexOf(prev);\n values.splice(pos + 1, 0, value);\n // Required to be defined as a 'new' array for useSyncExternalStore\n values = [...values];\n }\n emitChange();\n },\n removeValue(value: string) {\n const pos = values.indexOf(value);\n values.splice(pos, 1);\n // Required to be defined as a 'new' array for useSyncExternalStore\n values = [...values];\n emitChange();\n },\n subscribe(listener: () => void) {\n listeners = [...listeners, listener];\n\n return () => {\n listeners = listeners.filter(l => l !== listener);\n };\n },\n getSnapshot() {\n return values;\n },\n };\n\n function emitChange() {\n for (const listener of listeners) {\n listener();\n }\n }\n\n return carouselStore;\n};\n"],"names":["createCarouselStore","values","listeners","carouselStore","clear","emitChange","addValue","value","insertValue","prev","pos","indexOf","splice","removeValue","subscribe","listener","filter","l","getSnapshot"],"mappings":";;;;+BAEaA;;;;;;AAAN,4BAA4B;IACjC,IAAIC,SAAmB,EAAE;IACzB,IAAIC,YAA+B,EAAE;IAErC,MAAMC,gBAAgB;QACpBC;YACEH,SAAS,EAAE;YACXI;QACF;QACAC,UAASC,KAAa;YACpBN,SAAS;mBAAIA;gBAAQM;aAAM;YAE3BF;QACF;QACAG,aAAYD,KAAa,EAAEE,IAAmB;YAC5C,IAAI,CAACA,MAAM;gBACTR,SAAS;oBAACM;uBAAUN;iBAAO;YAC7B,OAAO;gBACL,MAAMS,MAAMT,OAAOU,OAAO,CAACF;gBAC3BR,OAAOW,MAAM,CAACF,MAAM,GAAG,GAAGH;gBAC1B,mEAAmE;gBACnEN,SAAS;uBAAIA;iBAAO;YACtB;YACAI;QACF;QACAQ,aAAYN,KAAa;YACvB,MAAMG,MAAMT,OAAOU,OAAO,CAACJ;YAC3BN,OAAOW,MAAM,CAACF,KAAK;YACnB,mEAAmE;YACnET,SAAS;mBAAIA;aAAO;YACpBI;QACF;QACAS,WAAUC,QAAoB;YAC5Bb,YAAY;mBAAIA;gBAAWa;aAAS;YAEpC,OAAO;gBACLb,YAAYA,UAAUc,MAAM,CAACC,CAAAA,IAAKA,MAAMF;YAC1C;QACF;QACAG;YACE,OAAOjB;QACT;IACF;IAEA,SAASI;QACP,KAAK,MAAMU,YAAYb,UAAW;YAChCa;QACF;IACF;IAEA,OAAOZ;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/useCarouselValues.ts"],"sourcesContent":["'use client';\n\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\n\nimport { useCarouselContext_unstable } from './CarouselContext';\nimport type { CarouselStore } from './Carousel.types';\n\nexport function useCarouselValues_unstable<T>(getSnapshot: (values: ReturnType<CarouselStore['getSnapshot']>) => T): T {\n const store = useCarouselContext_unstable(c => c.store);\n\n return useSyncExternalStore(store.subscribe, () => getSnapshot(store.getSnapshot()));\n}\n"],"names":["useSyncExternalStore","useCarouselContext_unstable","useCarouselValues_unstable","getSnapshot","store","c","subscribe"],"mappings":"AAAA;;;;;;;;;;;sBAEqC,+BAA+B;iCAExB,uBAAoB;AAGzD,SAASE,2BAA8BC,WAAoE;IAChH,MAAMC,YAAQH,4CAAAA,EAA4BI,CAAAA,IAAKA,EAAED,KAAK;IAEtD,WAAOJ,0BAAAA,EAAqBI,MAAME,SAAS,EAAE,IAAMH,YAAYC,MAAMD,WAAW;AAClF"}
1
+ {"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/useCarouselValues.ts"],"sourcesContent":["'use client';\n\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\n\nimport { useCarouselContext_unstable } from './CarouselContext';\nimport type { CarouselStore } from './Carousel.types';\n\nexport function useCarouselValues_unstable<T>(getSnapshot: (values: ReturnType<CarouselStore['getSnapshot']>) => T): T {\n const store = useCarouselContext_unstable(c => c.store);\n\n return useSyncExternalStore(store.subscribe, () => getSnapshot(store.getSnapshot()));\n}\n"],"names":["useSyncExternalStore","useCarouselContext_unstable","useCarouselValues_unstable","getSnapshot","store","c","subscribe"],"mappings":"AAAA;;;;;;;;;;;sBAEqC,+BAA+B;iCAExB,uBAAoB;AAGzD,SAASE,2BAA8BC,WAAoE;IAChH,MAAMC,YAAQH,4CAAAA,EAA4BI,CAAAA,IAAKA,EAAED,KAAK;IAEtD,WAAOJ,0BAAAA,EAAqBI,MAAME,SAAS,EAAE,IAAMH,YAAYC,MAAMD,WAAW;AAClF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from './constants';\n\nexport type CarouselWalker = {\n find(value: string): { el: HTMLElement; value: string } | null;\n nextPage(value: string): { el: HTMLElement; value: string } | null;\n prevPage(value: string): { el: HTMLElement; value: string } | null;\n active(): { el: HTMLElement; value: string } | null;\n};\n\nexport const useCarouselWalker_unstable = (): {\n ref: React.RefCallback<HTMLDivElement>;\n walker: CarouselWalker;\n} => {\n const { targetDocument } = useFluent();\n\n const treeWalkerRef = React.useRef<TreeWalker | undefined>(targetDocument?.createTreeWalker(targetDocument.body));\n const htmlRef = React.useRef<HTMLDivElement | null>(null);\n\n const ref = React.useCallback(\n (el: HTMLDivElement | null) => {\n if (!targetDocument) {\n return;\n }\n\n if (!el) {\n return;\n }\n\n htmlRef.current = el;\n treeWalkerRef.current = targetDocument.createTreeWalker(el, NodeFilter.SHOW_ELEMENT, {\n acceptNode(node) {\n if (!isHTMLElement(node)) {\n return NodeFilter.FILTER_SKIP;\n }\n\n return node.hasAttribute(CAROUSEL_ITEM) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n },\n });\n },\n [targetDocument],\n );\n\n return {\n ref,\n walker: React.useMemo<CarouselWalker>(\n () => ({\n active() {\n if (!htmlRef.current) {\n return null;\n }\n\n const activeEl = htmlRef.current.querySelector(`[${CAROUSEL_ACTIVE_ITEM}=\"true\"]`)!;\n\n if (isHTMLElement(activeEl)) {\n return {\n el: activeEl,\n value: activeEl.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n\n return null;\n },\n find(value: string) {\n if (!treeWalkerRef.current?.currentNode || !htmlRef.current) {\n return null;\n }\n\n treeWalkerRef.current.currentNode = htmlRef.current;\n let nextNode: Node | null = null;\n while ((nextNode = treeWalkerRef.current.nextNode())) {\n if (!isHTMLElement(nextNode)) {\n continue;\n }\n\n if (nextNode.getAttribute(CAROUSEL_ITEM) === value) {\n return {\n el: nextNode,\n value: nextNode.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n }\n\n return null;\n },\n nextPage(value: string) {\n const res = this.find(value);\n if (!res || !treeWalkerRef.current?.currentNode) {\n return null;\n }\n\n treeWalkerRef.current.currentNode = res.el;\n const next = treeWalkerRef.current.nextNode();\n\n if (isHTMLElement(next)) {\n return {\n el: next,\n value: next.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n\n return null;\n },\n\n prevPage(value: string) {\n const res = this.find(value);\n if (!res || !treeWalkerRef.current?.currentNode) {\n return null;\n }\n\n treeWalkerRef.current.currentNode = res.el;\n const next = treeWalkerRef.current.previousNode();\n\n if (isHTMLElement(next)) {\n return {\n el: next,\n value: next.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n\n return null;\n },\n }),\n [],\n ),\n };\n};\n"],"names":["React","isHTMLElement","useFluent_unstable","useFluent","CAROUSEL_ACTIVE_ITEM","CAROUSEL_ITEM","useCarouselWalker_unstable","targetDocument","treeWalkerRef","useRef","createTreeWalker","body","htmlRef","ref","useCallback","el","current","NodeFilter","SHOW_ELEMENT","acceptNode","node","FILTER_SKIP","hasAttribute","FILTER_ACCEPT","walker","useMemo","active","activeEl","querySelector","value","getAttribute","find","currentNode","nextNode","nextPage","res","next","prevPage","previousNode"],"mappings":"AAAA;;;;;+BAeaM;;;;;;;iEAbU,QAAQ;gCACD,4BAA4B;qCACV,kCAAkC;2BAE9B,iBAAc;AAS3D,mCAAmC;IAIxC,MAAM,EAAEC,cAAc,EAAE,OAAGJ,uCAAAA;IAE3B,MAAMK,gBAAgBR,OAAMS,MAAM,CAAyBF,mBAAAA,QAAAA,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAgBG,gBAAgB,CAACH,eAAeI,IAAI;IAC/G,MAAMC,UAAUZ,OAAMS,MAAM,CAAwB;IAEpD,MAAMI,MAAMb,OAAMc,WAAW,CAC3B,CAACC;QACC,IAAI,CAACR,gBAAgB;YACnB;QACF;QAEA,IAAI,CAACQ,IAAI;YACP;QACF;QAEAH,QAAQI,OAAO,GAAGD;QAClBP,cAAcQ,OAAO,GAAGT,eAAeG,gBAAgB,CAACK,IAAIE,WAAWC,YAAY,EAAE;YACnFC,YAAWC,IAAI;gBACb,IAAI,KAACnB,6BAAAA,EAAcmB,OAAO;oBACxB,OAAOH,WAAWI,WAAW;gBAC/B;gBAEA,OAAOD,KAAKE,YAAY,CAACjB,wBAAAA,IAAiBY,WAAWM,aAAa,GAAGN,WAAWI,WAAW;YAC7F;QACF;IACF,GACA;QAACd;KAAe;IAGlB,OAAO;QACLM;QACAW,QAAQxB,OAAMyB,OAAO,CACnB,IAAO,CAAA;gBACLC;oBACE,IAAI,CAACd,QAAQI,OAAO,EAAE;wBACpB,OAAO;oBACT;oBAEA,MAAMW,WAAWf,QAAQI,OAAO,CAACY,aAAa,CAAC,CAAC,CAAC,EAAExB,+BAAAA,CAAqB,QAAQ,CAAC;oBAEjF,QAAIH,6BAAAA,EAAc0B,WAAW;wBAC3B,OAAO;4BACLZ,IAAIY;4BACJE,OA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AI,CAACF;oBACtB,IAAI,CAACM,OAAO,CAAA,CAAA,AAAC3B,0BAAAA,cAAcQ,OAAAA,AAAO,MAAA,QAArBR,2BAAAA,KAAAA,IAAAA,KAAAA,IAAAA,uBAAuBwB,WAAAA,AAAW,GAAE;wBAC/C,OAAO;oBACT;oBAEAxB,cAAcQ,OAAO,CAACgB,WAAW,GAAGG,IAAIpB,EAAE;oBAC1C,MAAMqB,OAAO5B,cAAcQ,OAAO,CAACsB,YAAY;oBAE/C,QAAIrC,6BAAAA,EAAcmC,OAAO;wBACvB,OAAO;4BACLrB,IAAIqB;4BACJP,OAAOO,KAAKN,YAAY,CAACzB,wBAAAA;wBAC3B;oBACF;oBAEA,OAAO;gBACT;aACF,CAAA,EACA,EAAE;IAEN;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from './constants';\n\nexport type CarouselWalker = {\n find(value: string): { el: HTMLElement; value: string } | null;\n nextPage(value: string): { el: HTMLElement; value: string } | null;\n prevPage(value: string): { el: HTMLElement; value: string } | null;\n active(): { el: HTMLElement; value: string } | null;\n};\n\nexport const useCarouselWalker_unstable = (): {\n ref: React.RefCallback<HTMLDivElement>;\n walker: CarouselWalker;\n} => {\n const { targetDocument } = useFluent();\n\n const treeWalkerRef = React.useRef<TreeWalker | undefined>(targetDocument?.createTreeWalker(targetDocument.body));\n const htmlRef = React.useRef<HTMLDivElement | null>(null);\n\n const ref = React.useCallback(\n (el: HTMLDivElement | null) => {\n if (!targetDocument) {\n return;\n }\n\n if (!el) {\n return;\n }\n\n htmlRef.current = el;\n treeWalkerRef.current = targetDocument.createTreeWalker(el, NodeFilter.SHOW_ELEMENT, {\n acceptNode(node) {\n if (!isHTMLElement(node)) {\n return NodeFilter.FILTER_SKIP;\n }\n\n return node.hasAttribute(CAROUSEL_ITEM) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n },\n });\n },\n [targetDocument],\n );\n\n return {\n ref,\n walker: React.useMemo<CarouselWalker>(\n () => ({\n active() {\n if (!htmlRef.current) {\n return null;\n }\n\n const activeEl = htmlRef.current.querySelector(`[${CAROUSEL_ACTIVE_ITEM}=\"true\"]`)!;\n\n if (isHTMLElement(activeEl)) {\n return {\n el: activeEl,\n value: activeEl.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n\n return null;\n },\n find(value: string) {\n if (!treeWalkerRef.current?.currentNode || !htmlRef.current) {\n return null;\n }\n\n treeWalkerRef.current.currentNode = htmlRef.current;\n let nextNode: Node | null = null;\n while ((nextNode = treeWalkerRef.current.nextNode())) {\n if (!isHTMLElement(nextNode)) {\n continue;\n }\n\n if (nextNode.getAttribute(CAROUSEL_ITEM) === value) {\n return {\n el: nextNode,\n value: nextNode.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n }\n\n return null;\n },\n nextPage(value: string) {\n const res = this.find(value);\n if (!res || !treeWalkerRef.current?.currentNode) {\n return null;\n }\n\n treeWalkerRef.current.currentNode = res.el;\n const next = treeWalkerRef.current.nextNode();\n\n if (isHTMLElement(next)) {\n return {\n el: next,\n value: next.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n\n return null;\n },\n\n prevPage(value: string) {\n const res = this.find(value);\n if (!res || !treeWalkerRef.current?.currentNode) {\n return null;\n }\n\n treeWalkerRef.current.currentNode = res.el;\n const next = treeWalkerRef.current.previousNode();\n\n if (isHTMLElement(next)) {\n return {\n el: next,\n value: next.getAttribute(CAROUSEL_ITEM)!,\n };\n }\n\n return null;\n },\n }),\n [],\n ),\n };\n};\n"],"names":["React","isHTMLElement","useFluent_unstable","useFluent","CAROUSEL_ACTIVE_ITEM","CAROUSEL_ITEM","useCarouselWalker_unstable","targetDocument","treeWalkerRef","useRef","createTreeWalker","body","htmlRef","ref","useCallback","el","current","NodeFilter","SHOW_ELEMENT","acceptNode","node","FILTER_SKIP","hasAttribute","FILTER_ACCEPT","walker","useMemo","active","activeEl","querySelector","value","getAttribute","find","currentNode","nextNode","nextPage","res","next","prevPage","previousNode"],"mappings":"AAAA;;;;;+BAeaM;;;;;;;iEAbU,QAAQ;gCACD,4BAA4B;qCACV,kCAAkC;2BAE9B,iBAAc;AAS3D,mCAAmC;IAIxC,MAAM,EAAEC,cAAc,EAAE,OAAGJ,uCAAAA;IAE3B,MAAMK,gBAAgBR,OAAMS,MAAM,CAAyBF,mBAAAA,QAAAA,mBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,eAAgBG,gBAAgB,CAACH,eAAeI,IAAI;IAC/G,MAAMC,UAAUZ,OAAMS,MAAM,CAAwB;IAEpD,MAAMI,MAAMb,OAAMc,WAAW,CAC3B,CAACC;QACC,IAAI,CAACR,gBAAgB;YACnB;QACF;QAEA,IAAI,CAACQ,IAAI;YACP;QACF;QAEAH,QAAQI,OAAO,GAAGD;QAClBP,cAAcQ,OAAO,GAAGT,eAAeG,gBAAgB,CAACK,IAAIE,WAAWC,YAAY,EAAE;YACnFC,YAAWC,IAAI;gBACb,IAAI,KAACnB,6BAAAA,EAAcmB,OAAO;oBACxB,OAAOH,WAAWI,WAAW;gBAC/B;gBAEA,OAAOD,KAAKE,YAAY,CAACjB,wBAAAA,IAAiBY,WAAWM,aAAa,GAAGN,WAAWI,WAAW;YAC7F;QACF;IACF,GACA;QAACd;KAAe;IAGlB,OAAO;QACLM;QACAW,QAAQxB,OAAMyB,OAAO,CACnB,IAAO,CAAA;gBACLC;oBACE,IAAI,CAACd,QAAQI,OAAO,EAAE;wBACpB,OAAO;oBACT;oBAEA,MAAMW,WAAWf,QAAQI,OAAO,CAACY,aAAa,CAAC,CAAC,CAAC,EAAExB,+BAAAA,CAAqB,QAAQ,CAAC;oBAEjF,QAAIH,6BAAAA,EAAc0B,WAAW;w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B;oBADb,MAAM2B,MAAM,IAAI,CAACJ,IAAI,CAACF;oBACtB,IAAI,CAACM,OAAO,CAAA,CAAA,AAAC3B,0BAAAA,cAAcQ,OAAAA,AAAO,MAAA,QAArBR,2BAAAA,KAAAA,IAAAA,KAAAA,IAAAA,uBAAuBwB,WAAAA,AAAW,GAAE;wBAC/C,OAAO;oBACT;oBAEAxB,cAAcQ,OAAO,CAACgB,WAAW,GAAGG,IAAIpB,EAAE;oBAC1C,MAAMqB,OAAO5B,cAAcQ,OAAO,CAACsB,YAAY;oBAE/C,QAAIrC,6BAAAA,EAAcmC,OAAO;wBACvB,OAAO;4BACLrB,IAAIqB;4BACJP,OAAOO,KAAKN,YAAY,CAACzB,wBAAAA;wBAC3B;oBACF;oBAEA,OAAO;gBACT;aACF,CAAA,EACA,EAAE;IAEN;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/TeachingPopoverCarousel.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { useTeachingPopoverCarousel_unstable } from './useTeachingPopoverCarousel';\nimport { renderTeachingPopoverCarousel_unstable } from './renderTeachingPopoverCarousel';\nimport { useTeachingPopoverCarouselStyles_unstable } from './useTeachingPopoverCarouselStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { TeachingPopoverCarouselProps } from './TeachingPopoverCarousel.types';\nimport { useTeachingPopoverCarouselContextValues_unstable } from './useTeachingPopoverCarouselContextValues';\n\n/**\n * Define a styled TeachingPopoverCarousel, using the `useTeachingPopoverCarousel_unstable` and `useTeachingPopoverCarouselStyles_unstable`\n * hooks.\n *\n * TeachingPopoverCarousel injects context providers that are required for TeachingPopoverCarouselCard display and navigation functionality\n */\nexport const TeachingPopoverCarousel: ForwardRefComponent<TeachingPopoverCarouselProps> = React.forwardRef(\n (props, ref) => {\n const state = useTeachingPopoverCarousel_unstable(props, ref);\n\n useTeachingPopoverCarouselStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTeachingPopoverCarouselStyles_unstable')(state);\n\n const contextValues = useTeachingPopoverCarouselContextValues_unstable(state);\n\n return renderTeachingPopoverCarousel_unstable(state, contextValues);\n },\n);\n\nTeachingPopoverCarousel.displayName = 'TeachingPopoverCarousel';\n"],"names":["React","useTeachingPopoverCarousel_unstable","renderTeachingPopoverCarousel_unstable","useTeachingPopoverCarouselStyles_unstable","useCustomStyleHook_unstable","useTeachingPopoverCarouselContextValues_unstable","TeachingPopoverCarousel","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;4CAGqB,kCAA+B;+CAC5B,qCAAkC;wDAC/B,+CAA4C;qCAC1D,kCAAkC;yDAEb,+CAA4C;AAQtG,MAAMM,0BAAAA,WAAAA,GAA6EN,OAAMO,UAAU,CACxG,CAACC,OAAOC;IACN,MAAMC,YAAQT,+DAAAA,EAAoCO,OAAOC;QAEzDN,iFAAAA,EAA0CO;QAE1CN,gDAAAA,EAA4B,6CAA6CM;IAEzE,MAAMC,oBAAgBN,yFAAAA,EAAiDK;IAEvE,WAAOR,qEAAAA,EAAuCQ,OAAOC;AACvD,GACA;AAEFL,wBAAwBM,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/TeachingPopoverCarousel/TeachingPopoverCarousel.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { useTeachingPopoverCarousel_unstable } from './useTeachingPopoverCarousel';\nimport { renderTeachingPopoverCarousel_unstable } from './renderTeachingPopoverCarousel';\nimport { useTeachingPopoverCarouselStyles_unstable } from './useTeachingPopoverCarouselStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { TeachingPopoverCarouselProps } from './TeachingPopoverCarousel.types';\nimport { useTeachingPopoverCarouselContextValues_unstable } from './useTeachingPopoverCarouselContextValues';\n\n/**\n * Define a styled TeachingPopoverCarousel, using the `useTeachingPopoverCarousel_unstable` and `useTeachingPopoverCarouselStyles_unstable`\n * hooks.\n *\n * TeachingPopoverCarousel injects context providers that are required for TeachingPopoverCarouselCard display and navigation functionality\n */\nexport const TeachingPopoverCarousel: ForwardRefComponent<TeachingPopoverCarouselProps> = React.forwardRef(\n (props, ref) => {\n const state = useTeachingPopoverCarousel_unstable(props, ref);\n\n useTeachingPopoverCarouselStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTeachingPopoverCarouselStyles_unstable')(state);\n\n const contextValues = useTeachingPopoverCarouselContextValues_unstable(state);\n\n return renderTeachingPopoverCarousel_unstable(state, contextValues);\n },\n);\n\nTeachingPopoverCarousel.displayName = 'TeachingPopoverCarousel';\n"],"names":["React","useTeachingPopoverCarousel_unstable","renderTeachingPopoverCarousel_unstable","useTeachingPopoverCarouselStyles_unstable","useCustomStyleHook_unstable","useTeachingPopoverCarouselContextValues_unstable","TeachingPopoverCarousel","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;4CAGqB,kCAA+B;+CAC5B,qCAAkC;wDAC/B,+CAA4C;qCAC1D,kCAAkC;yDAEb,+CAA4C;AAQtG,MAAMM,0BAAAA,WAAAA,GAA6EN,OAAMO,UAAU,CACxG,CAACC,OAAOC;IACN,MAAMC,YAAQT,+DAAAA,EAAoCO,OAAOC;QAEzDN,iFAAAA,EAA0CO;QAE1CN,gDAAAA,EAA4B,6CAA6CM;IAEzE,MAAMC,oBAAgBN,yFAAAA,EAAiDK;IAEvE,WAAOR,qEAAAA,EAAuCQ,OAAOC;AACvD,GACA;AAEFL,wBAAwBM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { type PopoverContextValue } from '@fluentui/react-popover';\n\nimport { type CarouselContextValue } from './Carousel/CarouselContext';\nimport type { UseCarouselOptions } from './Carousel/Carousel.types';\n\nexport type TeachingPopoverCarouselSlots = {\n /**\n * The element wrapping carousel pages and navigation.\n */\n root: NonNullable<Slot<'div'>>;\n};\n\n/**\n * TeachingPopoverCarousel Props\n */\nexport type TeachingPopoverCarouselProps = ComponentProps<TeachingPopoverCarouselSlots> & UseCarouselOptions;\n\n/**\n * TeachingPopoverCarousel State and Context Hooks\n */\nexport type TeachingPopoverCarouselState = ComponentState<Required<TeachingPopoverCarouselSlots>> &\n Partial<Pick<PopoverContextValue, 'appearance'>> &\n CarouselContextValue;\n\n/**\n * Context shared between TeachingPopoverCarousel and its children components\n */\nexport type TeachingPopoverCarouselContextValues = {\n carousel: CarouselContextValue;\n};\n\nexport type TeachingPopoverCarouselBaseProps = TeachingPopoverCarouselProps;\n\nexport type TeachingPopoverCarouselBaseState = Omit<TeachingPopoverCarouselState, 'appearance'>;\n"],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../../../src/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { type PopoverContextValue } from '@fluentui/react-popover';\n\nimport { type CarouselContextValue } from './Carousel/CarouselContext';\nimport type { UseCarouselOptions } from './Carousel/Carousel.types';\n\nexport type TeachingPopoverCarouselSlots = {\n /**\n * The element wrapping carousel pages and navigation.\n */\n root: NonNullable<Slot<'div'>>;\n};\n\n/**\n * TeachingPopoverCarousel Props\n */\nexport type TeachingPopoverCarouselProps = ComponentProps<TeachingPopoverCarouselSlots> & UseCarouselOptions;\n\n/**\n * TeachingPopoverCarousel State and Context Hooks\n */\nexport type TeachingPopoverCarouselState = ComponentState<Required<TeachingPopoverCarouselSlots>> &\n Partial<Pick<PopoverContextValue, 'appearance'>> &\n CarouselContextValue;\n\n/**\n * Context shared between TeachingPopoverCarousel and its children components\n */\nexport type TeachingPopoverCarouselContextValues = {\n carousel: CarouselContextValue;\n};\n\nexport type TeachingPopoverCarouselBaseProps = TeachingPopoverCarouselProps;\n\nexport type TeachingPopoverCarouselBaseState = Omit<TeachingPopoverCarouselState, 'appearance'>;\n"],"names":[],"mappings":""}
@@ -5,29 +5,29 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- TeachingPopoverCarousel: function() {
12
+ get TeachingPopoverCarousel () {
13
13
  return _TeachingPopoverCarousel.TeachingPopoverCarousel;
14
14
  },
15
- renderTeachingPopoverCarousel_unstable: function() {
15
+ get renderTeachingPopoverCarousel_unstable () {
16
16
  return _renderTeachingPopoverCarousel.renderTeachingPopoverCarousel_unstable;
17
17
  },
18
- teachingPopoverCarouselClassNames: function() {
18
+ get teachingPopoverCarouselClassNames () {
19
19
  return _useTeachingPopoverCarouselStylesstyles.teachingPopoverCarouselClassNames;
20
20
  },
21
- useTeachingPopoverCarouselBase_unstable: function() {
21
+ get useTeachingPopoverCarouselBase_unstable () {
22
22
  return _useTeachingPopoverCarousel.useTeachingPopoverCarouselBase_unstable;
23
23
  },
24
- useTeachingPopoverCarouselContextValues_unstable: function() {
24
+ get useTeachingPopoverCarouselContextValues_unstable () {
25
25
  return _useTeachingPopoverCarouselContextValues.useTeachingPopoverCarouselContextValues_unstable;
26
26
  },
27
- useTeachingPopoverCarouselStyles_unstable: function() {
27
+ get useTeachingPopoverCarouselStyles_unstable () {
28
28
  return _useTeachingPopoverCarouselStylesstyles.useTeachingPopoverCarouselStyles_unstable;
29
29
  },
30
- useTeachingPopoverCarousel_unstable: function() {
30
+ get useTeachingPopoverCarousel_unstable () {
31
31
  return _useTeachingPopoverCarousel.useTeachingPopoverCarousel_unstable;
32
32
  }
33
33
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/index.ts"],"sourcesContent":["export { TeachingPopoverCarousel } from './TeachingPopoverCarousel';\nexport type {\n TeachingPopoverCarouselBaseProps,\n TeachingPopoverCarouselBaseState,\n TeachingPopoverCarouselContextValues,\n TeachingPopoverCarouselProps,\n TeachingPopoverCarouselSlots,\n TeachingPopoverCarouselState,\n} from './TeachingPopoverCarousel.types';\nexport { renderTeachingPopoverCarousel_unstable } from './renderTeachingPopoverCarousel';\nexport {\n useTeachingPopoverCarousel_unstable,\n useTeachingPopoverCarouselBase_unstable,\n} from './useTeachingPopoverCarousel';\nexport {\n teachingPopoverCarouselClassNames,\n useTeachingPopoverCarouselStyles_unstable,\n} from './useTeachingPopoverCarouselStyles.styles';\nexport { useTeachingPopoverCarouselContextValues_unstable } from './useTeachingPopoverCarouselContextValues';\n"],"names":["TeachingPopoverCarousel","renderTeachingPopoverCarousel_unstable","useTeachingPopoverCarousel_unstable","useTeachingPopoverCarouselBase_unstable","teachingPopoverCarouselClassNames","useTeachingPopoverCarouselStyles_unstable","useTeachingPopoverCarouselContextValues_unstable"],"mappings":";;;;;;;;;;;IAASA;+DAAuB;;IASvBC;oFAAsC;;;eAM7CG,yEAAiC;;;eAHjCD,mEAAuC;;;eAMhCG,yFAAgD;;;eAFvDD,iFAAyC;;;eALzCH,+DAAmC;;;yCAXG,+BAA4B;+CASb,qCAAkC;4CAIlF,kCAA+B;wDAI/B,+CAA4C;yDACc,+CAA4C"}
1
+ {"version":3,"sources":["../../../src/components/TeachingPopoverCarousel/index.ts"],"sourcesContent":["export { TeachingPopoverCarousel } from './TeachingPopoverCarousel';\nexport type {\n TeachingPopoverCarouselBaseProps,\n TeachingPopoverCarouselBaseState,\n TeachingPopoverCarouselContextValues,\n TeachingPopoverCarouselProps,\n TeachingPopoverCarouselSlots,\n TeachingPopoverCarouselState,\n} from './TeachingPopoverCarousel.types';\nexport { renderTeachingPopoverCarousel_unstable } from './renderTeachingPopoverCarousel';\nexport {\n useTeachingPopoverCarousel_unstable,\n useTeachingPopoverCarouselBase_unstable,\n} from './useTeachingPopoverCarousel';\nexport {\n teachingPopoverCarouselClassNames,\n useTeachingPopoverCarouselStyles_unstable,\n} from './useTeachingPopoverCarouselStyles.styles';\nexport { useTeachingPopoverCarouselContextValues_unstable } from './useTeachingPopoverCarouselContextValues';\n"],"names":["TeachingPopoverCarousel","renderTeachingPopoverCarousel_unstable","useTeachingPopoverCarousel_unstable","useTeachingPopoverCarouselBase_unstable","teachingPopoverCarouselClassNames","useTeachingPopoverCarouselStyles_unstable","useTeachingPopoverCarouselContextValues_unstable"],"mappings":";;;;;;;;;;;;eAASA,gDAAuB;;;eASvBC,qEAAsC;;;eAM7CG,yEAAiC;;;eAHjCD,mEAAuC;;;eAMhCG,yFAAgD;;;eAFvDD,iFAAyC;;;eALzCH,+DAAmC;;;yCAXG,+BAA4B;+CASb,qCAAkC;4CAIlF,kCAA+B;wDAI/B,+CAA4C;yDACc,+CAA4C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type {\n TeachingPopoverCarouselState,\n TeachingPopoverCarouselSlots,\n TeachingPopoverCarouselContextValues,\n} from './TeachingPopoverCarousel.types';\nimport { CarouselProvider } from './Carousel/CarouselContext';\n\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */\nexport const renderTeachingPopoverCarousel_unstable = (\n state: TeachingPopoverCarouselState,\n contextValues: TeachingPopoverCarouselContextValues,\n): JSXElement => {\n assertSlots<TeachingPopoverCarouselSlots>(state);\n\n return (\n <CarouselProvider value={contextValues.carousel}>\n <state.root />\n </CarouselProvider>\n );\n};\n"],"names":["assertSlots","CarouselProvider","renderTeachingPopoverCarousel_unstable","state","contextValues","value","carousel","root"],"mappings":";;;;+BAeaE;;;;;;4BAdb,gDAAiD;gCAErB,4BAA4B;iCAOvB,gCAA6B;AAKvD,+CAA+C,CACpDC,OACAC;QAEAJ,2BAAAA,EAA0CG;IAE1C,OAAA,WAAA,OACE,eAAA,EAACF,iCAAAA,EAAAA;QAAiBI,OAAOD,cAAcE,QAAQ;kBAC7C,WAAA,OAAA,eAAA,EAACH,MAAMI,IAAI,EAAA,CAAA;;AAGjB,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type {\n TeachingPopoverCarouselState,\n TeachingPopoverCarouselSlots,\n TeachingPopoverCarouselContextValues,\n} from './TeachingPopoverCarousel.types';\nimport { CarouselProvider } from './Carousel/CarouselContext';\n\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */\nexport const renderTeachingPopoverCarousel_unstable = (\n state: TeachingPopoverCarouselState,\n contextValues: TeachingPopoverCarouselContextValues,\n): JSXElement => {\n assertSlots<TeachingPopoverCarouselSlots>(state);\n\n return (\n <CarouselProvider value={contextValues.carousel}>\n <state.root />\n </CarouselProvider>\n );\n};\n"],"names":["assertSlots","CarouselProvider","renderTeachingPopoverCarousel_unstable","state","contextValues","value","carousel","root"],"mappings":";;;;+BAeaE;;;;;;;gCAdb,gDAAiD,GAEjD,SAASF,WAAW,QAAQ,4BAA4B;iCAOvB,gCAA6B;AAKvD,+CAA+C,CACpDG,OACAC;QAEAJ,2BAAAA,EAA0CG;IAE1C,OAAA,WAAA,OACE,eAAA,EAACF,iCAAAA,EAAAA;QAAiBI,OAAOD,cAAcE,QAAQ;kBAC7C,WAAA,OAAA,eAAA,EAACH,MAAMI,IAAI,EAAA,CAAA;;AAGjB,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- useTeachingPopoverCarouselBase_unstable: function() {
13
+ get useTeachingPopoverCarouselBase_unstable () {
14
14
  return useTeachingPopoverCarouselBase_unstable;
15
15
  },
16
- useTeachingPopoverCarousel_unstable: function() {
16
+ get useTeachingPopoverCarousel_unstable () {
17
17
  return useTeachingPopoverCarousel_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';\nimport type {\n TeachingPopoverCarouselBaseProps,\n TeachingPopoverCarouselBaseState,\n TeachingPopoverCarouselProps,\n TeachingPopoverCarouselState,\n} from './TeachingPopoverCarousel.types';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarousel_unstable } from './Carousel/Carousel';\n\n/**\n * Base hook that builds TeachingPopoverCarousel state for behavior and structure only.\n * Does not read `appearance` from the popover context.\n * @param props - TeachingPopoverCarousel properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarousel\n */\nexport const useTeachingPopoverCarouselBase_unstable = (\n props: TeachingPopoverCarouselBaseProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselBaseState => {\n const toggleOpen = usePopoverContext_unstable(c => c.toggleOpen);\n const handleFinish: TeachingPopoverCarouselProps['onFinish'] = useEventCallback((event, data) => {\n props.onFinish?.(event, data);\n toggleOpen(event as React.MouseEvent<HTMLElement>);\n });\n\n const { carousel, carouselRef } = useCarousel_unstable({\n announcement: props.announcement,\n defaultValue: props.defaultValue,\n value: props.value,\n onValueChange: props.onValueChange,\n onFinish: handleFinish,\n });\n\n return {\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref: useMergedRefs(ref, carouselRef),\n ...props,\n }),\n { elementType: 'div' },\n ),\n ...carousel,\n };\n};\n\nexport const useTeachingPopoverCarousel_unstable = (\n props: TeachingPopoverCarouselProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselState => {\n const baseState = useTeachingPopoverCarouselBase_unstable(props, ref);\n const appearance = usePopoverContext_unstable(context => context.appearance);\n\n return {\n ...baseState,\n appearance,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useEventCallback","useMergedRefs","usePopoverContext_unstable","useCarousel_unstable","useTeachingPopoverCarouselBase_unstable","props","ref","toggleOpen","c","handleFinish","event","data","onFinish","carousel","carouselRef","announcement","defaultValue","value","onValueChange","components","root","always","elementType","useTeachingPopoverCarousel_unstable","baseState","appearance","context"],"mappings":"AAAA;;;;;;;;;;;;IAmBaM,uCAAAA;;;IAiCAmB,mCAAAA;;;;gCAjDmE,4BAA4B;8BAOjE,0BAA0B;0BAChC,yBAAsB;AAQpD,gDAAgD,CACrDlB,OACAC;IAEA,MAAMC,iBAAaL,wCAAAA,EAA2BM,CAAAA,IAAKA,EAAED,UAAU;IAC/D,MAAME,eAAyDT,oCAAAA,EAAiB,CAACU,OAAOC;YACtFN;SAAAA,kBAAAA,MAAMO,QAAAA,AAAQ,MAAA,QAAdP,oBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,gBAAAA,IAAAA,CAAAA,OAAiBK,OAAOC;QACxBJ,WAAWG;IACb;IAEA,MAAM,EAAEG,QAAQ,EAAEC,WAAW,EAAE,GAAGX,kCAAAA,EAAqB;QACrDY,cAAcV,MAAMU,YAAY;QAChCC,cAAcX,MAAMW,YAAY;QAChCC,OAAOZ,MAAMY,KAAK;QAClBC,eAAeb,MAAMa,aAAa;QAClCN,UAAUH;IACZ;IAEA,OAAO;QACLU,YAAY;YACVC,MAAM;QACR;QACAA,MAAMrB,oBAAAA,CAAKsB,MAAM,KACfvB,wCAAAA,EAAyB,OAAO;YAC9BQ,SAAKL,6BAAAA,EAAcK,KAAKQ;YACxB,GAAGT,KAAK;QACV,IACA;YAAEiB,aAAa;QAAM;QAEvB,GAAGT,QAAQ;IACb;AACF,EAAE;AAEK,4CAA4C,CACjDR,OACAC;IAEA,MAAMkB,YAAYpB,wCAAwCC,OAAOC;IACjE,MAAMmB,iBAAavB,wCAAAA,EAA2BwB,CAAAA,UAAWA,QAAQD,UAAU;IAE3E,OAAO;QACL,GAAGD,SAAS;QACZC;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';\nimport type {\n TeachingPopoverCarouselBaseProps,\n TeachingPopoverCarouselBaseState,\n TeachingPopoverCarouselProps,\n TeachingPopoverCarouselState,\n} from './TeachingPopoverCarousel.types';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarousel_unstable } from './Carousel/Carousel';\n\n/**\n * Base hook that builds TeachingPopoverCarousel state for behavior and structure only.\n * Does not read `appearance` from the popover context.\n * @param props - TeachingPopoverCarousel properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarousel\n */\nexport const useTeachingPopoverCarouselBase_unstable = (\n props: TeachingPopoverCarouselBaseProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselBaseState => {\n const toggleOpen = usePopoverContext_unstable(c => c.toggleOpen);\n const handleFinish: TeachingPopoverCarouselProps['onFinish'] = useEventCallback((event, data) => {\n props.onFinish?.(event, data);\n toggleOpen(event as React.MouseEvent<HTMLElement>);\n });\n\n const { carousel, carouselRef } = useCarousel_unstable({\n announcement: props.announcement,\n defaultValue: props.defaultValue,\n value: props.value,\n onValueChange: props.onValueChange,\n onFinish: handleFinish,\n });\n\n return {\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref: useMergedRefs(ref, carouselRef),\n ...props,\n }),\n { elementType: 'div' },\n ),\n ...carousel,\n };\n};\n\nexport const useTeachingPopoverCarousel_unstable = (\n props: TeachingPopoverCarouselProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselState => {\n const baseState = useTeachingPopoverCarouselBase_unstable(props, ref);\n const appearance = usePopoverContext_unstable(context => context.appearance);\n\n return {\n ...baseState,\n appearance,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useEventCallback","useMergedRefs","usePopoverContext_unstable","useCarousel_unstable","useTeachingPopoverCarouselBase_unstable","props","ref","toggleOpen","c","handleFinish","event","data","onFinish","carousel","carouselRef","announcement","defaultValue","value","onValueChange","components","root","always","elementType","useTeachingPopoverCarousel_unstable","baseState","appearance","context"],"mappings":"AAAA;;;;;;;;;;;;QAmBaM;;;;eAiCAmB;;;gCAjDmE,4BAA4B;8BAOjE,0BAA0B;0BAChC,yBAAsB;AAQpD,gDAAgD,CACrDlB,OACAC;IAEA,MAAMC,iBAAaL,wCAAAA,EAA2BM,CAAAA,IAAKA,EAAED,UAAU;IAC/D,MAAME,mBAAyDT,gCAAAA,EAAiB,CAACU,OAAOC;YACtFN;SAAAA,kBAAAA,MAAMO,QAAAA,AAAQ,MAAA,QAAdP,oBAAAA,KAAAA,IAAAA,KAAAA,IAAAA,gBAAAA,IAAAA,CAAAA,OAAiBK,OAAOC;QACxBJ,WAAWG;IACb;IAEA,MAAM,EAAEG,QAAQ,EAAEC,WAAW,EAAE,OAAGX,8BAAAA,EAAqB;QACrDY,cAAcV,MAAMU,YAAY;QAChCC,cAAcX,MAAMW,YAAY;QAChCC,OAAOZ,MAAMY,KAAK;QAClBC,eAAeb,MAAMa,aAAa;QAClCN,UAAUH;IACZ;IAEA,OAAO;QACLU,YAAY;YACVC,MAAM;QACR;QACAA,MAAMrB,oBAAAA,CAAKsB,MAAM,KACfvB,wCAAAA,EAAyB,OAAO;YAC9BQ,SAAKL,6BAAAA,EAAcK,KAAKQ;YACxB,GAAGT,KAAK;QACV,IACA;YAAEiB,aAAa;QAAM;QAEvB,GAAGT,QAAQ;IACb;AACF,EAAE;AAEK,4CAA4C,CACjDR,OACAC;IAEA,MAAMkB,YAAYpB,wCAAwCC,OAAOC;IACjE,MAAMmB,iBAAavB,wCAAAA,EAA2BwB,CAAAA,UAAWA,QAAQD,UAAU;IAE3E,OAAO;QACL,GAAGD,SAAS;QACZC;IACF;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type {\n TeachingPopoverCarouselContextValues,\n TeachingPopoverCarouselState,\n} from './TeachingPopoverCarousel.types';\n\nexport function useTeachingPopoverCarouselContextValues_unstable(\n state: TeachingPopoverCarouselState,\n): TeachingPopoverCarouselContextValues {\n const { store, value, selectPageByValue, selectPageByDirection } = state;\n\n const carousel = React.useMemo(\n () => ({\n store,\n value,\n selectPageByDirection,\n selectPageByValue,\n }),\n [store, value, selectPageByDirection, selectPageByValue],\n );\n\n return { carousel };\n}\n"],"names":["React","useTeachingPopoverCarouselContextValues_unstable","state","store","value","selectPageByValue","selectPageByDirection","carousel","useMemo"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;AAMxB,SAASC,iDACdC,KAAmC;IAEnC,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,iBAAiB,EAAEC,qBAAqB,EAAE,GAAGJ;IAEnE,MAAMK,WAAWP,OAAMQ,OAAO,CAC5B,IAAO,CAAA;YACLL;YACAC;YACAE;YACAD;SACF,CAAA,EACA;QAACF;QAAOC;QAAOE;QAAuBD;KAAkB;IAG1D,OAAO;QAAEE;IAAS;AACpB"}
1
+ {"version":3,"sources":["../../../src/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type {\n TeachingPopoverCarouselContextValues,\n TeachingPopoverCarouselState,\n} from './TeachingPopoverCarousel.types';\n\nexport function useTeachingPopoverCarouselContextValues_unstable(\n state: TeachingPopoverCarouselState,\n): TeachingPopoverCarouselContextValues {\n const { store, value, selectPageByValue, selectPageByDirection } = state;\n\n const carousel = React.useMemo(\n () => ({\n store,\n value,\n selectPageByDirection,\n selectPageByValue,\n }),\n [store, value, selectPageByDirection, selectPageByValue],\n );\n\n return { carousel };\n}\n"],"names":["React","useTeachingPopoverCarouselContextValues_unstable","state","store","value","selectPageByValue","selectPageByDirection","carousel","useMemo"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;AAMxB,SAASC,iDACdC,KAAmC;IAEnC,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,iBAAiB,EAAEC,qBAAqB,EAAE,GAAGJ;IAEnE,MAAMK,WAAWP,OAAMQ,OAAO,CAC5B,IAAO,CAAA;YACLL;YACAC;YACAE;YACAD;SACF,CAAA,EACA;QAACF;QAAOC;QAAOE;QAAuBD;KAAkB;IAG1D,OAAO;QAAEE;IAAS;AACpB"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- teachingPopoverCarouselClassNames: function() {
13
+ get teachingPopoverCarouselClassNames () {
14
14
  return teachingPopoverCarouselClassNames;
15
15
  },
16
- useTeachingPopoverCarouselStyles_unstable: function() {
16
+ get useTeachingPopoverCarouselStyles_unstable () {
17
17
  return useTeachingPopoverCarouselStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useTeachingPopoverCarouselStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nexport const teachingPopoverCarouselClassNames = {\n root: 'fui-TeachingPopoverCarousel'\n};\n// Todo: Page change animation & styles\nconst useStyles = makeStyles({\n root: {}\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselStyles_unstable = (state)=>{\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverCarouselClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","teachingPopoverCarouselClassNames","root","useStyles","useTeachingPopoverCarouselStyles_unstable","state","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;qCAEkC;;;6CAOiD;;;;uBARtD,gBAAgB;AAClD,MAAME,oCAAoC;IAC7CC,IAAI,EAAE;AACV,CAAC;AACD,uCAAA;AACA,MAAMC,SAAS,GAAA,WAAA,OAAGJ,eAAA,EAAA;IAAAG,IAAA,EAAA,CAAA;AAAA,GAAA,CAAA,CAEjB,CAAC;AAC8C,MAAME,6CAA6CC,KAAK,IAAG;IACvG,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAE,KAAK,CAACH,IAAI,CAACK,SAAS,OAAGP,mBAAY,EAACC,iCAAiC,CAACC,IAAI,EAAEI,MAAM,CAACJ,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;IAC9G,OAAOF,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTeachingPopoverCarouselStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nexport const teachingPopoverCarouselClassNames = {\n root: 'fui-TeachingPopoverCarousel'\n};\n// Todo: Page change animation & styles\nconst useStyles = makeStyles({\n root: {}\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselStyles_unstable = (state)=>{\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverCarouselClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","teachingPopoverCarouselClassNames","root","useStyles","useTeachingPopoverCarouselStyles_unstable","state","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;;;;;;;;uBAC6B,gBAAgB;AAClD,MAAME,iCAAiC,GAAG;IAC7CC,IAAI,EAAE;AACV,CAAC;AACD,uCAAA;AACA,MAAMC,SAAS,GAAA,WAAA,OAAGJ,eAAA,EAAA;IAAAG,IAAA,EAAA,CAAA;AAAA,GAAA,CAAA,CAEjB,CAAC;AAC8C,MAAME,yCAAyC,IAAIC,KAAK,IAAG;IACvG,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAE,KAAK,CAACH,IAAI,CAACK,SAAS,OAAGP,mBAAY,EAACC,iCAAiC,CAACC,IAAI,EAAEI,MAAM,CAACJ,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;IAC9G,OAAOF,KAAK;AAChB,CAAC"}