@fluentui/react-nav 9.4.8 → 9.4.10

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 (304) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/lib/components/AppItem/AppItem.js.map +1 -1
  3. package/lib/components/AppItem/AppItem.types.js.map +1 -1
  4. package/lib/components/AppItem/index.js.map +1 -1
  5. package/lib/components/AppItem/renderAppItem.js +2 -2
  6. package/lib/components/AppItem/renderAppItem.js.map +1 -1
  7. package/lib/components/AppItem/useAppItem.js.map +1 -1
  8. package/lib/components/AppItem/useAppItemStyles.styles.raw.js.map +1 -1
  9. package/lib/components/AppItemStatic/AppItemStatic.js.map +1 -1
  10. package/lib/components/AppItemStatic/AppItemStatic.types.js.map +1 -1
  11. package/lib/components/AppItemStatic/index.js.map +1 -1
  12. package/lib/components/AppItemStatic/renderAppItemStatic.js +2 -2
  13. package/lib/components/AppItemStatic/renderAppItemStatic.js.map +1 -1
  14. package/lib/components/AppItemStatic/useAppItemStatic.js.map +1 -1
  15. package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js.map +1 -1
  16. package/lib/components/Hamburger/Hamburger.js.map +1 -1
  17. package/lib/components/Hamburger/Hamburger.types.js.map +1 -1
  18. package/lib/components/Hamburger/index.js.map +1 -1
  19. package/lib/components/Hamburger/useHamburger.js.map +1 -1
  20. package/lib/components/Hamburger/useHamburgerStyles.styles.raw.js.map +1 -1
  21. package/lib/components/Nav/Nav.js.map +1 -1
  22. package/lib/components/Nav/Nav.types.js.map +1 -1
  23. package/lib/components/Nav/index.js.map +1 -1
  24. package/lib/components/Nav/renderNav.js +2 -2
  25. package/lib/components/Nav/renderNav.js.map +1 -1
  26. package/lib/components/Nav/useNav.js.map +1 -1
  27. package/lib/components/Nav/useNavStyles.styles.raw.js.map +1 -1
  28. package/lib/components/NavCategory/NavCategory.js.map +1 -1
  29. package/lib/components/NavCategory/NavCategory.types.js.map +1 -1
  30. package/lib/components/NavCategory/index.js.map +1 -1
  31. package/lib/components/NavCategory/renderNavCategory.js.map +1 -1
  32. package/lib/components/NavCategory/useNavCategory.js.map +1 -1
  33. package/lib/components/NavCategoryContext.js.map +1 -1
  34. package/lib/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
  35. package/lib/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
  36. package/lib/components/NavCategoryItem/index.js.map +1 -1
  37. package/lib/components/NavCategoryItem/renderNavCategoryItem.js +2 -2
  38. package/lib/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -1
  39. package/lib/components/NavCategoryItem/useNavCategoryItem.js +1 -0
  40. package/lib/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
  41. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.raw.js.map +1 -1
  42. package/lib/components/NavCategoryItemContext.js.map +1 -1
  43. package/lib/components/NavContext.js.map +1 -1
  44. package/lib/components/NavContext.types.js.map +1 -1
  45. package/lib/components/NavDivider/NavDivider.js.map +1 -1
  46. package/lib/components/NavDivider/NavDivider.types.js.map +1 -1
  47. package/lib/components/NavDivider/index.js.map +1 -1
  48. package/lib/components/NavDivider/useNavDivider.js.map +1 -1
  49. package/lib/components/NavDivider/useNavDividerStyles.styles.raw.js.map +1 -1
  50. package/lib/components/NavDrawer/NavDrawer.js.map +1 -1
  51. package/lib/components/NavDrawer/NavDrawer.types.js.map +1 -1
  52. package/lib/components/NavDrawer/index.js.map +1 -1
  53. package/lib/components/NavDrawer/renderNavDrawer.js +2 -2
  54. package/lib/components/NavDrawer/renderNavDrawer.js.map +1 -1
  55. package/lib/components/NavDrawer/useNavDrawer.js.map +1 -1
  56. package/lib/components/NavDrawer/useNavDrawerStyles.styles.raw.js.map +1 -1
  57. package/lib/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
  58. package/lib/components/NavDrawerBody/NavDrawerBody.types.js.map +1 -1
  59. package/lib/components/NavDrawerBody/index.js.map +1 -1
  60. package/lib/components/NavDrawerBody/useNavDrawerBody.js.map +1 -1
  61. package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js.map +1 -1
  62. package/lib/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
  63. package/lib/components/NavDrawerFooter/NavDrawerFooter.types.js.map +1 -1
  64. package/lib/components/NavDrawerFooter/index.js.map +1 -1
  65. package/lib/components/NavDrawerFooter/useNavDrawerFooter.js.map +1 -1
  66. package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js.map +1 -1
  67. package/lib/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
  68. package/lib/components/NavDrawerHeader/NavDrawerHeader.types.js.map +1 -1
  69. package/lib/components/NavDrawerHeader/index.js.map +1 -1
  70. package/lib/components/NavDrawerHeader/useNavDrawerHeader.js.map +1 -1
  71. package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js.map +1 -1
  72. package/lib/components/NavItem/NavItem.js.map +1 -1
  73. package/lib/components/NavItem/NavItem.types.js.map +1 -1
  74. package/lib/components/NavItem/index.js.map +1 -1
  75. package/lib/components/NavItem/renderNavItem.js +2 -2
  76. package/lib/components/NavItem/renderNavItem.js.map +1 -1
  77. package/lib/components/NavItem/useNavItem.js.map +1 -1
  78. package/lib/components/NavItem/useNavItemStyles.styles.raw.js.map +1 -1
  79. package/lib/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
  80. package/lib/components/NavSectionHeader/NavSectionHeader.types.js.map +1 -1
  81. package/lib/components/NavSectionHeader/index.js.map +1 -1
  82. package/lib/components/NavSectionHeader/renderNavSectionHeader.js +2 -2
  83. package/lib/components/NavSectionHeader/renderNavSectionHeader.js.map +1 -1
  84. package/lib/components/NavSectionHeader/useNavSectionHeader.js.map +1 -1
  85. package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js.map +1 -1
  86. package/lib/components/NavSubItem/NavSubItem.js.map +1 -1
  87. package/lib/components/NavSubItem/NavSubItem.types.js.map +1 -1
  88. package/lib/components/NavSubItem/index.js.map +1 -1
  89. package/lib/components/NavSubItem/renderNavSubItem.js +2 -2
  90. package/lib/components/NavSubItem/renderNavSubItem.js.map +1 -1
  91. package/lib/components/NavSubItem/useNavSubItem.js.map +1 -1
  92. package/lib/components/NavSubItem/useNavSubItemStyles.styles.raw.js.map +1 -1
  93. package/lib/components/NavSubItemContext.js.map +1 -1
  94. package/lib/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
  95. package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
  96. package/lib/components/NavSubItemGroup/index.js.map +1 -1
  97. package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js +2 -2
  98. package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -1
  99. package/lib/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
  100. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js.map +1 -1
  101. package/lib/components/SplitNavItem/SplitNavItem.js.map +1 -1
  102. package/lib/components/SplitNavItem/SplitNavItem.types.js.map +1 -1
  103. package/lib/components/SplitNavItem/index.js.map +1 -1
  104. package/lib/components/SplitNavItem/renderSplitNavItem.js +2 -2
  105. package/lib/components/SplitNavItem/renderSplitNavItem.js.map +1 -1
  106. package/lib/components/SplitNavItem/useSplitNavItem.js.map +1 -1
  107. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js.map +1 -1
  108. package/lib/components/sharedNavStyles.styles.raw.js.map +1 -1
  109. package/lib/components/useNavCategoryContextValues_unstable.js.map +1 -1
  110. package/lib/components/useNavCategoryItemContextValues_unstable.js.map +1 -1
  111. package/lib/components/useNavContextValues.js.map +1 -1
  112. package/lib-commonjs/AppItem.cjs +8 -8
  113. package/lib-commonjs/AppItemStatic.cjs +7 -7
  114. package/lib-commonjs/Hamburger.cjs +5 -5
  115. package/lib-commonjs/Nav.cjs +15 -15
  116. package/lib-commonjs/Nav.cjs.map +1 -1
  117. package/lib-commonjs/NavCategory.cjs +4 -4
  118. package/lib-commonjs/NavDivider.cjs +5 -5
  119. package/lib-commonjs/NavDrawer.cjs +6 -6
  120. package/lib-commonjs/NavDrawerBody.cjs +5 -5
  121. package/lib-commonjs/NavDrawerFooter.cjs +5 -5
  122. package/lib-commonjs/NavDrawerHeader.cjs +5 -5
  123. package/lib-commonjs/NavItem.cjs +7 -7
  124. package/lib-commonjs/NavSectionHeader.cjs +6 -6
  125. package/lib-commonjs/NavSubItem.cjs +7 -7
  126. package/lib-commonjs/NavSubItemGroup.cjs +7 -7
  127. package/lib-commonjs/SplitNavItem.cjs +6 -6
  128. package/lib-commonjs/components/AppItem/AppItem.cjs.map +1 -1
  129. package/lib-commonjs/components/AppItem/AppItem.types.cjs.map +1 -1
  130. package/lib-commonjs/components/AppItem/index.cjs +8 -8
  131. package/lib-commonjs/components/AppItem/index.cjs.map +1 -1
  132. package/lib-commonjs/components/AppItem/renderAppItem.cjs.map +1 -1
  133. package/lib-commonjs/components/AppItem/useAppItem.cjs +3 -3
  134. package/lib-commonjs/components/AppItem/useAppItem.cjs.map +1 -1
  135. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.cjs +4 -4
  136. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.cjs.map +1 -1
  137. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.raw.cjs +4 -4
  138. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.raw.cjs.map +1 -1
  139. package/lib-commonjs/components/AppItemStatic/AppItemStatic.cjs.map +1 -1
  140. package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.cjs.map +1 -1
  141. package/lib-commonjs/components/AppItemStatic/index.cjs +7 -7
  142. package/lib-commonjs/components/AppItemStatic/index.cjs.map +1 -1
  143. package/lib-commonjs/components/AppItemStatic/renderAppItemStatic.cjs.map +1 -1
  144. package/lib-commonjs/components/AppItemStatic/useAppItemStatic.cjs +3 -3
  145. package/lib-commonjs/components/AppItemStatic/useAppItemStatic.cjs.map +1 -1
  146. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.cjs +3 -3
  147. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.cjs.map +1 -1
  148. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.raw.cjs +3 -3
  149. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.raw.cjs.map +1 -1
  150. package/lib-commonjs/components/Hamburger/Hamburger.cjs.map +1 -1
  151. package/lib-commonjs/components/Hamburger/Hamburger.types.cjs.map +1 -1
  152. package/lib-commonjs/components/Hamburger/index.cjs +5 -5
  153. package/lib-commonjs/components/Hamburger/index.cjs.map +1 -1
  154. package/lib-commonjs/components/Hamburger/useHamburger.cjs.map +1 -1
  155. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.cjs +3 -3
  156. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.cjs.map +1 -1
  157. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.raw.cjs +3 -3
  158. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.raw.cjs.map +1 -1
  159. package/lib-commonjs/components/Nav/Nav.cjs.map +1 -1
  160. package/lib-commonjs/components/Nav/Nav.types.cjs.map +1 -1
  161. package/lib-commonjs/components/Nav/index.cjs +7 -7
  162. package/lib-commonjs/components/Nav/index.cjs.map +1 -1
  163. package/lib-commonjs/components/Nav/renderNav.cjs.map +1 -1
  164. package/lib-commonjs/components/Nav/useNav.cjs +3 -3
  165. package/lib-commonjs/components/Nav/useNav.cjs.map +1 -1
  166. package/lib-commonjs/components/Nav/useNavStyles.styles.cjs +3 -3
  167. package/lib-commonjs/components/Nav/useNavStyles.styles.cjs.map +1 -1
  168. package/lib-commonjs/components/Nav/useNavStyles.styles.raw.cjs +3 -3
  169. package/lib-commonjs/components/Nav/useNavStyles.styles.raw.cjs.map +1 -1
  170. package/lib-commonjs/components/NavCategory/NavCategory.cjs.map +1 -1
  171. package/lib-commonjs/components/NavCategory/NavCategory.types.cjs.map +1 -1
  172. package/lib-commonjs/components/NavCategory/index.cjs +4 -4
  173. package/lib-commonjs/components/NavCategory/index.cjs.map +1 -1
  174. package/lib-commonjs/components/NavCategory/renderNavCategory.cjs.map +1 -1
  175. package/lib-commonjs/components/NavCategory/useNavCategory.cjs.map +1 -1
  176. package/lib-commonjs/components/NavCategoryContext.cjs +3 -3
  177. package/lib-commonjs/components/NavCategoryContext.cjs.map +1 -1
  178. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.cjs.map +1 -1
  179. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.cjs.map +1 -1
  180. package/lib-commonjs/components/NavCategoryItem/index.cjs +7 -7
  181. package/lib-commonjs/components/NavCategoryItem/index.cjs.map +1 -1
  182. package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.cjs.map +1 -1
  183. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.cjs +4 -3
  184. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.cjs.map +1 -1
  185. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.cjs +4 -4
  186. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.cjs.map +1 -1
  187. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.raw.cjs +4 -4
  188. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.raw.cjs.map +1 -1
  189. package/lib-commonjs/components/NavCategoryItemContext.cjs +3 -3
  190. package/lib-commonjs/components/NavCategoryItemContext.cjs.map +1 -1
  191. package/lib-commonjs/components/NavContext.cjs +3 -3
  192. package/lib-commonjs/components/NavContext.cjs.map +1 -1
  193. package/lib-commonjs/components/NavContext.types.cjs.map +1 -1
  194. package/lib-commonjs/components/NavDivider/NavDivider.cjs.map +1 -1
  195. package/lib-commonjs/components/NavDivider/NavDivider.types.cjs.map +1 -1
  196. package/lib-commonjs/components/NavDivider/index.cjs +5 -5
  197. package/lib-commonjs/components/NavDivider/index.cjs.map +1 -1
  198. package/lib-commonjs/components/NavDivider/useNavDivider.cjs.map +1 -1
  199. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.cjs +3 -3
  200. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.cjs.map +1 -1
  201. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.raw.cjs +3 -3
  202. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.raw.cjs.map +1 -1
  203. package/lib-commonjs/components/NavDrawer/NavDrawer.cjs.map +1 -1
  204. package/lib-commonjs/components/NavDrawer/NavDrawer.types.cjs.map +1 -1
  205. package/lib-commonjs/components/NavDrawer/index.cjs +6 -6
  206. package/lib-commonjs/components/NavDrawer/index.cjs.map +1 -1
  207. package/lib-commonjs/components/NavDrawer/renderNavDrawer.cjs.map +1 -1
  208. package/lib-commonjs/components/NavDrawer/useNavDrawer.cjs.map +1 -1
  209. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.cjs +3 -3
  210. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.cjs.map +1 -1
  211. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.raw.cjs +3 -3
  212. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.raw.cjs.map +1 -1
  213. package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.cjs.map +1 -1
  214. package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.types.cjs.map +1 -1
  215. package/lib-commonjs/components/NavDrawerBody/index.cjs +5 -5
  216. package/lib-commonjs/components/NavDrawerBody/index.cjs.map +1 -1
  217. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBody.cjs.map +1 -1
  218. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.cjs +3 -3
  219. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.cjs.map +1 -1
  220. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.cjs +3 -3
  221. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.cjs.map +1 -1
  222. package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.cjs.map +1 -1
  223. package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.types.cjs.map +1 -1
  224. package/lib-commonjs/components/NavDrawerFooter/index.cjs +5 -5
  225. package/lib-commonjs/components/NavDrawerFooter/index.cjs.map +1 -1
  226. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooter.cjs.map +1 -1
  227. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.cjs +3 -3
  228. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.cjs.map +1 -1
  229. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.cjs +3 -3
  230. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.cjs.map +1 -1
  231. package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.cjs.map +1 -1
  232. package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.types.cjs.map +1 -1
  233. package/lib-commonjs/components/NavDrawerHeader/index.cjs +5 -5
  234. package/lib-commonjs/components/NavDrawerHeader/index.cjs.map +1 -1
  235. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeader.cjs.map +1 -1
  236. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.cjs +3 -3
  237. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.cjs.map +1 -1
  238. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.cjs +3 -3
  239. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.cjs.map +1 -1
  240. package/lib-commonjs/components/NavItem/NavItem.cjs.map +1 -1
  241. package/lib-commonjs/components/NavItem/NavItem.types.cjs.map +1 -1
  242. package/lib-commonjs/components/NavItem/index.cjs +7 -7
  243. package/lib-commonjs/components/NavItem/index.cjs.map +1 -1
  244. package/lib-commonjs/components/NavItem/renderNavItem.cjs.map +1 -1
  245. package/lib-commonjs/components/NavItem/useNavItem.cjs +3 -3
  246. package/lib-commonjs/components/NavItem/useNavItem.cjs.map +1 -1
  247. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.cjs +3 -3
  248. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.cjs.map +1 -1
  249. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.raw.cjs +3 -3
  250. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.raw.cjs.map +1 -1
  251. package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.cjs.map +1 -1
  252. package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.types.cjs.map +1 -1
  253. package/lib-commonjs/components/NavSectionHeader/index.cjs +6 -6
  254. package/lib-commonjs/components/NavSectionHeader/index.cjs.map +1 -1
  255. package/lib-commonjs/components/NavSectionHeader/renderNavSectionHeader.cjs.map +1 -1
  256. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeader.cjs.map +1 -1
  257. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.cjs +3 -3
  258. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.cjs.map +1 -1
  259. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.cjs +3 -3
  260. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.cjs.map +1 -1
  261. package/lib-commonjs/components/NavSubItem/NavSubItem.cjs.map +1 -1
  262. package/lib-commonjs/components/NavSubItem/NavSubItem.types.cjs.map +1 -1
  263. package/lib-commonjs/components/NavSubItem/index.cjs +7 -7
  264. package/lib-commonjs/components/NavSubItem/index.cjs.map +1 -1
  265. package/lib-commonjs/components/NavSubItem/renderNavSubItem.cjs.map +1 -1
  266. package/lib-commonjs/components/NavSubItem/useNavSubItem.cjs +3 -3
  267. package/lib-commonjs/components/NavSubItem/useNavSubItem.cjs.map +1 -1
  268. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.cjs +3 -3
  269. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.cjs.map +1 -1
  270. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.raw.cjs +3 -3
  271. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.raw.cjs.map +1 -1
  272. package/lib-commonjs/components/NavSubItemContext.cjs +3 -3
  273. package/lib-commonjs/components/NavSubItemContext.cjs.map +1 -1
  274. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.cjs.map +1 -1
  275. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.cjs.map +1 -1
  276. package/lib-commonjs/components/NavSubItemGroup/index.cjs +7 -7
  277. package/lib-commonjs/components/NavSubItemGroup/index.cjs.map +1 -1
  278. package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.cjs.map +1 -1
  279. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.cjs +3 -3
  280. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.cjs.map +1 -1
  281. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.cjs +3 -3
  282. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.cjs.map +1 -1
  283. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.cjs +3 -3
  284. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.cjs.map +1 -1
  285. package/lib-commonjs/components/SplitNavItem/SplitNavItem.cjs.map +1 -1
  286. package/lib-commonjs/components/SplitNavItem/SplitNavItem.types.cjs.map +1 -1
  287. package/lib-commonjs/components/SplitNavItem/index.cjs +6 -6
  288. package/lib-commonjs/components/SplitNavItem/index.cjs.map +1 -1
  289. package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.cjs.map +1 -1
  290. package/lib-commonjs/components/SplitNavItem/useSplitNavItem.cjs.map +1 -1
  291. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.cjs +3 -3
  292. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.cjs.map +1 -1
  293. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.raw.cjs +3 -3
  294. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.raw.cjs.map +1 -1
  295. package/lib-commonjs/components/sharedNavStyles.styles.cjs +7 -7
  296. package/lib-commonjs/components/sharedNavStyles.styles.cjs.map +1 -1
  297. package/lib-commonjs/components/sharedNavStyles.styles.raw.cjs +7 -7
  298. package/lib-commonjs/components/sharedNavStyles.styles.raw.cjs.map +1 -1
  299. package/lib-commonjs/components/useNavCategoryContextValues_unstable.cjs.map +1 -1
  300. package/lib-commonjs/components/useNavCategoryItemContextValues_unstable.cjs.map +1 -1
  301. package/lib-commonjs/components/useNavContextValues.cjs.map +1 -1
  302. package/lib-commonjs/index.cjs +90 -90
  303. package/lib-commonjs/index.cjs.map +1 -1
  304. package/package.json +2 -2
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- NavCategoryItem: function() {
12
+ get NavCategoryItem () {
13
13
  return _NavCategoryItem.NavCategoryItem;
14
14
  },
15
- navCategoryItemClassNames: function() {
15
+ get navCategoryItemClassNames () {
16
16
  return _useNavCategoryItemstyles.navCategoryItemClassNames;
17
17
  },
18
- renderNavCategoryItem_unstable: function() {
18
+ get renderNavCategoryItem_unstable () {
19
19
  return _renderNavCategoryItem.renderNavCategoryItem_unstable;
20
20
  },
21
- useNavCategoryItemBase_unstable: function() {
21
+ get useNavCategoryItemBase_unstable () {
22
22
  return _useNavCategoryItem.useNavCategoryItemBase_unstable;
23
23
  },
24
- useNavCategoryItemStyles_unstable: function() {
24
+ get useNavCategoryItemStyles_unstable () {
25
25
  return _useNavCategoryItemstyles.useNavCategoryItemStyles_unstable;
26
26
  },
27
- useNavCategoryItem_unstable: function() {
27
+ get useNavCategoryItem_unstable () {
28
28
  return _useNavCategoryItem.useNavCategoryItem_unstable;
29
29
  }
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItem/index.ts"],"sourcesContent":["export { NavCategoryItem } from './NavCategoryItem';\nexport type {\n NavCategoryItemSlots,\n NavCategoryItemProps,\n NavCategoryItemState,\n NavCategoryItemBaseProps,\n NavCategoryItemBaseSlots,\n NavCategoryItemBaseState,\n} from './NavCategoryItem.types';\nexport { renderNavCategoryItem_unstable } from './renderNavCategoryItem';\nexport { useNavCategoryItem_unstable, useNavCategoryItemBase_unstable } from './useNavCategoryItem';\nexport { useNavCategoryItemStyles_unstable, navCategoryItemClassNames } from './useNavCategoryItem.styles';\n"],"names":["NavCategoryItem","renderNavCategoryItem_unstable","useNavCategoryItem_unstable","useNavCategoryItemBase_unstable","useNavCategoryItemStyles_unstable","navCategoryItemClassNames"],"mappings":";;;;;;;;;;;;eAASA,gCAAe;;;eAWoBK,mDAAyB;;;eAF5DJ,qDAA8B;;;eACDE,mDAA+B;;;eAC5DC,2DAAiC;;;eADjCF,+CAA2B;;;iCAVJ,uBAAoB;uCASL,6BAA0B;oCACI,0BAAuB;0CACvB,iCAA8B"}
1
+ {"version":3,"sources":["../../../src/components/NavCategoryItem/index.ts"],"sourcesContent":["export { NavCategoryItem } from './NavCategoryItem';\nexport type {\n NavCategoryItemSlots,\n NavCategoryItemProps,\n NavCategoryItemState,\n NavCategoryItemBaseProps,\n NavCategoryItemBaseSlots,\n NavCategoryItemBaseState,\n} from './NavCategoryItem.types';\nexport { renderNavCategoryItem_unstable } from './renderNavCategoryItem';\nexport { useNavCategoryItem_unstable, useNavCategoryItemBase_unstable } from './useNavCategoryItem';\nexport { useNavCategoryItemStyles_unstable, navCategoryItemClassNames } from './useNavCategoryItem.styles';\n"],"names":["NavCategoryItem","renderNavCategoryItem_unstable","useNavCategoryItem_unstable","useNavCategoryItemBase_unstable","useNavCategoryItemStyles_unstable","navCategoryItemClassNames"],"mappings":";;;;;;;;;;;;eAASA,gCAAe;;;eAWoBK,mDAAyB;;;eAF5DJ,qDAA8B;;;eACDE,mDAA+B;;;eAC5DC,2DAAiC;;;eADjCF,+CAA2B;;;iCAVJ,uBAAoB;uCASL,6BAA0B;oCACI,0BAAuB;0CACvB,iCAA8B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItem/renderNavCategoryItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { NavCategoryItemState, NavCategoryItemSlots, NavCategoryItemContextValues } from './NavCategoryItem.types';\nimport { NavCategoryItemProvider } from '../NavCategoryItemContext';\n\nconst getExpandIcon = (state: NavCategoryItemState) => {\n assertSlots<NavCategoryItemSlots>(state);\n\n if (!state.expandIcon) {\n return null;\n }\n\n if (!state.expandIconMotion) {\n return <state.expandIcon />;\n }\n\n return (\n <state.expandIconMotion>\n <state.expandIcon />\n </state.expandIconMotion>\n );\n};\n\n/**\n * Render the final JSX of NavCategoryItem\n */\nexport const renderNavCategoryItem_unstable = (\n state: NavCategoryItemState,\n contextValues: NavCategoryItemContextValues,\n): JSXElement => {\n assertSlots<NavCategoryItemSlots>(state);\n\n return (\n <NavCategoryItemProvider value={contextValues.navCategoryItem}>\n <state.root>\n {state.icon && <state.icon />}\n {state.root.children}\n {getExpandIcon(state)}\n </state.root>\n </NavCategoryItemProvider>\n );\n};\n"],"names":["assertSlots","NavCategoryItemProvider","getExpandIcon","state","expandIcon","expandIconMotion","renderNavCategoryItem_unstable","contextValues","value","navCategoryItem","root","icon","children"],"mappings":";;;;;;;eA6BaM;;;4BA5Bb,iCAAiD;gCAErB,4BAA4B;wCAGhB,+BAA4B;AAEpE,MAAMJ,gBAAgB,CAACC;QACrBH,2BAAAA,EAAkCG;IAElC,IAAI,CAACA,MAAMC,UAAU,EAAE;QACrB,OAAO;IACT;IAEA,IAAI,CAACD,MAAME,gBAAgB,EAAE;QAC3B,OAAA,WAAA,OAAO,eAAA,EAACF,MAAMC,UAAU,EAAA,CAAA;IAC1B;IAEA,OAAA,WAAA,OACE,eAAA,EAACD,MAAME,gBAAgB,EAAA;kBACrB,WAAA,OAAA,eAAA,EAACF,MAAMC,UAAU,EAAA,CAAA;;AAGvB;AAKO,uCAAuC,CAC5CD,OACAI;QAEAP,2BAAAA,EAAkCG;IAElC,OAAA,WAAA,OACE,eAAA,EAACF,+CAAAA,EAAAA;QAAwBO,OAAOD,cAAcE,eAAe;kBAC3D,WAAA,OAAA,gBAAA,EAACN,MAAMO,IAAI,EAAA;;gBACRP,MAAMQ,IAAI,IAAA,WAAA,OAAI,eAAA,EAACR,MAAMQ,IAAI,EAAA,CAAA;gBACzBR,MAAMO,IAAI,CAACE,QAAQ;gBACnBV,cAAcC;;;;AAIvB,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavCategoryItem/renderNavCategoryItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { NavCategoryItemState, NavCategoryItemSlots, NavCategoryItemContextValues } from './NavCategoryItem.types';\nimport { NavCategoryItemProvider } from '../NavCategoryItemContext';\n\nconst getExpandIcon = (state: NavCategoryItemState) => {\n assertSlots<NavCategoryItemSlots>(state);\n\n if (!state.expandIcon) {\n return null;\n }\n\n if (!state.expandIconMotion) {\n return <state.expandIcon />;\n }\n\n return (\n <state.expandIconMotion>\n <state.expandIcon />\n </state.expandIconMotion>\n );\n};\n\n/**\n * Render the final JSX of NavCategoryItem\n */\nexport const renderNavCategoryItem_unstable = (\n state: NavCategoryItemState,\n contextValues: NavCategoryItemContextValues,\n): JSXElement => {\n assertSlots<NavCategoryItemSlots>(state);\n\n return (\n <NavCategoryItemProvider value={contextValues.navCategoryItem}>\n <state.root>\n {state.icon && <state.icon />}\n {state.root.children}\n {getExpandIcon(state)}\n </state.root>\n </NavCategoryItemProvider>\n );\n};\n"],"names":["assertSlots","NavCategoryItemProvider","getExpandIcon","state","expandIcon","expandIconMotion","renderNavCategoryItem_unstable","contextValues","value","navCategoryItem","root","icon","children"],"mappings":";;;;;;;eA6BaM;;;;gCA5Bb,gDAAiD,GAEjD,SAASN,WAAW,QAAQ,4BAA4B;wCAGhB,+BAA4B;AAEpE,MAAME,gBAAgB,CAACC;QACrBH,2BAAAA,EAAkCG;IAElC,IAAI,CAACA,MAAMC,UAAU,EAAE;QACrB,OAAO;IACT;IAEA,IAAI,CAACD,MAAME,gBAAgB,EAAE;QAC3B,OAAA,WAAA,OAAO,eAAA,EAACF,MAAMC,UAAU,EAAA,CAAA;IAC1B;IAEA,OAAA,WAAA,OACE,eAAA,EAACD,MAAME,gBAAgB,EAAA;kBACrB,WAAA,OAAA,eAAA,EAACF,MAAMC,UAAU,EAAA,CAAA;;AAGvB;AAKO,uCAAuC,CAC5CD,OACAI;QAEAP,2BAAAA,EAAkCG;IAElC,OAAA,WAAA,OACE,eAAA,EAACF,+CAAAA,EAAAA;QAAwBO,OAAOD,cAAcE,eAAe;kBAC3D,WAAA,OAAA,gBAAA,EAACN,MAAMO,IAAI,EAAA;;gBACRP,MAAMQ,IAAI,IAAA,WAAA,OAAI,eAAA,EAACR,MAAMQ,IAAI,EAAA,CAAA;gBACzBR,MAAMO,IAAI,CAACE,QAAQ;gBACnBV,cAAcC;;;;AAIvB,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- useNavCategoryItemBase_unstable: function() {
13
+ get useNavCategoryItemBase_unstable () {
14
14
  return useNavCategoryItemBase_unstable;
15
15
  },
16
- useNavCategoryItem_unstable: function() {
16
+ get useNavCategoryItem_unstable () {
17
17
  return useNavCategoryItem_unstable;
18
18
  }
19
19
  });
@@ -83,6 +83,7 @@ const useNavCategoryItemBase_unstable = (props, ref)=>{
83
83
  },
84
84
  root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('button', {
85
85
  ref,
86
+ type: 'button',
86
87
  'aria-current': validAriaCurrent,
87
88
  'aria-expanded': open,
88
89
  ...props,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItem/useNavCategoryItem.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot, useEventCallback } from '@fluentui/react-utilities';\nimport { ChevronDown20Regular } from '@fluentui/react-icons';\nimport { createPresenceComponentVariant, motionTokens, presenceMotionSlot } from '@fluentui/react-motion';\n\nimport type {\n NavCategoryItemBaseProps,\n NavCategoryItemBaseState,\n NavCategoryItemProps,\n NavCategoryItemState,\n} from './NavCategoryItem.types';\nimport { useNavCategoryContext_unstable } from '../NavCategoryContext';\nimport { useNavContext_unstable } from '../NavContext';\nimport { Rotate } from '@fluentui/react-motion-components-preview';\n\nconst ExpandIconMotion = createPresenceComponentVariant(Rotate, {\n duration: motionTokens.durationFast,\n easing: motionTokens.curveEasyEase,\n animateOpacity: false, // Don't fade out the icon\n outAngle: 0,\n inAngle: 180,\n});\n\n/**\n * Create the state required to render NavCategoryItem.\n *\n * The returned state can be modified with hooks such as useNavCategoryItemStyles,\n * before being passed to renderNavCategoryItem.\n *\n * @param props - props from this instance of NavCategoryItem\n * @param ref - reference to root HTMLButtonElement of NavCategoryItem\n */\nexport const useNavCategoryItem_unstable = (\n props: NavCategoryItemProps,\n ref: React.Ref<HTMLButtonElement>,\n): NavCategoryItemState => {\n const { density = 'medium' } = useNavContext_unstable();\n\n const state = useNavCategoryItemBase_unstable(props, ref);\n\n return {\n ...state,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...state.components,\n expandIconMotion: ExpandIconMotion,\n },\n expandIcon: slot.always(props.expandIcon, {\n defaultProps: {\n children: <ChevronDown20Regular />,\n 'aria-hidden': true,\n },\n elementType: 'span',\n }),\n expandIconMotion: presenceMotionSlot(props.expandIconMotion, {\n elementType: ExpandIconMotion,\n defaultProps: {\n visible: state.open,\n },\n }),\n density,\n };\n};\n\n/**\n * Create the base state required to render NavCategoryItem.\n *\n * @param props - props from this instance of NavCategoryItem\n * @param ref - reference to root HTMLButtonElement of NavCategoryItem\n */\nexport const useNavCategoryItemBase_unstable = (\n props: NavCategoryItemBaseProps,\n ref: React.Ref<HTMLButtonElement>,\n): NavCategoryItemBaseState => {\n const { onClick, expandIcon, icon } = props;\n\n const { open, value } = useNavCategoryContext_unstable();\n\n const { onRequestNavCategoryItemToggle, selectedCategoryValue } = useNavContext_unstable();\n\n const onNavCategoryItemClick = useEventCallback(\n mergeCallbacks(onClick, event =>\n onRequestNavCategoryItemToggle(event, { type: 'click', event, value: '', categoryValue: value }),\n ),\n );\n\n // don't fill the icon when it's open\n const selected = selectedCategoryValue === value && !open;\n // there's more than 2 possible values for aria-current, but this is the only one that's used in this component\n const validAriaCurrent: 'page' | 'false' = selected && !open ? 'page' : 'false';\n\n return {\n open,\n value,\n selected,\n components: {\n root: 'button',\n icon: 'span',\n expandIcon: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n 'aria-current': validAriaCurrent,\n 'aria-expanded': open,\n ...props,\n onClick: onNavCategoryItemClick,\n }),\n { elementType: 'button' },\n ),\n expandIcon: slot.always(expandIcon, {\n defaultProps: {\n 'aria-hidden': true,\n },\n elementType: 'span',\n }),\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","useEventCallback","ChevronDown20Regular","createPresenceComponentVariant","motionTokens","presenceMotionSlot","useNavCategoryContext_unstable","useNavContext_unstable","Rotate","ExpandIconMotion","duration","durationFast","easing","curveEasyEase","animateOpacity","outAngle","inAngle","useNavCategoryItem_unstable","props","ref","density","state","useNavCategoryItemBase_unstable","components","expandIconMotion","expandIcon","always","defaultProps","children","elementType","visible","open","onClick","icon","value","onRequestNavCategoryItemToggle","selectedCategoryValue","onNavCategoryItemClick","event","type","categoryValue","selected","validAriaCurrent","root","optional"],"mappings":"AAAA;;;;;;;;;;;;mCAwEayB;eAAAA;;+BAtCAL;eAAAA;;;;iEAhCU,QAAQ;gCACkD,4BAA4B;4BACxE,wBAAwB;6BACoB,yBAAyB;oCAQ3D,2BAAwB;4BAChC,mBAAgB;8CAChC,4CAA4C;AAEnE,MAAMR,uBAAmBN,2CAAAA,EAA+BK,oCAAAA,EAAQ;IAC9DE,UAAUN,yBAAAA,CAAaO,YAAY;IACnCC,QAAQR,yBAAAA,CAAaS,aAAa;IAClCC,gBAAgB;IAChBC,UAAU;IACVC,SAAS;AACX;AAWO,oCAAoC,CACzCE,OACAC;IAEA,MAAM,EAAEC,UAAU,QAAQ,EAAE,OAAGb,kCAAAA;IAE/B,MAAMc,QAAQC,gCAAgCJ,OAAOC;IAErD,OAAO;QACL,GAAGE,KAAK;QACRE,YAAY;YACV,4DAA4D;YAC5D,GAAGF,MAAME,UAAU;YACnBC,kBAAkBf;QACpB;QACAgB,YAAYzB,oBAAAA,CAAK0B,MAAM,CAACR,MAAMO,UAAU,EAAE;YACxCE,cAAc;gBACZC,UAAAA,WAAAA,GAAU,OAAA,aAAA,CAAC1B,gCAAAA,EAAAA;gBACX,eAAe;YACjB;YACA2B,aAAa;QACf;QACAL,sBAAkBnB,+BAAAA,EAAmBa,MAAMM,gBAAgB,EAAE;YAC3DK,aAAapB;YACbkB,cAAc;gBACZG,SAAST,MAAMU,IAAI;YACrB;QACF;QACAX;IACF;AACF,EAAE;AAQK,wCAAwC,CAC7CF,OACAC;IAEA,MAAM,EAAEa,OAAO,EAAEP,UAAU,EAAEQ,IAAI,EAAE,GAAGf;IAEtC,MAAM,EAAEa,IAAI,EAAEG,KAAK,EAAE,GAAG5B,sDAAAA;IAExB,MAAM,EAAE6B,8BAA8B,EAAEC,qBAAqB,EAAE,OAAG7B,kCAAAA;IAElE,MAAM8B,6BAAyBpC,gCAAAA,MAC7BF,8BAAAA,EAAeiC,SAASM,CAAAA,QACtBH,+BAA+BG,OAAO;YAAEC,MAAM;YAASD;YAAOJ,OAAO;YAAIM,eAAeN;QAAM;IAIlG,qCAAqC;IACrC,MAAMO,WAAWL,0BAA0BF,SAAS,CAACH;IACrD,+GAA+G;IAC/G,MAAMW,mBAAqCD,YAAY,CAACV,OAAO,SAAS;IAExE,OAAO;QACLA;QACAG;QACAO;QACAlB,YAAY;YACVoB,MAAM;YACNV,MAAM;YACNR,YAAY;QACd;QACAkB,MAAM3C,oBAAAA,CAAK0B,MAAM,KACf5B,wCAAAA,EAAyB,UAAU;YACjCqB;YACA,gBAAgBuB;YAChB,iBAAiBX;YACjB,GAAGb,KAAK;YACRc,SAASK;QACX,IACA;YAAER,aAAa;QAAS;QAE1BJ,YAAYzB,oBAAAA,CAAK0B,MAAM,CAACD,YAAY;YAClCE,cAAc;gBACZ,eAAe;YACjB;YACAE,aAAa;QACf;QACAI,MAAMjC,oBAAAA,CAAK4C,QAAQ,CAACX,MAAM;YACxBJ,aAAa;QACf;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavCategoryItem/useNavCategoryItem.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot, useEventCallback } from '@fluentui/react-utilities';\nimport { ChevronDown20Regular } from '@fluentui/react-icons';\nimport { createPresenceComponentVariant, motionTokens, presenceMotionSlot } from '@fluentui/react-motion';\n\nimport type {\n NavCategoryItemBaseProps,\n NavCategoryItemBaseState,\n NavCategoryItemProps,\n NavCategoryItemState,\n} from './NavCategoryItem.types';\nimport { useNavCategoryContext_unstable } from '../NavCategoryContext';\nimport { useNavContext_unstable } from '../NavContext';\nimport { Rotate } from '@fluentui/react-motion-components-preview';\n\nconst ExpandIconMotion = createPresenceComponentVariant(Rotate, {\n duration: motionTokens.durationFast,\n easing: motionTokens.curveEasyEase,\n animateOpacity: false, // Don't fade out the icon\n outAngle: 0,\n inAngle: 180,\n});\n\n/**\n * Create the state required to render NavCategoryItem.\n *\n * The returned state can be modified with hooks such as useNavCategoryItemStyles,\n * before being passed to renderNavCategoryItem.\n *\n * @param props - props from this instance of NavCategoryItem\n * @param ref - reference to root HTMLButtonElement of NavCategoryItem\n */\nexport const useNavCategoryItem_unstable = (\n props: NavCategoryItemProps,\n ref: React.Ref<HTMLButtonElement>,\n): NavCategoryItemState => {\n const { density = 'medium' } = useNavContext_unstable();\n\n const state = useNavCategoryItemBase_unstable(props, ref);\n\n return {\n ...state,\n components: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ...state.components,\n expandIconMotion: ExpandIconMotion,\n },\n expandIcon: slot.always(props.expandIcon, {\n defaultProps: {\n children: <ChevronDown20Regular />,\n 'aria-hidden': true,\n },\n elementType: 'span',\n }),\n expandIconMotion: presenceMotionSlot(props.expandIconMotion, {\n elementType: ExpandIconMotion,\n defaultProps: {\n visible: state.open,\n },\n }),\n density,\n };\n};\n\n/**\n * Create the base state required to render NavCategoryItem.\n *\n * @param props - props from this instance of NavCategoryItem\n * @param ref - reference to root HTMLButtonElement of NavCategoryItem\n */\nexport const useNavCategoryItemBase_unstable = (\n props: NavCategoryItemBaseProps,\n ref: React.Ref<HTMLButtonElement>,\n): NavCategoryItemBaseState => {\n const { onClick, expandIcon, icon } = props;\n\n const { open, value } = useNavCategoryContext_unstable();\n\n const { onRequestNavCategoryItemToggle, selectedCategoryValue } = useNavContext_unstable();\n\n const onNavCategoryItemClick = useEventCallback(\n mergeCallbacks(onClick, event =>\n onRequestNavCategoryItemToggle(event, { type: 'click', event, value: '', categoryValue: value }),\n ),\n );\n\n // don't fill the icon when it's open\n const selected = selectedCategoryValue === value && !open;\n // there's more than 2 possible values for aria-current, but this is the only one that's used in this component\n const validAriaCurrent: 'page' | 'false' = selected && !open ? 'page' : 'false';\n\n return {\n open,\n value,\n selected,\n components: {\n root: 'button',\n icon: 'span',\n expandIcon: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n type: 'button',\n 'aria-current': validAriaCurrent,\n 'aria-expanded': open,\n ...props,\n onClick: onNavCategoryItemClick,\n }),\n { elementType: 'button' },\n ),\n expandIcon: slot.always(expandIcon, {\n defaultProps: {\n 'aria-hidden': true,\n },\n elementType: 'span',\n }),\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","useEventCallback","ChevronDown20Regular","createPresenceComponentVariant","motionTokens","presenceMotionSlot","useNavCategoryContext_unstable","useNavContext_unstable","Rotate","ExpandIconMotion","duration","durationFast","easing","curveEasyEase","animateOpacity","outAngle","inAngle","useNavCategoryItem_unstable","props","ref","density","state","useNavCategoryItemBase_unstable","components","expandIconMotion","expandIcon","always","defaultProps","children","elementType","visible","open","onClick","icon","value","onRequestNavCategoryItemToggle","selectedCategoryValue","onNavCategoryItemClick","event","type","categoryValue","selected","validAriaCurrent","root","optional"],"mappings":"AAAA;;;;;;;;;;;;QAwEayB;;;QAtCAL;;;;;iEAhCU,QAAQ;gCACkD,4BAA4B;4BACxE,wBAAwB;6BACoB,yBAAyB;oCAQ3D,2BAAwB;4BAChC,mBAAgB;8CAChC,4CAA4C;AAEnE,MAAMR,uBAAmBN,2CAAAA,EAA+BK,oCAAAA,EAAQ;IAC9DE,UAAUN,yBAAAA,CAAaO,YAAY;IACnCC,QAAQR,yBAAAA,CAAaS,aAAa;IAClCC,gBAAgB;IAChBC,UAAU;IACVC,SAAS;AACX;AAWO,oCAAoC,CACzCE,OACAC;IAEA,MAAM,EAAEC,UAAU,QAAQ,EAAE,OAAGb,kCAAAA;IAE/B,MAAMc,QAAQC,gCAAgCJ,OAAOC;IAErD,OAAO;QACL,GAAGE,KAAK;QACRE,YAAY;YACV,4DAA4D;YAC5D,GAAGF,MAAME,UAAU;YACnBC,kBAAkBf;QACpB;QACAgB,YAAYzB,oBAAAA,CAAK0B,MAAM,CAACR,MAAMO,UAAU,EAAE;YACxCE,cAAc;gBACZC,UAAAA,WAAAA,GAAU,OAAA,aAAA,CAAC1B,gCAAAA,EAAAA;gBACX,eAAe;YACjB;YACA2B,aAAa;QACf;QACAL,sBAAkBnB,+BAAAA,EAAmBa,MAAMM,gBAAgB,EAAE;YAC3DK,aAAapB;YACbkB,cAAc;gBACZG,SAAST,MAAMU,IAAI;YACrB;QACF;QACAX;IACF;AACF,EAAE;AAQK,wCAAwC,CAC7CF,OACAC;IAEA,MAAM,EAAEa,OAAO,EAAEP,UAAU,EAAEQ,IAAI,EAAE,GAAGf;IAEtC,MAAM,EAAEa,IAAI,EAAEG,KAAK,EAAE,OAAG5B,kDAAAA;IAExB,MAAM,EAAE6B,8BAA8B,EAAEC,qBAAqB,EAAE,OAAG7B,kCAAAA;IAElE,MAAM8B,6BAAyBpC,gCAAAA,MAC7BF,8BAAAA,EAAeiC,SAASM,CAAAA,QACtBH,+BAA+BG,OAAO;YAAEC,MAAM;YAASD;YAAOJ,OAAO;YAAIM,eAAeN;QAAM;IAIlG,qCAAqC;IACrC,MAAMO,WAAWL,0BAA0BF,SAAS,CAACH;IACrD,+GAA+G;IAC/G,MAAMW,mBAAqCD,YAAY,CAACV,OAAO,SAAS;IAExE,OAAO;QACLA;QACAG;QACAO;QACAlB,YAAY;YACVoB,MAAM;YACNV,MAAM;YACNR,YAAY;QACd;QACAkB,MAAM3C,oBAAAA,CAAK0B,MAAM,KACf5B,wCAAAA,EAAyB,UAAU;YACjCqB;YACAoB,MAAM;YACN,gBAAgBG;YAChB,iBAAiBX;YACjB,GAAGb,KAAK;YACRc,SAASK;QACX,IACA;YAAER,aAAa;QAAS;QAE1BJ,YAAYzB,oBAAAA,CAAK0B,MAAM,CAACD,YAAY;YAClCE,cAAc;gBACZ,eAAe;YACjB;YACAE,aAAa;QACf;QACAI,MAAMjC,oBAAAA,CAAK4C,QAAQ,CAACX,MAAM;YACxBJ,aAAa;QACf;IACF;AACF,EAAE"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- navCategoryItemClassNames: function() {
13
+ get navCategoryItemClassNames () {
14
14
  return navCategoryItemClassNames;
15
15
  },
16
- useNavCategoryItemStyles_unstable: function() {
16
+ get useNavCategoryItemStyles_unstable () {
17
17
  return useNavCategoryItemStyles_unstable;
18
18
  },
19
- useRootStyles: function() {
19
+ get useRootStyles () {
20
20
  return useRootStyles;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useNavCategoryItem.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { typographyStyles } from \"@fluentui/react-theme\";\nimport { useContentStyles, useIconStyles, useIndicatorStyles, useRootDefaultClassName, useSmallStyles } from \"../sharedNavStyles.styles.js\";\nexport const navCategoryItemClassNames = {\n root: 'fui-NavCategoryItem',\n icon: 'fui-NavCategoryItem__icon',\n expandIcon: 'fui-NavCategoryItem__expandIcon',\n expandIconMotion: 'fui-NavCategoryItem__expandIconMotion'\n};\nconst useExpandIconStyles = makeStyles({\n base: {\n marginInlineStart: 'auto',\n height: '20px'\n },\n selected: typographyStyles.body1Strong\n});\n/**\n * Styles for the root slot\n */ export const useRootStyles = makeStyles({\n base: {\n width: '100%'\n }\n});\n/**\n * Apply styling to the NavCategoryItem slots based on the state\n */ export const useNavCategoryItemStyles_unstable = (state)=>{\n const rootStyles = useRootStyles();\n const smallStyles = useSmallStyles();\n const defaultRootClassName = useRootDefaultClassName();\n const contentStyles = useContentStyles();\n const indicatorStyles = useIndicatorStyles();\n const iconStyles = useIconStyles();\n const expandIconStyles = useExpandIconStyles();\n const { selected, open, density } = state;\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navCategoryItemClassNames.root, defaultRootClassName, rootStyles.base, density === 'small' && smallStyles.root, selected && open === false && indicatorStyles.base, selected && open === false && contentStyles.selected, state.root.className);\n // eslint-disable-next-line react-hooks/immutability\n state.expandIcon.className = mergeClasses(navCategoryItemClassNames.expandIcon, expandIconStyles.base, state.expandIcon.className);\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(navCategoryItemClassNames.icon, iconStyles.base, selected && iconStyles.selected, state.icon.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","typographyStyles","useContentStyles","useIconStyles","useIndicatorStyles","useRootDefaultClassName","useSmallStyles","navCategoryItemClassNames","root","icon","expandIcon","expandIconMotion","useExpandIconStyles","base","Jyy4pa","Bqenvij","selected","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d","useRootStyles","a9b677","useNavCategoryItemStyles_unstable","state","rootStyles","smallStyles","defaultRootClassName","contentStyles","indicatorStyles","iconStyles","expandIconStyles","open","density","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAICQ,yBAAyB;;;qCAsBY;eAAjCiB;;IAPAF,aAAa;;;;uBAlBW,gBAAgB;uCAEoD,8BAA8B;AACpI,kCAAkC;IACrCd,IAAI,EAAE,qBAAqB;IAC3BC,IAAI,EAAE,2BAA2B;IACjCC,UAAU,EAAE,iCAAiC;IAC7CC,gBAAgB,EAAE;AACtB,CAAC;AACD,MAAMC,mBAAmB,GAAA,WAAA,OAAGb,eAAA,EAAA;IAAAc,IAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAM3B,CAAC;AAGS,sBAAmB,WAAA,OAAGtB,eAAA,EAAA;IAAAc,IAAA,EAAA;QAAAU,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAF,CAAA,EAAA;QAAA;KAAA;AAAA,CAIhC,CAAC;AAGS,2CAA2CI,KAAK,IAAG;IAC1D,MAAMC,UAAU,GAAGJ,aAAa,CAAC,CAAC;IAClC,MAAMK,WAAW,GAAGrB,yCAAc,CAAC,CAAC;IACpC,MAAMsB,oBAAoB,OAAGvB,8CAAuB,CAAC,CAAC;IACtD,MAAMwB,aAAa,OAAG3B,uCAAgB,CAAC,CAAC;IACxC,MAAM4B,eAAe,OAAG1B,yCAAkB,CAAC,CAAC;IAC5C,MAAM2B,UAAU,OAAG5B,oCAAa,CAAC,CAAC;IAClC,MAAM6B,gBAAgB,GAAGpB,mBAAmB,CAAC,CAAC;IAC9C,MAAM,EAAEI,QAAQ,EAAEiB,IAAI,EAAEC,OAAAA,EAAS,GAAGT,KAAK;IACzC,oDAAA;IACAA,KAAK,CAACjB,IAAI,CAAC2B,SAAS,OAAGnC,mBAAY,EAACO,yBAAyB,CAACC,IAAI,EAAEoB,oBAAoB,EAAEF,UAAU,CAACb,IAAI,EAAEqB,OAAO,KAAK,OAAO,IAAIP,WAAW,CAACnB,IAAI,EAAEQ,QAAQ,IAAIiB,IAAI,KAAK,KAAK,IAAIH,eAAe,CAACjB,IAAI,EAAEG,QAAQ,IAAIiB,IAAI,KAAK,KAAK,IAAIJ,aAAa,CAACb,QAAQ,EAAES,KAAK,CAACjB,IAAI,CAAC2B,SAAS,CAAC;IACnR,oDAAA;IACAV,KAAK,CAACf,UAAU,CAACyB,SAAS,OAAGnC,mBAAY,EAACO,yBAAyB,CAACG,UAAU,EAAEsB,gBAAgB,CAACnB,IAAI,EAAEY,KAAK,CAACf,UAAU,CAACyB,SAAS,CAAC;IAClI,IAAIV,KAAK,CAAChB,IAAI,EAAE;QACZ,oDAAA;QACAgB,KAAK,CAAChB,IAAI,CAAC0B,SAAS,OAAGnC,mBAAY,EAACO,yBAAyB,CAACE,IAAI,EAAEsB,UAAU,CAAClB,IAAI,EAAEG,QAAQ,IAAIe,UAAU,CAACf,QAAQ,EAAES,KAAK,CAAChB,IAAI,CAAC0B,SAAS,CAAC;IAC/I;IACA,OAAOV,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useNavCategoryItem.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { typographyStyles } from \"@fluentui/react-theme\";\nimport { useContentStyles, useIconStyles, useIndicatorStyles, useRootDefaultClassName, useSmallStyles } from \"../sharedNavStyles.styles.js\";\nexport const navCategoryItemClassNames = {\n root: 'fui-NavCategoryItem',\n icon: 'fui-NavCategoryItem__icon',\n expandIcon: 'fui-NavCategoryItem__expandIcon',\n expandIconMotion: 'fui-NavCategoryItem__expandIconMotion'\n};\nconst useExpandIconStyles = makeStyles({\n base: {\n marginInlineStart: 'auto',\n height: '20px'\n },\n selected: typographyStyles.body1Strong\n});\n/**\n * Styles for the root slot\n */ export const useRootStyles = makeStyles({\n base: {\n width: '100%'\n }\n});\n/**\n * Apply styling to the NavCategoryItem slots based on the state\n */ export const useNavCategoryItemStyles_unstable = (state)=>{\n const rootStyles = useRootStyles();\n const smallStyles = useSmallStyles();\n const defaultRootClassName = useRootDefaultClassName();\n const contentStyles = useContentStyles();\n const indicatorStyles = useIndicatorStyles();\n const iconStyles = useIconStyles();\n const expandIconStyles = useExpandIconStyles();\n const { selected, open, density } = state;\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navCategoryItemClassNames.root, defaultRootClassName, rootStyles.base, density === 'small' && smallStyles.root, selected && open === false && indicatorStyles.base, selected && open === false && contentStyles.selected, state.root.className);\n // eslint-disable-next-line react-hooks/immutability\n state.expandIcon.className = mergeClasses(navCategoryItemClassNames.expandIcon, expandIconStyles.base, state.expandIcon.className);\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(navCategoryItemClassNames.icon, iconStyles.base, selected && iconStyles.selected, state.icon.className);\n }\n return state;\n};\n"],"names":["__styles","mergeClasses","typographyStyles","useContentStyles","useIconStyles","useIndicatorStyles","useRootDefaultClassName","useSmallStyles","navCategoryItemClassNames","root","icon","expandIcon","expandIconMotion","useExpandIconStyles","base","Jyy4pa","Bqenvij","selected","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d","useRootStyles","a9b677","useNavCategoryItemStyles_unstable","state","rootStyles","smallStyles","defaultRootClassName","contentStyles","indicatorStyles","iconStyles","expandIconStyles","open","density","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAICQ,yBAAyB;;;;eAsBrBiB,iCAAiC;;;;;;uBAzBT,gBAAgB;uCAEoD,8BAA8B;AACpI,kCAAkC;IACrChB,IAAI,EAAE,qBAAqB;IAC3BC,IAAI,EAAE,2BAA2B;IACjCC,UAAU,EAAE,iCAAiC;IAC7CC,gBAAgB,EAAE;AACtB,CAAC;AACD,MAAMC,mBAAmB,GAAA,WAAA,OAAGb,eAAA,EAAA;IAAAc,IAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,QAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAM3B,CAAC;AAGS,MAAMC,aAAa,GAAA,WAAA,OAAGvB,eAAA,EAAA;IAAAc,IAAA,EAAA;QAAAU,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAF,CAAA,EAAA;QAAA;KAAA;AAAA,CAIhC,CAAC;AAGS,2CAA2CI,KAAK,IAAG;IAC1D,MAAMC,UAAU,GAAGJ,aAAa,CAAC,CAAC;IAClC,MAAMK,WAAW,OAAGrB,qCAAc,CAAC,CAAC;IACpC,MAAMsB,oBAAoB,OAAGvB,8CAAuB,CAAC,CAAC;IACtD,MAAMwB,aAAa,OAAG3B,uCAAgB,CAAC,CAAC;IACxC,MAAM4B,eAAe,OAAG1B,yCAAkB,CAAC,CAAC;IAC5C,MAAM2B,UAAU,OAAG5B,oCAAa,CAAC,CAAC;IAClC,MAAM6B,gBAAgB,GAAGpB,mBAAmB,CAAC,CAAC;IAC9C,MAAM,EAAEI,QAAQ,EAAEiB,IAAI,EAAEC,OAAAA,EAAS,GAAGT,KAAK;IACzC,oDAAA;IACAA,KAAK,CAACjB,IAAI,CAAC2B,SAAS,OAAGnC,mBAAY,EAACO,yBAAyB,CAACC,IAAI,EAAEoB,oBAAoB,EAAEF,UAAU,CAACb,IAAI,EAAEqB,OAAO,KAAK,OAAO,IAAIP,WAAW,CAACnB,IAAI,EAAEQ,QAAQ,IAAIiB,IAAI,KAAK,KAAK,IAAIH,eAAe,CAACjB,IAAI,EAAEG,QAAQ,IAAIiB,IAAI,KAAK,KAAK,IAAIJ,aAAa,CAACb,QAAQ,EAAES,KAAK,CAACjB,IAAI,CAAC2B,SAAS,CAAC;IACnR,oDAAA;IACAV,KAAK,CAACf,UAAU,CAACyB,SAAS,OAAGnC,mBAAY,EAACO,yBAAyB,CAACG,UAAU,EAAEsB,gBAAgB,CAACnB,IAAI,EAAEY,KAAK,CAACf,UAAU,CAACyB,SAAS,CAAC;IAClI,IAAIV,KAAK,CAAChB,IAAI,EAAE;QACZ,oDAAA;QACAgB,KAAK,CAAChB,IAAI,CAAC0B,SAAS,OAAGnC,mBAAY,EAACO,yBAAyB,CAACE,IAAI,EAAEsB,UAAU,CAAClB,IAAI,EAAEG,QAAQ,IAAIe,UAAU,CAACf,QAAQ,EAAES,KAAK,CAAChB,IAAI,CAAC0B,SAAS,CAAC;IAC/I;IACA,OAAOV,KAAK;AAChB,CAAC"}
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- navCategoryItemClassNames: function() {
13
+ get navCategoryItemClassNames () {
14
14
  return navCategoryItemClassNames;
15
15
  },
16
- useNavCategoryItemStyles_unstable: function() {
16
+ get useNavCategoryItemStyles_unstable () {
17
17
  return useNavCategoryItemStyles_unstable;
18
18
  },
19
- useRootStyles: function() {
19
+ get useRootStyles () {
20
20
  return useRootStyles;
21
21
  }
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItem/useNavCategoryItem.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { typographyStyles } from '@fluentui/react-theme';\nimport {\n useContentStyles,\n useIconStyles,\n useIndicatorStyles,\n useRootDefaultClassName,\n useSmallStyles,\n} from '../sharedNavStyles.styles';\n\nimport type { NavCategoryItemSlots, NavCategoryItemState } from './NavCategoryItem.types';\n\nexport const navCategoryItemClassNames: SlotClassNames<NavCategoryItemSlots> = {\n root: 'fui-NavCategoryItem',\n icon: 'fui-NavCategoryItem__icon',\n expandIcon: 'fui-NavCategoryItem__expandIcon',\n expandIconMotion: 'fui-NavCategoryItem__expandIconMotion',\n};\n\nconst useExpandIconStyles = makeStyles({\n base: {\n marginInlineStart: 'auto',\n height: '20px',\n },\n selected: typographyStyles.body1Strong,\n});\n\n/**\n * Styles for the root slot\n */\nexport const useRootStyles = makeStyles({\n base: {\n width: '100%',\n },\n});\n\n/**\n * Apply styling to the NavCategoryItem slots based on the state\n */\nexport const useNavCategoryItemStyles_unstable = (state: NavCategoryItemState): NavCategoryItemState => {\n const rootStyles = useRootStyles();\n const smallStyles = useSmallStyles();\n const defaultRootClassName = useRootDefaultClassName();\n const contentStyles = useContentStyles();\n const indicatorStyles = useIndicatorStyles();\n const iconStyles = useIconStyles();\n const expandIconStyles = useExpandIconStyles();\n\n const { selected, open, density } = state;\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n navCategoryItemClassNames.root,\n defaultRootClassName,\n rootStyles.base,\n density === 'small' && smallStyles.root,\n selected && open === false && indicatorStyles.base,\n selected && open === false && contentStyles.selected,\n state.root.className,\n );\n\n // eslint-disable-next-line react-hooks/immutability\n state.expandIcon.className = mergeClasses(\n navCategoryItemClassNames.expandIcon,\n expandIconStyles.base,\n state.expandIcon.className,\n );\n\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(\n navCategoryItemClassNames.icon,\n iconStyles.base,\n selected && iconStyles.selected,\n state.icon.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","typographyStyles","useContentStyles","useIconStyles","useIndicatorStyles","useRootDefaultClassName","useSmallStyles","navCategoryItemClassNames","root","icon","expandIcon","expandIconMotion","useExpandIconStyles","base","marginInlineStart","height","selected","body1Strong","useRootStyles","width","useNavCategoryItemStyles_unstable","state","rootStyles","smallStyles","defaultRootClassName","contentStyles","indicatorStyles","iconStyles","expandIconStyles","open","density","className"],"mappings":"AAAA;;;;;;;;;;;;IAeaQ,yBAAAA;;;IA2BAa,iCAAAA;;;IATAF,aAAAA;;;;uBA/B4B,iBAAiB;4BAEzB,wBAAwB;uCAOlD,+BAA4B;AAI5B,kCAAwE;IAC7EV,MAAM;IACNC,MAAM;IACNC,YAAY;IACZC,kBAAkB;AACpB,EAAE;AAEF,MAAMC,0BAAsBb,iBAAAA,EAAW;IACrCc,MAAM;QACJC,mBAAmB;QACnBC,QAAQ;IACV;IACAC,UAAUf,4BAAAA,CAAiBgB,WAAW;AACxC;AAKO,0BAAsBlB,iBAAAA,EAAW;IACtCc,MAAM;QACJM,OAAO;IACT;AACF,GAAG;AAKI,0CAA0C,CAACE;IAChD,MAAMC,aAAaJ;IACnB,MAAMK,kBAAcjB,qCAAAA;IACpB,MAAMkB,2BAAuBnB,8CAAAA;IAC7B,MAAMoB,oBAAgBvB,uCAAAA;IACtB,MAAMwB,sBAAkBtB,yCAAAA;IACxB,MAAMuB,iBAAaxB,oCAAAA;IACnB,MAAMyB,mBAAmBhB;IAEzB,MAAM,EAAEI,QAAQ,EAAEa,IAAI,EAAEC,OAAO,EAAE,GAAGT;IAEpC,oDAAoD;IACpDA,MAAMb,IAAI,CAACuB,SAAS,OAAG/B,mBAAAA,EACrBO,0BAA0BC,IAAI,EAC9BgB,sBACAF,WAAWT,IAAI,EACfiB,YAAY,WAAWP,YAAYf,IAAI,EACvCQ,YAAYa,SAAS,SAASH,gBAAgBb,IAAI,EAClDG,YAAYa,SAAS,SAASJ,cAAcT,QAAQ,EACpDK,MAAMb,IAAI,CAACuB,SAAS;IAGtB,oDAAoD;IACpDV,MAAMX,UAAU,CAACqB,SAAS,OAAG/B,mBAAAA,EAC3BO,0BAA0BG,UAAU,EACpCkB,iBAAiBf,IAAI,EACrBQ,MAAMX,UAAU,CAACqB,SAAS;IAG5B,IAAIV,MAAMZ,IAAI,EAAE;QACd,oDAAoD;QACpDY,MAAMZ,IAAI,CAACsB,SAAS,GAAG/B,uBAAAA,EACrBO,0BAA0BE,IAAI,EAC9BkB,WAAWd,IAAI,EACfG,YAAYW,WAAWX,QAAQ,EAC/BK,MAAMZ,IAAI,CAACsB,SAAS;IAExB;IAEA,OAAOV;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavCategoryItem/useNavCategoryItem.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { typographyStyles } from '@fluentui/react-theme';\nimport {\n useContentStyles,\n useIconStyles,\n useIndicatorStyles,\n useRootDefaultClassName,\n useSmallStyles,\n} from '../sharedNavStyles.styles';\n\nimport type { NavCategoryItemSlots, NavCategoryItemState } from './NavCategoryItem.types';\n\nexport const navCategoryItemClassNames: SlotClassNames<NavCategoryItemSlots> = {\n root: 'fui-NavCategoryItem',\n icon: 'fui-NavCategoryItem__icon',\n expandIcon: 'fui-NavCategoryItem__expandIcon',\n expandIconMotion: 'fui-NavCategoryItem__expandIconMotion',\n};\n\nconst useExpandIconStyles = makeStyles({\n base: {\n marginInlineStart: 'auto',\n height: '20px',\n },\n selected: typographyStyles.body1Strong,\n});\n\n/**\n * Styles for the root slot\n */\nexport const useRootStyles = makeStyles({\n base: {\n width: '100%',\n },\n});\n\n/**\n * Apply styling to the NavCategoryItem slots based on the state\n */\nexport const useNavCategoryItemStyles_unstable = (state: NavCategoryItemState): NavCategoryItemState => {\n const rootStyles = useRootStyles();\n const smallStyles = useSmallStyles();\n const defaultRootClassName = useRootDefaultClassName();\n const contentStyles = useContentStyles();\n const indicatorStyles = useIndicatorStyles();\n const iconStyles = useIconStyles();\n const expandIconStyles = useExpandIconStyles();\n\n const { selected, open, density } = state;\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n navCategoryItemClassNames.root,\n defaultRootClassName,\n rootStyles.base,\n density === 'small' && smallStyles.root,\n selected && open === false && indicatorStyles.base,\n selected && open === false && contentStyles.selected,\n state.root.className,\n );\n\n // eslint-disable-next-line react-hooks/immutability\n state.expandIcon.className = mergeClasses(\n navCategoryItemClassNames.expandIcon,\n expandIconStyles.base,\n state.expandIcon.className,\n );\n\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(\n navCategoryItemClassNames.icon,\n iconStyles.base,\n selected && iconStyles.selected,\n state.icon.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","typographyStyles","useContentStyles","useIconStyles","useIndicatorStyles","useRootDefaultClassName","useSmallStyles","navCategoryItemClassNames","root","icon","expandIcon","expandIconMotion","useExpandIconStyles","base","marginInlineStart","height","selected","body1Strong","useRootStyles","width","useNavCategoryItemStyles_unstable","state","rootStyles","smallStyles","defaultRootClassName","contentStyles","indicatorStyles","iconStyles","expandIconStyles","open","density","className"],"mappings":"AAAA;;;;;;;;;;;;QAeaQ;;;;eA2BAa;;QATAF;;;;uBA/B4B,iBAAiB;4BAEzB,wBAAwB;uCAOlD,+BAA4B;AAI5B,kCAAwE;IAC7EV,MAAM;IACNC,MAAM;IACNC,YAAY;IACZC,kBAAkB;AACpB,EAAE;AAEF,MAAMC,0BAAsBb,iBAAAA,EAAW;IACrCc,MAAM;QACJC,mBAAmB;QACnBC,QAAQ;IACV;IACAC,UAAUf,4BAAAA,CAAiBgB,WAAW;AACxC;AAKO,0BAAsBlB,iBAAAA,EAAW;IACtCc,MAAM;QACJM,OAAO;IACT;AACF,GAAG;AAKI,0CAA0C,CAACE;IAChD,MAAMC,aAAaJ;IACnB,MAAMK,kBAAcjB,qCAAAA;IACpB,MAAMkB,2BAAuBnB,8CAAAA;IAC7B,MAAMoB,oBAAgBvB,uCAAAA;IACtB,MAAMwB,sBAAkBtB,yCAAAA;IACxB,MAAMuB,aAAaxB,wCAAAA;IACnB,MAAMyB,mBAAmBhB;IAEzB,MAAM,EAAEI,QAAQ,EAAEa,IAAI,EAAEC,OAAO,EAAE,GAAGT;IAEpC,oDAAoD;IACpDA,MAAMb,IAAI,CAACuB,SAAS,OAAG/B,mBAAAA,EACrBO,0BAA0BC,IAAI,EAC9BgB,sBACAF,WAAWT,IAAI,EACfiB,YAAY,WAAWP,YAAYf,IAAI,EACvCQ,YAAYa,SAAS,SAASH,gBAAgBb,IAAI,EAClDG,YAAYa,SAAS,SAASJ,cAAcT,QAAQ,EACpDK,MAAMb,IAAI,CAACuB,SAAS;IAGtB,oDAAoD;IACpDV,MAAMX,UAAU,CAACqB,SAAS,OAAG/B,mBAAAA,EAC3BO,0BAA0BG,UAAU,EACpCkB,iBAAiBf,IAAI,EACrBQ,MAAMX,UAAU,CAACqB,SAAS;IAG5B,IAAIV,MAAMZ,IAAI,EAAE;QACd,oDAAoD;QACpDY,MAAMZ,IAAI,CAACsB,SAAS,OAAG/B,mBAAAA,EACrBO,0BAA0BE,IAAI,EAC9BkB,WAAWd,IAAI,EACfG,YAAYW,WAAWX,QAAQ,EAC/BK,MAAMZ,IAAI,CAACsB,SAAS;IAExB;IAEA,OAAOV;AACT,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- NavCategoryItemProvider: function() {
13
+ get NavCategoryItemProvider () {
14
14
  return NavCategoryItemProvider;
15
15
  },
16
- useNavCategoryItemContext_unstable: function() {
16
+ get useNavCategoryItemContext_unstable () {
17
17
  return useNavCategoryItemContext_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItemContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { NavItemValue } from './NavContext.types';\n\n// This context is analogous to AccordionHeaderContext\n\nexport type NavCategoryItemContextValue = {\n open: boolean;\n value: NavItemValue;\n};\n\nconst NavCategoryItemContext = React.createContext<NavCategoryItemContextValue | undefined>(\n undefined,\n) as React.Context<NavCategoryItemContextValue>;\n\nconst NavCategoryItemContextDefaultValues = {\n open: false,\n};\n\nexport const { Provider: NavCategoryItemProvider } = NavCategoryItemContext;\n\nexport const useNavCategoryItemContext_unstable = (): NavCategoryItemContextValue =>\n React.useContext(NavCategoryItemContext) ?? NavCategoryItemContextDefaultValues;\n"],"names":["React","NavCategoryItemContext","createContext","undefined","NavCategoryItemContextDefaultValues","open","Provider","NavCategoryItemProvider","useNavCategoryItemContext_unstable","useContext"],"mappings":"AAAA;;;;;;;;;;;;2BAoBgD;;;sCAEnCQ;;;;;iEApBU,QAAQ;AAU/B,MAAMP,uCAAyBD,OAAME,aAAa,CAChDC;AAGF,MAAMC,sCAAsC;IAC1CC,MAAM;AACR;AAEO,MAAM,EAAEC,UAAUC,yBAAyB,GAAGN,uBAAuB;AAErE,MAAMO,qCAAqC;QAChDR;WAAAA,CAAAA,oBAAAA,OAAMS,UAAU,CAACR,uBAAAA,MAAAA,QAAjBD,sBAAAA,KAAAA,IAAAA,oBAA4CI;EAAoC"}
1
+ {"version":3,"sources":["../../src/components/NavCategoryItemContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { NavItemValue } from './NavContext.types';\n\n// This context is analogous to AccordionHeaderContext\n\nexport type NavCategoryItemContextValue = {\n open: boolean;\n value: NavItemValue;\n};\n\nconst NavCategoryItemContext = React.createContext<NavCategoryItemContextValue | undefined>(\n undefined,\n) as React.Context<NavCategoryItemContextValue>;\n\nconst NavCategoryItemContextDefaultValues = {\n open: false,\n};\n\nexport const { Provider: NavCategoryItemProvider } = NavCategoryItemContext;\n\nexport const useNavCategoryItemContext_unstable = (): NavCategoryItemContextValue =>\n React.useContext(NavCategoryItemContext) ?? NavCategoryItemContextDefaultValues;\n"],"names":["React","NavCategoryItemContext","createContext","undefined","NavCategoryItemContextDefaultValues","open","Provider","NavCategoryItemProvider","useNavCategoryItemContext_unstable","useContext"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;iEAEuB,QAAQ;AAU/B,MAAMC,uCAAyBD,OAAME,aAAa,CAChDC;AAGF,MAAMC,sCAAsC;IAC1CC,MAAM;AACR;AAEO,MAAM,EAAEC,UAAUC,uBAAuB,EAAE,GAAGN,uBAAuB;AAErE,MAAMO,qCAAqC;QAChDR;YAAAA,oBAAAA,OAAMS,UAAU,CAACR,uBAAAA,MAAAA,QAAjBD,sBAAAA,KAAAA,IAAAA,oBAA4CI;EAAoC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- NavProvider: function() {
13
+ get NavProvider () {
14
14
  return NavProvider;
15
15
  },
16
- useNavContext_unstable: function() {
16
+ get useNavContext_unstable () {
17
17
  return useNavContext_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { NavContextValue } from './NavContext.types';\n\nconst navContextDefaultValue: NavContextValue = {\n selectedValue: undefined,\n selectedCategoryValue: undefined,\n onRegister: () => {\n /* noop */\n },\n onUnregister: () => {\n /* noop */\n },\n onSelect: () => {\n /* noop */\n },\n getRegisteredNavItems: () => {\n return {\n registeredNavItems: {},\n };\n },\n onRequestNavCategoryItemToggle() {\n /* noop */\n },\n /**\n * The list of opened panels by index\n */\n openCategories: [],\n\n /**\n * Indicates if Nav supports multiple open Categories at the same time.\n */\n multiple: true,\n\n /**\n * Indicates the vertical density and density of the Nav.\n */\n density: 'medium',\n\n /**\n * By default, the Nav is a single tab stop with only arrow key navigation\n */\n tabbable: false,\n};\n\nconst NavContext = React.createContext<NavContextValue | undefined>(undefined);\n\nexport const NavProvider = NavContext.Provider;\n\nexport const useNavContext_unstable = (): NavContextValue => React.useContext(NavContext) || navContextDefaultValue;\n"],"names":["React","navContextDefaultValue","selectedValue","undefined","selectedCategoryValue","onRegister","onUnregister","onSelect","getRegisteredNavItems","registeredNavItems","onRequestNavCategoryItemToggle","openCategories","multiple","density","tabbable","NavContext","createContext","NavProvider","Provider","useNavContext_unstable","useContext"],"mappings":"AAAA;;;;;;;;;;;;eAgDaiB;;;0BAEAE;;;;;iEAhDU,QAAQ;AAG/B,MAAMlB,yBAA0C;IAC9CC,eAAeC;IACfC,uBAAuBD;IACvBE,YAAY;IACV,QAAQ,GACV;IACAC,cAAc;IACZ,QAAQ,GACV;IACAC,UAAU;IACR,QAAQ,GACV;IACAC,uBAAuB;QACrB,OAAO;YACLC,oBAAoB,CAAC;QACvB;IACF;IACAC;IACE,QAAQ,GACV;IACA;;GAEC,GACDC,gBAAgB,EAAE;IAElB;;GAEC,GACDC,UAAU;IAEV;;GAEC,GACDC,SAAS;IAET;;GAEC,GACDC,UAAU;AACZ;AAEA,MAAMC,2BAAaf,OAAMgB,aAAa,CAA8Bb;AAE7D,MAAMc,cAAcF,WAAWG,QAAQ,CAAC;AAExC,MAAMC,yBAAyB,IAAuBnB,OAAMoB,UAAU,CAACL,eAAed,uBAAuB"}
1
+ {"version":3,"sources":["../../src/components/NavContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { NavContextValue } from './NavContext.types';\n\nconst navContextDefaultValue: NavContextValue = {\n selectedValue: undefined,\n selectedCategoryValue: undefined,\n onRegister: () => {\n /* noop */\n },\n onUnregister: () => {\n /* noop */\n },\n onSelect: () => {\n /* noop */\n },\n getRegisteredNavItems: () => {\n return {\n registeredNavItems: {},\n };\n },\n onRequestNavCategoryItemToggle() {\n /* noop */\n },\n /**\n * The list of opened panels by index\n */\n openCategories: [],\n\n /**\n * Indicates if Nav supports multiple open Categories at the same time.\n */\n multiple: true,\n\n /**\n * Indicates the vertical density and density of the Nav.\n */\n density: 'medium',\n\n /**\n * By default, the Nav is a single tab stop with only arrow key navigation\n */\n tabbable: false,\n};\n\nconst NavContext = React.createContext<NavContextValue | undefined>(undefined);\n\nexport const NavProvider = NavContext.Provider;\n\nexport const useNavContext_unstable = (): NavContextValue => React.useContext(NavContext) || navContextDefaultValue;\n"],"names":["React","navContextDefaultValue","selectedValue","undefined","selectedCategoryValue","onRegister","onUnregister","onSelect","getRegisteredNavItems","registeredNavItems","onRequestNavCategoryItemToggle","openCategories","multiple","density","tabbable","NavContext","createContext","NavProvider","Provider","useNavContext_unstable","useContext"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;iEAEuB,QAAQ;AAG/B,MAAMC,yBAA0C;IAC9CC,eAAeC;IACfC,uBAAuBD;IACvBE,YAAY;IACV,QAAQ,GACV;IACAC,cAAc;IACZ,QAAQ,GACV;IACAC,UAAU;IACR,QAAQ,GACV;IACAC,uBAAuB;QACrB,OAAO;YACLC,oBAAoB,CAAC;QACvB;IACF;IACAC;IACE,QAAQ,GACV;IACA;;GAEC,GACDC,gBAAgB,EAAE;IAElB;;GAEC,GACDC,UAAU;IAEV;;GAEC,GACDC,SAAS;IAET;;GAEC,GACDC,UAAU;AACZ;AAEA,MAAMC,2BAAaf,OAAMgB,aAAa,CAA8Bb;AAE7D,MAAMc,cAAcF,WAAWG,QAAQ,CAAC;AAExC,MAAMC,yBAAyB,IAAuBnB,OAAMoB,UAAU,CAACL,eAAed,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavContext.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { EventHandler } from '@fluentui/react-utilities';\n\nimport type { NavProps, OnNavItemSelectData } from './Nav/Nav.types';\n\nexport type NavContextValue = Pick<\n NavProps,\n 'onNavItemSelect' | 'selectedValue' | 'selectedCategoryValue' | 'density'\n> & {\n /** A callback to allow a navItem to register itself with the navItem list. */\n onRegister: RegisterNavItemEventHandler;\n\n /** A callback to allow a navItem to unregister itself with the navItem list. */\n onUnregister: RegisterNavItemEventHandler;\n /**\n * A callback to allow a navItem to select itself when pressed.\n */\n onSelect: EventHandler<OnNavItemSelectData>;\n /**\n * Gets the registered navItem data along with current and previous selected values.\n */\n getRegisteredNavItems: () => {\n selectedValue?: NavItemValue;\n selectedCategoryValue?: NavItemValue;\n previousSelectedValue?: NavItemValue;\n registeredNavItems: Record<string, NavItemRegisterData>;\n };\n /**\n * Callback used by NavCategoryItem to request a change on it's own opened state\n * Should be used to toggle NavCategoryItem's open state\n */\n onRequestNavCategoryItemToggle: EventHandler<OnNavItemSelectData>;\n\n /**\n * The list of opened panels by index\n */\n openCategories: NavItemValue[];\n\n /**\n * Indicates if Nav supports multiple open Categories at the same time.\n * @default true, indicating that multiple categories can be open at the same time.\n */\n multiple: boolean;\n\n /**\n * Setting this to true enables tab AND arrow navigation.\n * @default false\n */\n tabbable: boolean;\n};\n\n/**\n * Any value that identifies a specific Item.\n */\nexport type NavItemValue = string;\n\n/**\n * Context values used in rendering navItemList.\n */\nexport type NavContextValues = {\n /**\n * The context of the navItem list available to each navItem.\n */\n nav: NavContextValue;\n};\n\nexport type NavItemRegisterData = {\n /**\n * The value of the navItem.\n */\n value: NavItemValue;\n\n /**\n * The reference to the navItem HTML element.\n */\n ref: React.RefObject<HTMLElement | null>;\n};\n\nexport type RegisterNavItemEventHandler = (data: NavItemRegisterData) => void;\n"],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../../src/components/NavContext.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { EventHandler } from '@fluentui/react-utilities';\n\nimport type { NavProps, OnNavItemSelectData } from './Nav/Nav.types';\n\nexport type NavContextValue = Pick<\n NavProps,\n 'onNavItemSelect' | 'selectedValue' | 'selectedCategoryValue' | 'density'\n> & {\n /** A callback to allow a navItem to register itself with the navItem list. */\n onRegister: RegisterNavItemEventHandler;\n\n /** A callback to allow a navItem to unregister itself with the navItem list. */\n onUnregister: RegisterNavItemEventHandler;\n /**\n * A callback to allow a navItem to select itself when pressed.\n */\n onSelect: EventHandler<OnNavItemSelectData>;\n /**\n * Gets the registered navItem data along with current and previous selected values.\n */\n getRegisteredNavItems: () => {\n selectedValue?: NavItemValue;\n selectedCategoryValue?: NavItemValue;\n previousSelectedValue?: NavItemValue;\n registeredNavItems: Record<string, NavItemRegisterData>;\n };\n /**\n * Callback used by NavCategoryItem to request a change on it's own opened state\n * Should be used to toggle NavCategoryItem's open state\n */\n onRequestNavCategoryItemToggle: EventHandler<OnNavItemSelectData>;\n\n /**\n * The list of opened panels by index\n */\n openCategories: NavItemValue[];\n\n /**\n * Indicates if Nav supports multiple open Categories at the same time.\n * @default true, indicating that multiple categories can be open at the same time.\n */\n multiple: boolean;\n\n /**\n * Setting this to true enables tab AND arrow navigation.\n * @default false\n */\n tabbable: boolean;\n};\n\n/**\n * Any value that identifies a specific Item.\n */\nexport type NavItemValue = string;\n\n/**\n * Context values used in rendering navItemList.\n */\nexport type NavContextValues = {\n /**\n * The context of the navItem list available to each navItem.\n */\n nav: NavContextValue;\n};\n\nexport type NavItemRegisterData = {\n /**\n * The value of the navItem.\n */\n value: NavItemValue;\n\n /**\n * The reference to the navItem HTML element.\n */\n ref: React.RefObject<HTMLElement | null>;\n};\n\nexport type RegisterNavItemEventHandler = (data: NavItemRegisterData) => void;\n"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDivider/NavDivider.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderDivider_unstable } from '@fluentui/react-divider';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDivider_unstable } from './useNavDivider';\nimport { useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\nimport type { NavDividerProps } from './NavDivider.types';\n\n/**\n * NavDivider component - a divider used within navigation components to separate items.\n */\nexport const NavDivider: ForwardRefComponent<NavDividerProps> = React.forwardRef((props, ref) => {\n const state = useNavDivider_unstable(props, ref);\n\n useNavDividerStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);\n\n return renderDivider_unstable(state);\n});\n\nNavDivider.displayName = 'NavDivider';\n"],"names":["React","renderDivider_unstable","useCustomStyleHook_unstable","useNavDivider_unstable","useNavDividerStyles_unstable","NavDivider","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;8BACQ,0BAA0B;qCAErB,kCAAkC;+BAEvC,qBAAkB;2CACZ,kCAA+B;AAMrE,MAAMK,aAAAA,WAAAA,GAAmDL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,YAAQN,qCAAAA,EAAuBI,OAAOC;QAE5CJ,uDAAAA,EAA6BK;QAC7BP,gDAAAA,EAA4B,gCAAgCO;IAE5D,WAAOR,oCAAAA,EAAuBQ;AAChC,GAAG;AAEHJ,WAAWK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/NavDivider/NavDivider.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderDivider_unstable } from '@fluentui/react-divider';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDivider_unstable } from './useNavDivider';\nimport { useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\nimport type { NavDividerProps } from './NavDivider.types';\n\n/**\n * NavDivider component - a divider used within navigation components to separate items.\n */\nexport const NavDivider: ForwardRefComponent<NavDividerProps> = React.forwardRef((props, ref) => {\n const state = useNavDivider_unstable(props, ref);\n\n useNavDividerStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);\n\n return renderDivider_unstable(state);\n});\n\nNavDivider.displayName = 'NavDivider';\n"],"names":["React","renderDivider_unstable","useCustomStyleHook_unstable","useNavDivider_unstable","useNavDividerStyles_unstable","NavDivider","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;8BACQ,0BAA0B;qCAErB,kCAAkC;+BAEvC,qBAAkB;2CACZ,kCAA+B;AAMrE,MAAMK,aAAAA,WAAAA,GAAmDL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,YAAQN,qCAAAA,EAAuBI,OAAOC;QAE5CJ,uDAAAA,EAA6BK;QAC7BP,gDAAAA,EAA4B,gCAAgCO;IAE5D,WAAOR,oCAAAA,EAAuBQ;AAChC,GAAG;AAEHJ,WAAWK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDivider/NavDivider.types.ts"],"sourcesContent":["import type { DividerProps, DividerState } from '@fluentui/react-divider';\n\n/**\n * NavDivider Props\n */\nexport type NavDividerProps = DividerProps;\n\n/**\n * State used in rendering NavDivider\n */\nexport type NavDividerState = DividerState;\n"],"names":[],"mappings":"AAOA;;CAEC,GACD,WAA2C"}
1
+ {"version":3,"sources":["../../../src/components/NavDivider/NavDivider.types.ts"],"sourcesContent":["import type { DividerProps, DividerState } from '@fluentui/react-divider';\n\n/**\n * NavDivider Props\n */\nexport type NavDividerProps = DividerProps;\n\n/**\n * State used in rendering NavDivider\n */\nexport type NavDividerState = DividerState;\n"],"names":[],"mappings":"AAOA;;CAEC,GACD,WAA2C"}
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- NavDivider: function() {
12
+ get NavDivider () {
13
13
  return _NavDivider.NavDivider;
14
14
  },
15
- navDividerClassNames: function() {
15
+ get navDividerClassNames () {
16
16
  return _useNavDividerStylesstyles.navDividerClassNames;
17
17
  },
18
- useNavDividerStyles_unstable: function() {
18
+ get useNavDividerStyles_unstable () {
19
19
  return _useNavDividerStylesstyles.useNavDividerStyles_unstable;
20
20
  },
21
- useNavDivider_unstable: function() {
21
+ get useNavDivider_unstable () {
22
22
  return _useNavDivider.useNavDivider_unstable;
23
23
  }
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDivider/index.ts"],"sourcesContent":["export { NavDivider } from './NavDivider';\nexport type { NavDividerProps, NavDividerState } from './NavDivider.types';\nexport { useNavDivider_unstable } from './useNavDivider';\nexport { navDividerClassNames, useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\n"],"names":["NavDivider","useNavDivider_unstable","navDividerClassNames","useNavDividerStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,sBAAU;;;eAGVE,+CAAoB;;;eAAEC,uDAA4B;;;eADlDF,qCAAsB;;;4BAFJ,kBAAe;+BAEH,qBAAkB;2CACU,kCAA+B"}
1
+ {"version":3,"sources":["../../../src/components/NavDivider/index.ts"],"sourcesContent":["export { NavDivider } from './NavDivider';\nexport type { NavDividerProps, NavDividerState } from './NavDivider.types';\nexport { useNavDivider_unstable } from './useNavDivider';\nexport { navDividerClassNames, useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\n"],"names":["NavDivider","useNavDivider_unstable","navDividerClassNames","useNavDividerStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,sBAAU;;;eAGVE,+CAAoB;;;eAAEC,uDAA4B;;;eADlDF,qCAAsB;;;4BAFJ,kBAAe;+BAEH,qBAAkB;2CACU,kCAA+B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDivider/useNavDivider.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { NavDividerProps, NavDividerState } from './NavDivider.types';\nimport { useDivider_unstable } from '@fluentui/react-divider';\n\n/**\n * Create the state required to render NavDivider.\n *\n * The returned state can be modified with hooks such as useNavDividerStyles_unstable,\n * before being passed to renderNavDivider_unstable.\n *\n * @param props - props from this instance of NavDivider\n * @param ref - reference to root HTMLDivElement of NavDivider\n */\nexport const useNavDivider_unstable = (props: NavDividerProps, ref: React.Ref<HTMLElement>): NavDividerState => {\n return useDivider_unstable({ appearance: 'strong', ...props }, ref);\n};\n"],"names":["useDivider_unstable","useNavDivider_unstable","props","ref","appearance"],"mappings":"AAAA;;;;;;;;;;;8BAIoC,0BAA0B;AAWvD,MAAMC,yBAAyB,CAACC,OAAwBC;IAC7D,WAAOH,iCAAAA,EAAoB;QAAEI,YAAY;QAAU,GAAGF,KAAK;IAAC,GAAGC;AACjE,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavDivider/useNavDivider.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { NavDividerProps, NavDividerState } from './NavDivider.types';\nimport { useDivider_unstable } from '@fluentui/react-divider';\n\n/**\n * Create the state required to render NavDivider.\n *\n * The returned state can be modified with hooks such as useNavDividerStyles_unstable,\n * before being passed to renderNavDivider_unstable.\n *\n * @param props - props from this instance of NavDivider\n * @param ref - reference to root HTMLDivElement of NavDivider\n */\nexport const useNavDivider_unstable = (props: NavDividerProps, ref: React.Ref<HTMLElement>): NavDividerState => {\n return useDivider_unstable({ appearance: 'strong', ...props }, ref);\n};\n"],"names":["useDivider_unstable","useNavDivider_unstable","props","ref","appearance"],"mappings":"AAAA;;;;;;;;;;;8BAIoC,0BAA0B;AAWvD,MAAMC,yBAAyB,CAACC,OAAwBC;IAC7D,WAAOH,iCAAAA,EAAoB;QAAEI,YAAY;QAAU,GAAGF,KAAK;IAAC,GAAGC;AACjE,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- navDividerClassNames: function() {
13
+ get navDividerClassNames () {
14
14
  return navDividerClassNames;
15
15
  },
16
- useNavDividerStyles_unstable: function() {
16
+ get useNavDividerStyles_unstable () {
17
17
  return useNavDividerStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useNavDividerStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { useDividerStyles_unstable } from \"@fluentui/react-divider\";\nexport const navDividerClassNames = {\n root: 'fui-NavDivider',\n wrapper: 'fui-NavDivider__wrapper'\n};\nconst useStyles = makeStyles({\n root: {\n flexGrow: 0,\n marginTop: '4px',\n marginBottom: '4px'\n }\n});\n/**\n * Apply styling to the NavDivider slots based on the state\n */ export const useNavDividerStyles_unstable = (state)=>{\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navDividerClassNames.root, styles.root, state.root.className);\n // eslint-disable-next-line react-hooks/immutability\n state.wrapper.className = mergeClasses(navDividerClassNames.wrapper, state.wrapper.className);\n useDividerStyles_unstable(state);\n return state;\n};\n"],"names":["__styles","mergeClasses","useDividerStyles_unstable","navDividerClassNames","root","wrapper","useStyles","Bh6795r","B6of3ja","jrapky","d","useNavDividerStyles_unstable","state","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAGCG,oBAAoB;;;gCAaY;;;;uBAfJ,gBAAgB;8BACf,yBAAyB;AAC5D,6BAA6B;IAChCC,IAAI,EAAE,gBAAgB;IACtBC,OAAO,EAAE;AACb,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGN,eAAA,EAAA;IAAAI,IAAA,EAAA;QAAAG,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAMjB,CAAC;AAGS,MAAMC,gCAAgCC,KAAK,IAAG;IACrD,MAAMC,MAAM,GAAGP,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAM,KAAK,CAACR,IAAI,CAACU,SAAS,OAAGb,mBAAY,EAACE,oBAAoB,CAACC,IAAI,EAAES,MAAM,CAACT,IAAI,EAAEQ,KAAK,CAACR,IAAI,CAACU,SAAS,CAAC;IACjG,oDAAA;IACAF,KAAK,CAACP,OAAO,CAACS,SAAS,OAAGb,mBAAY,EAACE,oBAAoB,CAACE,OAAO,EAAEO,KAAK,CAACP,OAAO,CAACS,SAAS,CAAC;QAC7FZ,uCAAyB,EAACU,KAAK,CAAC;IAChC,OAAOA,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useNavDividerStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { useDividerStyles_unstable } from \"@fluentui/react-divider\";\nexport const navDividerClassNames = {\n root: 'fui-NavDivider',\n wrapper: 'fui-NavDivider__wrapper'\n};\nconst useStyles = makeStyles({\n root: {\n flexGrow: 0,\n marginTop: '4px',\n marginBottom: '4px'\n }\n});\n/**\n * Apply styling to the NavDivider slots based on the state\n */ export const useNavDividerStyles_unstable = (state)=>{\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navDividerClassNames.root, styles.root, state.root.className);\n // eslint-disable-next-line react-hooks/immutability\n state.wrapper.className = mergeClasses(navDividerClassNames.wrapper, state.wrapper.className);\n useDividerStyles_unstable(state);\n return state;\n};\n"],"names":["__styles","mergeClasses","useDividerStyles_unstable","navDividerClassNames","root","wrapper","useStyles","Bh6795r","B6of3ja","jrapky","d","useNavDividerStyles_unstable","state","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCG,oBAAoB;;;;eAahBQ,4BAA4B;;;uBAfJ,gBAAgB;8BACf,yBAAyB;AAC5D,6BAA6B;IAChCP,IAAI,EAAE,gBAAgB;IACtBC,OAAO,EAAE;AACb,CAAC;AACD,MAAMC,SAAS,GAAA,WAAA,OAAGN,eAAA,EAAA;IAAAI,IAAA,EAAA;QAAAG,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAMjB,CAAC;AAGS,sCAAsCE,KAAK,IAAG;IACrD,MAAMC,MAAM,GAAGP,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAM,KAAK,CAACR,IAAI,CAACU,SAAS,OAAGb,mBAAY,EAACE,oBAAoB,CAACC,IAAI,EAAES,MAAM,CAACT,IAAI,EAAEQ,KAAK,CAACR,IAAI,CAACU,SAAS,CAAC;IACjG,oDAAA;IACAF,KAAK,CAACP,OAAO,CAACS,SAAS,OAAGb,mBAAY,EAACE,oBAAoB,CAACE,OAAO,EAAEO,KAAK,CAACP,OAAO,CAACS,SAAS,CAAC;QAC7FZ,uCAAyB,EAACU,KAAK,CAAC;IAChC,OAAOA,KAAK;AAChB,CAAC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- navDividerClassNames: function() {
13
+ get navDividerClassNames () {
14
14
  return navDividerClassNames;
15
15
  },
16
- useNavDividerStyles_unstable: function() {
16
+ get useNavDividerStyles_unstable () {
17
17
  return useNavDividerStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDivider/useNavDividerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { useDividerStyles_unstable, type DividerSlots } from '@fluentui/react-divider';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { NavDividerState } from './NavDivider.types';\n\nexport const navDividerClassNames: SlotClassNames<DividerSlots> = {\n root: 'fui-NavDivider',\n wrapper: 'fui-NavDivider__wrapper',\n};\n\nconst useStyles = makeStyles({\n root: {\n flexGrow: 0,\n marginTop: '4px',\n marginBottom: '4px',\n },\n});\n\n/**\n * Apply styling to the NavDivider slots based on the state\n */\nexport const useNavDividerStyles_unstable = (state: NavDividerState): NavDividerState => {\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navDividerClassNames.root, styles.root, state.root.className);\n // eslint-disable-next-line react-hooks/immutability\n state.wrapper.className = mergeClasses(navDividerClassNames.wrapper, state.wrapper.className);\n\n useDividerStyles_unstable(state);\n return state;\n};\n"],"names":["makeStyles","mergeClasses","useDividerStyles_unstable","navDividerClassNames","root","wrapper","useStyles","flexGrow","marginTop","marginBottom","useNavDividerStyles_unstable","state","styles","className"],"mappings":"AAAA;;;;;;;;;;;;IAOaG,oBAAAA;;;IAgBAO,4BAAAA;;;;uBArB4B,iBAAiB;8BACG,0BAA0B;AAIhF,6BAA2D;IAChEN,MAAM;IACNC,SAAS;AACX,EAAE;AAEF,MAAMC,gBAAYN,iBAAAA,EAAW;IAC3BI,MAAM;QACJG,UAAU;QACVC,WAAW;QACXC,cAAc;IAChB;AACF;AAKO,qCAAqC,CAACE;IAC3C,MAAMC,SAASN;IAEf,oDAAoD;IACpDK,MAAMP,IAAI,CAACS,SAAS,OAAGZ,mBAAAA,EAAaE,qBAAqBC,IAAI,EAAEQ,OAAOR,IAAI,EAAEO,MAAMP,IAAI,CAACS,SAAS;IAChG,oDAAoD;IACpDF,MAAMN,OAAO,CAACQ,SAAS,OAAGZ,mBAAAA,EAAaE,qBAAqBE,OAAO,EAAEM,MAAMN,OAAO,CAACQ,SAAS;QAE5FX,uCAAAA,EAA0BS;IAC1B,OAAOA;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavDivider/useNavDividerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { useDividerStyles_unstable, type DividerSlots } from '@fluentui/react-divider';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { NavDividerState } from './NavDivider.types';\n\nexport const navDividerClassNames: SlotClassNames<DividerSlots> = {\n root: 'fui-NavDivider',\n wrapper: 'fui-NavDivider__wrapper',\n};\n\nconst useStyles = makeStyles({\n root: {\n flexGrow: 0,\n marginTop: '4px',\n marginBottom: '4px',\n },\n});\n\n/**\n * Apply styling to the NavDivider slots based on the state\n */\nexport const useNavDividerStyles_unstable = (state: NavDividerState): NavDividerState => {\n const styles = useStyles();\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navDividerClassNames.root, styles.root, state.root.className);\n // eslint-disable-next-line react-hooks/immutability\n state.wrapper.className = mergeClasses(navDividerClassNames.wrapper, state.wrapper.className);\n\n useDividerStyles_unstable(state);\n return state;\n};\n"],"names":["makeStyles","mergeClasses","useDividerStyles_unstable","navDividerClassNames","root","wrapper","useStyles","flexGrow","marginTop","marginBottom","useNavDividerStyles_unstable","state","styles","className"],"mappings":"AAAA;;;;;;;;;;;;QAOaG;;;;eAgBAO;;;uBArB4B,iBAAiB;8BACG,0BAA0B;AAIhF,6BAA2D;IAChEN,MAAM;IACNC,SAAS;AACX,EAAE;AAEF,MAAMC,gBAAYN,iBAAAA,EAAW;IAC3BI,MAAM;QACJG,UAAU;QACVC,WAAW;QACXC,cAAc;IAChB;AACF;AAKO,qCAAqC,CAACE;IAC3C,MAAMC,SAASN;IAEf,oDAAoD;IACpDK,MAAMP,IAAI,CAACS,SAAS,GAAGZ,uBAAAA,EAAaE,qBAAqBC,IAAI,EAAEQ,OAAOR,IAAI,EAAEO,MAAMP,IAAI,CAACS,SAAS;IAChG,oDAAoD;IACpDF,MAAMN,OAAO,CAACQ,SAAS,OAAGZ,mBAAAA,EAAaE,qBAAqBE,OAAO,EAAEM,MAAMN,OAAO,CAACQ,SAAS;QAE5FX,uCAAAA,EAA0BS;IAC1B,OAAOA;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/NavDrawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { useNavDrawer_unstable } from './useNavDrawer';\nimport { renderNavDrawer_unstable } from './renderNavDrawer';\nimport { useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport type { NavState } from '../Nav/Nav.types';\nimport type { NavDrawerProps } from './NavDrawer.types';\n\n/**\n * NavDrawer component - a component that provides a drawer for navigation items.\n */\nexport const NavDrawer: ForwardRefComponent<NavDrawerProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawer_unstable(props, ref);\n const contextValues = useNavContextValues_unstable(state as NavState);\n\n useNavDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);\n\n return renderNavDrawer_unstable(state, contextValues);\n});\n\nNavDrawer.displayName = 'NavDrawer';\n"],"names":["React","useCustomStyleHook_unstable","useNavDrawer_unstable","renderNavDrawer_unstable","useNavDrawerStyles_unstable","useNavContextValues_unstable","NavDrawer","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;qCACa,kCAAkC;8BAGxC,oBAAiB;iCACd,uBAAoB;0CACjB,iCAA8B;qCAC7B,4BAAyB;AAO/D,MAAMM,YAAAA,WAAAA,GAAiDN,OAAMO,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,YAAQR,mCAAAA,EAAsBM,OAAOC;IAC3C,MAAME,oBAAgBN,iDAAAA,EAA6BK;QAEnDN,qDAAAA,EAA4BM;QAC5BT,gDAAAA,EAA4B,+BAA+BS;IAE3D,WAAOP,yCAAAA,EAAyBO,OAAOC;AACzC,GAAG;AAEHL,UAAUM,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawer/NavDrawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { useNavDrawer_unstable } from './useNavDrawer';\nimport { renderNavDrawer_unstable } from './renderNavDrawer';\nimport { useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport type { NavState } from '../Nav/Nav.types';\nimport type { NavDrawerProps } from './NavDrawer.types';\n\n/**\n * NavDrawer component - a component that provides a drawer for navigation items.\n */\nexport const NavDrawer: ForwardRefComponent<NavDrawerProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawer_unstable(props, ref);\n const contextValues = useNavContextValues_unstable(state as NavState);\n\n useNavDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);\n\n return renderNavDrawer_unstable(state, contextValues);\n});\n\nNavDrawer.displayName = 'NavDrawer';\n"],"names":["React","useCustomStyleHook_unstable","useNavDrawer_unstable","renderNavDrawer_unstable","useNavDrawerStyles_unstable","useNavContextValues_unstable","NavDrawer","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;qCACa,kCAAkC;8BAGxC,oBAAiB;iCACd,uBAAoB;0CACjB,iCAA8B;qCAC7B,4BAAyB;AAO/D,MAAMM,YAAAA,WAAAA,GAAiDN,OAAMO,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,YAAQR,mCAAAA,EAAsBM,OAAOC;IAC3C,MAAME,oBAAgBN,iDAAAA,EAA6BK;QAEnDN,qDAAAA,EAA4BM;QAC5BT,gDAAAA,EAA4B,+BAA+BS;IAE3D,WAAOP,yCAAAA,EAAyBO,OAAOC;AACzC,GAAG;AAEHL,UAAUM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/NavDrawer.types.ts"],"sourcesContent":["import type { DrawerProps, DrawerSlots, DrawerState } from '@fluentui/react-drawer';\nimport type { ComponentProps } from '@fluentui/react-utilities';\nimport type { NavProps } from '../Nav/Nav.types';\nimport type { NavContextValue } from '../NavContext.types';\n\n/**\n * NavDrawer slots\n */\nexport type NavDrawerSlots = DrawerSlots;\n\n/**\n * NavDrawer Props\n */\nexport type NavDrawerProps = ComponentProps<NavDrawerSlots> &\n DrawerProps &\n NavProps & {\n /**\n * The component uses arrow navigation by default.\n * Setting this to true enables tab AND arrow navigation.\n * @default false\n */\n tabbable?: boolean;\n };\n\n/**\n * State used in rendering NavDrawer\n */\nexport type NavDrawerState = DrawerState &\n NavContextValue & {\n /**\n * Analagous to size from DrawerBaseProps.\n * Intended to be left unset in most cases.\n * If left unset, it defaults to 260px.\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n };\n"],"names":[],"mappings":"AAwBA;;CAEC,GACD,WAQI"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawer/NavDrawer.types.ts"],"sourcesContent":["import type { DrawerProps, DrawerSlots, DrawerState } from '@fluentui/react-drawer';\nimport type { ComponentProps } from '@fluentui/react-utilities';\nimport type { NavProps } from '../Nav/Nav.types';\nimport type { NavContextValue } from '../NavContext.types';\n\n/**\n * NavDrawer slots\n */\nexport type NavDrawerSlots = DrawerSlots;\n\n/**\n * NavDrawer Props\n */\nexport type NavDrawerProps = ComponentProps<NavDrawerSlots> &\n DrawerProps &\n NavProps & {\n /**\n * The component uses arrow navigation by default.\n * Setting this to true enables tab AND arrow navigation.\n * @default false\n */\n tabbable?: boolean;\n };\n\n/**\n * State used in rendering NavDrawer\n */\nexport type NavDrawerState = DrawerState &\n NavContextValue & {\n /**\n * Analagous to size from DrawerBaseProps.\n * Intended to be left unset in most cases.\n * If left unset, it defaults to 260px.\n */\n size?: 'small' | 'medium' | 'large' | 'full';\n };\n"],"names":[],"mappings":"AAwBA;;CAEC,GACD,WAQI"}
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- NavDrawer: function() {
12
+ get NavDrawer () {
13
13
  return _NavDrawer.NavDrawer;
14
14
  },
15
- navDrawerClassNames: function() {
15
+ get navDrawerClassNames () {
16
16
  return _useNavDrawerStylesstyles.navDrawerClassNames;
17
17
  },
18
- renderNavDrawer_unstable: function() {
18
+ get renderNavDrawer_unstable () {
19
19
  return _renderNavDrawer.renderNavDrawer_unstable;
20
20
  },
21
- useNavDrawerStyles_unstable: function() {
21
+ get useNavDrawerStyles_unstable () {
22
22
  return _useNavDrawerStylesstyles.useNavDrawerStyles_unstable;
23
23
  },
24
- useNavDrawer_unstable: function() {
24
+ get useNavDrawer_unstable () {
25
25
  return _useNavDrawer.useNavDrawer_unstable;
26
26
  }
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/index.ts"],"sourcesContent":["export { NavDrawer } from './NavDrawer';\nexport type { NavDrawerProps, NavDrawerSlots, NavDrawerState } from './NavDrawer.types';\nexport { renderNavDrawer_unstable } from './renderNavDrawer';\nexport { useNavDrawer_unstable } from './useNavDrawer';\nexport { navDrawerClassNames, useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\n"],"names":["NavDrawer","renderNavDrawer_unstable","useNavDrawer_unstable","navDrawerClassNames","useNavDrawerStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,oBAAS;;;eAITG,6CAAmB;;;eAFnBF,yCAAwB;;;eAEHG,qDAA2B;;;eADhDF,mCAAqB;;;2BAHJ,iBAAc;iCAEC,uBAAoB;8BACvB,oBAAiB;0CACU,iCAA8B"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawer/index.ts"],"sourcesContent":["export { NavDrawer } from './NavDrawer';\nexport type { NavDrawerProps, NavDrawerSlots, NavDrawerState } from './NavDrawer.types';\nexport { renderNavDrawer_unstable } from './renderNavDrawer';\nexport { useNavDrawer_unstable } from './useNavDrawer';\nexport { navDrawerClassNames, useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\n"],"names":["NavDrawer","renderNavDrawer_unstable","useNavDrawer_unstable","navDrawerClassNames","useNavDrawerStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,oBAAS;;;eAITG,6CAAmB;;;eAFnBF,yCAAwB;;;eAEHG,qDAA2B;;;eADhDF,mCAAqB;;;2BAHJ,iBAAc;iCAEC,uBAAoB;8BACvB,oBAAiB;0CACU,iCAA8B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/renderNavDrawer.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { NavProvider } from '../NavContext';\nimport type { NavContextValues } from '../NavContext.types';\nimport type { NavDrawerSlots, NavDrawerState } from './NavDrawer.types';\n\nexport const renderNavDrawer_unstable = (state: NavDrawerState, contextValues: NavContextValues): JSXElement => {\n assertSlots<NavDrawerSlots>(state);\n\n return (\n <NavProvider value={contextValues.nav}>\n <state.root />\n </NavProvider>\n );\n};\n"],"names":["assertSlots","NavProvider","renderNavDrawer_unstable","state","contextValues","value","nav","root"],"mappings":";;;;+BASaE;;;;;;4BARb,gDAAiD;gCAErB,4BAA4B;4BAE5B,mBAAgB;AAIrC,iCAAiC,CAACC,OAAuBC;QAC9DJ,2BAAAA,EAA4BG;IAE5B,OAAA,WAAA,OACE,eAAA,EAACF,uBAAAA,EAAAA;QAAYI,OAAOD,cAAcE,GAAG;kBACnC,WAAA,OAAA,eAAA,EAACH,MAAMI,IAAI,EAAA,CAAA;;AAGjB,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawer/renderNavDrawer.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { NavProvider } from '../NavContext';\nimport type { NavContextValues } from '../NavContext.types';\nimport type { NavDrawerSlots, NavDrawerState } from './NavDrawer.types';\n\nexport const renderNavDrawer_unstable = (state: NavDrawerState, contextValues: NavContextValues): JSXElement => {\n assertSlots<NavDrawerSlots>(state);\n\n return (\n <NavProvider value={contextValues.nav}>\n <state.root />\n </NavProvider>\n );\n};\n"],"names":["assertSlots","NavProvider","renderNavDrawer_unstable","state","contextValues","value","nav","root"],"mappings":";;;;+BASaE;;;;;;;gCARb,gDAAiD,GAEjD,SAASF,WAAW,QAAQ,4BAA4B;4BAE5B,mBAAgB;AAIrC,iCAAiC,CAACG,OAAuBC;QAC9DJ,2BAAAA,EAA4BG;IAE5B,OAAA,WAAA,OACE,eAAA,EAACF,uBAAAA,EAAAA;QAAYI,OAAOD,cAAcE,GAAG;kBACnC,WAAA,OAAA,eAAA,EAACH,MAAMI,IAAI,EAAA,CAAA;;AAGjB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/useNavDrawer.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { DrawerProps } from '@fluentui/react-drawer';\nimport { Drawer } from '@fluentui/react-drawer';\nimport type { RefAttributes } from '@fluentui/react-utilities';\nimport { slot } from '@fluentui/react-utilities';\n\nimport { useNav_unstable } from '../Nav/useNav';\nimport type { NavDrawerProps, NavDrawerState } from './NavDrawer.types';\n\n/**\n * Create the state required to render NavDrawer.\n *\n * The returned state can be modified with hooks such as useNavDrawerStyles_unstable,\n * before being passed to renderNavDrawer_unstable.\n *\n * @param props - props from this instance of NavDrawer\n * @param ref - reference to root HTMLDivElement of NavDrawer\n */\nexport const useNavDrawer_unstable = (props: NavDrawerProps, ref: React.Ref<HTMLDivElement>): NavDrawerState => {\n const { size = undefined, tabbable = false } = props;\n\n const navState = useNav_unstable(props, ref);\n\n return {\n ...navState,\n size,\n tabbable,\n components: {\n // TODO: remove once React v18 slot API is modified\n // this is a problem with the lack of support for union types on React v18\n // ComponentState is using React.ComponentType which will try to infer propType\n // propTypes WeakValidator signature will break distributive unions making this type invalid\n root: Drawer as React.FC<DrawerProps>,\n },\n\n root: slot.always(\n { ref, role: 'navigation', ...props },\n {\n // TODO: remove once React v18 slot API is modified\n // this is a problem with the lack of support for union types on React v18\n // ComponentState is using React.ComponentType which will try to infer propType\n // propTypes WeakValidator signature will break distributive unions making this type invalid\n elementType: Drawer as React.FC<DrawerProps & RefAttributes<HTMLDivElement>>,\n },\n ),\n };\n};\n"],"names":["Drawer","slot","useNav_unstable","useNavDrawer_unstable","props","ref","size","undefined","tabbable","navState","components","root","always","role","elementType"],"mappings":"AAAA;;;;;+BAoBaG;;;;;;6BAhBU,yBAAyB;gCAE3B,4BAA4B;wBAEjB,mBAAgB;AAYzC,8BAA8B,CAACC,OAAuBC;IAC3D,MAAM,EAAEC,OAAOC,SAAS,EAAEC,WAAW,KAAK,EAAE,GAAGJ;IAE/C,MAAMK,eAAWP,uBAAAA,EAAgBE,OAAOC;IAExC,OAAO;QACL,GAAGI,QAAQ;QACXH;QACAE;QACAE,YAAY;YACV,mDAAmD;YACnD,0EAA0E;YAC1E,+EAA+E;YAC/E,4FAA4F;YAC5FC,MAAMX,mBAAAA;QACR;QAEAW,MAAMV,oBAAAA,CAAKW,MAAM,CACf;YAAEP;YAAKQ,MAAM;YAAc,GAAGT,KAAK;QAAC,GACpC;YACE,mDAAmD;YACnD,0EAA0E;YAC1E,+EAA+E;YAC/E,4FAA4F;YAC5FU,aAAad,mBAAAA;QACf;IAEJ;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawer/useNavDrawer.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport type { DrawerProps } from '@fluentui/react-drawer';\nimport { Drawer } from '@fluentui/react-drawer';\nimport type { RefAttributes } from '@fluentui/react-utilities';\nimport { slot } from '@fluentui/react-utilities';\n\nimport { useNav_unstable } from '../Nav/useNav';\nimport type { NavDrawerProps, NavDrawerState } from './NavDrawer.types';\n\n/**\n * Create the state required to render NavDrawer.\n *\n * The returned state can be modified with hooks such as useNavDrawerStyles_unstable,\n * before being passed to renderNavDrawer_unstable.\n *\n * @param props - props from this instance of NavDrawer\n * @param ref - reference to root HTMLDivElement of NavDrawer\n */\nexport const useNavDrawer_unstable = (props: NavDrawerProps, ref: React.Ref<HTMLDivElement>): NavDrawerState => {\n const { size = undefined, tabbable = false } = props;\n\n const navState = useNav_unstable(props, ref);\n\n return {\n ...navState,\n size,\n tabbable,\n components: {\n // TODO: remove once React v18 slot API is modified\n // this is a problem with the lack of support for union types on React v18\n // ComponentState is using React.ComponentType which will try to infer propType\n // propTypes WeakValidator signature will break distributive unions making this type invalid\n root: Drawer as React.FC<DrawerProps>,\n },\n\n root: slot.always(\n { ref, role: 'navigation', ...props },\n {\n // TODO: remove once React v18 slot API is modified\n // this is a problem with the lack of support for union types on React v18\n // ComponentState is using React.ComponentType which will try to infer propType\n // propTypes WeakValidator signature will break distributive unions making this type invalid\n elementType: Drawer as React.FC<DrawerProps & RefAttributes<HTMLDivElement>>,\n },\n ),\n };\n};\n"],"names":["Drawer","slot","useNav_unstable","useNavDrawer_unstable","props","ref","size","undefined","tabbable","navState","components","root","always","role","elementType"],"mappings":"AAAA;;;;;+BAoBaG;;;;;;6BAhBU,yBAAyB;gCAE3B,4BAA4B;wBAEjB,mBAAgB;AAYzC,8BAA8B,CAACC,OAAuBC;IAC3D,MAAM,EAAEC,OAAOC,SAAS,EAAEC,WAAW,KAAK,EAAE,GAAGJ;IAE/C,MAAMK,eAAWP,uBAAAA,EAAgBE,OAAOC;IAExC,OAAO;QACL,GAAGI,QAAQ;QACXH;QACAE;QACAE,YAAY;YACV,mDAAmD;YACnD,0EAA0E;YAC1E,+EAA+E;YAC/E,4FAA4F;YAC5FC,MAAMX,mBAAAA;QACR;QAEAW,MAAMV,oBAAAA,CAAKW,MAAM,CACf;YAAEP;YAAKQ,MAAM;YAAc,GAAGT,KAAK;QAAC,GACpC;YACE,mDAAmD;YACnD,0EAA0E;YAC1E,+EAA+E;YAC/E,4FAA4F;YAC5FU,aAAad,mBAAAA;QACf;IAEJ;AACF,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- navDrawerClassNames: function() {
13
+ get navDrawerClassNames () {
14
14
  return navDrawerClassNames;
15
15
  },
16
- useNavDrawerStyles_unstable: function() {
16
+ get useNavDrawerStyles_unstable () {
17
17
  return useNavDrawerStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useNavDrawerStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { navItemTokens } from \"../sharedNavStyles.styles.js\";\nexport const navDrawerClassNames = {\n root: 'fui-NavDrawer'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n backgroundColor: navItemTokens.backgroundColor,\n alignItems: 'unset'\n },\n // seperate style so it can be applied conditionally\n // if size is not set, use default width from the token.\n defaultWidth: {\n width: `${navItemTokens.defaultDrawerWidth}px`\n }\n});\n/**\n * Apply styling to the NavDrawer slots based on the state\n */ export const useNavDrawerStyles_unstable = (state)=>{\n const { size } = state;\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navDrawerClassNames.root, styles.root, !size && styles.defaultWidth, state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","navItemTokens","navDrawerClassNames","root","useStyles","De3pzq","Bt984gj","defaultWidth","a9b677","d","useNavDrawerStyles_unstable","state","size","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAGCG,mBAAmB;;;+BAkBY;eAA3BQ;;;uBApBwB,gBAAgB;AAElD,4BAA4B;IAC/BP,IAAI,EAAE;AACV,CAAC;AACD;;CAEA,GAAI,MAAMC,SAAS,GAAA,WAAA,OAAGL,eAAA,EAAA;IAAAI,IAAA,EAAA;QAAAE,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,YAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAUrB,CAAC;AAGS,qCAAqCE,KAAK,IAAG;IACpD,MAAM,EAAEC,IAAAA,EAAM,GAAGD,KAAK;IACtB,MAAME,MAAM,GAAGT,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAO,KAAK,CAACR,IAAI,CAACW,SAAS,OAAGd,mBAAY,EAACE,mBAAmB,CAACC,IAAI,EAAEU,MAAM,CAACV,IAAI,EAAE,CAACS,IAAI,IAAIC,MAAM,CAACN,YAAY,EAAEI,KAAK,CAACR,IAAI,CAACW,SAAS,CAAC;IAC9H,OAAOH,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useNavDrawerStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { navItemTokens } from \"../sharedNavStyles.styles.js\";\nexport const navDrawerClassNames = {\n root: 'fui-NavDrawer'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n backgroundColor: navItemTokens.backgroundColor,\n alignItems: 'unset'\n },\n // seperate style so it can be applied conditionally\n // if size is not set, use default width from the token.\n defaultWidth: {\n width: `${navItemTokens.defaultDrawerWidth}px`\n }\n});\n/**\n * Apply styling to the NavDrawer slots based on the state\n */ export const useNavDrawerStyles_unstable = (state)=>{\n const { size } = state;\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(navDrawerClassNames.root, styles.root, !size && styles.defaultWidth, state.root.className);\n return state;\n};\n"],"names":["__styles","mergeClasses","navItemTokens","navDrawerClassNames","root","useStyles","De3pzq","Bt984gj","defaultWidth","a9b677","d","useNavDrawerStyles_unstable","state","size","styles","className"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCG,mBAAmB;;;QAkBfQ,2BAA2B;;;;uBApBH,gBAAgB;AAElD,4BAA4B;IAC/BP,IAAI,EAAE;AACV,CAAC;AACD;;CAEA,GAAI,MAAMC,SAAS,GAAA,WAAA,OAAGL,eAAA,EAAA;IAAAI,IAAA,EAAA;QAAAE,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,YAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAUrB,CAAC;AAGS,qCAAqCE,KAAK,IAAG;IACpD,MAAM,EAAEC,IAAAA,EAAM,GAAGD,KAAK;IACtB,MAAME,MAAM,GAAGT,SAAS,CAAC,CAAC;IAC1B,oDAAA;IACAO,KAAK,CAACR,IAAI,CAACW,SAAS,OAAGd,mBAAY,EAACE,mBAAmB,CAACC,IAAI,EAAEU,MAAM,CAACV,IAAI,EAAE,CAACS,IAAI,IAAIC,MAAM,CAACN,YAAY,EAAEI,KAAK,CAACR,IAAI,CAACW,SAAS,CAAC;IAC9H,OAAOH,KAAK;AAChB,CAAC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- navDrawerClassNames: function() {
13
+ get navDrawerClassNames () {
14
14
  return navDrawerClassNames;
15
15
  },
16
- useNavDrawerStyles_unstable: function() {
16
+ get useNavDrawerStyles_unstable () {
17
17
  return useNavDrawerStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/useNavDrawerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { InlineDrawerSlots } from '@fluentui/react-drawer';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { NavDrawerState } from './NavDrawer.types';\nimport { navItemTokens } from '../sharedNavStyles.styles';\n\nexport const navDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-NavDrawer',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n backgroundColor: navItemTokens.backgroundColor,\n alignItems: 'unset',\n },\n // seperate style so it can be applied conditionally\n // if size is not set, use default width from the token.\n defaultWidth: {\n width: `${navItemTokens.defaultDrawerWidth}px`,\n },\n});\n\n/**\n * Apply styling to the NavDrawer slots based on the state\n */\nexport const useNavDrawerStyles_unstable = (state: NavDrawerState): NavDrawerState => {\n const { size } = state;\n\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n navDrawerClassNames.root,\n styles.root,\n !size && styles.defaultWidth,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","navItemTokens","navDrawerClassNames","root","useStyles","backgroundColor","alignItems","defaultWidth","width","defaultDrawerWidth","useNavDrawerStyles_unstable","state","size","styles","className"],"mappings":"AAAA;;;;;;;;;;;;IAQaG,mBAAAA;;;IAsBAQ,2BAAAA;;;;uBA5B4B,iBAAiB;uCAI5B,+BAA4B;AAEnD,4BAAsF;IAC3FP,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,gBAAYL,iBAAAA,EAAW;IAC3BI,MAAM;QACJE,iBAAiBJ,oCAAAA,CAAcI,eAAe;QAC9CC,YAAY;IACd;IACA,oDAAoD;IACpD,wDAAwD;IACxDC,cAAc;QACZC,OAAO,GAAGP,oCAAAA,CAAcQ,kBAAkB,CAAC,EAAE,CAAC;IAChD;AACF;AAKO,oCAAoC,CAACE;IAC1C,MAAM,EAAEC,IAAI,EAAE,GAAGD;IAEjB,MAAME,SAAST;IACf,oDAAoD;IACpDO,MAAMR,IAAI,CAACW,SAAS,OAAGd,mBAAAA,EACrBE,oBAAoBC,IAAI,EACxBU,OAAOV,IAAI,EACX,CAACS,QAAQC,OAAON,YAAY,EAC5BI,MAAMR,IAAI,CAACW,SAAS;IAGtB,OAAOH;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawer/useNavDrawerStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { InlineDrawerSlots } from '@fluentui/react-drawer';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { NavDrawerState } from './NavDrawer.types';\nimport { navItemTokens } from '../sharedNavStyles.styles';\n\nexport const navDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-NavDrawer',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n backgroundColor: navItemTokens.backgroundColor,\n alignItems: 'unset',\n },\n // seperate style so it can be applied conditionally\n // if size is not set, use default width from the token.\n defaultWidth: {\n width: `${navItemTokens.defaultDrawerWidth}px`,\n },\n});\n\n/**\n * Apply styling to the NavDrawer slots based on the state\n */\nexport const useNavDrawerStyles_unstable = (state: NavDrawerState): NavDrawerState => {\n const { size } = state;\n\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n navDrawerClassNames.root,\n styles.root,\n !size && styles.defaultWidth,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","navItemTokens","navDrawerClassNames","root","useStyles","backgroundColor","alignItems","defaultWidth","width","defaultDrawerWidth","useNavDrawerStyles_unstable","state","size","styles","className"],"mappings":"AAAA;;;;;;;;;;;;QAQaG;;;QAsBAQ;;;;uBA5B4B,iBAAiB;uCAI5B,+BAA4B;AAEnD,4BAAsF;IAC3FP,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,gBAAYL,iBAAAA,EAAW;IAC3BI,MAAM;QACJE,iBAAiBJ,oCAAAA,CAAcI,eAAe;QAC9CC,YAAY;IACd;IACA,oDAAoD;IACpD,wDAAwD;IACxDC,cAAc;QACZC,OAAO,GAAGP,oCAAAA,CAAcQ,kBAAkB,CAAC,EAAE,CAAC;IAChD;AACF;AAKO,oCAAoC,CAACE;IAC1C,MAAM,EAAEC,IAAI,EAAE,GAAGD;IAEjB,MAAME,SAAST;IACf,oDAAoD;IACpDO,MAAMR,IAAI,CAACW,SAAS,OAAGd,mBAAAA,EACrBE,oBAAoBC,IAAI,EACxBU,OAAOV,IAAI,EACX,CAACS,QAAQC,OAAON,YAAY,EAC5BI,MAAMR,IAAI,CAACW,SAAS;IAGtB,OAAOH;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawerBody/NavDrawerBody.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderDrawerBody_unstable } from '@fluentui/react-drawer';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDrawerBody_unstable } from './useNavDrawerBody';\nimport { useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';\nimport type { NavDrawerBodyProps } from './NavDrawerBody.types';\n\n/**\n * NavDrawerBody component\n */\nexport const NavDrawerBody: ForwardRefComponent<NavDrawerBodyProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerBody_unstable(props, ref);\n\n useNavDrawerBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);\n\n return renderDrawerBody_unstable(state);\n});\n\nNavDrawerBody.displayName = 'NavDrawerBody';\n"],"names":["React","renderDrawerBody_unstable","useCustomStyleHook_unstable","useNavDrawerBody_unstable","useNavDrawerBodyStyles_unstable","NavDrawerBody","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;6BACW,yBAAyB;qCAEvB,kCAAkC;kCAEpC,wBAAqB;8CACf,qCAAkC;AAM3E,MAAMK,gBAAAA,WAAAA,GAAyDL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,YAAQN,2CAAAA,EAA0BI,OAAOC;QAE/CJ,6DAAAA,EAAgCK;QAChCP,gDAAAA,EAA4B,mCAAmCO;IAE/D,WAAOR,sCAAAA,EAA0BQ;AACnC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../src/components/NavDrawerBody/NavDrawerBody.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderDrawerBody_unstable } from '@fluentui/react-drawer';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDrawerBody_unstable } from './useNavDrawerBody';\nimport { useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';\nimport type { NavDrawerBodyProps } from './NavDrawerBody.types';\n\n/**\n * NavDrawerBody component\n */\nexport const NavDrawerBody: ForwardRefComponent<NavDrawerBodyProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerBody_unstable(props, ref);\n\n useNavDrawerBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);\n\n return renderDrawerBody_unstable(state);\n});\n\nNavDrawerBody.displayName = 'NavDrawerBody';\n"],"names":["React","renderDrawerBody_unstable","useCustomStyleHook_unstable","useNavDrawerBody_unstable","useNavDrawerBodyStyles_unstable","NavDrawerBody","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;;;;;;;;;;;;iEAEuB,QAAQ;6BACW,yBAAyB;qCAEvB,kCAAkC;kCAEpC,wBAAqB;8CACf,qCAAkC;AAM3E,MAAMK,gBAAAA,WAAAA,GAAyDL,OAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,YAAQN,2CAAAA,EAA0BI,OAAOC;QAE/CJ,6DAAAA,EAAgCK;QAChCP,gDAAAA,EAA4B,mCAAmCO;IAE/D,WAAOR,sCAAAA,EAA0BQ;AACnC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}