@fluentui/react-teaching-popover 9.6.20 → 9.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/CHANGELOG.md +34 -2
  2. package/dist/index.d.ts +125 -15
  3. package/lib/TeachingPopover.js +1 -1
  4. package/lib/TeachingPopover.js.map +1 -1
  5. package/lib/TeachingPopoverCarousel.js +1 -1
  6. package/lib/TeachingPopoverCarousel.js.map +1 -1
  7. package/lib/TeachingPopoverCarouselFooterButton.js +1 -1
  8. package/lib/TeachingPopoverCarouselFooterButton.js.map +1 -1
  9. package/lib/TeachingPopoverCarouselNav.js +1 -1
  10. package/lib/TeachingPopoverCarouselNav.js.map +1 -1
  11. package/lib/TeachingPopoverCarouselNavButton.js +1 -1
  12. package/lib/TeachingPopoverCarouselNavButton.js.map +1 -1
  13. package/lib/TeachingPopoverFooter.js +1 -1
  14. package/lib/TeachingPopoverFooter.js.map +1 -1
  15. package/lib/TeachingPopoverHeader.js +1 -1
  16. package/lib/TeachingPopoverHeader.js.map +1 -1
  17. package/lib/TeachingPopoverTitle.js +1 -1
  18. package/lib/TeachingPopoverTitle.js.map +1 -1
  19. package/lib/components/TeachingPopover/TeachingPopover.js +3 -2
  20. package/lib/components/TeachingPopover/TeachingPopover.js.map +1 -1
  21. package/lib/components/TeachingPopover/TeachingPopover.types.js +1 -3
  22. package/lib/components/TeachingPopover/TeachingPopover.types.js.map +1 -1
  23. package/lib/components/TeachingPopover/index.js +1 -0
  24. package/lib/components/TeachingPopover/index.js.map +1 -1
  25. package/lib/components/TeachingPopover/useTeachingPopoverContextValues.js +3 -0
  26. package/lib/components/TeachingPopover/useTeachingPopoverContextValues.js.map +1 -0
  27. package/lib/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -1
  28. package/lib/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -1
  29. package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js +0 -1
  30. package/lib/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -1
  31. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js +2 -0
  32. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js.map +1 -1
  33. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js +2 -0
  34. package/lib/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js.map +1 -1
  35. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -1
  36. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js +1 -1
  37. package/lib/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -1
  38. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js +0 -1
  39. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -1
  40. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -1
  41. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -1
  42. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js +0 -1
  43. package/lib/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -1
  44. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js +1 -3
  45. package/lib/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -1
  46. package/lib/components/TeachingPopoverCarousel/index.js +1 -1
  47. package/lib/components/TeachingPopoverCarousel/index.js.map +1 -1
  48. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js +14 -4
  49. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -1
  50. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js +9 -2
  51. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -1
  52. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js +1 -0
  53. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js.map +1 -1
  54. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js +1 -0
  55. package/lib/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js.map +1 -1
  56. package/lib/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -1
  57. package/lib/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -1
  58. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js +0 -1
  59. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -1
  60. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js +1 -0
  61. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js.map +1 -1
  62. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js +1 -0
  63. package/lib/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js.map +1 -1
  64. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js +3 -1
  65. package/lib/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -1
  66. package/lib/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -1
  67. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js +0 -1
  68. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -1
  69. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js +3 -0
  70. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js.map +1 -1
  71. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js +3 -0
  72. package/lib/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js.map +1 -1
  73. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js +5 -1
  74. package/lib/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -1
  75. package/lib/components/TeachingPopoverCarouselFooterButton/index.js +1 -1
  76. package/lib/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -1
  77. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js +37 -20
  78. package/lib/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -1
  79. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js +1 -1
  80. package/lib/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -1
  81. package/lib/components/TeachingPopoverCarouselNav/index.js +1 -1
  82. package/lib/components/TeachingPopoverCarouselNav/index.js.map +1 -1
  83. package/lib/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -1
  84. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js +24 -11
  85. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -1
  86. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js +1 -0
  87. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js.map +1 -1
  88. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js +1 -0
  89. package/lib/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js.map +1 -1
  90. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js +1 -3
  91. package/lib/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -1
  92. package/lib/components/TeachingPopoverCarouselNavButton/index.js +1 -1
  93. package/lib/components/TeachingPopoverCarouselNavButton/index.js.map +1 -1
  94. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js +32 -18
  95. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -1
  96. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js +1 -0
  97. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js.map +1 -1
  98. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js +1 -0
  99. package/lib/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js.map +1 -1
  100. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js +3 -1
  101. package/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -1
  102. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +0 -1
  103. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -1
  104. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js +1 -0
  105. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js.map +1 -1
  106. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js +1 -0
  107. package/lib/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js.map +1 -1
  108. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js +4 -1
  109. package/lib/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -1
  110. package/lib/components/TeachingPopoverFooter/index.js +1 -1
  111. package/lib/components/TeachingPopoverFooter/index.js.map +1 -1
  112. package/lib/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -1
  113. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +36 -18
  114. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -1
  115. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js +3 -0
  116. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js.map +1 -1
  117. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js +3 -0
  118. package/lib/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js.map +1 -1
  119. package/lib/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -1
  120. package/lib/components/TeachingPopoverHeader/index.js +1 -1
  121. package/lib/components/TeachingPopoverHeader/index.js.map +1 -1
  122. package/lib/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -1
  123. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js +25 -6
  124. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -1
  125. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js +3 -0
  126. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js.map +1 -1
  127. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js +3 -0
  128. package/lib/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js.map +1 -1
  129. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -1
  130. package/lib/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -1
  131. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js +0 -1
  132. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -1
  133. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js +1 -0
  134. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js.map +1 -1
  135. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js +1 -0
  136. package/lib/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js.map +1 -1
  137. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js +1 -3
  138. package/lib/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -1
  139. package/lib/components/TeachingPopoverTitle/index.js +1 -1
  140. package/lib/components/TeachingPopoverTitle/index.js.map +1 -1
  141. package/lib/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -1
  142. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js +20 -5
  143. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -1
  144. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js +2 -0
  145. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js.map +1 -1
  146. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js +2 -0
  147. package/lib/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map +1 -1
  148. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js +0 -1
  149. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -1
  150. package/lib/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -1
  151. package/lib/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -1
  152. package/lib/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -1
  153. package/lib/index.js +8 -1
  154. package/lib/index.js.map +1 -1
  155. package/lib-commonjs/TeachingPopover.js +3 -0
  156. package/lib-commonjs/TeachingPopover.js.map +1 -1
  157. package/lib-commonjs/TeachingPopoverCarousel.js +3 -0
  158. package/lib-commonjs/TeachingPopoverCarousel.js.map +1 -1
  159. package/lib-commonjs/TeachingPopoverCarouselFooterButton.js +3 -0
  160. package/lib-commonjs/TeachingPopoverCarouselFooterButton.js.map +1 -1
  161. package/lib-commonjs/TeachingPopoverCarouselNav.js +3 -0
  162. package/lib-commonjs/TeachingPopoverCarouselNav.js.map +1 -1
  163. package/lib-commonjs/TeachingPopoverCarouselNavButton.js +3 -0
  164. package/lib-commonjs/TeachingPopoverCarouselNavButton.js.map +1 -1
  165. package/lib-commonjs/TeachingPopoverFooter.js +3 -0
  166. package/lib-commonjs/TeachingPopoverFooter.js.map +1 -1
  167. package/lib-commonjs/TeachingPopoverHeader.js +3 -0
  168. package/lib-commonjs/TeachingPopoverHeader.js.map +1 -1
  169. package/lib-commonjs/TeachingPopoverTitle.js +3 -0
  170. package/lib-commonjs/TeachingPopoverTitle.js.map +1 -1
  171. package/lib-commonjs/components/TeachingPopover/TeachingPopover.js +3 -3
  172. package/lib-commonjs/components/TeachingPopover/TeachingPopover.js.map +1 -1
  173. package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.js +1 -3
  174. package/lib-commonjs/components/TeachingPopover/TeachingPopover.types.js.map +1 -1
  175. package/lib-commonjs/components/TeachingPopover/index.js +4 -0
  176. package/lib-commonjs/components/TeachingPopover/index.js.map +1 -1
  177. package/lib-commonjs/components/TeachingPopover/useTeachingPopoverContextValues.js +13 -0
  178. package/lib-commonjs/components/TeachingPopover/useTeachingPopoverContextValues.js.map +1 -0
  179. package/lib-commonjs/components/TeachingPopoverBody/TeachingPopoverBody.types.js.map +1 -1
  180. package/lib-commonjs/components/TeachingPopoverBody/renderTeachingPopoverBody.js.map +1 -1
  181. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.js +0 -2
  182. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBody.js.map +1 -1
  183. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js +2 -0
  184. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.js.map +1 -1
  185. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js +2 -0
  186. package/lib-commonjs/components/TeachingPopoverBody/useTeachingPopoverBodyStyles.styles.raw.js.map +1 -1
  187. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.js.map +1 -1
  188. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.js +0 -2
  189. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/Carousel.types.js.map +1 -1
  190. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.js +0 -2
  191. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselContext.js.map +1 -1
  192. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/CarouselItem.types.js.map +1 -1
  193. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/Carouseltem.js.map +1 -1
  194. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js +0 -2
  195. package/lib-commonjs/components/TeachingPopoverCarousel/Carousel/CarouselItem/useCarouselItem.js.map +1 -1
  196. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js +1 -3
  197. package/lib-commonjs/components/TeachingPopoverCarousel/TeachingPopoverCarousel.types.js.map +1 -1
  198. package/lib-commonjs/components/TeachingPopoverCarousel/index.js +3 -0
  199. package/lib-commonjs/components/TeachingPopoverCarousel/index.js.map +1 -1
  200. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js +20 -8
  201. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarousel.js.map +1 -1
  202. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js +10 -2
  203. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselContextValues.js.map +1 -1
  204. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js +1 -0
  205. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.js.map +1 -1
  206. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js +1 -0
  207. package/lib-commonjs/components/TeachingPopoverCarousel/useTeachingPopoverCarouselStyles.styles.raw.js.map +1 -1
  208. package/lib-commonjs/components/TeachingPopoverCarouselCard/TeachingPopoverCarouselCard.types.js.map +1 -1
  209. package/lib-commonjs/components/TeachingPopoverCarouselCard/renderTeachingPopoverCarouselCard.js.map +1 -1
  210. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js +0 -2
  211. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCard.js.map +1 -1
  212. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js +1 -0
  213. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.js.map +1 -1
  214. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js +1 -0
  215. package/lib-commonjs/components/TeachingPopoverCarouselCard/useTeachingPopoverCarouselCardStyles.styles.raw.js.map +1 -1
  216. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js +3 -3
  217. package/lib-commonjs/components/TeachingPopoverCarouselFooter/TeachingPopoverCarouselFooter.types.js.map +1 -1
  218. package/lib-commonjs/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.js.map +1 -1
  219. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js +0 -2
  220. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.js.map +1 -1
  221. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js +3 -0
  222. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.js.map +1 -1
  223. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js +3 -0
  224. package/lib-commonjs/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.raw.js.map +1 -1
  225. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js +5 -3
  226. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.js.map +1 -1
  227. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.js +3 -0
  228. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/index.js.map +1 -1
  229. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js +36 -18
  230. package/lib-commonjs/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.js.map +1 -1
  231. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js +0 -2
  232. package/lib-commonjs/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.js.map +1 -1
  233. package/lib-commonjs/components/TeachingPopoverCarouselNav/index.js +3 -0
  234. package/lib-commonjs/components/TeachingPopoverCarouselNav/index.js.map +1 -1
  235. package/lib-commonjs/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.js.map +1 -1
  236. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js +29 -14
  237. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.js.map +1 -1
  238. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js +1 -0
  239. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.js.map +1 -1
  240. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js +1 -0
  241. package/lib-commonjs/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.raw.js.map +1 -1
  242. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js +1 -3
  243. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.js.map +1 -1
  244. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.js +3 -0
  245. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/index.js.map +1 -1
  246. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js +33 -17
  247. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButton.js.map +1 -1
  248. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js +1 -0
  249. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.js.map +1 -1
  250. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js +1 -0
  251. package/lib-commonjs/components/TeachingPopoverCarouselNavButton/useTeachingPopoverCarouselNavButtonStyles.styles.raw.js.map +1 -1
  252. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js +3 -3
  253. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.types.js.map +1 -1
  254. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js +0 -2
  255. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCount.js.map +1 -1
  256. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js +1 -0
  257. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.js.map +1 -1
  258. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js +1 -0
  259. package/lib-commonjs/components/TeachingPopoverCarouselPageCount/useTeachingPopoverCarouselPageCountStyles.styles.raw.js.map +1 -1
  260. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js +4 -1
  261. package/lib-commonjs/components/TeachingPopoverFooter/TeachingPopoverFooter.types.js.map +1 -1
  262. package/lib-commonjs/components/TeachingPopoverFooter/index.js +3 -0
  263. package/lib-commonjs/components/TeachingPopoverFooter/index.js.map +1 -1
  264. package/lib-commonjs/components/TeachingPopoverFooter/renderTeachingPopoverFooter.js.map +1 -1
  265. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.js +39 -21
  266. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooter.js.map +1 -1
  267. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js +3 -0
  268. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.js.map +1 -1
  269. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js +3 -0
  270. package/lib-commonjs/components/TeachingPopoverFooter/useTeachingPopoverFooterStyles.styles.raw.js.map +1 -1
  271. package/lib-commonjs/components/TeachingPopoverHeader/TeachingPopoverHeader.types.js.map +1 -1
  272. package/lib-commonjs/components/TeachingPopoverHeader/index.js +3 -0
  273. package/lib-commonjs/components/TeachingPopoverHeader/index.js.map +1 -1
  274. package/lib-commonjs/components/TeachingPopoverHeader/renderTeachingPopoverHeader.js.map +1 -1
  275. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.js +30 -8
  276. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeader.js.map +1 -1
  277. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js +3 -0
  278. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.js.map +1 -1
  279. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js +3 -0
  280. package/lib-commonjs/components/TeachingPopoverHeader/useTeachingPopoverHeaderStyles.styles.raw.js.map +1 -1
  281. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.js.map +1 -1
  282. package/lib-commonjs/components/TeachingPopoverSurface/TeachingPopoverSurface.types.js.map +1 -1
  283. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.js +0 -2
  284. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurface.js.map +1 -1
  285. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js +1 -0
  286. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.js.map +1 -1
  287. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js +1 -0
  288. package/lib-commonjs/components/TeachingPopoverSurface/useTeachingPopoverSurfaceStyles.styles.raw.js.map +1 -1
  289. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js +1 -3
  290. package/lib-commonjs/components/TeachingPopoverTitle/TeachingPopoverTitle.types.js.map +1 -1
  291. package/lib-commonjs/components/TeachingPopoverTitle/index.js +3 -0
  292. package/lib-commonjs/components/TeachingPopoverTitle/index.js.map +1 -1
  293. package/lib-commonjs/components/TeachingPopoverTitle/renderTeachingPopoverTitle.js.map +1 -1
  294. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.js +25 -7
  295. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitle.js.map +1 -1
  296. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js +2 -0
  297. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.js.map +1 -1
  298. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js +2 -0
  299. package/lib-commonjs/components/TeachingPopoverTitle/useTeachingPopoverTitleStyles.styles.raw.js.map +1 -1
  300. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js +0 -2
  301. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.js.map +1 -1
  302. package/lib-commonjs/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.js.map +1 -1
  303. package/lib-commonjs/components/TeachingPopoverTrigger/renderTeachingPopoverTrigger.js.map +1 -1
  304. package/lib-commonjs/components/TeachingPopoverTrigger/useTeachingPopoverTrigger.js.map +1 -1
  305. package/lib-commonjs/index.js +24 -0
  306. package/lib-commonjs/index.js.map +1 -1
  307. package/package.json +11 -8
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooter/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';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TeachingPopoverCarouselFooter\n */\nexport const renderTeachingPopoverCarouselFooter_unstable = (state: TeachingPopoverCarouselFooterState): JSXElement => {\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":";;;;+BAUaC;;;;;;4BATb,iCAAiD;gCAGrB,4BAA4B;AAMjD,qDAAqD,CAACC;QAC3DF,2BAAAA,EAAgDE;IAEhD,MAAM,EAAEC,MAAM,EAAE,GAAGD;IAEnB,OAAA,WAAA,OACE,gBAAA,EAACA,MAAME,IAAI,EAAA;;YACRD,WAAW,cAAcD,MAAMG,QAAQ,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,QAAQ,EAAA,CAAA;YAC1DH,MAAME,IAAI,CAACE,QAAQ;YACnBH,WAAW,YAAYD,MAAMG,QAAQ,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,QAAQ,EAAA,CAAA;8BACzD,eAAA,EAACH,MAAMK,IAAI,EAAA,CAAA;;;AAGjB,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooter/renderTeachingPopoverCarouselFooter.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverCarouselFooterState } from './TeachingPopoverCarouselFooter.types';\nimport type { TeachingPopoverCarouselFooterSlots } from './TeachingPopoverCarouselFooter.types';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\n/**\n * Render the final JSX of TeachingPopoverCarouselFooter\n */\nexport const renderTeachingPopoverCarouselFooter_unstable = (state: TeachingPopoverCarouselFooterState): JSXElement => {\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":";;;;+BAUaC;;;;;;4BATb,iCAAiD;gCAGrB,4BAA4B;AAMjD,qDAAqD,CAACC;QAC3DF,2BAAAA,EAAgDE;IAEhD,MAAM,EAAEC,MAAM,EAAE,GAAGD;IAEnB,OAAA,WAAA,OACE,gBAAA,EAACA,MAAME,IAAI,EAAA;;YACRD,WAAW,cAAcD,MAAMG,QAAQ,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,QAAQ,EAAA,CAAA;YAC1DH,MAAME,IAAI,CAACE,QAAQ;YACnBH,WAAW,YAAYD,MAAMG,QAAQ,IAAA,WAAA,OAAI,eAAA,EAACH,MAAMG,QAAQ,EAAA,CAAA;8BACzD,eAAA,EAACH,MAAMK,IAAI,EAAA,CAAA;;;AAGjB,EAAE"}
@@ -8,9 +8,7 @@ Object.defineProperty(exports, "useTeachingPopoverCarouselFooter_unstable", {
8
8
  return useTeachingPopoverCarouselFooter_unstable;
9
9
  }
10
10
  });
