@fluentui/react-teaching-popover 0.0.0-nightly-20240423-0406.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/CHANGELOG.md +324 -0
  2. package/LICENSE +15 -0
  3. package/README.md +66 -0
  4. package/dist/index.d.ts +715 -0
  5. package/lib/TeachingPopover.js +1 -0
  6. package/lib/TeachingPopover.js.map +1 -0
  7. package/lib/TeachingPopoverBody.js +1 -0
  8. package/lib/TeachingPopoverBody.js.map +1 -0
  9. package/lib/TeachingPopoverCarousel.js +1 -0
  10. package/lib/TeachingPopoverCarousel.js.map +1 -0
  11. package/lib/TeachingPopoverCarouselCard.js +1 -0
  12. package/lib/TeachingPopoverCarouselCard.js.map +1 -0
  13. package/lib/TeachingPopoverCarouselFooter.js +1 -0
  14. package/lib/TeachingPopoverCarouselFooter.js.map +1 -0
  15. package/lib/TeachingPopoverCarouselFooterButton.js +1 -0
  16. package/lib/TeachingPopoverCarouselFooterButton.js.map +1 -0
  17. package/lib/TeachingPopoverCarouselNav.js +1 -0
  18. package/lib/TeachingPopoverCarouselNav.js.map +1 -0
  19. package/lib/TeachingPopoverCarouselNavButton.js +1 -0
  20. package/lib/TeachingPopoverCarouselNavButton.js.map +1 -0
  21. package/lib/TeachingPopoverCarouselPageCount.js +1 -0
  22. package/lib/TeachingPopoverCarouselPageCount.js.map +1 -0
  23. package/lib/TeachingPopoverFooter.js +1 -0
  24. package/lib/TeachingPopoverFooter.js.map +1 -0
  25. package/lib/TeachingPopoverHeader.js +1 -0
  26. package/lib/TeachingPopoverHeader.js.map +1 -0
  27. package/lib/TeachingPopoverSurface.js +1 -0
  28. package/lib/TeachingPopoverSurface.js.map +1 -0
  29. package/lib/TeachingPopoverTitle.js +1 -0
  30. package/lib/TeachingPopoverTitle.js.map +1 -0
  31. package/lib/TeachingPopoverTrigger.js +1 -0
  32. package/lib/TeachingPopoverTrigger.js.map +1 -0
  33. package/lib/components/TeachingPopover/TeachingPopover.js +10 -0
  34. package/lib/components/TeachingPopover/TeachingPopover.js.map +1 -0
  35. package/lib/components/TeachingPopover/TeachingPopover.types.js +1 -0
  36. package/lib/components/TeachingPopover/TeachingPopover.types.js.map +1 -0
  37. package/lib/components/TeachingPopover/index.js +4 -0
  38. package/lib/components/TeachingPopover/index.js.map +1 -0
  39. package/lib/components/TeachingPopover/renderTeachingPopover.js +4 -0
  40. package/lib/components/TeachingPopover/renderTeachingPopover.js.map +1 -0
  41. package/lib/components/TeachingPopover/useTeachingPopover.js +11 -0
  42. package/lib/components/TeachingPopover/useTeachingPopover.js.map +1 -0
  43. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.js +17 -0
  44. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.js.map +1 -0
  45. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js +1 -0
  46. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -0
  47. package/lib/components/TeachingPopoverBody/index.js +5 -0
  48. package/lib/components/TeachingPopoverBody/index.js.map +1 -0
  49. package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js +13 -0
  50. package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -0
  51. package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js +25 -0
  52. package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -0
  53. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js +58 -0
  54. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js.map +1 -0
  55. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js +123 -0
  56. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -0
  57. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js +1 -0
  58. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -0
  59. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js +14 -0
  60. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -0
  61. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js +1 -0
  62. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -0
  63. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js +11 -0
  64. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -0
  65. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js +8 -0
  66. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map +1 -0
  67. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js +28 -0
  68. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -0
  69. package/lib/components/TeachingPopoverCarousel/Carousel/constants.js +2 -0
  70. package/lib/components/TeachingPopoverCarousel/Carousel/constants.js.map +1 -0
  71. package/lib/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js +60 -0
  72. package/lib/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js.map +1 -0
  73. package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js +6 -0
  74. package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js.map +1 -0
  75. package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js +98 -0
  76. package/lib/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js.map +1 -0
  77. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js +19 -0
  78. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js.map +1 -0
  79. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js +1 -0
  80. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -0
  81. package/lib/components/TeachingPopoverCarousel/index.js +6 -0
  82. package/lib/components/TeachingPopoverCarousel/index.js.map +1 -0
  83. package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js +12 -0
  84. package/lib/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js.map +1 -0
  85. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js +32 -0
  86. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -0
  87. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js +12 -0
  88. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -0
  89. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js +15 -0
  90. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js.map +1 -0
  91. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js +15 -0
  92. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map +1 -0
  93. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js +1 -0
  94. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -0
  95. package/lib/components/TeachingPopoverCarouselCard/index.js +5 -0
  96. package/lib/components/TeachingPopoverCarouselCard/index.js.map +1 -0
  97. package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js +8 -0
  98. package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -0
  99. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js +25 -0
  100. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -0
  101. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js +14 -0
  102. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js.map +1 -0
  103. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js +15 -0
  104. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map +1 -0
  105. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js +1 -0
  106. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -0
  107. package/lib/components/TeachingPopoverCarouselFooter/index.js +5 -0
  108. package/lib/components/TeachingPopoverCarouselFooter/index.js.map +1 -0
  109. package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js +16 -0
  110. package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -0
  111. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js +37 -0
  112. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -0
  113. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js +39 -0
  114. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js.map +1 -0
  115. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js +15 -0
  116. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js.map +1 -0
  117. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js +1 -0
  118. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -0
  119. package/lib/components/TeachingPopoverCarouselFooterButton/index.js +5 -0
  120. package/lib/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -0
  121. package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js +8 -0
  122. package/lib/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js.map +1 -0
  123. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js +71 -0
  124. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -0
  125. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js +64 -0
  126. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js.map +1 -0
  127. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js +15 -0
  128. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js.map +1 -0
  129. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js +1 -0
  130. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -0
  131. package/lib/components/TeachingPopoverCarouselNav/index.js +5 -0
  132. package/lib/components/TeachingPopoverCarouselNav/index.js.map +1 -0
  133. package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js +15 -0
  134. package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -0
  135. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js +35 -0
  136. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -0
  137. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js +35 -0
  138. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js.map +1 -0
  139. package/lib/components/TeachingPopoverCarouselNav/valueIdContext.js +8 -0
  140. package/lib/components/TeachingPopoverCarouselNav/valueIdContext.js.map +1 -0
  141. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js +14 -0
  142. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js.map +1 -0
  143. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js +1 -0
  144. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -0
  145. package/lib/components/TeachingPopoverCarouselNavButton/index.js +5 -0
  146. package/lib/components/TeachingPopoverCarouselNavButton/index.js.map +1 -0
  147. package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js +8 -0
  148. package/lib/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js.map +1 -0
  149. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js +52 -0
  150. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -0
  151. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js +104 -0
  152. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js.map +1 -0
  153. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js +14 -0
  154. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js.map +1 -0
  155. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js +1 -0
  156. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -0
  157. package/lib/components/TeachingPopoverCarouselPageCount/index.js +5 -0
  158. package/lib/components/TeachingPopoverCarouselPageCount/index.js.map +1 -0
  159. package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js +8 -0
  160. package/lib/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js.map +1 -0
  161. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +34 -0
  162. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -0
  163. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js +25 -0
  164. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js.map +1 -0
  165. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.js +18 -0
  166. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.js.map +1 -0
  167. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js +1 -0
  168. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -0
  169. package/lib/components/TeachingPopoverFooter/index.js +5 -0
  170. package/lib/components/TeachingPopoverFooter/index.js.map +1 -0
  171. package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js +13 -0
  172. package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -0
  173. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +57 -0
  174. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -0
  175. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js +68 -0
  176. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js.map +1 -0
  177. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.js +18 -0
  178. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.js.map +1 -0
  179. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js +1 -0
  180. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -0
  181. package/lib/components/TeachingPopoverHeader/index.js +5 -0
  182. package/lib/components/TeachingPopoverHeader/index.js.map +1 -0
  183. package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js +14 -0
  184. package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -0
  185. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js +54 -0
  186. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -0
  187. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js +108 -0
  188. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js.map +1 -0
  189. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js +16 -0
  190. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -0
  191. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js +1 -0
  192. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -0
  193. package/lib/components/TeachingPopoverSurface/index.js +5 -0
  194. package/lib/components/TeachingPopoverSurface/index.js.map +1 -0
  195. package/lib/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js +9 -0
  196. package/lib/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js.map +1 -0
  197. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js +14 -0
  198. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -0
  199. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js +37 -0
  200. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js.map +1 -0
  201. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.js +18 -0
  202. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.js.map +1 -0
  203. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js +1 -0
  204. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -0
  205. package/lib/components/TeachingPopoverTitle/index.js +5 -0
  206. package/lib/components/TeachingPopoverTitle/index.js.map +1 -0
  207. package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js +13 -0
  208. package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -0
  209. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js +46 -0
  210. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -0
  211. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js +80 -0
  212. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js.map +1 -0
  213. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js +12 -0
  214. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -0
  215. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js +1 -0
  216. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -0
  217. package/lib/components/TeachingPopoverTrigger/index.js +4 -0
  218. package/lib/components/TeachingPopoverTrigger/index.js.map +1 -0
  219. package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js +5 -0
  220. package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -0
  221. package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js +9 -0
  222. package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -0
  223. package/lib/index.js +14 -0
  224. package/lib/index.js.map +1 -0
  225. package/lib-commonjs/TeachingPopover.js +6 -0
  226. package/lib-commonjs/TeachingPopover.js.map +1 -0
  227. package/lib-commonjs/TeachingPopoverBody.js +6 -0
  228. package/lib-commonjs/TeachingPopoverBody.js.map +1 -0
  229. package/lib-commonjs/TeachingPopoverCarousel.js +6 -0
  230. package/lib-commonjs/TeachingPopoverCarousel.js.map +1 -0
  231. package/lib-commonjs/TeachingPopoverCarouselCard.js +6 -0
  232. package/lib-commonjs/TeachingPopoverCarouselCard.js.map +1 -0
  233. package/lib-commonjs/TeachingPopoverCarouselFooter.js +6 -0
  234. package/lib-commonjs/TeachingPopoverCarouselFooter.js.map +1 -0
  235. package/lib-commonjs/TeachingPopoverCarouselFooterButton.js +6 -0
  236. package/lib-commonjs/TeachingPopoverCarouselFooterButton.js.map +1 -0
  237. package/lib-commonjs/TeachingPopoverCarouselNav.js +6 -0
  238. package/lib-commonjs/TeachingPopoverCarouselNav.js.map +1 -0
  239. package/lib-commonjs/TeachingPopoverCarouselNavButton.js +6 -0
  240. package/lib-commonjs/TeachingPopoverCarouselNavButton.js.map +1 -0
  241. package/lib-commonjs/TeachingPopoverCarouselPageCount.js +6 -0
  242. package/lib-commonjs/TeachingPopoverCarouselPageCount.js.map +1 -0
  243. package/lib-commonjs/TeachingPopoverFooter.js +6 -0
  244. package/lib-commonjs/TeachingPopoverFooter.js.map +1 -0
  245. package/lib-commonjs/TeachingPopoverHeader.js +6 -0
  246. package/lib-commonjs/TeachingPopoverHeader.js.map +1 -0
  247. package/lib-commonjs/TeachingPopoverSurface.js +6 -0
  248. package/lib-commonjs/TeachingPopoverSurface.js.map +1 -0
  249. package/lib-commonjs/TeachingPopoverTitle.js +6 -0
  250. package/lib-commonjs/TeachingPopoverTitle.js.map +1 -0
  251. package/lib-commonjs/TeachingPopoverTrigger.js +6 -0
  252. package/lib-commonjs/TeachingPopoverTrigger.js.map +1 -0
  253. package/lib-commonjs/components/TeachingPopover/TeachingPopover.js +19 -0
  254. package/lib-commonjs/components/TeachingPopover/TeachingPopover.js.map +1 -0
  255. package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.js +4 -0
  256. package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.js.map +1 -0
  257. package/lib-commonjs/components/TeachingPopover/index.js +9 -0
  258. package/lib-commonjs/components/TeachingPopover/index.js.map +1 -0
  259. package/lib-commonjs/components/TeachingPopover/renderTeachingPopover.js +12 -0
  260. package/lib-commonjs/components/TeachingPopover/renderTeachingPopover.js.map +1 -0
  261. package/lib-commonjs/components/TeachingPopover/useTeachingPopover.js +21 -0
  262. package/lib-commonjs/components/TeachingPopover/useTeachingPopover.js.map +1 -0
  263. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.js +23 -0
  264. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.js.map +1 -0
  265. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.js +4 -0
  266. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -0
  267. package/lib-commonjs/components/TeachingPopoverBody/index.js +10 -0
  268. package/lib-commonjs/components/TeachingPopoverBody/index.js.map +1 -0
  269. package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.js +21 -0
  270. package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -0
  271. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.js +32 -0
  272. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -0
  273. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js +98 -0
  274. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js.map +1 -0
  275. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.js +132 -0
  276. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -0
  277. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.js +6 -0
  278. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -0
  279. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.js +36 -0
  280. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -0
  281. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js +4 -0
  282. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -0
  283. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js +19 -0
  284. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -0
  285. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js +16 -0
  286. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/renderCarouselItem.js.map +1 -0
  287. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js +39 -0
  288. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -0
  289. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.js +20 -0
  290. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/constants.js.map +1 -0
  291. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js +70 -0
  292. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/createCarouselStore.js.map +1 -0
  293. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js +16 -0
  294. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselValues.js.map +1 -0
  295. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js +109 -0
  296. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/useCarouselWalker.js.map +1 -0
  297. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js +25 -0
  298. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.js.map +1 -0
  299. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js +4 -0
  300. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -0
  301. package/lib-commonjs/components/TeachingPopoverCarousel/index.js +11 -0
  302. package/lib-commonjs/components/TeachingPopoverCarousel/index.js.map +1 -0
  303. package/lib-commonjs/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js +20 -0
  304. package/lib-commonjs/components/TeachingPopoverCarousel/renderTeachingPopoverCarousel.js.map +1 -0
  305. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js +43 -0
  306. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -0
  307. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js +22 -0
  308. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -0
  309. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js +31 -0
  310. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js.map +1 -0
  311. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js +21 -0
  312. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.js.map +1 -0
  313. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js +4 -0
  314. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -0
  315. package/lib-commonjs/components/TeachingPopoverCarouselCard/index.js +10 -0
  316. package/lib-commonjs/components/TeachingPopoverCarouselCard/index.js.map +1 -0
  317. package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js +16 -0
  318. package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -0
  319. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js +32 -0
  320. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -0
  321. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js +30 -0
  322. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js.map +1 -0
  323. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js +21 -0
  324. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.js.map +1 -0
  325. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js +6 -0
  326. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -0
  327. package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.js +10 -0
  328. package/lib-commonjs/components/TeachingPopoverCarouselFooter/index.js.map +1 -0
  329. package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js +24 -0
  330. package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -0
  331. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js +48 -0
  332. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -0
  333. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js +60 -0
  334. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js.map +1 -0
  335. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js +21 -0
  336. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.js.map +1 -0
  337. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js +4 -0
  338. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -0
  339. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.js +10 -0
  340. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -0
  341. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js +16 -0
  342. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/renderTeachingPopoverCarouselFooterButton.js.map +1 -0
  343. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js +73 -0
  344. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -0
  345. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js +129 -0
  346. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButtonStyles.styles.js.map +1 -0
  347. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js +21 -0
  348. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.js.map +1 -0
  349. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js +6 -0
  350. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -0
  351. package/lib-commonjs/components/TeachingPopoverCarouselNav/index.js +10 -0
  352. package/lib-commonjs/components/TeachingPopoverCarouselNav/index.js.map +1 -0
  353. package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js +23 -0
  354. package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -0
  355. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js +42 -0
  356. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -0
  357. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js +84 -0
  358. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js.map +1 -0
  359. package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.js +30 -0
  360. package/lib-commonjs/components/TeachingPopoverCarouselNav/valueIdContext.js.map +1 -0
  361. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js +21 -0
  362. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.js.map +1 -0
  363. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js +4 -0
  364. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -0
  365. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.js +10 -0
  366. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.js.map +1 -0
  367. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js +16 -0
  368. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/renderTeachingPopoverCarouselNavButton.js.map +1 -0
  369. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js +55 -0
  370. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -0
  371. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js +240 -0
  372. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js.map +1 -0
  373. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js +21 -0
  374. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js.map +1 -0
  375. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js +6 -0
  376. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -0
  377. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.js +10 -0
  378. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/index.js.map +1 -0
  379. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js +16 -0
  380. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/renderTeachingPopoverCarouselPageCount.js.map +1 -0
  381. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +37 -0
  382. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -0
  383. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js +42 -0
  384. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js.map +1 -0
  385. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.js +21 -0
  386. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.js.map +1 -0
  387. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js +4 -0
  388. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -0
  389. package/lib-commonjs/components/TeachingPopoverFooter/index.js +10 -0
  390. package/lib-commonjs/components/TeachingPopoverFooter/index.js.map +1 -0
  391. package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js +21 -0
  392. package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -0
  393. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +64 -0
  394. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -0
  395. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js +135 -0
  396. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js.map +1 -0
  397. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.js +23 -0
  398. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.js.map +1 -0
  399. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js +4 -0
  400. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -0
  401. package/lib-commonjs/components/TeachingPopoverHeader/index.js +10 -0
  402. package/lib-commonjs/components/TeachingPopoverHeader/index.js.map +1 -0
  403. package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js +22 -0
  404. package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -0
  405. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.js +61 -0
  406. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -0
  407. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js +230 -0
  408. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js.map +1 -0
  409. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.js +23 -0
  410. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -0
  411. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js +4 -0
  412. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -0
  413. package/lib-commonjs/components/TeachingPopoverSurface/index.js +10 -0
  414. package/lib-commonjs/components/TeachingPopoverSurface/index.js.map +1 -0
  415. package/lib-commonjs/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js +17 -0
  416. package/lib-commonjs/components/TeachingPopoverSurface/renderTeachingPopoverSurface.js.map +1 -0
  417. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.js +17 -0
  418. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -0
  419. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js +89 -0
  420. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js.map +1 -0
  421. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.js +23 -0
  422. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.js.map +1 -0
  423. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js +4 -0
  424. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -0
  425. package/lib-commonjs/components/TeachingPopoverTitle/index.js +10 -0
  426. package/lib-commonjs/components/TeachingPopoverTitle/index.js.map +1 -0
  427. package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js +21 -0
  428. package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -0
  429. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.js +53 -0
  430. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -0
  431. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js +185 -0
  432. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js.map +1 -0
  433. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js +21 -0
  434. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -0
  435. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js +4 -0
  436. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -0
  437. package/lib-commonjs/components/TeachingPopoverTrigger/index.js +9 -0
  438. package/lib-commonjs/components/TeachingPopoverTrigger/index.js.map +1 -0
  439. package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js +15 -0
  440. package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -0
  441. package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js +15 -0
  442. package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -0
  443. package/lib-commonjs/index.js +224 -0
  444. package/lib-commonjs/index.js.map +1 -0
  445. package/package.json +69 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Carousel.js"],"sourcesContent":["import { isHTMLElement, useMergedRefs, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport * as React from 'react';\nimport { CAROUSEL_ITEM } from './constants';\nimport { useCarouselWalker_unstable } from './useCarouselWalker';\nimport { createCarouselStore } from './createCarouselStore';\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) {\n const { onValueChange, onFinish } = options;\n const { ref: carouselRef, walker: carouselWalker } = useCarouselWalker_unstable();\n const [store] = React.useState(()=>createCarouselStore());\n const [value, setValue] = useControllableState({\n defaultState: options.defaultValue,\n state: options.value,\n initialState: null\n });\n const rootRef = React.useRef(null);\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('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 var _rootRef_current;\n const allItems = (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.querySelectorAll(`[${CAROUSEL_ITEM}]`);\n for(let i = 0; i < allItems.length; i++){\n store.addValue(allItems.item(i).getAttribute(CAROUSEL_ITEM));\n }\n return ()=>{\n store.clear();\n };\n }, [\n store\n ]);\n React.useEffect(()=>{\n const config = {\n attributes: true,\n attributeFilter: [\n CAROUSEL_ITEM\n ],\n childList: true,\n subtree: true\n };\n // Callback function to execute when mutations are observed\n const callback = (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 === null || newNode === void 0 ? void 0 : newNode.value)) {\n return;\n }\n const previousNode = carouselWalker.prevPage(newNode === null || newNode === void 0 ? void 0 : newNode.value);\n var _previousNode_value;\n store.insertValue(newValue, (_previousNode_value = previousNode === null || previousNode === void 0 ? void 0 : previousNode.value) !== null && _previousNode_value !== void 0 ? _previousNode_value : null);\n }\n }\n for (const removedNode of Array.from(mutation.removedNodes)){\n if (isHTMLElement(removedNode) && (removedNode === null || removedNode === void 0 ? void 0 : removedNode.hasAttribute(CAROUSEL_ITEM))) {\n const removedValue = removedNode.getAttribute(CAROUSEL_ITEM);\n store.removeValue(removedValue);\n }\n }\n }\n };\n // Create an observer instance linked to the callback function\n const observer = new MutationObserver(callback);\n // Start observing the target node for configured mutations\n observer.observe(rootRef.current, config);\n // Later, you can stop observing\n return ()=>{\n observer.disconnect();\n };\n }, [\n carouselWalker,\n store\n ]);\n const selectPageByDirection = useEventCallback((event, direction)=>{\n const active = carouselWalker.active();\n if (!(active === null || active === void 0 ? void 0 : active.value)) {\n return;\n }\n const newPage = direction === 'prev' ? carouselWalker.prevPage(active.value) : carouselWalker.nextPage(active.value);\n if (newPage) {\n setValue(newPage === null || newPage === void 0 ? void 0 : newPage.value);\n onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(event, {\n event,\n type: 'click',\n value: newPage === null || newPage === void 0 ? void 0 : newPage.value\n });\n } else {\n onFinish === null || onFinish === void 0 ? void 0 : onFinish(event, {\n event,\n type: 'click',\n value: active === null || active === void 0 ? void 0 : active.value\n });\n }\n });\n const selectPageByValue = useEventCallback((event, _value)=>{\n setValue(_value);\n onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(event, {\n event,\n type: 'click',\n value: _value\n });\n });\n return {\n carouselRef: useMergedRefs(rootRef, carouselRef),\n carousel: {\n store,\n value,\n selectPageByDirection,\n selectPageByValue\n }\n };\n}\n"],"names":["useCarousel_unstable","options","onValueChange","onFinish","ref","carouselRef","walker","carouselWalker","useCarouselWalker_unstable","store","React","useState","createCarouselStore","value","setValue","useControllableState","defaultState","defaultValue","state","initialState","rootRef","useRef","process","env","NODE_ENV","useEffect","console","error","_rootRef_current","allItems","current","querySelectorAll","CAROUSEL_ITEM","i","length","addValue","item","getAttribute","clear","config","attributes","attributeFilter","childList","subtree","callback","mutationList","mutation","addedNode","Array","from","addedNodes","isHTMLElement","hasAttribute","newValue","newNode","find","previousNode","prevPage","_previousNode_value","insertValue","removedNode","removedNodes","removedValue","removeValue","observer","MutationObserver","observe","disconnect","selectPageByDirection","useEventCallback","event","direction","active","newPage","nextPage","type","selectPageByValue","_value","useMergedRefs","carousel"],"mappings":"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"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
6
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Carousel.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;iEAAuB"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ carouselContextDefaultValue: function() {
13
+ return carouselContextDefaultValue;
14
+ },
15
+ CarouselProvider: function() {
16
+ return CarouselProvider;
17
+ },
18
+ useCarouselContext_unstable: function() {
19
+ return useCarouselContext_unstable;
20
+ }
21
+ });
22
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
23
+ const _reactcontextselector = require("@fluentui/react-context-selector");
24
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
25
+ const _createCarouselStore = require("./createCarouselStore");
26
+ const carouselContextDefaultValue = {
27
+ store: (0, _createCarouselStore.createCarouselStore)(),
28
+ value: null,
29
+ selectPageByDirection: ()=>{
30
+ /** noop */ },
31
+ selectPageByValue: ()=>{
32
+ /** noop */ }
33
+ };
34
+ const CarouselContext = (0, _reactcontextselector.createContext)(undefined);
35
+ const CarouselProvider = CarouselContext.Provider;
36
+ const useCarouselContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(CarouselContext, (ctx = carouselContextDefaultValue)=>selector(ctx));
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["CarouselContext.js"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport * as React from 'react';\nimport { createCarouselStore } from './createCarouselStore';\nexport const carouselContextDefaultValue = {\n store: createCarouselStore(),\n value: null,\n selectPageByDirection: ()=>{\n /** noop */ },\n selectPageByValue: ()=>{\n /** noop */ }\n};\nconst CarouselContext = createContext(undefined);\nexport const CarouselProvider = CarouselContext.Provider;\nexport const useCarouselContext_unstable = (selector)=>useContextSelector(CarouselContext, (ctx = carouselContextDefaultValue)=>selector(ctx));\n"],"names":["carouselContextDefaultValue","CarouselProvider","useCarouselContext_unstable","store","createCarouselStore","value","selectPageByDirection","selectPageByValue","CarouselContext","createContext","undefined","Provider","selector","useContextSelector","ctx"],"mappings":";;;;;;;;;;;IAGaA,2BAA2B;eAA3BA;;IASAC,gBAAgB;eAAhBA;;IACAC,2BAA2B;eAA3BA;;;;sCAbqC;iEAC3B;qCACa;AAC7B,MAAMF,8BAA8B;IACvCG,OAAOC,IAAAA,wCAAmB;IAC1BC,OAAO;IACPC,uBAAuB;IACvB,SAAS,GAAG;IACZC,mBAAmB;IACnB,SAAS,GAAG;AAChB;AACA,MAAMC,kBAAkBC,IAAAA,mCAAa,EAACC;AAC/B,MAAMT,mBAAmBO,gBAAgBG,QAAQ;AACjD,MAAMT,8BAA8B,CAACU,WAAWC,IAAAA,wCAAkB,EAACL,iBAAiB,CAACM,MAAMd,2BAA2B,GAAGY,SAASE"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "CarouselItem", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return CarouselItem;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _useCarouselItem = require("./useCarouselItem");
14
+ const _renderCarouselItem = require("./renderCarouselItem");
15
+ const CarouselItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
16
+ const state = (0, _useCarouselItem.useCarouselItem_unstable)(props, ref);
17
+ return (0, _renderCarouselItem.renderCarouselItem_unstable)(state);
18
+ });
19
+ CarouselItem.displayName = 'CarouselItem';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Carouseltem.js"],"sourcesContent":["import * as React from 'react';\nimport { useCarouselItem_unstable } from './useCarouselItem';\nimport { renderCarouselItem_unstable } from './renderCarouselItem';\n/**\n * Define a CarouselItem, using the `useCarouselItem_unstable` and 'renderCarouselItem_unstable' hooks.\n * It has no styling opinions.\n */ export const CarouselItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useCarouselItem_unstable(props, ref);\n return renderCarouselItem_unstable(state);\n});\nCarouselItem.displayName = 'CarouselItem';\n"],"names":["CarouselItem","React","forwardRef","props","ref","state","useCarouselItem_unstable","renderCarouselItem_unstable","displayName"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;iCACkB;oCACG;AAIjC,MAAMA,eAAe,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACnE,MAAMC,QAAQC,IAAAA,yCAAwB,EAACH,OAAOC;IAC9C,OAAOG,IAAAA,+CAA2B,EAACF;AACvC;AACAL,aAAaQ,WAAW,GAAG"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderCarouselItem_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderCarouselItem_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
13
+ const renderCarouselItem_unstable = (state)=>{
14
+ (0, _reactutilities.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
16
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderCarouselItem.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */ export const renderCarouselItem_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.root, {});\n};\n"],"names":["renderCarouselItem_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJa;gCACF;AAGjB,MAAMA,8BAA8B,CAACC;IAC5CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AAC3C"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useCarouselItem_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useCarouselItem_unstable;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
14
+ const _CarouselContext = require("../CarouselContext");
15
+ const _constants = require("../constants");
16
+ const useCarouselItem_unstable = (props, ref)=>{
17
+ const { value } = props;
18
+ const visible = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.value === value);
19
+ const state = {
20
+ value,
21
+ visible,
22
+ components: {
23
+ root: 'div'
24
+ },
25
+ root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
26
+ ref,
27
+ [_constants.CAROUSEL_ITEM]: value,
28
+ [_constants.CAROUSEL_ACTIVE_ITEM]: visible,
29
+ hidden: !visible,
30
+ ...props
31
+ }), {
32
+ elementType: 'div'
33
+ })
34
+ };
35
+ if (!visible) {
36
+ state.root.children = null;
37
+ }
38
+ return state;
39
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useCarouselItem.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport { useCarouselContext_unstable } from '../CarouselContext';\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from '../constants';\nexport const useCarouselItem_unstable = (props, ref)=>{\n const { value } = props;\n const visible = useCarouselContext_unstable((c)=>c.value === value);\n const state = {\n value,\n visible,\n components: {\n root: 'div'\n },\n root: slot.always(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 if (!visible) {\n state.root.children = null;\n }\n return state;\n};\n"],"names":["useCarouselItem_unstable","props","ref","value","visible","useCarouselContext_unstable","c","state","components","root","slot","always","getIntrinsicElementProps","CAROUSEL_ITEM","CAROUSEL_ACTIVE_ITEM","hidden","elementType","children"],"mappings":";;;;+BAIaA;;;eAAAA;;;;iEAJU;gCACwB;iCACH;2BACQ;AAC7C,MAAMA,2BAA2B,CAACC,OAAOC;IAC5C,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAClB,MAAMG,UAAUC,IAAAA,4CAA2B,EAAC,CAACC,IAAIA,EAAEH,KAAK,KAAKA;IAC7D,MAAMI,QAAQ;QACVJ;QACAC;QACAI,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAC9CV;YACA,CAACW,wBAAa,CAAC,EAAEV;YACjB,CAACW,+BAAoB,CAAC,EAAEV;YACxBW,QAAQ,CAACX;YACT,GAAGH,KAAK;QACZ,IAAI;YACAe,aAAa;QACjB;IACJ;IACA,IAAI,CAACZ,SAAS;QACVG,MAAME,IAAI,CAACQ,QAAQ,GAAG;IAC1B;IACA,OAAOV;AACX"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ CAROUSEL_ITEM: function() {
13
+ return CAROUSEL_ITEM;
14
+ },
15
+ CAROUSEL_ACTIVE_ITEM: function() {
16
+ return CAROUSEL_ACTIVE_ITEM;
17
+ }
18
+ });
19
+ const CAROUSEL_ITEM = 'data-carousel-item';
20
+ const CAROUSEL_ACTIVE_ITEM = 'data-carousel-active-item';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["constants.js"],"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":";;;;;;;;;;;IAAaA,aAAa;eAAbA;;IACAC,oBAAoB;eAApBA;;;AADN,MAAMD,gBAAgB;AACtB,MAAMC,uBAAuB"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "createCarouselStore", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return createCarouselStore;
9
+ }
10
+ });
11
+ const createCarouselStore = ()=>{
12
+ let values = [];
13
+ let listeners = [];
14
+ const carouselStore = {
15
+ clear () {
16
+ values = [];
17
+ emitChange();
18
+ },
19
+ addValue (value) {
20
+ values = [
21
+ ...values,
22
+ value
23
+ ];
24
+ emitChange();
25
+ },
26
+ insertValue (value, prev) {
27
+ if (!prev) {
28
+ values = [
29
+ value,
30
+ ...values
31
+ ];
32
+ } else {
33
+ const pos = values.indexOf(prev);
34
+ values.splice(pos + 1, 0, value);
35
+ // Required to be defined as a 'new' array for useSyncExternalStore
36
+ values = [
37
+ ...values
38
+ ];
39
+ }
40
+ emitChange();
41
+ },
42
+ removeValue (value) {
43
+ const pos = values.indexOf(value);
44
+ values.splice(pos, 1);
45
+ // Required to be defined as a 'new' array for useSyncExternalStore
46
+ values = [
47
+ ...values
48
+ ];
49
+ emitChange();
50
+ },
51
+ subscribe (listener) {
52
+ listeners = [
53
+ ...listeners,
54
+ listener
55
+ ];
56
+ return ()=>{
57
+ listeners = listeners.filter((l)=>l !== listener);
58
+ };
59
+ },
60
+ getSnapshot () {
61
+ return values;
62
+ }
63
+ };
64
+ function emitChange() {
65
+ for (const listener of listeners){
66
+ listener();
67
+ }
68
+ }
69
+ return carouselStore;
70
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["createCarouselStore.js"],"sourcesContent":["export const createCarouselStore = ()=>{\n let values = [];\n let listeners = [];\n const carouselStore = {\n clear () {\n values = [];\n emitChange();\n },\n addValue (value) {\n values = [\n ...values,\n value\n ];\n emitChange();\n },\n insertValue (value, prev) {\n if (!prev) {\n values = [\n value,\n ...values\n ];\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 = [\n ...values\n ];\n }\n emitChange();\n },\n removeValue (value) {\n const pos = values.indexOf(value);\n values.splice(pos, 1);\n // Required to be defined as a 'new' array for useSyncExternalStore\n values = [\n ...values\n ];\n emitChange();\n },\n subscribe (listener) {\n listeners = [\n ...listeners,\n listener\n ];\n return ()=>{\n listeners = listeners.filter((l)=>l !== listener);\n };\n },\n getSnapshot () {\n return values;\n }\n };\n function emitChange() {\n for (const listener of listeners){\n listener();\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":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,sBAAsB;IAC/B,IAAIC,SAAS,EAAE;IACf,IAAIC,YAAY,EAAE;IAClB,MAAMC,gBAAgB;QAClBC;YACIH,SAAS,EAAE;YACXI;QACJ;QACAC,UAAUC,KAAK;YACXN,SAAS;mBACFA;gBACHM;aACH;YACDF;QACJ;QACAG,aAAaD,KAAK,EAAEE,IAAI;YACpB,IAAI,CAACA,MAAM;gBACPR,SAAS;oBACLM;uBACGN;iBACN;YACL,OAAO;gBACH,MAAMS,MAAMT,OAAOU,OAAO,CAACF;gBAC3BR,OAAOW,MAAM,CAACF,MAAM,GAAG,GAAGH;gBAC1B,mEAAmE;gBACnEN,SAAS;uBACFA;iBACN;YACL;YACAI;QACJ;QACAQ,aAAaN,KAAK;YACd,MAAMG,MAAMT,OAAOU,OAAO,CAACJ;YAC3BN,OAAOW,MAAM,CAACF,KAAK;YACnB,mEAAmE;YACnET,SAAS;mBACFA;aACN;YACDI;QACJ;QACAS,WAAWC,QAAQ;YACfb,YAAY;mBACLA;gBACHa;aACH;YACD,OAAO;gBACHb,YAAYA,UAAUc,MAAM,CAAC,CAACC,IAAIA,MAAMF;YAC5C;QACJ;QACAG;YACI,OAAOjB;QACX;IACJ;IACA,SAASI;QACL,KAAK,MAAMU,YAAYb,UAAU;YAC7Ba;QACJ;IACJ;IACA,OAAOZ;AACX"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useCarouselValues_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useCarouselValues_unstable;
9
+ }
10
+ });
11
+ const _shim = require("use-sync-external-store/shim");
12
+ const _CarouselContext = require("./CarouselContext");
13
+ function useCarouselValues_unstable(getSnapshot) {
14
+ const store = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.store);
15
+ return (0, _shim.useSyncExternalStore)(store.subscribe, ()=>getSnapshot(store.getSnapshot()));
16
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useCarouselValues.js"],"sourcesContent":["import { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useCarouselContext_unstable } from './CarouselContext';\nexport function useCarouselValues_unstable(getSnapshot) {\n const store = useCarouselContext_unstable((c)=>c.store);\n return useSyncExternalStore(store.subscribe, ()=>getSnapshot(store.getSnapshot()));\n}\n"],"names":["useCarouselValues_unstable","getSnapshot","store","useCarouselContext_unstable","c","useSyncExternalStore","subscribe"],"mappings":";;;;+BAEgBA;;;eAAAA;;;sBAFqB;iCACO;AACrC,SAASA,2BAA2BC,WAAW;IAClD,MAAMC,QAAQC,IAAAA,4CAA2B,EAAC,CAACC,IAAIA,EAAEF,KAAK;IACtD,OAAOG,IAAAA,0BAAoB,EAACH,MAAMI,SAAS,EAAE,IAAIL,YAAYC,MAAMD,WAAW;AAClF"}
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useCarouselWalker_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useCarouselWalker_unstable;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
14
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
15
+ const _constants = require("./constants");
16
+ const useCarouselWalker_unstable = ()=>{
17
+ const { targetDocument } = (0, _reactsharedcontexts.useFluent_unstable)();
18
+ const treeWalkerRef = _react.useRef(targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.createTreeWalker(targetDocument.body));
19
+ const htmlRef = _react.useRef(null);
20
+ const ref = _react.useCallback((el)=>{
21
+ if (!targetDocument) {
22
+ return;
23
+ }
24
+ if (!el) {
25
+ return;
26
+ }
27
+ htmlRef.current = el;
28
+ treeWalkerRef.current = targetDocument.createTreeWalker(el, NodeFilter.SHOW_ELEMENT, {
29
+ acceptNode (node) {
30
+ if (!(0, _reactutilities.isHTMLElement)(node)) {
31
+ return NodeFilter.FILTER_SKIP;
32
+ }
33
+ return node.hasAttribute(_constants.CAROUSEL_ITEM) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
34
+ }
35
+ });
36
+ }, [
37
+ targetDocument
38
+ ]);
39
+ return {
40
+ ref,
41
+ walker: _react.useMemo(()=>({
42
+ active () {
43
+ if (!htmlRef.current) {
44
+ return null;
45
+ }
46
+ const activeEl = htmlRef.current.querySelector(`[${_constants.CAROUSEL_ACTIVE_ITEM}="true"]`);
47
+ if ((0, _reactutilities.isHTMLElement)(activeEl)) {
48
+ return {
49
+ el: activeEl,
50
+ value: activeEl.getAttribute(_constants.CAROUSEL_ITEM)
51
+ };
52
+ }
53
+ return null;
54
+ },
55
+ find (value) {
56
+ var _treeWalkerRef_current;
57
+ if (!((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode) || !htmlRef.current) {
58
+ return null;
59
+ }
60
+ treeWalkerRef.current.currentNode = htmlRef.current;
61
+ let nextNode = null;
62
+ while(nextNode = treeWalkerRef.current.nextNode()){
63
+ if (!(0, _reactutilities.isHTMLElement)(nextNode)) {
64
+ continue;
65
+ }
66
+ if (nextNode.getAttribute(_constants.CAROUSEL_ITEM) === value) {
67
+ return {
68
+ el: nextNode,
69
+ value: nextNode.getAttribute(_constants.CAROUSEL_ITEM)
70
+ };
71
+ }
72
+ }
73
+ return null;
74
+ },
75
+ nextPage (value) {
76
+ var _treeWalkerRef_current;
77
+ const res = this.find(value);
78
+ if (!res || !((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode)) {
79
+ return null;
80
+ }
81
+ treeWalkerRef.current.currentNode = res.el;
82
+ const next = treeWalkerRef.current.nextNode();
83
+ if ((0, _reactutilities.isHTMLElement)(next)) {
84
+ return {
85
+ el: next,
86
+ value: next.getAttribute(_constants.CAROUSEL_ITEM)
87
+ };
88
+ }
89
+ return null;
90
+ },
91
+ prevPage (value) {
92
+ var _treeWalkerRef_current;
93
+ const res = this.find(value);
94
+ if (!res || !((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode)) {
95
+ return null;
96
+ }
97
+ treeWalkerRef.current.currentNode = res.el;
98
+ const next = treeWalkerRef.current.previousNode();
99
+ if ((0, _reactutilities.isHTMLElement)(next)) {
100
+ return {
101
+ el: next,
102
+ value: next.getAttribute(_constants.CAROUSEL_ITEM)
103
+ };
104
+ }
105
+ return null;
106
+ }
107
+ }), [])
108
+ };
109
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useCarouselWalker.js"],"sourcesContent":["import * as React from 'react';\nimport { isHTMLElement } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from './constants';\nexport const useCarouselWalker_unstable = ()=>{\n const { targetDocument } = useFluent();\n const treeWalkerRef = React.useRef(targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.createTreeWalker(targetDocument.body));\n const htmlRef = React.useRef(null);\n const ref = React.useCallback((el)=>{\n if (!targetDocument) {\n return;\n }\n if (!el) {\n return;\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 return node.hasAttribute(CAROUSEL_ITEM) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n }, [\n targetDocument\n ]);\n return {\n ref,\n walker: React.useMemo(()=>({\n active () {\n if (!htmlRef.current) {\n return null;\n }\n const activeEl = htmlRef.current.querySelector(`[${CAROUSEL_ACTIVE_ITEM}=\"true\"]`);\n if (isHTMLElement(activeEl)) {\n return {\n el: activeEl,\n value: activeEl.getAttribute(CAROUSEL_ITEM)\n };\n }\n return null;\n },\n find (value) {\n var _treeWalkerRef_current;\n if (!((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode) || !htmlRef.current) {\n return null;\n }\n treeWalkerRef.current.currentNode = htmlRef.current;\n let nextNode = null;\n while(nextNode = treeWalkerRef.current.nextNode()){\n if (!isHTMLElement(nextNode)) {\n continue;\n }\n if (nextNode.getAttribute(CAROUSEL_ITEM) === value) {\n return {\n el: nextNode,\n value: nextNode.getAttribute(CAROUSEL_ITEM)\n };\n }\n }\n return null;\n },\n nextPage (value) {\n var _treeWalkerRef_current;\n const res = this.find(value);\n if (!res || !((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode)) {\n return null;\n }\n treeWalkerRef.current.currentNode = res.el;\n const next = treeWalkerRef.current.nextNode();\n if (isHTMLElement(next)) {\n return {\n el: next,\n value: next.getAttribute(CAROUSEL_ITEM)\n };\n }\n return null;\n },\n prevPage (value) {\n var _treeWalkerRef_current;\n const res = this.find(value);\n if (!res || !((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode)) {\n return null;\n }\n treeWalkerRef.current.currentNode = res.el;\n const next = treeWalkerRef.current.previousNode();\n if (isHTMLElement(next)) {\n return {\n el: next,\n value: next.getAttribute(CAROUSEL_ITEM)\n };\n }\n return null;\n }\n }), [])\n };\n};\n"],"names":["useCarouselWalker_unstable","targetDocument","useFluent","treeWalkerRef","React","useRef","createTreeWalker","body","htmlRef","ref","useCallback","el","current","NodeFilter","SHOW_ELEMENT","acceptNode","node","isHTMLElement","FILTER_SKIP","hasAttribute","CAROUSEL_ITEM","FILTER_ACCEPT","walker","useMemo","active","activeEl","querySelector","CAROUSEL_ACTIVE_ITEM","value","getAttribute","find","_treeWalkerRef_current","currentNode","nextNode","nextPage","res","next","prevPage","previousNode"],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "TeachingPopoverCarousel", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return TeachingPopoverCarousel;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _useTeachingPopoverCarousel = require("./useTeachingPopoverCarousel");
14
+ const _renderTeachingPopoverCarousel = require("./renderTeachingPopoverCarousel");
15
+ const _useTeachingPopoverCarouselStylesstyles = require("./useTeachingPopoverCarouselStyles.styles");
16
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
17
+ const _useTeachingPopoverCarouselContextValues = require("./useTeachingPopoverCarouselContextValues");
18
+ const TeachingPopoverCarousel = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
19
+ const state = (0, _useTeachingPopoverCarousel.useTeachingPopoverCarousel_unstable)(props, ref);
20
+ (0, _useTeachingPopoverCarouselStylesstyles.useTeachingPopoverCarouselStyles_unstable)(state);
21
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useTeachingPopoverCarouselStyles_unstable')(state);
22
+ const contextValues = (0, _useTeachingPopoverCarouselContextValues.useTeachingPopoverCarouselContextValues_unstable)(state);
23
+ return (0, _renderTeachingPopoverCarousel.renderTeachingPopoverCarousel_unstable)(state, contextValues);
24
+ });
25
+ TeachingPopoverCarousel.displayName = 'TeachingPopoverCarousel';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarousel.js"],"sourcesContent":["import * as React from 'react';\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 { useTeachingPopoverCarouselContextValues_unstable } from './useTeachingPopoverCarouselContextValues';\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 */ export const TeachingPopoverCarousel = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useTeachingPopoverCarousel_unstable(props, ref);\n useTeachingPopoverCarouselStyles_unstable(state);\n useCustomStyleHook_unstable('useTeachingPopoverCarouselStyles_unstable')(state);\n const contextValues = useTeachingPopoverCarouselContextValues_unstable(state);\n return renderTeachingPopoverCarousel_unstable(state, contextValues);\n});\nTeachingPopoverCarousel.displayName = 'TeachingPopoverCarousel';\n"],"names":["TeachingPopoverCarousel","React","forwardRef","props","ref","state","useTeachingPopoverCarousel_unstable","useTeachingPopoverCarouselStyles_unstable","useCustomStyleHook_unstable","contextValues","useTeachingPopoverCarouselContextValues_unstable","renderTeachingPopoverCarousel_unstable","displayName"],"mappings":";;;;+BAWiBA;;;eAAAA;;;;iEAXM;4CAC6B;+CACG;wDACG;qCACd;yDACqB;AAMtD,MAAMA,0BAA0B,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC9E,MAAMC,QAAQC,IAAAA,+DAAmC,EAACH,OAAOC;IACzDG,IAAAA,iFAAyC,EAACF;IAC1CG,IAAAA,gDAA2B,EAAC,6CAA6CH;IACzE,MAAMI,gBAAgBC,IAAAA,yFAAgD,EAACL;IACvE,OAAOM,IAAAA,qEAAsC,EAACN,OAAOI;AACzD;AACAT,wBAAwBY,WAAW,GAAG"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./TeachingPopoverCarousel"), exports);
7
+ _export_star._(require("./TeachingPopoverCarousel.types"), exports);
8
+ _export_star._(require("./renderTeachingPopoverCarousel"), exports);
9
+ _export_star._(require("./useTeachingPopoverCarousel"), exports);
10
+ _export_star._(require("./useTeachingPopoverCarouselStyles.styles"), exports);
11
+ _export_star._(require("./useTeachingPopoverCarouselContextValues"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './TeachingPopoverCarousel';\nexport * from './TeachingPopoverCarousel.types';\nexport * from './renderTeachingPopoverCarousel';\nexport * from './useTeachingPopoverCarousel';\nexport * from './useTeachingPopoverCarouselStyles.styles';\nexport * from './useTeachingPopoverCarouselContextValues';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;uBACA"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderTeachingPopoverCarousel_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderTeachingPopoverCarousel_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
13
+ const _CarouselContext = require("./Carousel/CarouselContext");
14
+ const renderTeachingPopoverCarousel_unstable = (state, contextValues)=>{
15
+ (0, _reactutilities.assertSlots)(state);
16
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_CarouselContext.CarouselProvider, {
17
+ value: contextValues.carousel,
18
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {})
19
+ });
20
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderTeachingPopoverCarousel.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { CarouselProvider } from './Carousel/CarouselContext';\n/**\n * Render the final JSX of TeachingPopoverCarousel\n */ export const renderTeachingPopoverCarousel_unstable = (state, contextValues)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(CarouselProvider, {\n value: contextValues.carousel,\n children: /*#__PURE__*/ _jsx(state.root, {})\n });\n};\n"],"names":["renderTeachingPopoverCarousel_unstable","state","contextValues","assertSlots","_jsx","CarouselProvider","value","carousel","children","root"],"mappings":";;;;+BAKiBA;;;eAAAA;;;4BALa;gCACF;iCACK;AAGtB,MAAMA,yCAAyC,CAACC,OAAOC;IAC9DC,IAAAA,2BAAW,EAACF;IACZ,OAAO,WAAW,GAAGG,IAAAA,eAAI,EAACC,iCAAgB,EAAE;QACxCC,OAAOJ,cAAcK,QAAQ;QAC7BC,UAAU,WAAW,GAAGJ,IAAAA,eAAI,EAACH,MAAMQ,IAAI,EAAE,CAAC;IAC9C;AACJ"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useTeachingPopoverCarousel_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useTeachingPopoverCarousel_unstable;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
14
+ const _reactpopover = require("@fluentui/react-popover");
15
+ const _Carousel = require("./Carousel/Carousel");
16
+ const useTeachingPopoverCarousel_unstable = (props, ref)=>{
17
+ const toggleOpen = (0, _reactpopover.usePopoverContext_unstable)((c)=>c.toggleOpen);
18
+ const handleFinish = (0, _reactutilities.useEventCallback)((event, data)=>{
19
+ var _props_onFinish;
20
+ (_props_onFinish = props.onFinish) === null || _props_onFinish === void 0 ? void 0 : _props_onFinish.call(props, event, data);
21
+ toggleOpen(event);
22
+ });
23
+ const { carousel, carouselRef } = (0, _Carousel.useCarousel_unstable)({
24
+ defaultValue: props.defaultValue,
25
+ value: props.value,
26
+ onValueChange: props.onValueChange,
27
+ onFinish: handleFinish
28
+ });
29
+ const appearance = (0, _reactpopover.usePopoverContext_unstable)((context)=>context.appearance);
30
+ return {
31
+ appearance,
32
+ components: {
33
+ root: 'div'
34
+ },
35
+ root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
36
+ ref: (0, _reactutilities.useMergedRefs)(ref, carouselRef),
37
+ ...props
38
+ }), {
39
+ elementType: 'div'
40
+ }),
41
+ ...carousel
42
+ };
43
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useTeachingPopoverCarousel.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarousel_unstable } from './Carousel/Carousel';\nexport const useTeachingPopoverCarousel_unstable = (props, ref)=>{\n const toggleOpen = usePopoverContext_unstable((c)=>c.toggleOpen);\n const handleFinish = useEventCallback((event, data)=>{\n var _props_onFinish;\n (_props_onFinish = props.onFinish) === null || _props_onFinish === void 0 ? void 0 : _props_onFinish.call(props, event, data);\n toggleOpen(event);\n });\n const { carousel, carouselRef } = useCarousel_unstable({\n defaultValue: props.defaultValue,\n value: props.value,\n onValueChange: props.onValueChange,\n onFinish: handleFinish\n });\n const appearance = usePopoverContext_unstable((context)=>context.appearance);\n return {\n appearance,\n components: {\n root: 'div'\n },\n root: slot.always(getIntrinsicElementProps('div', {\n ref: useMergedRefs(ref, carouselRef),\n ...props\n }), {\n elementType: 'div'\n }),\n ...carousel\n };\n};\n"],"names":["useTeachingPopoverCarousel_unstable","props","ref","toggleOpen","usePopoverContext_unstable","c","handleFinish","useEventCallback","event","data","_props_onFinish","onFinish","call","carousel","carouselRef","useCarousel_unstable","defaultValue","value","onValueChange","appearance","context","components","root","slot","always","getIntrinsicElementProps","useMergedRefs","elementType"],"mappings":";;;;+BAIaA;;;eAAAA;;;;iEAJU;gCACyD;8BACrC;0BACN;AAC9B,MAAMA,sCAAsC,CAACC,OAAOC;IACvD,MAAMC,aAAaC,IAAAA,wCAA0B,EAAC,CAACC,IAAIA,EAAEF,UAAU;IAC/D,MAAMG,eAAeC,IAAAA,gCAAgB,EAAC,CAACC,OAAOC;QAC1C,IAAIC;QACHA,CAAAA,kBAAkBT,MAAMU,QAAQ,AAAD,MAAO,QAAQD,oBAAoB,KAAK,IAAI,KAAK,IAAIA,gBAAgBE,IAAI,CAACX,OAAOO,OAAOC;QACxHN,WAAWK;IACf;IACA,MAAM,EAAEK,QAAQ,EAAEC,WAAW,EAAE,GAAGC,IAAAA,8BAAoB,EAAC;QACnDC,cAAcf,MAAMe,YAAY;QAChCC,OAAOhB,MAAMgB,KAAK;QAClBC,eAAejB,MAAMiB,aAAa;QAClCP,UAAUL;IACd;IACA,MAAMa,aAAaf,IAAAA,wCAA0B,EAAC,CAACgB,UAAUA,QAAQD,UAAU;IAC3E,OAAO;QACHA;QACAE,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAC9CvB,KAAKwB,IAAAA,6BAAa,EAACxB,KAAKY;YACxB,GAAGb,KAAK;QACZ,IAAI;YACA0B,aAAa;QACjB;QACA,GAAGd,QAAQ;IACf;AACJ"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useTeachingPopoverCarouselContextValues_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useTeachingPopoverCarouselContextValues_unstable;
9
+ }
10
+ });
11
+ function useTeachingPopoverCarouselContextValues_unstable(state) {
12
+ const { store, value, selectPageByValue, selectPageByDirection } = state;
13
+ const carousel = {
14
+ store,
15
+ value,
16
+ selectPageByDirection,
17
+ selectPageByValue
18
+ };
19
+ return {
20
+ carousel
21
+ };
22
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useTeachingPopoverCarouselContextValues.js"],"sourcesContent":["export function useTeachingPopoverCarouselContextValues_unstable(state) {\n const { store, value, selectPageByValue, selectPageByDirection } = state;\n const carousel = {\n store,\n value,\n selectPageByDirection,\n selectPageByValue\n };\n return {\n carousel\n };\n}\n"],"names":["useTeachingPopoverCarouselContextValues_unstable","state","store","value","selectPageByValue","selectPageByDirection","carousel"],"mappings":";;;;+BAAgBA;;;eAAAA;;;AAAT,SAASA,iDAAiDC,KAAK;IAClE,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,iBAAiB,EAAEC,qBAAqB,EAAE,GAAGJ;IACnE,MAAMK,WAAW;QACbJ;QACAC;QACAE;QACAD;IACJ;IACA,OAAO;QACHE;IACJ;AACJ"}