@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,60 @@
1
+ export const createCarouselStore = ()=>{
2
+ let values = [];
3
+ let listeners = [];
4
+ const carouselStore = {
5
+ clear () {
6
+ values = [];
7
+ emitChange();
8
+ },
9
+ addValue (value) {
10
+ values = [
11
+ ...values,
12
+ value
13
+ ];
14
+ emitChange();
15
+ },
16
+ insertValue (value, prev) {
17
+ if (!prev) {
18
+ values = [
19
+ value,
20
+ ...values
21
+ ];
22
+ } else {
23
+ const pos = values.indexOf(prev);
24
+ values.splice(pos + 1, 0, value);
25
+ // Required to be defined as a 'new' array for useSyncExternalStore
26
+ values = [
27
+ ...values
28
+ ];
29
+ }
30
+ emitChange();
31
+ },
32
+ removeValue (value) {
33
+ const pos = values.indexOf(value);
34
+ values.splice(pos, 1);
35
+ // Required to be defined as a 'new' array for useSyncExternalStore
36
+ values = [
37
+ ...values
38
+ ];
39
+ emitChange();
40
+ },
41
+ subscribe (listener) {
42
+ listeners = [
43
+ ...listeners,
44
+ listener
45
+ ];
46
+ return ()=>{
47
+ listeners = listeners.filter((l)=>l !== listener);
48
+ };
49
+ },
50
+ getSnapshot () {
51
+ return values;
52
+ }
53
+ };
54
+ function emitChange() {
55
+ for (const listener of listeners){
56
+ listener();
57
+ }
58
+ }
59
+ return carouselStore;
60
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["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":"AAEA,OAAO,MAAMA,sBAAsB;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"}
@@ -0,0 +1,6 @@
1
+ import { useSyncExternalStore } from 'use-sync-external-store/shim';
2
+ import { useCarouselContext_unstable } from './CarouselContext';
3
+ export function useCarouselValues_unstable(getSnapshot) {
4
+ const store = useCarouselContext_unstable((c)=>c.store);
5
+ return useSyncExternalStore(store.subscribe, ()=>getSnapshot(store.getSnapshot()));
6
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useCarouselValues.ts"],"sourcesContent":["import { 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,SAASA,oBAAoB,QAAQ,+BAA+B;AAEpE,SAASC,2BAA2B,QAAQ,oBAAoB;AAGhE,OAAO,SAASC,2BAA8BC,WAAoE;IAChH,MAAMC,QAAQH,4BAA4BI,CAAAA,IAAKA,EAAED,KAAK;IAEtD,OAAOJ,qBAAqBI,MAAME,SAAS,EAAE,IAAMH,YAAYC,MAAMD,WAAW;AAClF"}
@@ -0,0 +1,98 @@
1
+ import * as React from 'react';
2
+ import { isHTMLElement } from '@fluentui/react-utilities';
3
+ import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';
4
+ import { CAROUSEL_ACTIVE_ITEM, CAROUSEL_ITEM } from './constants';
5
+ export const useCarouselWalker_unstable = ()=>{
6
+ const { targetDocument } = useFluent();
7
+ const treeWalkerRef = React.useRef(targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.createTreeWalker(targetDocument.body));
8
+ const htmlRef = React.useRef(null);
9
+ const ref = React.useCallback((el)=>{
10
+ if (!targetDocument) {
11
+ return;
12
+ }
13
+ if (!el) {
14
+ return;
15
+ }
16
+ htmlRef.current = el;
17
+ treeWalkerRef.current = targetDocument.createTreeWalker(el, NodeFilter.SHOW_ELEMENT, {
18
+ acceptNode (node) {
19
+ if (!isHTMLElement(node)) {
20
+ return NodeFilter.FILTER_SKIP;
21
+ }
22
+ return node.hasAttribute(CAROUSEL_ITEM) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
23
+ }
24
+ });
25
+ }, [
26
+ targetDocument
27
+ ]);
28
+ return {
29
+ ref,
30
+ walker: React.useMemo(()=>({
31
+ active () {
32
+ if (!htmlRef.current) {
33
+ return null;
34
+ }
35
+ const activeEl = htmlRef.current.querySelector(`[${CAROUSEL_ACTIVE_ITEM}="true"]`);
36
+ if (isHTMLElement(activeEl)) {
37
+ return {
38
+ el: activeEl,
39
+ value: activeEl.getAttribute(CAROUSEL_ITEM)
40
+ };
41
+ }
42
+ return null;
43
+ },
44
+ find (value) {
45
+ var _treeWalkerRef_current;
46
+ if (!((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode) || !htmlRef.current) {
47
+ return null;
48
+ }
49
+ treeWalkerRef.current.currentNode = htmlRef.current;
50
+ let nextNode = null;
51
+ while(nextNode = treeWalkerRef.current.nextNode()){
52
+ if (!isHTMLElement(nextNode)) {
53
+ continue;
54
+ }
55
+ if (nextNode.getAttribute(CAROUSEL_ITEM) === value) {
56
+ return {
57
+ el: nextNode,
58
+ value: nextNode.getAttribute(CAROUSEL_ITEM)
59
+ };
60
+ }
61
+ }
62
+ return null;
63
+ },
64
+ nextPage (value) {
65
+ var _treeWalkerRef_current;
66
+ const res = this.find(value);
67
+ if (!res || !((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode)) {
68
+ return null;
69
+ }
70
+ treeWalkerRef.current.currentNode = res.el;
71
+ const next = treeWalkerRef.current.nextNode();
72
+ if (isHTMLElement(next)) {
73
+ return {
74
+ el: next,
75
+ value: next.getAttribute(CAROUSEL_ITEM)
76
+ };
77
+ }
78
+ return null;
79
+ },
80
+ prevPage (value) {
81
+ var _treeWalkerRef_current;
82
+ const res = this.find(value);
83
+ if (!res || !((_treeWalkerRef_current = treeWalkerRef.current) === null || _treeWalkerRef_current === void 0 ? void 0 : _treeWalkerRef_current.currentNode)) {
84
+ return null;
85
+ }
86
+ treeWalkerRef.current.currentNode = res.el;
87
+ const next = treeWalkerRef.current.previousNode();
88
+ if (isHTMLElement(next)) {
89
+ return {
90
+ el: next,
91
+ value: next.getAttribute(CAROUSEL_ITEM)
92
+ };
93
+ }
94
+ return null;
95
+ }
96
+ }), [])
97
+ };
98
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useCarouselWalker.ts"],"sourcesContent":["import * 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 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,YAAYA,WAAW,QAAQ;AAC/B,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAElF,SAASC,oBAAoB,EAAEC,aAAa,QAAQ,cAAc;AASlE,OAAO,MAAMC,6BAA6B;IACxC,MAAM,EAAEC,cAAc,EAAE,GAAGJ;IAE3B,MAAMK,gBAAgBR,MAAMS,MAAM,CAAyBF,2BAAAA,qCAAAA,eAAgBG,gBAAgB,CAACH,eAAeI,IAAI;IAC/G,MAAMC,UAAUZ,MAAMS,MAAM,CAAwB;IAEpD,MAAMI,MAAMb,MAAMc,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,CAACnB,cAAcmB,OAAO;oBACxB,OAAOH,WAAWI,WAAW;gBAC/B;gBAEA,OAAOD,KAAKE,YAAY,CAACjB,iBAAiBY,WAAWM,aAAa,GAAGN,WAAWI,WAAW;YAC7F;QACF;IACF,GACA;QAACd;KAAe;IAGlB,OAAO;QACLM;QACAW,QAAQxB,MAAMyB,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,qBAAqB,QAAQ,CAAC;oBAEjF,IAAIH,cAAc0B,WAAW;wBAC3B,OAAO;4BACLZ,IAAIY;4BACJE,OAAOF,SAASG,YAAY,CAACzB;wBAC/B;oBACF;oBAEA,OAAO;gBACT;gBACA0B,MAAKF,KAAa;wBACXrB;oBAAL,IAAI,GAACA,yBAAAA,cAAcQ,OAAO,cAArBR,6CAAAA,uBAAuBwB,WAAW,KAAI,CAACpB,QAAQI,OAAO,EAAE;wBAC3D,OAAO;oBACT;oBAEAR,cAAcQ,OAAO,CAACgB,WAAW,GAAGpB,QAAQI,OAAO;oBACnD,IAAIiB,WAAwB;oBAC5B,MAAQA,WAAWzB,cAAcQ,OAAO,CAACiB,QAAQ,GAAK;wBACpD,IAAI,CAAChC,cAAcgC,WAAW;4BAC5B;wBACF;wBAEA,IAAIA,SAASH,YAAY,CAACzB,mBAAmBwB,OAAO;4BAClD,OAAO;gCACLd,IAAIkB;gCACJJ,OAAOI,SAASH,YAAY,CAACzB;4BAC/B;wBACF;oBACF;oBAEA,OAAO;gBACT;gBACA6B,UAASL,KAAa;wBAEPrB;oBADb,MAAM2B,MAAM,IAAI,CAACJ,IAAI,CAACF;oBACtB,IAAI,CAACM,OAAO,GAAC3B,yBAAAA,cAAcQ,OAAO,cAArBR,6CAAAA,uBAAuBwB,WAAW,GAAE;wBAC/C,OAAO;oBACT;oBAEAxB,cAAcQ,OAAO,CAACgB,WAAW,GAAGG,IAAIpB,EAAE;oBAC1C,MAAMqB,OAAO5B,cAAcQ,OAAO,CAACiB,QAAQ;oBAE3C,IAAIhC,cAAcmC,OAAO;wBACvB,OAAO;4BACLrB,IAAIqB;4BACJP,OAAOO,KAAKN,YAAY,CAACzB;wBAC3B;oBACF;oBAEA,OAAO;gBACT;gBAEAgC,UAASR,KAAa;wBAEPrB;oBADb,MAAM2B,MAAM,IAAI,CAACJ,IAAI,CAACF;oBACtB,IAAI,CAACM,OAAO,GAAC3B,yBAAAA,cAAcQ,OAAO,cAArBR,6CAAAA,uBAAuBwB,WAAW,GAAE;wBAC/C,OAAO;oBACT;oBAEAxB,cAAcQ,OAAO,CAACgB,WAAW,GAAGG,IAAIpB,EAAE;oBAC1C,MAAMqB,OAAO5B,cAAcQ,OAAO,CAACsB,YAAY;oBAE/C,IAAIrC,cAAcmC,OAAO;wBACvB,OAAO;4BACLrB,IAAIqB;4BACJP,OAAOO,KAAKN,YAAY,CAACzB;wBAC3B;oBACF;oBAEA,OAAO;gBACT;YACF,CAAA,GACA,EAAE;IAEN;AACF,EAAE"}
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { useTeachingPopoverCarousel_unstable } from './useTeachingPopoverCarousel';
3
+ import { renderTeachingPopoverCarousel_unstable } from './renderTeachingPopoverCarousel';
4
+ import { useTeachingPopoverCarouselStyles_unstable } from './useTeachingPopoverCarouselStyles.styles';
5
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
6
+ import { useTeachingPopoverCarouselContextValues_unstable } from './useTeachingPopoverCarouselContextValues';
7
+ /**
8
+ * Define a styled TeachingPopoverCarousel, using the `useTeachingPopoverCarousel_unstable` and `useTeachingPopoverCarouselStyles_unstable`
9
+ * hooks.
10
+ *
11
+ * TeachingPopoverCarousel injects context providers that are required for TeachingPopoverCarouselCard display and navigation functionality
12
+ */ export const TeachingPopoverCarousel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
13
+ const state = useTeachingPopoverCarousel_unstable(props, ref);
14
+ useTeachingPopoverCarouselStyles_unstable(state);
15
+ useCustomStyleHook_unstable('useTeachingPopoverCarouselStyles_unstable')(state);
16
+ const contextValues = useTeachingPopoverCarouselContextValues_unstable(state);
17
+ return renderTeachingPopoverCarousel_unstable(state, contextValues);
18
+ });
19
+ TeachingPopoverCarousel.displayName = 'TeachingPopoverCarousel';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarousel.tsx"],"sourcesContent":["import * 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,YAAYA,WAAW,QAAQ;AAG/B,SAASC,mCAAmC,QAAQ,+BAA+B;AACnF,SAASC,sCAAsC,QAAQ,kCAAkC;AACzF,SAASC,yCAAyC,QAAQ,4CAA4C;AACtG,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,gDAAgD,QAAQ,4CAA4C;AAE7G;;;;;CAKC,GACD,OAAO,MAAMC,wCAA6EN,MAAMO,UAAU,CACxG,CAACC,OAAOC;IACN,MAAMC,QAAQT,oCAAoCO,OAAOC;IAEzDN,0CAA0CO;IAE1CN,4BAA4B,6CAA6CM;IAEzE,MAAMC,gBAAgBN,iDAAiDK;IAEvE,OAAOR,uCAAuCQ,OAAOC;AACvD,GACA;AAEFL,wBAAwBM,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarousel.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, EventHandler, Slot } from '@fluentui/react-utilities';\nimport { type PopoverContextValue } from '@fluentui/react-popover';\n\nimport { type CarouselContextValue } from './Carousel/CarouselContext';\nimport type { CarouselValueChangeData } 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> & {\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\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"],"names":[],"mappings":"AAAA,WAkDE"}
@@ -0,0 +1,6 @@
1
+ export * from './TeachingPopoverCarousel';
2
+ export * from './TeachingPopoverCarousel.types';
3
+ export * from './renderTeachingPopoverCarousel';
4
+ export * from './useTeachingPopoverCarousel';
5
+ export * from './useTeachingPopoverCarouselStyles.styles';
6
+ export * from './useTeachingPopoverCarouselContextValues';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TeachingPopoverCarousel';\nexport * from './TeachingPopoverCarousel.types';\nexport * from './renderTeachingPopoverCarousel';\nexport * from './useTeachingPopoverCarousel';\nexport * from './useTeachingPopoverCarouselStyles.styles';\nexport * from './useTeachingPopoverCarouselContextValues';\n"],"names":[],"mappings":"AAAA,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,kCAAkC;AAChD,cAAc,+BAA+B;AAC7C,cAAc,4CAA4C;AAC1D,cAAc,4CAA4C"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-utilities';
3
+ import { CarouselProvider } from './Carousel/CarouselContext';
4
+ /**
5
+ * Render the final JSX of TeachingPopoverCarousel
6
+ */ export const renderTeachingPopoverCarousel_unstable = (state, contextValues)=>{
7
+ assertSlots(state);
8
+ return /*#__PURE__*/ _jsx(CarouselProvider, {
9
+ value: contextValues.carousel,
10
+ children: /*#__PURE__*/ _jsx(state.root, {})
11
+ });
12
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderTeachingPopoverCarousel.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } 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) => {\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":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAMxD,SAASC,gBAAgB,QAAQ,6BAA6B;AAE9D;;CAEC,GACD,OAAO,MAAMC,yCAAyC,CACpDC,OACAC;IAEAJ,YAA0CG;IAE1C,qBACE,KAACF;QAAiBI,OAAOD,cAAcE,QAAQ;kBAC7C,cAAA,KAACH,MAAMI,IAAI;;AAGjB,EAAE"}
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import { getIntrinsicElementProps, slot, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';
3
+ import { usePopoverContext_unstable } from '@fluentui/react-popover';
4
+ import { useCarousel_unstable } from './Carousel/Carousel';
5
+ export const useTeachingPopoverCarousel_unstable = (props, ref)=>{
6
+ const toggleOpen = usePopoverContext_unstable((c)=>c.toggleOpen);
7
+ const handleFinish = useEventCallback((event, data)=>{
8
+ var _props_onFinish;
9
+ (_props_onFinish = props.onFinish) === null || _props_onFinish === void 0 ? void 0 : _props_onFinish.call(props, event, data);
10
+ toggleOpen(event);
11
+ });
12
+ const { carousel, carouselRef } = useCarousel_unstable({
13
+ defaultValue: props.defaultValue,
14
+ value: props.value,
15
+ onValueChange: props.onValueChange,
16
+ onFinish: handleFinish
17
+ });
18
+ const appearance = usePopoverContext_unstable((context)=>context.appearance);
19
+ return {
20
+ appearance,
21
+ components: {
22
+ root: 'div'
23
+ },
24
+ root: slot.always(getIntrinsicElementProps('div', {
25
+ ref: useMergedRefs(ref, carouselRef),
26
+ ...props
27
+ }), {
28
+ elementType: 'div'
29
+ }),
30
+ ...carousel
31
+ };
32
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useTeachingPopoverCarousel.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';\nimport type { TeachingPopoverCarouselProps, TeachingPopoverCarouselState } from './TeachingPopoverCarousel.types';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarousel_unstable, type UseCarouselOptions } from './Carousel/Carousel';\n\nexport const useTeachingPopoverCarousel_unstable = (\n props: TeachingPopoverCarouselProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselState => {\n const toggleOpen = usePopoverContext_unstable(c => c.toggleOpen);\n const handleFinish: UseCarouselOptions['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 defaultValue: props.defaultValue,\n value: props.value,\n onValueChange: props.onValueChange,\n onFinish: handleFinish,\n });\n\n const appearance = usePopoverContext_unstable(context => context.appearance);\n return {\n appearance,\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"],"names":["React","getIntrinsicElementProps","slot","useEventCallback","useMergedRefs","usePopoverContext_unstable","useCarousel_unstable","useTeachingPopoverCarousel_unstable","props","ref","toggleOpen","c","handleFinish","event","data","onFinish","carousel","carouselRef","defaultValue","value","onValueChange","appearance","context","components","root","always","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,aAAa,QAAQ,4BAA4B;AAE5G,SAASC,0BAA0B,QAAQ,0BAA0B;AACrE,SAASC,oBAAoB,QAAiC,sBAAsB;AAEpF,OAAO,MAAMC,sCAAsC,CACjDC,OACAC;IAEA,MAAMC,aAAaL,2BAA2BM,CAAAA,IAAKA,EAAED,UAAU;IAC/D,MAAME,eAA+CT,iBAAiB,CAACU,OAAOC;YAC5EN;SAAAA,kBAAAA,MAAMO,QAAQ,cAAdP,sCAAAA,qBAAAA,OAAiBK,OAAOC;QACxBJ,WAAWG;IACb;IAEA,MAAM,EAAEG,QAAQ,EAAEC,WAAW,EAAE,GAAGX,qBAAqB;QACrDY,cAAcV,MAAMU,YAAY;QAChCC,OAAOX,MAAMW,KAAK;QAClBC,eAAeZ,MAAMY,aAAa;QAClCL,UAAUH;IACZ;IAEA,MAAMS,aAAahB,2BAA2BiB,CAAAA,UAAWA,QAAQD,UAAU;IAC3E,OAAO;QACLA;QACAE,YAAY;YACVC,MAAM;QACR;QACAA,MAAMtB,KAAKuB,MAAM,CACfxB,yBAAyB,OAAO;YAC9BQ,KAAKL,cAAcK,KAAKQ;YACxB,GAAGT,KAAK;QACV,IACA;YAAEkB,aAAa;QAAM;QAEvB,GAAGV,QAAQ;IACb;AACF,EAAE"}
@@ -0,0 +1,12 @@
1
+ export function useTeachingPopoverCarouselContextValues_unstable(state) {
2
+ const { store, value, selectPageByValue, selectPageByDirection } = state;
3
+ const carousel = {
4
+ store,
5
+ value,
6
+ selectPageByDirection,
7
+ selectPageByValue
8
+ };
9
+ return {
10
+ carousel
11
+ };
12
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useTeachingPopoverCarouselContextValues.ts"],"sourcesContent":["import 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 = {\n store,\n value,\n selectPageByDirection,\n selectPageByValue,\n };\n\n return { carousel };\n}\n"],"names":["useTeachingPopoverCarouselContextValues_unstable","state","store","value","selectPageByValue","selectPageByDirection","carousel"],"mappings":"AAKA,OAAO,SAASA,iDACdC,KAAmC;IAEnC,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,iBAAiB,EAAEC,qBAAqB,EAAE,GAAGJ;IAEnE,MAAMK,WAAW;QACfJ;QACAC;QACAE;QACAD;IACF;IAEA,OAAO;QAAEE;IAAS;AACpB"}
@@ -0,0 +1,15 @@
1
+ import { __styles, mergeClasses } from '@griffel/react';
2
+ export const teachingPopoverCarouselClassNames = {
3
+ root: 'fui-TeachingPopoverCarousel'
4
+ };
5
+ // Todo: Page change animation & styles
6
+ const useStyles = /*#__PURE__*/__styles({
7
+ root: {}
8
+ }, {});
9
+ /** Applies style classnames to slots */
10
+ export const useTeachingPopoverCarouselStyles_unstable = state => {
11
+ const styles = useStyles();
12
+ state.root.className = mergeClasses(teachingPopoverCarouselClassNames.root, styles.root, state.root.className);
13
+ return state;
14
+ };
15
+ //# sourceMappingURL=useTeachingPopoverCarouselStyles.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__styles","mergeClasses","teachingPopoverCarouselClassNames","root","useStyles","useTeachingPopoverCarouselStyles_unstable","state","styles","className"],"sources":["useTeachingPopoverCarouselStyles.styles.js"],"sourcesContent":["import { 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 state.root.className = mergeClasses(teachingPopoverCarouselClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,OAAO,MAAMC,iCAAiC,GAAG;EAC7CC,IAAI,EAAE;AACV,CAAC;AACD;AACA,MAAMC,SAAS,gBAAGJ,QAAA;EAAAG,IAAA;AAAA,KAEjB,CAAC;AACF;AAAyC,OAAO,MAAME,yCAAyC,GAAIC,KAAK,IAAG;EACvG,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGP,YAAY,CAACC,iCAAiC,CAACC,IAAI,EAAEI,MAAM,CAACJ,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAC9G,OAAOF,KAAK;AAChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useTeachingPopoverCarouselCard_unstable } from './useTeachingPopoverCarouselCard';
3
+ import { renderTeachingPopoverCarouselCard_unstable } from './renderTeachingPopoverCarouselCard';
4
+ import { useTeachingPopoverCarouselCardStyles_unstable } from './useTeachingPopoverCarouselCardStyles.styles';
5
+ /**
6
+ * Define a styled TeachingPopoverCarouselCard, using the `useTeachingPopoverCarouselCard_unstable` and `useTeachingPopoverCarouselCardStyles_unstable`
7
+ * hooks.
8
+ *
9
+ * TeachingPopoverCarouselCard is the definition of a single page view within the carousel, they are shown one at a time and can be navigated through sequentially.
10
+ */ export const TeachingPopoverCarouselCard = /*#__PURE__*/ React.forwardRef((props, ref)=>{
11
+ const state = useTeachingPopoverCarouselCard_unstable(props, ref);
12
+ useTeachingPopoverCarouselCardStyles_unstable(state);
13
+ return renderTeachingPopoverCarouselCard_unstable(state);
14
+ });
15
+ TeachingPopoverCarouselCard.displayName = 'TeachingPopoverCarouselCard';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarouselCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopoverCarouselCard_unstable } from './useTeachingPopoverCarouselCard';\nimport { renderTeachingPopoverCarouselCard_unstable } from './renderTeachingPopoverCarouselCard';\nimport type { TeachingPopoverCarouselCardProps } from './TeachingPopoverCarouselCard.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTeachingPopoverCarouselCardStyles_unstable } from './useTeachingPopoverCarouselCardStyles.styles';\n\n/**\n * Define a styled TeachingPopoverCarouselCard, using the `useTeachingPopoverCarouselCard_unstable` and `useTeachingPopoverCarouselCardStyles_unstable`\n * hooks.\n *\n * TeachingPopoverCarouselCard is the definition of a single page view within the carousel, they are shown one at a time and can be navigated through sequentially.\n */\nexport const TeachingPopoverCarouselCard: ForwardRefComponent<TeachingPopoverCarouselCardProps> = React.forwardRef(\n (props, ref) => {\n const state = useTeachingPopoverCarouselCard_unstable(props, ref);\n\n useTeachingPopoverCarouselCardStyles_unstable(state);\n\n return renderTeachingPopoverCarouselCard_unstable(state);\n },\n);\n\nTeachingPopoverCarouselCard.displayName = 'TeachingPopoverCarouselCard';\n"],"names":["React","useTeachingPopoverCarouselCard_unstable","renderTeachingPopoverCarouselCard_unstable","useTeachingPopoverCarouselCardStyles_unstable","TeachingPopoverCarouselCard","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,uCAAuC,QAAQ,mCAAmC;AAC3F,SAASC,0CAA0C,QAAQ,sCAAsC;AAGjG,SAASC,6CAA6C,QAAQ,gDAAgD;AAE9G;;;;;CAKC,GACD,OAAO,MAAMC,4CAAqFJ,MAAMK,UAAU,CAChH,CAACC,OAAOC;IACN,MAAMC,QAAQP,wCAAwCK,OAAOC;IAE7DJ,8CAA8CK;IAE9C,OAAON,2CAA2CM;AACpD,GACA;AAEFJ,4BAA4BK,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarouselCard.types.ts"],"sourcesContent":["import { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { CarouselItemProps } from '../TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types';\n\nexport type TeachingPopoverCarouselCardSlots = {\n /**\n * The element wrapping the buttons.\n */\n root: NonNullable<Slot<CarouselItemProps>>;\n};\n\nexport type TeachingPopoverCarouselCardProps = ComponentProps<TeachingPopoverCarouselCardSlots> & {\n /* Required: Passed into CarouselItem to identify pages. */\n value: string;\n};\n\nexport type TeachingPopoverCarouselCardState = ComponentState<TeachingPopoverCarouselCardSlots> &\n Required<Pick<TeachingPopoverCarouselCardProps, 'value'>>;\n"],"names":[],"mappings":"AAAA,WAgB4D"}
@@ -0,0 +1,5 @@
1
+ export * from './TeachingPopoverCarouselCard';
2
+ export * from './TeachingPopoverCarouselCard.types';
3
+ export * from './renderTeachingPopoverCarouselCard';
4
+ export * from './useTeachingPopoverCarouselCard';
5
+ export * from './useTeachingPopoverCarouselCardStyles.styles';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TeachingPopoverCarouselCard';\nexport * from './TeachingPopoverCarouselCard.types';\nexport * from './renderTeachingPopoverCarouselCard';\nexport * from './useTeachingPopoverCarouselCard';\nexport * from './useTeachingPopoverCarouselCardStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC;AAC9C,cAAc,sCAAsC;AACpD,cAAc,sCAAsC;AACpD,cAAc,mCAAmC;AACjD,cAAc,gDAAgD"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-utilities';
3
+ /**
4
+ * Render the final JSX of TeachingPopoverCarouselCard
5
+ */ export const renderTeachingPopoverCarouselCard_unstable = (state)=>{
6
+ assertSlots(state);
7
+ return /*#__PURE__*/ _jsx(state.root, {});
8
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderTeachingPopoverCarouselCard.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverCarouselCardState } from './TeachingPopoverCarouselCard.types';\nimport { TeachingPopoverCarouselCardSlots } from './TeachingPopoverCarouselCard.types';\nimport { assertSlots } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TeachingPopoverCarouselCard\n */\nexport const renderTeachingPopoverCarouselCard_unstable = (state: TeachingPopoverCarouselCardState) => {\n assertSlots<TeachingPopoverCarouselCardSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderTeachingPopoverCarouselCard_unstable","state","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAGjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD;;CAEC,GACD,OAAO,MAAMC,6CAA6C,CAACC;IACzDF,YAA8CE;IAE9C,qBAAO,KAACA,MAAMC,IAAI;AACpB,EAAE"}
@@ -0,0 +1,25 @@
1
+ import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
2
+ import * as React from 'react';
3
+ import { CarouselItem } from '../TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem';
4
+ /**
5
+ * Returns the props and state required to render the component
6
+ * @param props - TeachingPopoverCarouselCard properties
7
+ * @param ref - reference to root HTMLElement of TeachingPopoverCarouselCard
8
+ */ export const useTeachingPopoverCarouselCard_unstable = (props, ref)=>{
9
+ const { value } = props;
10
+ return {
11
+ value,
12
+ components: {
13
+ root: CarouselItem
14
+ },
15
+ root: slot.always({
16
+ ...getIntrinsicElementProps('div', {
17
+ ref,
18
+ ...props
19
+ }),
20
+ value
21
+ }, {
22
+ elementType: CarouselItem
23
+ })
24
+ };
25
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useTeachingPopoverCarouselCard.ts"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\n\nimport type {\n TeachingPopoverCarouselCardProps,\n TeachingPopoverCarouselCardState,\n} from './TeachingPopoverCarouselCard.types';\nimport { CarouselItem } from '../TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem';\n\n/**\n * Returns the props and state required to render the component\n * @param props - TeachingPopoverCarouselCard properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarouselCard\n */\nexport const useTeachingPopoverCarouselCard_unstable = (\n props: TeachingPopoverCarouselCardProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselCardState => {\n const { value } = props;\n\n return {\n value,\n components: {\n root: CarouselItem,\n },\n root: slot.always(\n {\n ...getIntrinsicElementProps('div', {\n ref,\n ...props,\n }),\n value,\n },\n { elementType: CarouselItem },\n ),\n };\n};\n"],"names":["getIntrinsicElementProps","slot","React","CarouselItem","useTeachingPopoverCarouselCard_unstable","props","ref","value","components","root","always","elementType"],"mappings":"AAAA,SAASA,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAC3E,YAAYC,WAAW,QAAQ;AAM/B,SAASC,YAAY,QAAQ,+DAA+D;AAE5F;;;;CAIC,GACD,OAAO,MAAMC,0CAA0C,CACrDC,OACAC;IAEA,MAAM,EAAEC,KAAK,EAAE,GAAGF;IAElB,OAAO;QACLE;QACAC,YAAY;YACVC,MAAMN;QACR;QACAM,MAAMR,KAAKS,MAAM,CACf;YACE,GAAGV,yBAAyB,OAAO;gBACjCM;gBACA,GAAGD,KAAK;YACV,EAAE;YACFE;QACF,GACA;YAAEI,aAAaR;QAAa;IAEhC;AACF,EAAE"}
@@ -0,0 +1,14 @@
1
+ import { __styles, mergeClasses } from '@griffel/react';
2
+ export const teachingPopoverCarouselCardClassNames = {
3
+ root: 'fui-TeachingPopoverCarouselCard'
4
+ };
5
+ const useStyles = /*#__PURE__*/__styles({
6
+ root: {}
7
+ }, {});
8
+ /** Applies style classnames to slots */
9
+ export const useTeachingPopoverCarouselCardStyles_unstable = state => {
10
+ const styles = useStyles();
11
+ state.root.className = mergeClasses(teachingPopoverCarouselCardClassNames.root, styles.root, state.root.className);
12
+ return state;
13
+ };
14
+ //# sourceMappingURL=useTeachingPopoverCarouselCardStyles.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__styles","mergeClasses","teachingPopoverCarouselCardClassNames","root","useStyles","useTeachingPopoverCarouselCardStyles_unstable","state","styles","className"],"sources":["useTeachingPopoverCarouselCardStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nexport const teachingPopoverCarouselCardClassNames = {\n root: 'fui-TeachingPopoverCarouselCard'\n};\nconst useStyles = makeStyles({\n root: {}\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselCardStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(teachingPopoverCarouselCardClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,OAAO,MAAMC,qCAAqC,GAAG;EACjDC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,SAAS,gBAAGJ,QAAA;EAAAG,IAAA;AAAA,KAEjB,CAAC;AACF;AAAyC,OAAO,MAAME,6CAA6C,GAAIC,KAAK,IAAG;EAC3G,MAAMC,MAAM,GAAGH,SAAS,CAAC,CAAC;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGP,YAAY,CAACC,qCAAqC,CAACC,IAAI,EAAEI,MAAM,CAACJ,IAAI,EAAEG,KAAK,CAACH,IAAI,CAACK,SAAS,CAAC;EAClH,OAAOF,KAAK;AAChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useTeachingPopoverCarouselFooter_unstable } from './useTeachingPopoverCarouselFooter';
3
+ import { renderTeachingPopoverCarouselFooter_unstable } from './renderTeachingPopoverCarouselFooter';
4
+ import { useTeachingPopoverCarouselFooterStyles_unstable } from './useTeachingPopoverCarouselFooterStyles.styles';
5
+ /**
6
+ * Define a styled TeachingPopoverCarouselFooter, using the `useTeachingPopoverCarouselFooter_unstable` and `useTeachingPopoverCarouselFooterStyles_unstable`
7
+ * hooks.
8
+ *
9
+ * TeachingPopoverCarouselFooter contains previous/next buttons configured for carousel navigation, and a root slot for page count and/or page index navigation.
10
+ */ export const TeachingPopoverCarouselFooter = /*#__PURE__*/ React.forwardRef((props, ref)=>{
11
+ const state = useTeachingPopoverCarouselFooter_unstable(props, ref);
12
+ useTeachingPopoverCarouselFooterStyles_unstable(state);
13
+ return renderTeachingPopoverCarouselFooter_unstable(state);
14
+ });
15
+ TeachingPopoverCarouselFooter.displayName = 'TeachingPopoverCarouselFooter';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarouselFooter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTeachingPopoverCarouselFooter_unstable } from './useTeachingPopoverCarouselFooter';\nimport { renderTeachingPopoverCarouselFooter_unstable } from './renderTeachingPopoverCarouselFooter';\nimport { useTeachingPopoverCarouselFooterStyles_unstable } from './useTeachingPopoverCarouselFooterStyles.styles';\nimport type { TeachingPopoverCarouselFooterProps } from './TeachingPopoverCarouselFooter.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled TeachingPopoverCarouselFooter, using the `useTeachingPopoverCarouselFooter_unstable` and `useTeachingPopoverCarouselFooterStyles_unstable`\n * hooks.\n *\n * TeachingPopoverCarouselFooter contains previous/next buttons configured for carousel navigation, and a root slot for page count and/or page index navigation.\n */\nexport const TeachingPopoverCarouselFooter: ForwardRefComponent<TeachingPopoverCarouselFooterProps> = React.forwardRef(\n (props, ref) => {\n const state = useTeachingPopoverCarouselFooter_unstable(props, ref);\n\n useTeachingPopoverCarouselFooterStyles_unstable(state);\n\n return renderTeachingPopoverCarouselFooter_unstable(state);\n },\n);\n\nTeachingPopoverCarouselFooter.displayName = 'TeachingPopoverCarouselFooter';\n"],"names":["React","useTeachingPopoverCarouselFooter_unstable","renderTeachingPopoverCarouselFooter_unstable","useTeachingPopoverCarouselFooterStyles_unstable","TeachingPopoverCarouselFooter","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yCAAyC,QAAQ,qCAAqC;AAC/F,SAASC,4CAA4C,QAAQ,wCAAwC;AACrG,SAASC,+CAA+C,QAAQ,kDAAkD;AAIlH;;;;;CAKC,GACD,OAAO,MAAMC,8CAAyFJ,MAAMK,UAAU,CACpH,CAACC,OAAOC;IACN,MAAMC,QAAQP,0CAA0CK,OAAOC;IAE/DJ,gDAAgDK;IAEhD,OAAON,6CAA6CM;AACtD,GACA;AAEFJ,8BAA8BK,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TeachingPopoverCarouselFooter.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { TeachingPopoverCarouselFooterButtonProps } from '../TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types';\n\nexport type TeachingPopoverCarouselFooterSlots = {\n /**\n * The element wrapping carousel pages and navigation.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * The previous button slot.\n */\n previous?: Slot<TeachingPopoverCarouselFooterButtonProps>;\n\n /**\n * The next button slot.\n */\n next: NonNullable<Slot<TeachingPopoverCarouselFooterButtonProps>>;\n};\n\nexport type TeachingPopoverCarouselFooterLayout = 'offset' | 'centered';\n\n// For localization or customization, users may want to modify this for their own purposes\nexport type TeachingPopoverPageCountChildRenderFunction = (currentPage: number, totalPages: number) => React.ReactNode;\n\n/**\n * TeachingPopoverCarouselFooter Props\n */\nexport type TeachingPopoverCarouselFooterProps = ComponentProps<TeachingPopoverCarouselFooterSlots> & {\n /**\n * Controls whether buttons will be centered (balanced) or right aligned\n * Defaults to 'centered'.\n */\n layout?: TeachingPopoverCarouselFooterLayout;\n\n /**\n * The text to be displayed on the initial step of carousel\n */\n initialStepText: string;\n\n /**\n * The text to be displayed on the final step of carousel\n */\n finalStepText: string;\n};\n\n/**\n * TeachingPopoverCarouselFooter State and Context Hooks\n */\nexport type TeachingPopoverCarouselFooterState = ComponentState<Required<TeachingPopoverCarouselFooterSlots>> &\n Pick<TeachingPopoverCarouselFooterProps, 'layout'>;\n"],"names":["React"],"mappings":"AAAA,YAAYA,WAAW,QAAQ"}
@@ -0,0 +1,5 @@
1
+ export * from './TeachingPopoverCarouselFooter';
2
+ export * from './TeachingPopoverCarouselFooter.types';
3
+ export * from './renderTeachingPopoverCarouselFooter';
4
+ export * from './useTeachingPopoverCarouselFooter';
5
+ export * from './useTeachingPopoverCarouselFooterStyles.styles';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './TeachingPopoverCarouselFooter';\nexport * from './TeachingPopoverCarouselFooter.types';\nexport * from './renderTeachingPopoverCarouselFooter';\nexport * from './useTeachingPopoverCarouselFooter';\nexport * from './useTeachingPopoverCarouselFooterStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC;AAChD,cAAc,wCAAwC;AACtD,cAAc,wCAAwC;AACtD,cAAc,qCAAqC;AACnD,cAAc,kDAAkD"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-utilities';
3
+ /**
4
+ * Render the final JSX of TeachingPopoverCarouselFooter
5
+ */ export const renderTeachingPopoverCarouselFooter_unstable = (state)=>{
6
+ assertSlots(state);
7
+ const { layout } = state;
8
+ return /*#__PURE__*/ _jsxs(state.root, {
9
+ children: [
10
+ layout === 'centered' && state.previous && /*#__PURE__*/ _jsx(state.previous, {}),
11
+ state.root.children,
12
+ layout === 'offset' && state.previous && /*#__PURE__*/ _jsx(state.previous, {}),
13
+ /*#__PURE__*/ _jsx(state.next, {})
14
+ ]
15
+ });
16
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderTeachingPopoverCarouselFooter.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverCarouselFooterState } from './TeachingPopoverCarouselFooter.types';\nimport { TeachingPopoverCarouselFooterSlots } from './TeachingPopoverCarouselFooter.types';\nimport { assertSlots } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TeachingPopoverCarouselFooter\n */\nexport const renderTeachingPopoverCarouselFooter_unstable = (state: TeachingPopoverCarouselFooterState) => {\n assertSlots<TeachingPopoverCarouselFooterSlots>(state);\n\n const { layout } = state;\n\n return (\n <state.root>\n {layout === 'centered' && state.previous && <state.previous />}\n {state.root.children}\n {layout === 'offset' && state.previous && <state.previous />}\n <state.next />\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTeachingPopoverCarouselFooter_unstable","state","layout","root","previous","children","next"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAGjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD;;CAEC,GACD,OAAO,MAAMC,+CAA+C,CAACC;IAC3DF,YAAgDE;IAEhD,MAAM,EAAEC,MAAM,EAAE,GAAGD;IAEnB,qBACE,MAACA,MAAME,IAAI;;YACRD,WAAW,cAAcD,MAAMG,QAAQ,kBAAI,KAACH,MAAMG,QAAQ;YAC1DH,MAAME,IAAI,CAACE,QAAQ;YACnBH,WAAW,YAAYD,MAAMG,QAAQ,kBAAI,KAACH,MAAMG,QAAQ;0BACzD,KAACH,MAAMK,IAAI;;;AAGjB,EAAE"}
@@ -0,0 +1,37 @@
1
+ import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
2
+ import * as React from 'react';
3
+ import { TeachingPopoverCarouselFooterButton } from '../TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton';
4
+ export const useTeachingPopoverCarouselFooter_unstable = (props, ref)=>{
5
+ const { layout = 'centered', initialStepText, finalStepText } = props;
6
+ const previous = slot.optional(props.previous, {
7
+ defaultProps: {
8
+ navType: 'prev',
9
+ altText: initialStepText
10
+ },
11
+ renderByDefault: true,
12
+ elementType: TeachingPopoverCarouselFooterButton
13
+ });
14
+ const next = slot.always(props.next, {
15
+ defaultProps: {
16
+ navType: 'next',
17
+ altText: finalStepText
18
+ },
19
+ elementType: TeachingPopoverCarouselFooterButton
20
+ });
21
+ return {
22
+ layout,
23
+ components: {
24
+ root: 'div',
25
+ next: TeachingPopoverCarouselFooterButton,
26
+ previous: TeachingPopoverCarouselFooterButton
27
+ },
28
+ root: slot.always(getIntrinsicElementProps('div', {
29
+ ref,
30
+ ...props
31
+ }), {
32
+ elementType: 'div'
33
+ }),
34
+ previous,
35
+ next
36
+ };
37
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useTeachingPopoverCarouselFooter.ts"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\n\nimport type {\n TeachingPopoverCarouselFooterProps,\n TeachingPopoverCarouselFooterState,\n} from './TeachingPopoverCarouselFooter.types';\nimport { TeachingPopoverCarouselFooterButton } from '../TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton';\n\nexport const useTeachingPopoverCarouselFooter_unstable = (\n props: TeachingPopoverCarouselFooterProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselFooterState => {\n const { layout = 'centered', initialStepText, finalStepText } = props;\n\n const previous = slot.optional(props.previous, {\n defaultProps: {\n navType: 'prev',\n altText: initialStepText,\n },\n renderByDefault: true,\n elementType: TeachingPopoverCarouselFooterButton,\n });\n\n const next = slot.always(props.next, {\n defaultProps: {\n navType: 'next',\n altText: finalStepText,\n },\n elementType: TeachingPopoverCarouselFooterButton,\n });\n\n return {\n layout,\n components: {\n root: 'div',\n next: TeachingPopoverCarouselFooterButton,\n previous: TeachingPopoverCarouselFooterButton,\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n ...props,\n }),\n { elementType: 'div' },\n ),\n previous,\n next,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","React","TeachingPopoverCarouselFooterButton","useTeachingPopoverCarouselFooter_unstable","props","ref","layout","initialStepText","finalStepText","previous","optional","defaultProps","navType","altText","renderByDefault","elementType","next","always","components","root"],"mappings":"AAAA,SAASA,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAC3E,YAAYC,WAAW,QAAQ;AAM/B,SAASC,mCAAmC,QAAQ,6EAA6E;AAEjI,OAAO,MAAMC,4CAA4C,CACvDC,OACAC;IAEA,MAAM,EAAEC,SAAS,UAAU,EAAEC,eAAe,EAAEC,aAAa,EAAE,GAAGJ;IAEhE,MAAMK,WAAWT,KAAKU,QAAQ,CAACN,MAAMK,QAAQ,EAAE;QAC7CE,cAAc;YACZC,SAAS;YACTC,SAASN;QACX;QACAO,iBAAiB;QACjBC,aAAab;IACf;IAEA,MAAMc,OAAOhB,KAAKiB,MAAM,CAACb,MAAMY,IAAI,EAAE;QACnCL,cAAc;YACZC,SAAS;YACTC,SAASL;QACX;QACAO,aAAab;IACf;IAEA,OAAO;QACLI;QACAY,YAAY;YACVC,MAAM;YACNH,MAAMd;YACNO,UAAUP;QACZ;QACAiB,MAAMnB,KAAKiB,MAAM,CACflB,yBAAyB,OAAO;YAC9BM;YACA,GAAGD,KAAK;QACV,IACA;YAAEW,aAAa;QAAM;QAEvBN;QACAO;IACF;AACF,EAAE"}