11
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
11
  const _reactutilities = require("@fluentui/react-utilities");
13
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
12
  const _TeachingPopoverCarouselFooterButton = require("../TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton");
15
13
  const useTeachingPopoverCarouselFooter_unstable = (props, ref)=>{
16
14
  const { layout = 'centered', initialStepText, finalStepText } = props;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooter/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":";;;;+BASaI;;;;;;;gCATkC,4BAA4B;iEACpD,QAAQ;qDAMqB,6EAA6E;AAE1H,kDAAkD,CACvDC,OACAC;IAEA,MAAM,EAAEC,SAAS,UAAU,EAAEC,eAAe,EAAEC,aAAa,EAAE,GAAGJ;IAEhE,MAAMK,WAAWT,oBAAAA,CAAKU,QAAQ,CAACN,MAAMK,QAAQ,EAAE;QAC7CE,cAAc;YACZC,SAAS;YACTC,SAASN;QACX;QACAO,iBAAiB;QACjBC,aAAab,wEAAAA;IACf;IAEA,MAAMc,OAAOhB,oBAAAA,CAAKiB,MAAM,CAACb,MAAMY,IAAI,EAAE;QACnCL,cAAc;YACZC,SAAS;YACTC,SAASL;QACX;QACAO,aAAab,wEAAAA;IACf;IAEA,OAAO;QACLI;QACAY,YAAY;YACVC,MAAM;YACNH,MAAMd,wEAAAA;YACNO,UAAUP,wEAAAA;QACZ;QACAiB,MAAMnB,oBAAAA,CAAKiB,MAAM,KACflB,wCAAAA,EAAyB,OAAO;YAC9BM;YACA,GAAGD,KAAK;QACV,IACA;YAAEW,aAAa;QAAM;QAEvBN;QACAO;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooter.ts"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type * 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","TeachingPopoverCarouselFooterButton","useTeachingPopoverCarouselFooter_unstable","props","ref","layout","initialStepText","finalStepText","previous","optional","defaultProps","navType","altText","renderByDefault","elementType","next","always","components","root"],"mappings":";;;;+BASaG;;;;;;gCATkC,4BAA4B;qDAOvB,6EAA6E;AAE1H,kDAAkD,CACvDC,OACAC;IAEA,MAAM,EAAEC,SAAS,UAAU,EAAEC,eAAe,EAAEC,aAAa,EAAE,GAAGJ;IAEhE,MAAMK,WAAWR,oBAAAA,CAAKS,QAAQ,CAACN,MAAMK,QAAQ,EAAE;QAC7CE,cAAc;YACZC,SAAS;YACTC,SAASN;QACX;QACAO,iBAAiB;QACjBC,aAAab,wEAAAA;IACf;IAEA,MAAMc,OAAOf,oBAAAA,CAAKgB,MAAM,CAACb,MAAMY,IAAI,EAAE;QACnCL,cAAc;YACZC,SAAS;YACTC,SAASL;QACX;QACAO,aAAab,wEAAAA;IACf;IAEA,OAAO;QACLI;QACAY,YAAY;YACVC,MAAM;YACNH,MAAMd,wEAAAA;YACNO,UAAUP,wEAAAA;QACZ;QACAiB,MAAMlB,oBAAAA,CAAKgB,MAAM,KACfjB,wCAAAA,EAAyB,OAAO;YAC9BK;YACA,GAAGD,KAAK;QACV,IACA;YAAEW,aAAa;QAAM;QAEvBN;QACAO;IACF;AACF,EAAE"}
@@ -65,10 +65,13 @@ const useTeachingPopoverCarouselFooterStyles_unstable = (state)=>{
65
65
  'use no memo';
66
66
  const styles = useStyles();
67
67
  const { layout } = state;
68
+ // eslint-disable-next-line react-hooks/immutability
68
69
  state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.root, styles.root, layout === 'centered' ? styles.rootCentered : styles.rootRightAligned, state.root.className);
69
70
  if (state.previous) {
71
+ // eslint-disable-next-line react-hooks/immutability
70
72
  state.previous.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);
71
73
  }
74
+ // eslint-disable-next-line react-hooks/immutability
72
75
  state.next.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.next, state.next.className);
73
76
  return state;
74
77
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useTeachingPopoverCarouselFooterStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nexport const teachingPopoverCarouselFooterClassNames = {\n root: 'fui-TeachingPopoverCarouselFooter',\n previous: 'fui-TeachingPopoverCarouselFooter__previous',\n next: 'fui-TeachingPopoverCarouselFooter__next'\n};\n// Todo: Page change animation & styles\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row'\n },\n rootCentered: {\n justifyContent: 'space-between',\n gap: '8px'\n },\n rootRightAligned: {\n gap: '8px',\n '& :first-child': {\n marginInlineEnd: 'auto'\n }\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselFooterStyles_unstable = (state)=>{\n 'use no memo';\n const styles = useStyles();\n const { layout } = state;\n state.root.className = mergeClasses(teachingPopoverCarouselFooterClassNames.root, styles.root, layout === 'centered' ? styles.rootCentered : styles.rootRightAligned, state.root.className);\n if (state.previous) {\n state.previous.className = mergeClasses(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);\n }\n state.next.className = mergeClasses(teachingPopoverCarouselFooterClassNames.next, state.next.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","teachingPopoverCarouselFooterClassNames","root","previous","next","useStyles","mc9l5x","Beiy3e4","rootCentered","Brf1p80","i8kkvl","Belr9w4","rmohyg","rootRightAligned","Bp34fd5","d","p","useTeachingPopoverCarouselFooterStyles_unstable","state","styles","layout","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAECE,uCAAuC;;;mDAsBiD;;;;uBAvB5D,gBAAgB;AAClD,gDAAgD;IACnDC,IAAI,EAAE,mCAAmC;IACzCC,QAAQ,EAAE,6CAA6C;IACvDC,IAAI,EAAE;AACV,CAAC;AACD,uCAAA;AACA,MAAMC,SAAS,GAAA,WAAA,GAAGN,mBAAA,EAAA;IAAAG,IAAA,EAAA;QAAAI,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,YAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,gBAAA,EAAA;QAAAH,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAE,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;YAAA;YAAA;gBAAAC,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;YAAA;YAAA;gBAAAA,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;KAAA;AAAA,CAejB,CAAC;AAC8C,MAAMC,mDAAmDC,KAAK,IAAG;IAC7G,aAAa;IACb,MAAMC,MAAM,GAAGd,SAAS,CAAC,CAAC;IAC1B,MAAM,EAAEe,MAAAA,EAAQ,GAAGF,KAAK;IACxBA,KAAK,CAAChB,IAAI,CAACmB,SAAS,OAAGrB,mBAAY,EAACC,uCAAuC,CAACC,IAAI,EAAEiB,MAAM,CAACjB,IAAI,EAAEkB,MAAM,KAAK,UAAU,GAAGD,MAAM,CAACX,YAAY,GAAGW,MAAM,CAACN,gBAAgB,EAAEK,KAAK,CAAChB,IAAI,CAACmB,SAAS,CAAC;IAC3L,IAAIH,KAAK,CAACf,QAAQ,EAAE;QAChBe,KAAK,CAACf,QAAQ,CAACkB,SAAS,OAAGrB,mBAAY,EAACC,uCAAuC,CAACE,QAAQ,EAAEe,KAAK,CAACf,QAAQ,CAACkB,SAAS,CAAC;IACvH;IACAH,KAAK,CAACd,IAAI,CAACiB,SAAS,OAAGrB,mBAAY,EAACC,uCAAuC,CAACG,IAAI,EAAEc,KAAK,CAACd,IAAI,CAACiB,SAAS,CAAC;IACvG,OAAOH,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTeachingPopoverCarouselFooterStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nexport const teachingPopoverCarouselFooterClassNames = {\n root: 'fui-TeachingPopoverCarouselFooter',\n previous: 'fui-TeachingPopoverCarouselFooter__previous',\n next: 'fui-TeachingPopoverCarouselFooter__next'\n};\n// Todo: Page change animation & styles\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row'\n },\n rootCentered: {\n justifyContent: 'space-between',\n gap: '8px'\n },\n rootRightAligned: {\n gap: '8px',\n '& :first-child': {\n marginInlineEnd: 'auto'\n }\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselFooterStyles_unstable = (state)=>{\n 'use no memo';\n const styles = useStyles();\n const { layout } = state;\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverCarouselFooterClassNames.root, styles.root, layout === 'centered' ? styles.rootCentered : styles.rootRightAligned, state.root.className);\n if (state.previous) {\n // eslint-disable-next-line react-hooks/immutability\n state.previous.className = mergeClasses(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);\n }\n // eslint-disable-next-line react-hooks/immutability\n state.next.className = mergeClasses(teachingPopoverCarouselFooterClassNames.next, state.next.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","teachingPopoverCarouselFooterClassNames","root","previous","next","useStyles","mc9l5x","Beiy3e4","rootCentered","Brf1p80","i8kkvl","Belr9w4","rmohyg","rootRightAligned","Bp34fd5","d","p","useTeachingPopoverCarouselFooterStyles_unstable","state","styles","layout","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAECE,uCAAuC;;;mDAsBiD;;;;uBAvB5D,gBAAgB;AAClD,gDAAgD;IACnDC,IAAI,EAAE,mCAAmC;IACzCC,QAAQ,EAAE,6CAA6C;IACvDC,IAAI,EAAE;AACV,CAAC;AACD,uCAAA;AACA,MAAMC,SAAS,GAAA,WAAA,GAAGN,mBAAA,EAAA;IAAAG,IAAA,EAAA;QAAAI,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,YAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,gBAAA,EAAA;QAAAH,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAE,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;YAAA;YAAA;gBAAAC,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;YAAA;YAAA;gBAAAA,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;KAAA;AAAA,CAejB,CAAC;AAC8C,MAAMC,mDAAmDC,KAAK,IAAG;IAC7G,aAAa;IACb,MAAMC,MAAM,GAAGd,SAAS,CAAC,CAAC;IAC1B,MAAM,EAAEe,MAAAA,EAAQ,GAAGF,KAAK;IACxB,oDAAA;IACAA,KAAK,CAAChB,IAAI,CAACmB,SAAS,OAAGrB,mBAAY,EAACC,uCAAuC,CAACC,IAAI,EAAEiB,MAAM,CAACjB,IAAI,EAAEkB,MAAM,KAAK,UAAU,GAAGD,MAAM,CAACX,YAAY,GAAGW,MAAM,CAACN,gBAAgB,EAAEK,KAAK,CAAChB,IAAI,CAACmB,SAAS,CAAC;IAC3L,IAAIH,KAAK,CAACf,QAAQ,EAAE;QAChB,oDAAA;QACAe,KAAK,CAACf,QAAQ,CAACkB,SAAS,OAAGrB,mBAAY,EAACC,uCAAuC,CAACE,QAAQ,EAAEe,KAAK,CAACf,QAAQ,CAACkB,SAAS,CAAC;IACvH;IACA,oDAAA;IACAH,KAAK,CAACd,IAAI,CAACiB,SAAS,OAAGrB,mBAAY,EAACC,uCAAuC,CAACG,IAAI,EAAEc,KAAK,CAACd,IAAI,CAACiB,SAAS,CAAC;IACvG,OAAOH,KAAK;AAChB,CAAC"}
@@ -44,10 +44,13 @@ const useTeachingPopoverCarouselFooterStyles_unstable = (state)=>{
44
44
  'use no memo';
45
45
  const styles = useStyles();
46
46
  const { layout } = state;
47
+ // eslint-disable-next-line react-hooks/immutability
47
48
  state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.root, styles.root, layout === 'centered' ? styles.rootCentered : styles.rootRightAligned, state.root.className);
48
49
  if (state.previous) {
50
+ // eslint-disable-next-line react-hooks/immutability
49
51
  state.previous.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);
50
52
  }
53
+ // eslint-disable-next-line react-hooks/immutability
51
54
  state.next.className = (0, _react.mergeClasses)(teachingPopoverCarouselFooterClassNames.next, state.next.className);
52
55
  return state;
53
56
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type {\n TeachingPopoverCarouselFooterSlots,\n TeachingPopoverCarouselFooterState,\n} from './TeachingPopoverCarouselFooter.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const teachingPopoverCarouselFooterClassNames: SlotClassNames<TeachingPopoverCarouselFooterSlots> = {\n root: 'fui-TeachingPopoverCarouselFooter',\n previous: 'fui-TeachingPopoverCarouselFooter__previous',\n next: 'fui-TeachingPopoverCarouselFooter__next',\n};\n\n// Todo: Page change animation & styles\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n },\n rootCentered: {\n justifyContent: 'space-between',\n gap: '8px',\n },\n rootRightAligned: {\n gap: '8px',\n '& :first-child': {\n marginInlineEnd: 'auto',\n },\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselFooterStyles_unstable = (\n state: TeachingPopoverCarouselFooterState,\n): TeachingPopoverCarouselFooterState => {\n 'use no memo';\n\n const styles = useStyles();\n const { layout } = state;\n\n state.root.className = mergeClasses(\n teachingPopoverCarouselFooterClassNames.root,\n styles.root,\n layout === 'centered' ? styles.rootCentered : styles.rootRightAligned,\n state.root.className,\n );\n\n if (state.previous) {\n state.previous.className = mergeClasses(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);\n }\n\n state.next.className = mergeClasses(teachingPopoverCarouselFooterClassNames.next, state.next.className);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","teachingPopoverCarouselFooterClassNames","root","previous","next","useStyles","display","flexDirection","rootCentered","justifyContent","gap","rootRightAligned","marginInlineEnd","useTeachingPopoverCarouselFooterStyles_unstable","state","styles","layout","className"],"mappings":"AAAA;;;;;;;;;;;;IASaE,uCAAAA;;;mDAyBAY;eAAAA;;;uBAhC4B,iBAAiB;AAOnD,gDAAoG;IACzGX,MAAM;IACNC,UAAU;IACVC,MAAM;AACR,EAAE;AAEF,uCAAuC;AACvC,MAAMC,gBAAYN,iBAAAA,EAAW;IAC3BG,MAAM;QACJI,SAAS;QACTC,eAAe;IACjB;IACAC,cAAc;QACZC,gBAAgB;QAChBC,KAAK;IACP;IACAC,kBAAkB;QAChBD,KAAK;QACL,kBAAkB;YAChBE,iBAAiB;QACnB;IACF;AACF;AAGO,wDAAwD,CAC7DE;IAEA;IAEA,MAAMC,SAASV;IACf,MAAM,EAAEW,MAAM,EAAE,GAAGF;IAEnBA,MAAMZ,IAAI,CAACe,SAAS,OAAGjB,mBAAAA,EACrBC,wCAAwCC,IAAI,EAC5Ca,OAAOb,IAAI,EACXc,WAAW,aAAaD,OAAOP,YAAY,GAAGO,OAAOJ,gBAAgB,EACrEG,MAAMZ,IAAI,CAACe,SAAS;IAGtB,IAAIH,MAAMX,QAAQ,EAAE;QAClBW,MAAMX,QAAQ,CAACc,SAAS,OAAGjB,mBAAAA,EAAaC,wCAAwCE,QAAQ,EAAEW,MAAMX,QAAQ,CAACc,SAAS;IACpH;IAEAH,MAAMV,IAAI,CAACa,SAAS,OAAGjB,mBAAAA,EAAaC,wCAAwCG,IAAI,EAAEU,MAAMV,IAAI,CAACa,SAAS;IAEtG,OAAOH;AACT,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooter/useTeachingPopoverCarouselFooterStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type {\n TeachingPopoverCarouselFooterSlots,\n TeachingPopoverCarouselFooterState,\n} from './TeachingPopoverCarouselFooter.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const teachingPopoverCarouselFooterClassNames: SlotClassNames<TeachingPopoverCarouselFooterSlots> = {\n root: 'fui-TeachingPopoverCarouselFooter',\n previous: 'fui-TeachingPopoverCarouselFooter__previous',\n next: 'fui-TeachingPopoverCarouselFooter__next',\n};\n\n// Todo: Page change animation & styles\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n },\n rootCentered: {\n justifyContent: 'space-between',\n gap: '8px',\n },\n rootRightAligned: {\n gap: '8px',\n '& :first-child': {\n marginInlineEnd: 'auto',\n },\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselFooterStyles_unstable = (\n state: TeachingPopoverCarouselFooterState,\n): TeachingPopoverCarouselFooterState => {\n 'use no memo';\n\n const styles = useStyles();\n const { layout } = state;\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n teachingPopoverCarouselFooterClassNames.root,\n styles.root,\n layout === 'centered' ? styles.rootCentered : styles.rootRightAligned,\n state.root.className,\n );\n\n if (state.previous) {\n // eslint-disable-next-line react-hooks/immutability\n state.previous.className = mergeClasses(teachingPopoverCarouselFooterClassNames.previous, state.previous.className);\n }\n\n // eslint-disable-next-line react-hooks/immutability\n state.next.className = mergeClasses(teachingPopoverCarouselFooterClassNames.next, state.next.className);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","teachingPopoverCarouselFooterClassNames","root","previous","next","useStyles","display","flexDirection","rootCentered","justifyContent","gap","rootRightAligned","marginInlineEnd","useTeachingPopoverCarouselFooterStyles_unstable","state","styles","layout","className"],"mappings":"AAAA;;;;;;;;;;;;IASaE,uCAAAA;;;mDAyBAY;eAAAA;;;uBAhC4B,iBAAiB;AAOnD,gDAAoG;IACzGX,MAAM;IACNC,UAAU;IACVC,MAAM;AACR,EAAE;AAEF,uCAAuC;AACvC,MAAMC,gBAAYN,iBAAAA,EAAW;IAC3BG,MAAM;QACJI,SAAS;QACTC,eAAe;IACjB;IACAC,cAAc;QACZC,gBAAgB;QAChBC,KAAK;IACP;IACAC,kBAAkB;QAChBD,KAAK;QACL,kBAAkB;YAChBE,iBAAiB;QACnB;IACF;AACF;AAGO,wDAAwD,CAC7DE;IAEA;IAEA,MAAMC,SAASV;IACf,MAAM,EAAEW,MAAM,EAAE,GAAGF;IAEnB,oDAAoD;IACpDA,MAAMZ,IAAI,CAACe,SAAS,OAAGjB,mBAAAA,EACrBC,wCAAwCC,IAAI,EAC5Ca,OAAOb,IAAI,EACXc,WAAW,aAAaD,OAAOP,YAAY,GAAGO,OAAOJ,gBAAgB,EACrEG,MAAMZ,IAAI,CAACe,SAAS;IAGtB,IAAIH,MAAMX,QAAQ,EAAE;QAClB,oDAAoD;QACpDW,MAAMX,QAAQ,CAACc,SAAS,GAAGjB,uBAAAA,EAAaC,wCAAwCE,QAAQ,EAAEW,MAAMX,QAAQ,CAACc,SAAS;IACpH;IAEA,oDAAoD;IACpDH,MAAMV,IAAI,CAACa,SAAS,OAAGjB,mBAAAA,EAAaC,wCAAwCG,IAAI,EAAEU,MAAMV,IAAI,CAACa,SAAS;IAEtG,OAAOH;AACT,EAAE"}
@@ -1,6 +1,8 @@
1
- "use strict";
1
+ /**
2
+ * Base state intentionally does not extend ButtonState — `useButton_unstable` is
3
+ * only invoked from the styled hook, which derives the right `appearance` from
4
+ * the popover context before calling it.
5
+ */ "use strict";
2
6
  Object.defineProperty(exports, "__esModule", {
3
7
  value: true
4
8
  });
5
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
6
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { PopoverContextValue } from '@fluentui/react-popover';\nimport { ButtonProps, ButtonState } from '@fluentui/react-button';\nimport { ARIAButtonSlotProps } from '@fluentui/react-aria';\n\nexport type TeachingPopoverCarouselFooterButtonSlots = {\n root: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;\n};\n\n/**\n * TeachingPopoverCarouselFooterButton Props\n */\nexport type TeachingPopoverCarouselFooterButtonProps = ComponentProps<TeachingPopoverCarouselFooterButtonSlots> &\n ButtonProps & {\n /**\n * Defines whether the button should be next or previous type - used for both styling and functionality.\n */\n navType: 'next' | 'prev';\n\n /**\n * The ReactNode provided to the button when it is on it's first (navType 'prev') or last (navType 'next') step\n */\n altText: React.ReactNode;\n };\n\n/**\n * State used in rendering TeachingPopoverCarouselFooterButton\n */\nexport type TeachingPopoverCarouselFooterButtonState = ButtonState &\n ComponentState<TeachingPopoverCarouselFooterButtonSlots> &\n Pick<TeachingPopoverCarouselFooterButtonProps, 'navType' | 'altText'> & {\n /* Rename popover appearance to prevent conflict with button appearance */\n popoverAppearance: PopoverContextValue['appearance'];\n };\n"],"names":["React"],"mappings":";;;;;iEAAuB,QAAQ"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooterButton/TeachingPopoverCarouselFooterButton.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { PopoverContextValue } from '@fluentui/react-popover';\nimport type { ButtonProps, ButtonState } from '@fluentui/react-button';\nimport type { ARIAButtonSlotProps } from '@fluentui/react-aria';\n\nexport type TeachingPopoverCarouselFooterButtonSlots = {\n root: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;\n};\n\n/**\n * TeachingPopoverCarouselFooterButton Props\n */\nexport type TeachingPopoverCarouselFooterButtonProps = ComponentProps<TeachingPopoverCarouselFooterButtonSlots> &\n ButtonProps & {\n /**\n * Defines whether the button should be next or previous type - used for both styling and functionality.\n */\n navType: 'next' | 'prev';\n\n /**\n * The ReactNode provided to the button when it is on it's first (navType 'prev') or last (navType 'next') step\n */\n altText: React.ReactNode;\n };\n\n/**\n * State used in rendering TeachingPopoverCarouselFooterButton\n */\nexport type TeachingPopoverCarouselFooterButtonState = ButtonState &\n ComponentState<TeachingPopoverCarouselFooterButtonSlots> &\n Pick<TeachingPopoverCarouselFooterButtonProps, 'navType' | 'altText'> & {\n /* Rename popover appearance to prevent conflict with button appearance */\n popoverAppearance: PopoverContextValue['appearance'];\n };\n\nexport type TeachingPopoverCarouselFooterButtonBaseProps = TeachingPopoverCarouselFooterButtonProps;\n\n/**\n * Base state intentionally does not extend ButtonState — `useButton_unstable` is\n * only invoked from the styled hook, which derives the right `appearance` from\n * the popover context before calling it.\n */\nexport type TeachingPopoverCarouselFooterButtonBaseState = ComponentState<TeachingPopoverCarouselFooterButtonSlots> &\n Pick<TeachingPopoverCarouselFooterButtonProps, 'navType' | 'altText'>;\n"],"names":[],"mappings":"AAsCA;;;;CAIC,GACD,WACwE"}
@@ -18,6 +18,9 @@ _export(exports, {
18
18
  teachingPopoverCarouselFooterButtonClassNames: function() {
19
19
  return _useTeachingPopoverCarouselFooterButtonStylesstyles.teachingPopoverCarouselFooterButtonClassNames;
20
20
  },
21
+ useTeachingPopoverCarouselFooterButtonBase_unstable: function() {
22
+ return _useTeachingPopoverCarouselFooterButton.useTeachingPopoverCarouselFooterButtonBase_unstable;
23
+ },
21
24
  useTeachingPopoverCarouselFooterButtonStyles_unstable: function() {
22
25
  return _useTeachingPopoverCarouselFooterButtonStylesstyles.useTeachingPopoverCarouselFooterButtonStyles_unstable;
23
26
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooterButton/index.ts"],"sourcesContent":["export { TeachingPopoverCarouselFooterButton } from './TeachingPopoverCarouselFooterButton';\nexport type {\n TeachingPopoverCarouselFooterButtonProps,\n TeachingPopoverCarouselFooterButtonSlots,\n TeachingPopoverCarouselFooterButtonState,\n} from './TeachingPopoverCarouselFooterButton.types';\nexport { renderTeachingPopoverCarouselFooterButton_unstable } from './renderTeachingPopoverCarouselFooterButton';\nexport { useTeachingPopoverCarouselFooterButton_unstable } from './useTeachingPopoverCarouselFooterButton';\nexport {\n teachingPopoverCarouselFooterButtonClassNames,\n useTeachingPopoverCarouselFooterButtonStyles_unstable,\n} from './useTeachingPopoverCarouselFooterButtonStyles.styles';\n"],"names":["TeachingPopoverCarouselFooterButton","renderTeachingPopoverCarouselFooterButton_unstable","useTeachingPopoverCarouselFooterButton_unstable","teachingPopoverCarouselFooterButtonClassNames","useTeachingPopoverCarouselFooterButtonStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,wEAAmC;;;eAMnCC,6FAAkD;;;eAGzDE,iGAA6C;;;eAC7CC,yGAAqD;;;eAH9CF,uFAA+C;;;qDAPJ,wCAAwC;2DAMzB,8CAA8C;wDACjD,2CAA2C;oEAIpG,wDAAwD"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooterButton/index.ts"],"sourcesContent":["export { TeachingPopoverCarouselFooterButton } from './TeachingPopoverCarouselFooterButton';\nexport type {\n TeachingPopoverCarouselFooterButtonBaseProps,\n TeachingPopoverCarouselFooterButtonBaseState,\n TeachingPopoverCarouselFooterButtonProps,\n TeachingPopoverCarouselFooterButtonSlots,\n TeachingPopoverCarouselFooterButtonState,\n} from './TeachingPopoverCarouselFooterButton.types';\nexport { renderTeachingPopoverCarouselFooterButton_unstable } from './renderTeachingPopoverCarouselFooterButton';\nexport {\n useTeachingPopoverCarouselFooterButton_unstable,\n useTeachingPopoverCarouselFooterButtonBase_unstable,\n} from './useTeachingPopoverCarouselFooterButton';\nexport {\n teachingPopoverCarouselFooterButtonClassNames,\n useTeachingPopoverCarouselFooterButtonStyles_unstable,\n} from './useTeachingPopoverCarouselFooterButtonStyles.styles';\n"],"names":["TeachingPopoverCarouselFooterButton","renderTeachingPopoverCarouselFooterButton_unstable","useTeachingPopoverCarouselFooterButton_unstable","useTeachingPopoverCarouselFooterButtonBase_unstable","teachingPopoverCarouselFooterButtonClassNames","useTeachingPopoverCarouselFooterButtonStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,wEAAmC;;;eAQnCC,6FAAkD;;;eAMzDG,iGAA6C;;;eAH7CD,2FAAmD;;;eAInDE,yGAAqD;;;eALrDH,uFAA+C;;;qDAVG,wCAAwC;2DAQzB,8CAA8C;wDAI1G,2CAA2C;oEAI3C,wDAAwD"}
@@ -3,9 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "useTeachingPopoverCarouselFooterButton_unstable", {
7
- enumerable: true,
8
- get: function() {
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ useTeachingPopoverCarouselFooterButtonBase_unstable: function() {
14
+ return useTeachingPopoverCarouselFooterButtonBase_unstable;
15
+ },
16
+ useTeachingPopoverCarouselFooterButton_unstable: function() {
9
17
  return useTeachingPopoverCarouselFooterButton_unstable;
10
18
  }
11
19
  });
@@ -16,9 +24,8 @@ const _reactpopover = require("@fluentui/react-popover");
16
24
  const _CarouselContext = require("../TeachingPopoverCarousel/Carousel/CarouselContext");
17
25
  const _reactbutton = require("@fluentui/react-button");
18
26
  const _useCarouselValues = require("../TeachingPopoverCarousel/Carousel/useCarouselValues");
19
- const useTeachingPopoverCarouselFooterButton_unstable = (props, ref)=>{
27
+ const useTeachingPopoverCarouselFooterButtonBase_unstable = (props, ref)=>{
20
28
  const { navType, altText } = props;
21
- const popoverAppearance = (0, _reactpopover.usePopoverContext_unstable)((context)=>context.appearance);
22
29
  const selectPageByDirection = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.selectPageByDirection);
23
30
  const values = (0, _useCarouselValues.useCarouselValues_unstable)((snapshot)=>snapshot);
24
31
  const activeValue = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.value);
@@ -42,28 +49,18 @@ const useTeachingPopoverCarouselFooterButton_unstable = (props, ref)=>{
42
49
  activeValue,
43
50
  values
44
51
  ]);
45
- let buttonAppearanceType;
46
- if (navType === 'next') {
47
- buttonAppearanceType = popoverAppearance === 'brand' ? undefined : 'primary';
48
- } else {
49
- buttonAppearanceType = popoverAppearance === 'brand' ? 'outline' : undefined;
50
- }
51
52
  /* Handle altText on trailing step */ let buttonChild = props.children;
52
53
  if (isTrailing) {
53
54
  buttonChild = altText;
54
55
  }
55
56
  return {
56
- ...(0, _reactbutton.useButton_unstable)({
57
- appearance: buttonAppearanceType,
58
- ...props
59
- }, ref),
60
57
  navType,
61
- popoverAppearance,
62
58
  altText,
63
- // Override useButton root slot
59
+ components: {
60
+ root: 'button'
61
+ },
64
62
  root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('button', {
65
63
  ref,
66
- appearance: buttonAppearanceType,
67
64
  ...props,
68
65
  onClick: handleButtonClick,
69
66
  children: buttonChild
@@ -72,3 +69,24 @@ const useTeachingPopoverCarouselFooterButton_unstable = (props, ref)=>{
72
69
  })
73
70
  };
74
71
  };
72
+ const useTeachingPopoverCarouselFooterButton_unstable = (props, ref)=>{
73
+ const baseState = useTeachingPopoverCarouselFooterButtonBase_unstable(props, ref);
74
+ const popoverAppearance = (0, _reactpopover.usePopoverContext_unstable)((context)=>context.appearance);
75
+ let buttonAppearanceType;
76
+ if (props.navType === 'next') {
77
+ buttonAppearanceType = popoverAppearance === 'brand' ? undefined : 'primary';
78
+ } else {
79
+ buttonAppearanceType = popoverAppearance === 'brand' ? 'outline' : undefined;
80
+ }
81
+ const buttonState = (0, _reactbutton.useButton_unstable)({
82
+ appearance: buttonAppearanceType,
83
+ ...props
84
+ }, ref);
85
+ return {
86
+ ...buttonState,
87
+ navType: baseState.navType,
88
+ altText: baseState.altText,
89
+ root: baseState.root,
90
+ popoverAppearance
91
+ };
92
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-utilities';\nimport type {\n TeachingPopoverCarouselFooterButtonProps,\n TeachingPopoverCarouselFooterButtonState,\n} from './TeachingPopoverCarouselFooterButton.types';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarouselContext_unstable } from '../TeachingPopoverCarousel/Carousel/CarouselContext';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '@fluentui/react-button';\nimport { useCarouselValues_unstable } from '../TeachingPopoverCarousel/Carousel/useCarouselValues';\n\n/**\n * Create the state required to render TeachingPopoverCarouselFooterButton.\n *\n * The returned state can be modified with hooks such as useTeachingPopoverCarouselFooterButtonStyles_unstable,\n * before being passed to renderTeachingPopoverCarouselFooterButton_unstable.\n *\n * @param props - props from this instance of TeachingPopoverCarouselFooterButton\n * @param ref - reference to root HTMLDivElement of TeachingPopoverCarouselFooterButton\n */\nexport const useTeachingPopoverCarouselFooterButton_unstable = (\n props: TeachingPopoverCarouselFooterButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): TeachingPopoverCarouselFooterButtonState => {\n const { navType, altText } = props;\n\n const popoverAppearance = usePopoverContext_unstable(context => context.appearance);\n const selectPageByDirection = useCarouselContext_unstable(c => c.selectPageByDirection);\n const values = useCarouselValues_unstable(snapshot => snapshot);\n const activeValue = useCarouselContext_unstable(c => c.value);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement & HTMLAnchorElement>) => {\n if (event.isDefaultPrevented()) {\n return;\n }\n\n selectPageByDirection(event, navType);\n };\n\n const handleButtonClick = useEventCallback(mergeCallbacks(handleClick, props.onClick));\n\n const isTrailing = React.useMemo(() => {\n if (!activeValue) {\n return false;\n }\n\n if (navType === 'prev') {\n return values.indexOf(activeValue) === 0;\n }\n\n return values.indexOf(activeValue) === values.length - 1;\n }, [navType, activeValue, values]);\n\n let buttonAppearanceType: 'primary' | 'outline' | undefined;\n\n if (navType === 'next') {\n buttonAppearanceType = popoverAppearance === 'brand' ? undefined : 'primary';\n } else {\n buttonAppearanceType = popoverAppearance === 'brand' ? 'outline' : undefined;\n }\n\n /* Handle altText on trailing step */\n let buttonChild = props.children;\n if (isTrailing) {\n buttonChild = altText;\n }\n\n return {\n ...useButton_unstable({ appearance: buttonAppearanceType, ...props }, ref),\n navType,\n popoverAppearance,\n altText,\n // Override useButton root slot\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n appearance: buttonAppearanceType,\n ...props,\n onClick: handleButtonClick,\n children: buttonChild,\n }),\n { elementType: 'button' },\n ),\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","usePopoverContext_unstable","useCarouselContext_unstable","useEventCallback","useButton_unstable","useCarouselValues_unstable","useTeachingPopoverCarouselFooterButton_unstable","props","ref","navType","altText","popoverAppearance","context","appearance","selectPageByDirection","c","values","snapshot","activeValue","value","handleClick","event","isDefaultPrevented","handleButtonClick","onClick","isTrailing","useMemo","indexOf","length","buttonAppearanceType","undefined","buttonChild","children","root","always","elementType"],"mappings":"AAAA;;;;;+BAuBaS;;;;;;;iEArBU,QAAQ;gCACgC,4BAA4B;8BAKhD,0BAA0B;iCACzB,sDAAsD;6BAE/D,yBAAyB;mCACjB,wDAAwD;AAW5F,wDAAwD,CAC7DC,OACAC;IAEA,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAE7B,MAAMI,wBAAoBV,wCAAAA,EAA2BW,CAAAA,UAAWA,QAAQC,UAAU;IAClF,MAAMC,4BAAwBZ,4CAAAA,EAA4Ba,CAAAA,IAAKA,EAAED,qBAAqB;IACtF,MAAME,aAASX,6CAAAA,EAA2BY,CAAAA,WAAYA;IACtD,MAAMC,kBAAchB,4CAAAA,EAA4Ba,CAAAA,IAAKA,EAAEI,KAAK;IAE5D,MAAMC,cAAc,CAACC;QACnB,IAAIA,MAAMC,kBAAkB,IAAI;YAC9B;QACF;QAEAR,sBAAsBO,OAAOZ;IAC/B;IAEA,MAAMc,wBAAoBpB,gCAAAA,MAAiBJ,8BAAAA,EAAeqB,aAAab,MAAMiB,OAAO;IAEpF,MAAMC,aAAa5B,OAAM6B,OAAO,CAAC;QAC/B,IAAI,CAACR,aAAa;YAChB,OAAO;QACT;QAEA,IAAIT,YAAY,QAAQ;YACtB,OAAOO,OAAOW,OAAO,CAACT,iBAAiB;QACzC;QAEA,OAAOF,OAAOW,OAAO,CAACT,iBAAiBF,OAAOY,MAAM,GAAG;IACzD,GAAG;QAACnB;QAASS;QAAaF;KAAO;IAEjC,IAAIa;IAEJ,IAAIpB,YAAY,QAAQ;QACtBoB,uBAAuBlB,sBAAsB,UAAUmB,YAAY;IACrE,OAAO;QACLD,uBAAuBlB,sBAAsB,UAAU,YAAYmB;IACrE;IAEA,mCAAmC,GACnC,IAAIC,cAAcxB,MAAMyB,QAAQ;IAChC,IAAIP,YAAY;QACdM,cAAcrB;IAChB;IAEA,OAAO;QACL,OAAGN,+BAAAA,EAAmB;YAAES,YAAYgB;YAAsB,GAAGtB,KAAK;QAAC,GAAGC,IAAI;QAC1EC;QACAE;QACAD;QACA,+BAA+B;QAC/BuB,MAAMjC,oBAAAA,CAAKkC,MAAM,KACfpC,wCAAAA,EAAyB,UAAU;YACjCU;YACAK,YAAYgB;YACZ,GAAGtB,KAAK;YACRiB,SAASD;YACTS,UAAUD;QACZ,IACA;YAAEI,aAAa;QAAS;IAE5B;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselFooterButton/useTeachingPopoverCarouselFooterButton.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-utilities';\nimport type {\n TeachingPopoverCarouselFooterButtonBaseProps,\n TeachingPopoverCarouselFooterButtonBaseState,\n TeachingPopoverCarouselFooterButtonProps,\n TeachingPopoverCarouselFooterButtonState,\n} from './TeachingPopoverCarouselFooterButton.types';\nimport { usePopoverContext_unstable } from '@fluentui/react-popover';\nimport { useCarouselContext_unstable } from '../TeachingPopoverCarousel/Carousel/CarouselContext';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '@fluentui/react-button';\nimport { useCarouselValues_unstable } from '../TeachingPopoverCarousel/Carousel/useCarouselValues';\n\n/**\n * Base hook that builds TeachingPopoverCarouselFooterButton state for behavior and structure only.\n * Does not read `appearance` from the popover context, does not derive the button's\n * appearance from the navType/popoverAppearance combination, and does not call\n * `useButton_unstable` (the styled hook does that with the right appearance).\n * @param props - props from this instance of TeachingPopoverCarouselFooterButton\n * @param ref - reference to root HTMLDivElement of TeachingPopoverCarouselFooterButton\n */\nexport const useTeachingPopoverCarouselFooterButtonBase_unstable = (\n props: TeachingPopoverCarouselFooterButtonBaseProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): TeachingPopoverCarouselFooterButtonBaseState => {\n const { navType, altText } = props;\n\n const selectPageByDirection = useCarouselContext_unstable(c => c.selectPageByDirection);\n const values = useCarouselValues_unstable(snapshot => snapshot);\n const activeValue = useCarouselContext_unstable(c => c.value);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement & HTMLAnchorElement>) => {\n if (event.isDefaultPrevented()) {\n return;\n }\n\n selectPageByDirection(event, navType);\n };\n\n const handleButtonClick = useEventCallback(mergeCallbacks(handleClick, props.onClick));\n\n const isTrailing = React.useMemo(() => {\n if (!activeValue) {\n return false;\n }\n\n if (navType === 'prev') {\n return values.indexOf(activeValue) === 0;\n }\n\n return values.indexOf(activeValue) === values.length - 1;\n }, [navType, activeValue, values]);\n\n /* Handle altText on trailing step */\n let buttonChild = props.children;\n if (isTrailing) {\n buttonChild = altText;\n }\n\n return {\n navType,\n altText,\n components: {\n root: 'button',\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n ...props,\n onClick: handleButtonClick,\n children: buttonChild,\n }),\n { elementType: 'button' },\n ),\n };\n};\n\n/**\n * Create the state required to render TeachingPopoverCarouselFooterButton.\n *\n * The returned state can be modified with hooks such as useTeachingPopoverCarouselFooterButtonStyles_unstable,\n * before being passed to renderTeachingPopoverCarouselFooterButton_unstable.\n *\n * @param props - props from this instance of TeachingPopoverCarouselFooterButton\n * @param ref - reference to root HTMLDivElement of TeachingPopoverCarouselFooterButton\n */\nexport const useTeachingPopoverCarouselFooterButton_unstable = (\n props: TeachingPopoverCarouselFooterButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): TeachingPopoverCarouselFooterButtonState => {\n const baseState = useTeachingPopoverCarouselFooterButtonBase_unstable(props, ref);\n const popoverAppearance = usePopoverContext_unstable(context => context.appearance);\n\n let buttonAppearanceType: 'primary' | 'outline' | undefined;\n\n if (props.navType === 'next') {\n buttonAppearanceType = popoverAppearance === 'brand' ? undefined : 'primary';\n } else {\n buttonAppearanceType = popoverAppearance === 'brand' ? 'outline' : undefined;\n }\n\n const buttonState = useButton_unstable({ appearance: buttonAppearanceType, ...props }, ref);\n\n return {\n ...buttonState,\n navType: baseState.navType,\n altText: baseState.altText,\n root: baseState.root,\n popoverAppearance,\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","usePopoverContext_unstable","useCarouselContext_unstable","useEventCallback","useButton_unstable","useCarouselValues_unstable","useTeachingPopoverCarouselFooterButtonBase_unstable","props","ref","navType","altText","selectPageByDirection","c","values","snapshot","activeValue","value","handleClick","event","isDefaultPrevented","handleButtonClick","onClick","isTrailing","useMemo","indexOf","length","buttonChild","children","components","root","always","elementType","useTeachingPopoverCarouselFooterButton_unstable","baseState","popoverAppearance","context","appearance","buttonAppearanceType","undefined","buttonState"],"mappings":"AAAA;;;;;;;;;;;;IAwBaS,mDAAAA;;;IAiEA0B,+CAAAA;;;;;iEAvFU,QAAQ;gCACgC,4BAA4B;8BAOhD,0BAA0B;iCACzB,sDAAsD;6BAE/D,yBAAyB;mCACjB,wDAAwD;AAU5F,4DAA4D,CACjEzB,OACAC;IAEA,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAE7B,MAAMI,4BAAwBT,4CAAAA,EAA4BU,CAAAA,IAAKA,EAAED,qBAAqB;IACtF,MAAME,aAASR,6CAAAA,EAA2BS,CAAAA,WAAYA;IACtD,MAAMC,kBAAcb,4CAAAA,EAA4BU,CAAAA,IAAKA,EAAEI,KAAK;IAE5D,MAAMC,cAAc,CAACC;QACnB,IAAIA,MAAMC,kBAAkB,IAAI;YAC9B;QACF;QAEAR,sBAAsBO,OAAOT;IAC/B;IAEA,MAAMW,wBAAoBjB,gCAAAA,MAAiBJ,8BAAAA,EAAekB,aAAaV,MAAMc,OAAO;IAEpF,MAAMC,aAAazB,OAAM0B,OAAO,CAAC;QAC/B,IAAI,CAACR,aAAa;YAChB,OAAO;QACT;QAEA,IAAIN,YAAY,QAAQ;YACtB,OAAOI,OAAOW,OAAO,CAACT,iBAAiB;QACzC;QAEA,OAAOF,OAAOW,OAAO,CAACT,iBAAiBF,OAAOY,MAAM,GAAG;IACzD,GAAG;QAAChB;QAASM;QAAaF;KAAO;IAEjC,mCAAmC,GACnC,IAAIa,cAAcnB,MAAMoB,QAAQ;IAChC,IAAIL,YAAY;QACdI,cAAchB;IAChB;IAEA,OAAO;QACLD;QACAC;QACAkB,YAAY;YACVC,MAAM;QACR;QACAA,MAAM7B,oBAAAA,CAAK8B,MAAM,KACfhC,wCAAAA,EAAyB,UAAU;YACjCU;YACA,GAAGD,KAAK;YACRc,SAASD;YACTO,UAAUD;QACZ,IACA;YAAEK,aAAa;QAAS;IAE5B;AACF,EAAE;AAWK,wDAAwD,CAC7DxB,OACAC;IAEA,MAAMyB,YAAY3B,oDAAoDC,OAAOC;IAC7E,MAAM0B,wBAAoBjC,wCAAAA,EAA2BkC,CAAAA,UAAWA,QAAQC,UAAU;IAElF,IAAIC;IAEJ,IAAI9B,MAAME,OAAO,KAAK,QAAQ;QAC5B4B,uBAAuBH,sBAAsB,UAAUI,YAAY;IACrE,OAAO;QACLD,uBAAuBH,sBAAsB,UAAU,YAAYI;IACrE;IAEA,MAAMC,cAAcnC,mCAAAA,EAAmB;QAAEgC,YAAYC;QAAsB,GAAG9B,KAAK;IAAC,GAAGC;IAEvF,OAAO;QACL,GAAG+B,WAAW;QACd9B,SAASwB,UAAUxB,OAAO;QAC1BC,SAASuB,UAAUvB,OAAO;QAC1BmB,MAAMI,UAAUJ,IAAI;QACpBK;IACF;AACF,EAAE"}
@@ -2,5 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
6
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.ts"],"sourcesContent":["import * as React from 'react';\nimport { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TeachingPopoverCarouselNavSlots = {\n /**\n * The element wrapping the carousel pagination. By default this is a div,\n * it may contain icons or text depending on TeachingPopoverCarouselNavStyle\n */\n root: NonNullable<Slot<'div'>>;\n};\n\nexport type NavButtonRenderFunction = (value: string) => React.ReactNode;\n\nexport type TeachingPopoverCarouselNavState = ComponentState<TeachingPopoverCarouselNavSlots> & {\n values: string[];\n\n renderNavButton: NavButtonRenderFunction;\n};\n\nexport type TeachingPopoverCarouselNavProps = Omit<\n ComponentProps<Partial<TeachingPopoverCarouselNavSlots>>,\n 'children'\n> & {\n children: NavButtonRenderFunction;\n};\n"],"names":["React"],"mappings":";;;;;iEAAuB,QAAQ"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/TeachingPopoverCarouselNav.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TeachingPopoverCarouselNavSlots = {\n /**\n * The element wrapping the carousel pagination. By default this is a div,\n * it may contain icons or text depending on TeachingPopoverCarouselNavStyle\n */\n root: NonNullable<Slot<'div'>>;\n};\n\nexport type NavButtonRenderFunction = (value: string) => React.ReactNode;\n\nexport type TeachingPopoverCarouselNavState = ComponentState<TeachingPopoverCarouselNavSlots> & {\n values: string[];\n\n renderNavButton: NavButtonRenderFunction;\n};\n\nexport type TeachingPopoverCarouselNavProps = Omit<\n ComponentProps<Partial<TeachingPopoverCarouselNavSlots>>,\n 'children'\n> & {\n children: NavButtonRenderFunction;\n};\n\nexport type TeachingPopoverCarouselNavBaseProps = TeachingPopoverCarouselNavProps;\n\nexport type TeachingPopoverCarouselNavBaseState = TeachingPopoverCarouselNavState;\n"],"names":[],"mappings":""}
@@ -18,6 +18,9 @@ _export(exports, {
18
18
  teachingPopoverCarouselNavClassNames: function() {
19
19
  return _useTeachingPopoverCarouselNavStylesstyles.teachingPopoverCarouselNavClassNames;
20
20
  },
21
+ useTeachingPopoverCarouselNavBase_unstable: function() {
22
+ return _useTeachingPopoverCarouselNav.useTeachingPopoverCarouselNavBase_unstable;
23
+ },
21
24
  useTeachingPopoverCarouselNavStyles_unstable: function() {
22
25
  return _useTeachingPopoverCarouselNavStylesstyles.useTeachingPopoverCarouselNavStyles_unstable;
23
26
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/index.ts"],"sourcesContent":["export { TeachingPopoverCarouselNav } from './TeachingPopoverCarouselNav';\nexport type {\n NavButtonRenderFunction,\n TeachingPopoverCarouselNavProps,\n TeachingPopoverCarouselNavSlots,\n TeachingPopoverCarouselNavState,\n} from './TeachingPopoverCarouselNav.types';\nexport { renderTeachingPopoverCarouselNav_unstable } from './renderTeachingPopoverCarouselNav';\nexport { useTeachingPopoverCarouselNav_unstable } from './useTeachingPopoverCarouselNav';\nexport {\n teachingPopoverCarouselNavClassNames,\n useTeachingPopoverCarouselNavStyles_unstable,\n} from './useTeachingPopoverCarouselNavStyles.styles';\n"],"names":["TeachingPopoverCarouselNav","renderTeachingPopoverCarouselNav_unstable","useTeachingPopoverCarouselNav_unstable","teachingPopoverCarouselNavClassNames","useTeachingPopoverCarouselNavStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,sDAA0B;;;eAO1BC,2EAAyC;;;eAGhDE,+EAAoC;;;eACpCC,uFAA4C;;;eAHrCF,qEAAsC;;;4CARJ,+BAA+B;kDAOhB,qCAAqC;+CACxC,kCAAkC;2DAIlF,+CAA+C"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/index.ts"],"sourcesContent":["export { TeachingPopoverCarouselNav } from './TeachingPopoverCarouselNav';\nexport type {\n NavButtonRenderFunction,\n TeachingPopoverCarouselNavBaseProps,\n TeachingPopoverCarouselNavBaseState,\n TeachingPopoverCarouselNavProps,\n TeachingPopoverCarouselNavSlots,\n TeachingPopoverCarouselNavState,\n} from './TeachingPopoverCarouselNav.types';\nexport { renderTeachingPopoverCarouselNav_unstable } from './renderTeachingPopoverCarouselNav';\nexport {\n useTeachingPopoverCarouselNav_unstable,\n useTeachingPopoverCarouselNavBase_unstable,\n} from './useTeachingPopoverCarouselNav';\nexport {\n teachingPopoverCarouselNavClassNames,\n useTeachingPopoverCarouselNavStyles_unstable,\n} from './useTeachingPopoverCarouselNavStyles.styles';\n"],"names":["TeachingPopoverCarouselNav","renderTeachingPopoverCarouselNav_unstable","useTeachingPopoverCarouselNav_unstable","useTeachingPopoverCarouselNavBase_unstable","teachingPopoverCarouselNavClassNames","useTeachingPopoverCarouselNavStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,sDAA0B;;;eAS1BC,2EAAyC;;;eAMhDG,+EAAoC;;;eAHpCD,yEAA0C;;;eAI1CE,uFAA4C;;;eAL5CH,qEAAsC;;;4CAXG,+BAA+B;kDAShB,qCAAqC;+CAIxF,kCAAkC;2DAIlC,+CAA+C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverCarouselNavState } from './TeachingPopoverCarouselNav.types';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { TeachingPopoverCarouselNavSlots } from './TeachingPopoverCarouselNav.types';\nimport { ValueIdContextProvider } from './valueIdContext';\n\n/**\n * Render the final JSX of TeachingPopoverCarouselNav\n */\nexport const renderTeachingPopoverCarouselNav_unstable = (state: TeachingPopoverCarouselNavState): JSXElement => {\n assertSlots<TeachingPopoverCarouselNavSlots>(state);\n\n const { values, renderNavButton } = state;\n\n return (\n <state.root>\n {values.map(value => (\n <ValueIdContextProvider value={value} key={value}>\n {renderNavButton(value)}\n </ValueIdContextProvider>\n ))}\n </state.root>\n );\n};\n"],"names":["assertSlots","ValueIdContextProvider","renderTeachingPopoverCarouselNav_unstable","state","values","renderNavButton","root","map","value"],"mappings":";;;;+BAWaE;;;;;;4BAVb,gDAAiD;gCAErB,4BAA4B;gCAGjB,mBAAmB;AAKnD,kDAAkD,CAACC;QACxDH,2BAAAA,EAA6CG;IAE7C,MAAM,EAAEC,MAAM,EAAEC,eAAe,EAAE,GAAGF;IAEpC,OAAA,WAAA,OACE,eAAA,EAACA,MAAMG,IAAI,EAAA;kBACRF,OAAOG,GAAG,CAACC,CAAAA,QAAAA,WAAAA,OACV,eAAA,EAACP,sCAAAA,EAAAA;gBAAuBO,OAAOA;0BAC5BH,gBAAgBG;eADwBA;;AAMnD,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/renderTeachingPopoverCarouselNav.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport type { TeachingPopoverCarouselNavState } from './TeachingPopoverCarouselNav.types';\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { TeachingPopoverCarouselNavSlots } from './TeachingPopoverCarouselNav.types';\nimport { ValueIdContextProvider } from './valueIdContext';\n\n/**\n * Render the final JSX of TeachingPopoverCarouselNav\n */\nexport const renderTeachingPopoverCarouselNav_unstable = (state: TeachingPopoverCarouselNavState): JSXElement => {\n assertSlots<TeachingPopoverCarouselNavSlots>(state);\n\n const { values, renderNavButton } = state;\n\n return (\n <state.root>\n {values.map(value => (\n <ValueIdContextProvider value={value} key={value}>\n {renderNavButton(value)}\n </ValueIdContextProvider>\n ))}\n </state.root>\n );\n};\n"],"names":["assertSlots","ValueIdContextProvider","renderTeachingPopoverCarouselNav_unstable","state","values","renderNavButton","root","map","value"],"mappings":";;;;+BAWaE;;;;;;4BAVb,gDAAiD;gCAErB,4BAA4B;gCAGjB,mBAAmB;AAKnD,kDAAkD,CAACC;QACxDH,2BAAAA,EAA6CG;IAE7C,MAAM,EAAEC,MAAM,EAAEC,eAAe,EAAE,GAAGF;IAEpC,OAAA,WAAA,OACE,eAAA,EAACA,MAAMG,IAAI,EAAA;kBACRF,OAAOG,GAAG,CAACC,CAAAA,QAAAA,WAAAA,OACV,eAAA,EAACP,sCAAAA,EAAAA;gBAAuBO,OAAOA;0BAC5BH,gBAAgBG;eADwBA;;AAMnD,EAAE"}
@@ -3,25 +3,24 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "useTeachingPopoverCarouselNav_unstable", {
7
- enumerable: true,
8
- get: function() {
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ useTeachingPopoverCarouselNavBase_unstable: function() {
14
+ return useTeachingPopoverCarouselNavBase_unstable;
15
+ },
16
+ useTeachingPopoverCarouselNav_unstable: function() {
9
17
  return useTeachingPopoverCarouselNav_unstable;
10
18
  }
11
19
  });
12
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
20
  const _reacttabster = require("@fluentui/react-tabster");
14
21
  const _reactutilities = require("@fluentui/react-utilities");
15
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
16
22
  const _useCarouselValues = require("../TeachingPopoverCarousel/Carousel/useCarouselValues");
17
- const useTeachingPopoverCarouselNav_unstable = (props, ref)=>{
18
- const focusableGroupAttr = (0, _reacttabster.useArrowNavigationGroup)({
19
- circular: false,
20
- axis: 'horizontal',
21
- memorizeCurrent: false,
22
- // eslint-disable-next-line @typescript-eslint/naming-convention
23
- unstable_hasDefault: true
24
- });
23
+ const useTeachingPopoverCarouselNavBase_unstable = (props, ref)=>{
25
24
  const values = (0, _useCarouselValues.useCarouselValues_unstable)((snapshot)=>snapshot);
26
25
  return {
27
26
  values,
@@ -34,10 +33,26 @@ const useTeachingPopoverCarouselNav_unstable = (props, ref)=>{
34
33
  role: 'tablist',
35
34
  tabIndex: 0,
36
35
  ...props,
37
- ...focusableGroupAttr,
38
36
  children: null
39
37
  }), {
40
38
  elementType: 'div'
41
39
  })
42
40
  };
43
41
  };
42
+ const useTeachingPopoverCarouselNav_unstable = (props, ref)=>{
43
+ const state = useTeachingPopoverCarouselNavBase_unstable(props, ref);
44
+ const focusableGroupAttr = (0, _reacttabster.useArrowNavigationGroup)({
45
+ circular: false,
46
+ axis: 'horizontal',
47
+ memorizeCurrent: false,
48
+ // eslint-disable-next-line @typescript-eslint/naming-convention
49
+ unstable_hasDefault: true
50
+ });
51
+ return {
52
+ ...state,
53
+ root: {
54
+ ...state.root,
55
+ ...focusableGroupAttr
56
+ }
57
+ };
58
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.tsx"],"sourcesContent":["'use client';\n\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport * as React from 'react';\n\nimport type {\n TeachingPopoverCarouselNavProps,\n TeachingPopoverCarouselNavState,\n} from './TeachingPopoverCarouselNav.types';\nimport { useCarouselValues_unstable } from '../TeachingPopoverCarousel/Carousel/useCarouselValues';\n\n/**\n * Returns the props and state required to render the component\n * @param props - TeachingPopoverCarouselNav properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarouselNav\n */\nexport const useTeachingPopoverCarouselNav_unstable = (\n props: TeachingPopoverCarouselNavProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselNavState => {\n const focusableGroupAttr = useArrowNavigationGroup({\n circular: false,\n axis: 'horizontal',\n memorizeCurrent: false,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n unstable_hasDefault: true,\n });\n const values = useCarouselValues_unstable(snapshot => snapshot);\n\n return {\n values,\n renderNavButton: props.children,\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'tablist',\n tabIndex: 0,\n ...props,\n ...focusableGroupAttr,\n children: null,\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["useArrowNavigationGroup","getIntrinsicElementProps","slot","React","useCarouselValues_unstable","useTeachingPopoverCarouselNav_unstable","props","ref","focusableGroupAttr","circular","axis","memorizeCurrent","unstable_hasDefault","values","snapshot","renderNavButton","children","components","root","always","role","tabIndex","elementType"],"mappings":"AAAA;;;;;+BAiBaK;;;;;;;8BAf2B,0BAA0B;gCACnB,4BAA4B;iEACpD,QAAQ;mCAMY,wDAAwD;AAO5F,+CAA+C,CACpDC,OACAC;IAEA,MAAMC,yBAAqBR,qCAAAA,EAAwB;QACjDS,UAAU;QACVC,MAAM;QACNC,iBAAiB;QACjB,gEAAgE;QAChEC,qBAAqB;IACvB;IACA,MAAMC,aAAST,6CAAAA,EAA2BU,CAAAA,WAAYA;IAEtD,OAAO;QACLD;QACAE,iBAAiBT,MAAMU,QAAQ;QAC/BC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMhB,oBAAAA,CAAKiB,MAAM,KACflB,wCAAAA,EAAyB,OAAO;YAC9BM;YACAa,MAAM;YACNC,UAAU;YACV,GAAGf,KAAK;YACR,GAAGE,kBAAkB;YACrBQ,UAAU;QACZ,IACA;YAAEM,aAAa;QAAM;IAEzB;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNav.tsx"],"sourcesContent":["'use client';\n\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type * as React from 'react';\n\nimport type {\n TeachingPopoverCarouselNavBaseProps,\n TeachingPopoverCarouselNavBaseState,\n TeachingPopoverCarouselNavProps,\n TeachingPopoverCarouselNavState,\n} from './TeachingPopoverCarouselNav.types';\nimport { useCarouselValues_unstable } from '../TeachingPopoverCarousel/Carousel/useCarouselValues';\n\n/**\n * Base hook that builds TeachingPopoverCarouselNav state for behavior and structure only.\n * Does not call `useArrowNavigationGroup` from `@fluentui/react-tabster`.\n * @param props - TeachingPopoverCarouselNav properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarouselNav\n */\nexport const useTeachingPopoverCarouselNavBase_unstable = (\n props: TeachingPopoverCarouselNavBaseProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselNavBaseState => {\n const values = useCarouselValues_unstable(snapshot => snapshot);\n\n return {\n values,\n renderNavButton: props.children,\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'tablist',\n tabIndex: 0,\n ...props,\n children: null,\n }),\n { elementType: 'div' },\n ),\n };\n};\n\n/**\n * Returns the props and state required to render the component\n * @param props - TeachingPopoverCarouselNav properties\n * @param ref - reference to root HTMLElement of TeachingPopoverCarouselNav\n */\nexport const useTeachingPopoverCarouselNav_unstable = (\n props: TeachingPopoverCarouselNavProps,\n ref: React.Ref<HTMLDivElement>,\n): TeachingPopoverCarouselNavState => {\n const state = useTeachingPopoverCarouselNavBase_unstable(props, ref);\n\n const focusableGroupAttr = useArrowNavigationGroup({\n circular: false,\n axis: 'horizontal',\n memorizeCurrent: false,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n unstable_hasDefault: true,\n });\n\n return {\n ...state,\n root: {\n ...state.root,\n ...focusableGroupAttr,\n },\n };\n};\n"],"names":["useArrowNavigationGroup","getIntrinsicElementProps","slot","useCarouselValues_unstable","useTeachingPopoverCarouselNavBase_unstable","props","ref","values","snapshot","renderNavButton","children","components","root","always","role","tabIndex","elementType","useTeachingPopoverCarouselNav_unstable","state","focusableGroupAttr","circular","axis","memorizeCurrent","unstable_hasDefault"],"mappings":"AAAA;;;;;;;;;;;;IAoBaI,0CAAAA;;;0CA8BAa;eAAAA;;;8BAhD2B,0BAA0B;gCACnB,4BAA4B;mCAShC,wDAAwD;AAQ5F,mDAAmD,CACxDZ,OACAC;IAEA,MAAMC,aAASJ,6CAAAA,EAA2BK,CAAAA,WAAYA;IAEtD,OAAO;QACLD;QACAE,iBAAiBJ,MAAMK,QAAQ;QAC/BC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMV,oBAAAA,CAAKW,MAAM,KACfZ,wCAAAA,EAAyB,OAAO;YAC9BK;YACAQ,MAAM;YACNC,UAAU;YACV,GAAGV,KAAK;YACRK,UAAU;QACZ,IACA;YAAEM,aAAa;QAAM;IAEzB;AACF,EAAE;AAOK,+CAA+C,CACpDX,OACAC;IAEA,MAAMY,QAAQd,2CAA2CC,OAAOC;IAEhE,MAAMa,yBAAqBnB,qCAAAA,EAAwB;QACjDoB,UAAU;QACVC,MAAM;QACNC,iBAAiB;QACjB,gEAAgE;QAChEC,qBAAqB;IACvB;IAEA,OAAO;QACL,GAAGL,KAAK;QACRN,MAAM;YACJ,GAAGM,MAAMN,IAAI;YACb,GAAGO,kBAAkB;QACvB;IACF;AACF,EAAE"}
@@ -76,6 +76,7 @@ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
76
76
  const useTeachingPopoverCarouselNavStyles_unstable = (state)=>{
77
77
  'use no memo';
78
78
  const styles = useStyles();
79
+ // eslint-disable-next-line react-hooks/immutability
79
80
  state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselNavClassNames.root, styles.root, state.root.className);
80
81
  return state;
81
82
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useTeachingPopoverCarouselNavStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nexport const teachingPopoverCarouselNavClassNames = {\n root: 'fui-TeachingPopoverCarouselNav'\n};\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n columnGap: tokens.spacingHorizontalXS,\n alignItems: 'center',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.borderColor('transparent')\n })\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselNavStyles_unstable = (state)=>{\n 'use no memo';\n const styles = useStyles();\n state.root.className = mergeClasses(teachingPopoverCarouselNavClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","shorthands","createCustomFocusIndicatorStyle","tokens","teachingPopoverCarouselNavClassNames","root","useStyles","mc9l5x","Beiy3e4","i8kkvl","Bt984gj","Brf1p80","Bfpq7zp","g9k6zt","Bn4voq9","giviqs","Bw81rd7","kdpuga","dm238s","B6xbmo0","B3whbx2","B8q5s1w","Bci5o5g","n8qw10","Bdrgwmp","d","p","useTeachingPopoverCarouselNavStyles_unstable","state","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAICK,oCAAoC;;;gDAiBiD;;;;uBApB7C,gBAAgB;AAG9D,6CAA6C;IAChDC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGP,eAAA,EAAA;IAAAM,IAAA,EAAA;QAAAE,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;YAAA;YAAA;SAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;YAAA;YAAA;SAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;YAAA;YAAA;gBAAAC,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;YAAA;YAAA;gBAAAA,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAajB,CAAC;AAC8C,MAAMC,gDAAgDC,KAAK,IAAG;IAC1G,aAAa;IACb,MAAMC,MAAM,GAAGvB,SAAS,CAAC,CAAC;IAC1BsB,KAAK,CAACvB,IAAI,CAACyB,SAAS,OAAG9B,mBAAY,EAACI,oCAAoC,CAACC,IAAI,EAAEwB,MAAM,CAACxB,IAAI,EAAEuB,KAAK,CAACvB,IAAI,CAACyB,SAAS,CAAC;IACjH,OAAOF,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTeachingPopoverCarouselNavStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nexport const teachingPopoverCarouselNavClassNames = {\n root: 'fui-TeachingPopoverCarouselNav'\n};\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n columnGap: tokens.spacingHorizontalXS,\n alignItems: 'center',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.borderColor('transparent')\n })\n }\n});\n/** Applies style classnames to slots */ export const useTeachingPopoverCarouselNavStyles_unstable = (state)=>{\n 'use no memo';\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverCarouselNavClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","shorthands","createCustomFocusIndicatorStyle","tokens","teachingPopoverCarouselNavClassNames","root","useStyles","mc9l5x","Beiy3e4","i8kkvl","Bt984gj","Brf1p80","Bfpq7zp","g9k6zt","Bn4voq9","giviqs","Bw81rd7","kdpuga","dm238s","B6xbmo0","B3whbx2","B8q5s1w","Bci5o5g","n8qw10","Bdrgwmp","d","p","useTeachingPopoverCarouselNavStyles_unstable","state","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAICK,oCAAoC;;;gDAiBiD;;;;uBApB7C,gBAAgB;AAG9D,6CAA6C;IAChDC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGP,eAAA,EAAA;IAAAM,IAAA,EAAA;QAAAE,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;YAAA;YAAA;SAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;YAAA;YAAA;SAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;YAAA;YAAA;gBAAAC,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;YAAA;YAAA;gBAAAA,CAAA,EAAA,CAAA;YAAA;SAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAajB,CAAC;AAC8C,MAAMC,gDAAgDC,KAAK,IAAG;IAC1G,aAAa;IACb,MAAMC,MAAM,GAAGvB,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAsB,KAAK,CAACvB,IAAI,CAACyB,SAAS,OAAG9B,mBAAY,EAACI,oCAAoC,CAACC,IAAI,EAAEwB,MAAM,CAACxB,IAAI,EAAEuB,KAAK,CAACvB,IAAI,CAACyB,SAAS,CAAC;IACjH,OAAOF,KAAK;AAChB,CAAC"}
@@ -40,6 +40,7 @@ const useStyles = (0, _react.makeStyles)({
40
40
  const useTeachingPopoverCarouselNavStyles_unstable = (state)=>{
41
41
  'use no memo';
42
42
  const styles = useStyles();
43
+ // eslint-disable-next-line react-hooks/immutability
43
44
  state.root.className = (0, _react.mergeClasses)(teachingPopoverCarouselNavClassNames.root, styles.root, state.root.className);
44
45
  return state;
45
46
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type {\n TeachingPopoverCarouselNavSlots,\n TeachingPopoverCarouselNavState,\n} from './TeachingPopoverCarouselNav.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const teachingPopoverCarouselNavClassNames: SlotClassNames<TeachingPopoverCarouselNavSlots> = {\n root: 'fui-TeachingPopoverCarouselNav',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n columnGap: tokens.spacingHorizontalXS,\n alignItems: 'center',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.borderColor('transparent'),\n }),\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselNavStyles_unstable = (\n state: TeachingPopoverCarouselNavState,\n): TeachingPopoverCarouselNavState => {\n 'use no memo';\n\n const styles = useStyles();\n\n state.root.className = mergeClasses(teachingPopoverCarouselNavClassNames.root, styles.root, state.root.className);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","createCustomFocusIndicatorStyle","tokens","teachingPopoverCarouselNavClassNames","root","useStyles","display","flexDirection","columnGap","spacingHorizontalXS","alignItems","justifyContent","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","borderColor","useTeachingPopoverCarouselNavStyles_unstable","state","styles","className"],"mappings":"AAAA;;;;;;;;;;;;IAWaK,oCAAAA;;;gDAoBAe;;;;uBA7BwC,iBAAiB;8BAMtB,0BAA0B;4BACnD,wBAAwB;AAExC,6CAA8F;IACnGd,MAAM;AACR,EAAE;AAEF,MAAMC,gBAAYP,iBAAAA,EAAW;IAC3BM,MAAM;QACJE,SAAS;QACTC,eAAe;QACfC,WAAWN,kBAAAA,CAAOO,mBAAmB;QACrCC,YAAY;QACZC,gBAAgB;QAChB,OAAGV,6CAAAA,EAAgC;YACjCW,SAAS,GAAGV,kBAAAA,CAAOW,gBAAgB,CAAC,OAAO,EAAEX,kBAAAA,CAAOY,iBAAiB,EAAE;YACvEC,cAAcb,kBAAAA,CAAOc,kBAAkB;YACvC,GAAGhB,iBAAAA,CAAWiB,WAAW,CAAC,cAAc;QAC1C,EAAE;IACJ;AACF;AAGO,MAAMC,+CAA+C,CAC1DC;IAEA;IAEA,MAAMC,SAASf;IAEfc,MAAMf,IAAI,CAACiB,SAAS,OAAGtB,mBAAAA,EAAaI,qCAAqCC,IAAI,EAAEgB,OAAOhB,IAAI,EAAEe,MAAMf,IAAI,CAACiB,SAAS;IAEhH,OAAOF;AACT,EAAE"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNav/useTeachingPopoverCarouselNavStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type {\n TeachingPopoverCarouselNavSlots,\n TeachingPopoverCarouselNavState,\n} from './TeachingPopoverCarouselNav.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const teachingPopoverCarouselNavClassNames: SlotClassNames<TeachingPopoverCarouselNavSlots> = {\n root: 'fui-TeachingPopoverCarouselNav',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n columnGap: tokens.spacingHorizontalXS,\n alignItems: 'center',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.borderColor('transparent'),\n }),\n },\n});\n\n/** Applies style classnames to slots */\nexport const useTeachingPopoverCarouselNavStyles_unstable = (\n state: TeachingPopoverCarouselNavState,\n): TeachingPopoverCarouselNavState => {\n 'use no memo';\n\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(teachingPopoverCarouselNavClassNames.root, styles.root, state.root.className);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","shorthands","createCustomFocusIndicatorStyle","tokens","teachingPopoverCarouselNavClassNames","root","useStyles","display","flexDirection","columnGap","spacingHorizontalXS","alignItems","justifyContent","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","borderColor","useTeachingPopoverCarouselNavStyles_unstable","state","styles","className"],"mappings":"AAAA;;;;;;;;;;;;IAWaK,oCAAAA;;;gDAoBAe;;;;uBA7BwC,iBAAiB;8BAMtB,0BAA0B;4BACnD,wBAAwB;AAExC,6CAA8F;IACnGd,MAAM;AACR,EAAE;AAEF,MAAMC,gBAAYP,iBAAAA,EAAW;IAC3BM,MAAM;QACJE,SAAS;QACTC,eAAe;QACfC,WAAWN,kBAAAA,CAAOO,mBAAmB;QACrCC,YAAY;QACZC,gBAAgB;QAChB,OAAGV,6CAAAA,EAAgC;YACjCW,SAAS,GAAGV,kBAAAA,CAAOW,gBAAgB,CAAC,OAAO,EAAEX,kBAAAA,CAAOY,iBAAiB,EAAE;YACvEC,cAAcb,kBAAAA,CAAOc,kBAAkB;YACvC,GAAGhB,iBAAAA,CAAWiB,WAAW,CAAC,cAAc;QAC1C,EAAE;IACJ;AACF;AAGO,MAAMC,+CAA+C,CAC1DC;IAEA;IAEA,MAAMC,SAASf;IAEf,oDAAoD;IACpDc,MAAMf,IAAI,CAACiB,SAAS,OAAGtB,mBAAAA,EAAaI,qCAAqCC,IAAI,EAAEgB,OAAOhB,IAAI,EAAEe,MAAMf,IAAI,CAACiB,SAAS;IAEhH,OAAOF;AACT,EAAE"}
@@ -1,6 +1,4 @@
1
- /**
2
- * TeachingPopoverCarouselNavButton State
3
- */ "use strict";
1
+ "use strict";
4
2
  Object.defineProperty(exports, "__esModule", {
5
3
  value: true
6
4
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.ts"],"sourcesContent":["import { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport { PopoverContextValue } from '@fluentui/react-popover';\nimport type { ComponentState, ComponentProps, Slot } from '@fluentui/react-utilities';\n\nexport type TeachingPopoverCarouselNavButtonSlots = {\n /**\n * ARIA compliant nav buttons used to jump to pages\n */\n root: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;\n};\n\n/**\n * TeachingPopoverCarouselNavButton Props\n */\nexport type TeachingPopoverCarouselNavButtonProps = ComponentProps<TeachingPopoverCarouselNavButtonSlots>;\n\n/**\n * TeachingPopoverCarouselNavButton State\n */\nexport type TeachingPopoverCarouselNavButtonState = ComponentState<TeachingPopoverCarouselNavButtonSlots> & {\n /**\n * Enables selection state control\n */\n isSelected?: boolean;\n} & Pick<PopoverContextValue, 'appearance'>;\n"],"names":[],"mappings":"AAgBA;;CAEC,GACD,WAK4C"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNavButton/TeachingPopoverCarouselNavButton.types.ts"],"sourcesContent":["import type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport type { PopoverContextValue } from '@fluentui/react-popover';\nimport type { ComponentState, ComponentProps, Slot } from '@fluentui/react-utilities';\n\nexport type TeachingPopoverCarouselNavButtonSlots = {\n /**\n * ARIA compliant nav buttons used to jump to pages\n */\n root: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;\n};\n\n/**\n * TeachingPopoverCarouselNavButton Props\n */\nexport type TeachingPopoverCarouselNavButtonProps = ComponentProps<TeachingPopoverCarouselNavButtonSlots>;\n\n/**\n * TeachingPopoverCarouselNavButton State\n */\nexport type TeachingPopoverCarouselNavButtonState = ComponentState<TeachingPopoverCarouselNavButtonSlots> & {\n /**\n * Enables selection state control\n */\n isSelected?: boolean;\n} & Pick<PopoverContextValue, 'appearance'>;\n\nexport type TeachingPopoverCarouselNavButtonBaseProps = TeachingPopoverCarouselNavButtonProps;\n\nexport type TeachingPopoverCarouselNavButtonBaseState = Omit<TeachingPopoverCarouselNavButtonState, 'appearance'>;\n"],"names":[],"mappings":""}
@@ -18,6 +18,9 @@ _export(exports, {
18
18
  teachingPopoverCarouselNavButtonClassNames: function() {
19
19
  return _useTeachingPopoverCarouselNavButtonStylesstyles.teachingPopoverCarouselNavButtonClassNames;
20
20
  },
21
+ useTeachingPopoverCarouselNavButtonBase_unstable: function() {
22
+ return _useTeachingPopoverCarouselNavButton.useTeachingPopoverCarouselNavButtonBase_unstable;
23
+ },
21
24
  useTeachingPopoverCarouselNavButtonStyles_unstable: function() {
22
25
  return _useTeachingPopoverCarouselNavButtonStylesstyles.useTeachingPopoverCarouselNavButtonStyles_unstable;
23
26
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/TeachingPopoverCarouselNavButton/index.ts"],"sourcesContent":["export { TeachingPopoverCarouselNavButton } from './TeachingPopoverCarouselNavButton';\nexport type {\n TeachingPopoverCarouselNavButtonProps,\n TeachingPopoverCarouselNavButtonSlots,\n TeachingPopoverCarouselNavButtonState,\n} from './TeachingPopoverCarouselNavButton.types';\nexport { renderTeachingPopoverCarouselNavButton_unstable } from './renderTeachingPopoverCarouselNavButton';\nexport { useTeachingPopoverCarouselNavButton_unstable } from './useTeachingPopoverCarouselNavButton';\nexport {\n teachingPopoverCarouselNavButtonClassNames,\n useTeachingPopoverCarouselNavButtonStyles_unstable,\n} from './useTeachingPopoverCarouselNavButtonStyles.styles';\n"],"names":["TeachingPopoverCarouselNavButton","renderTeachingPopoverCarouselNavButton_unstable","useTeachingPopoverCarouselNavButton_unstable","teachingPopoverCarouselNavButtonClassNames","useTeachingPopoverCarouselNavButtonStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,kEAAgC;;;eAMhCC,uFAA+C;;;eAGtDE,2FAA0C;;;eAC1CC,mGAAkD;;;eAH3CF,iFAA4C;;;kDAPJ,qCAAqC;wDAMtB,2CAA2C;qDAC9C,wCAAwC;iEAI9F,qDAAqD"}
1
+ {"version":3,"sources":["../src/components/TeachingPopoverCarouselNavButton/index.ts"],"sourcesContent":["export { TeachingPopoverCarouselNavButton } from './TeachingPopoverCarouselNavButton';\nexport type {\n TeachingPopoverCarouselNavButtonBaseProps,\n TeachingPopoverCarouselNavButtonBaseState,\n TeachingPopoverCarouselNavButtonProps,\n TeachingPopoverCarouselNavButtonSlots,\n TeachingPopoverCarouselNavButtonState,\n} from './TeachingPopoverCarouselNavButton.types';\nexport { renderTeachingPopoverCarouselNavButton_unstable } from './renderTeachingPopoverCarouselNavButton';\nexport {\n useTeachingPopoverCarouselNavButton_unstable,\n useTeachingPopoverCarouselNavButtonBase_unstable,\n} from './useTeachingPopoverCarouselNavButton';\nexport {\n teachingPopoverCarouselNavButtonClassNames,\n useTeachingPopoverCarouselNavButtonStyles_unstable,\n} from './useTeachingPopoverCarouselNavButtonStyles.styles';\n"],"names":["TeachingPopoverCarouselNavButton","renderTeachingPopoverCarouselNavButton_unstable","useTeachingPopoverCarouselNavButton_unstable","useTeachingPopoverCarouselNavButtonBase_unstable","teachingPopoverCarouselNavButtonClassNames","useTeachingPopoverCarouselNavButtonStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,kEAAgC;;;eAQhCC,uFAA+C;;;eAMtDG,2FAA0C;;;eAH1CD,qFAAgD;;;eAIhDE,mGAAkD;;;eALlDH,iFAA4C;;;kDAVG,qCAAqC;wDAQtB,2CAA2C;qDAIpG,wCAAwC;iEAIxC,qDAAqD"}
@@ -3,24 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "useTeachingPopoverCarouselNavButton_unstable", {
7
- enumerable: true,
8
- get: function() {
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ useTeachingPopoverCarouselNavButtonBase_unstable: function() {
14
+ return useTeachingPopoverCarouselNavButtonBase_unstable;
15
+ },
16
+ useTeachingPopoverCarouselNavButton_unstable: function() {
9
17
  return useTeachingPopoverCarouselNavButton_unstable;
10
18
  }
11
19
  });
12
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
13
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
20
  const _reactaria = require("@fluentui/react-aria");
15
21
  const _reactpopover = require("@fluentui/react-popover");
16
22
  const _reacttabster = require("@fluentui/react-tabster");
17
23
  const _reactutilities = require("@fluentui/react-utilities");
18
24
  const _CarouselContext = require("../TeachingPopoverCarousel/Carousel/CarouselContext");
19
25
  const _valueIdContext = require("../TeachingPopoverCarouselNav/valueIdContext");
20
- const useTeachingPopoverCarouselNavButton_unstable = (props, ref)=>{
26
+ const useTeachingPopoverCarouselNavButtonBase_unstable = (props, ref)=>{
21
27
  const { onClick, as = 'a' } = props;
22
28
  const value = (0, _valueIdContext.useValueIdContext)();
23
- const appearance = (0, _reactpopover.usePopoverContext_unstable)((context)=>context.appearance);
24
29
  const selectPageByValue = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.selectPageByValue);
25
30
  const isSelected = (0, _CarouselContext.useCarouselContext_unstable)((c)=>c.value === value);
26
31
  const handleClick = (0, _reactutilities.useEventCallback)((event)=>{
@@ -29,29 +34,40 @@ const useTeachingPopoverCarouselNavButton_unstable = (props, ref)=>{
29
34
  selectPageByValue(event, value);
30
35
  }
31
36
  });
32
- const defaultTabProps = (0, _reacttabster.useTabsterAttributes)({
33
- focusable: {
34
- isDefault: isSelected
35
- }
36
- });
37
37
  const _carouselButton = _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)(as, (0, _reactaria.useARIAButtonProps)(props.as, props)), {
38
38
  elementType: 'button',
39
39
  defaultProps: {
40
40
  ref: ref,
41
41
  role: 'tab',
42
42
  type: 'button',
43
- 'aria-selected': `${!!isSelected}`,
44
- ...defaultTabProps
43
+ 'aria-selected': `${!!isSelected}`
45
44
  }
46
45
  });
47
46
  _carouselButton.onClick = handleClick;
48
- const state = {
47
+ return {
49
48
  isSelected,
50
- appearance,
51
49
  components: {
52
50
  root: 'button'
53
51
  },
54
52
  root: _carouselButton
55
53
  };
56
- return state;
54
+ };
55
+ const useTeachingPopoverCarouselNavButton_unstable = (props, ref)=>{
56
+ const baseState = useTeachingPopoverCarouselNavButtonBase_unstable(props, ref);
57
+ const appearance = (0, _reactpopover.usePopoverContext_unstable)((context)=>context.appearance);
58
+ const defaultTabProps = (0, _reacttabster.useTabsterAttributes)({
59
+ focusable: {
60
+ isDefault: baseState.isSelected
61
+ }
62
+ });
63
+ return {
64
+ ...baseState,
65
+ // tabster attrs act as defaults: base's root keys win over them, matching the
66
+ // previous `defaultProps` merging behavior in slot.always.
67
+ root: {
68
+ ...defaultTabProps,
69
+ ...baseState.root
70
+ },
71
+ appearance
72
+ };
57
73
  };