@fluentui/react-nav 9.3.24 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/CHANGELOG.md +33 -13
  2. package/dist/index.d.ts +93 -1
  3. package/lib/AppItem.js +1 -1
  4. package/lib/AppItem.js.map +1 -1
  5. package/lib/AppItemStatic.js +1 -1
  6. package/lib/AppItemStatic.js.map +1 -1
  7. package/lib/Nav.js +2 -2
  8. package/lib/Nav.js.map +1 -1
  9. package/lib/NavItem.js +1 -1
  10. package/lib/NavItem.js.map +1 -1
  11. package/lib/NavSubItem.js +1 -1
  12. package/lib/NavSubItem.js.map +1 -1
  13. package/lib/NavSubItemGroup.js +1 -1
  14. package/lib/NavSubItemGroup.js.map +1 -1
  15. package/lib/components/AppItem/AppItem.types.js +1 -3
  16. package/lib/components/AppItem/AppItem.types.js.map +1 -1
  17. package/lib/components/AppItem/index.js +1 -1
  18. package/lib/components/AppItem/index.js.map +1 -1
  19. package/lib/components/AppItem/useAppItem.js +18 -3
  20. package/lib/components/AppItem/useAppItem.js.map +1 -1
  21. package/lib/components/AppItem/useAppItemStyles.styles.js +2 -0
  22. package/lib/components/AppItem/useAppItemStyles.styles.js.map +1 -1
  23. package/lib/components/AppItem/useAppItemStyles.styles.raw.js +2 -0
  24. package/lib/components/AppItem/useAppItemStyles.styles.raw.js.map +1 -1
  25. package/lib/components/AppItemStatic/AppItemStatic.types.js +1 -3
  26. package/lib/components/AppItemStatic/AppItemStatic.types.js.map +1 -1
  27. package/lib/components/AppItemStatic/index.js +1 -1
  28. package/lib/components/AppItemStatic/index.js.map +1 -1
  29. package/lib/components/AppItemStatic/useAppItemStatic.js +9 -3
  30. package/lib/components/AppItemStatic/useAppItemStatic.js.map +1 -1
  31. package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.js +2 -0
  32. package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.js.map +1 -1
  33. package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js +2 -0
  34. package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js.map +1 -1
  35. package/lib/components/Hamburger/useHamburgerStyles.styles.js +2 -0
  36. package/lib/components/Hamburger/useHamburgerStyles.styles.js.map +1 -1
  37. package/lib/components/Hamburger/useHamburgerStyles.styles.raw.js +2 -0
  38. package/lib/components/Hamburger/useHamburgerStyles.styles.raw.js.map +1 -1
  39. package/lib/components/Nav/Nav.types.js +1 -3
  40. package/lib/components/Nav/Nav.types.js.map +1 -1
  41. package/lib/components/Nav/index.js +1 -1
  42. package/lib/components/Nav/index.js.map +1 -1
  43. package/lib/components/Nav/useNav.js +17 -4
  44. package/lib/components/Nav/useNav.js.map +1 -1
  45. package/lib/components/Nav/useNavStyles.styles.js +1 -0
  46. package/lib/components/Nav/useNavStyles.styles.js.map +1 -1
  47. package/lib/components/Nav/useNavStyles.styles.raw.js +1 -0
  48. package/lib/components/Nav/useNavStyles.styles.raw.js.map +1 -1
  49. package/lib/components/NavCategoryItem/NavCategoryItem.types.js +1 -1
  50. package/lib/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
  51. package/lib/components/NavCategoryItem/index.js +1 -1
  52. package/lib/components/NavCategoryItem/index.js.map +1 -1
  53. package/lib/components/NavCategoryItem/useNavCategoryItem.js +34 -12
  54. package/lib/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
  55. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js +3 -0
  56. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
  57. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.raw.js +3 -0
  58. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.raw.js.map +1 -1
  59. package/lib/components/NavDivider/useNavDividerStyles.styles.js +2 -0
  60. package/lib/components/NavDivider/useNavDividerStyles.styles.js.map +1 -1
  61. package/lib/components/NavDivider/useNavDividerStyles.styles.raw.js +2 -0
  62. package/lib/components/NavDivider/useNavDividerStyles.styles.raw.js.map +1 -1
  63. package/lib/components/NavDrawer/useNavDrawerStyles.styles.js +1 -0
  64. package/lib/components/NavDrawer/useNavDrawerStyles.styles.js.map +1 -1
  65. package/lib/components/NavDrawer/useNavDrawerStyles.styles.raw.js +1 -0
  66. package/lib/components/NavDrawer/useNavDrawerStyles.styles.raw.js.map +1 -1
  67. package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js +1 -0
  68. package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js.map +1 -1
  69. package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js +1 -0
  70. package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js.map +1 -1
  71. package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js +1 -0
  72. package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js.map +1 -1
  73. package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js +1 -0
  74. package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js.map +1 -1
  75. package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js +1 -0
  76. package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js.map +1 -1
  77. package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js +1 -0
  78. package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js.map +1 -1
  79. package/lib/components/NavItem/NavItem.types.js +1 -3
  80. package/lib/components/NavItem/NavItem.types.js.map +1 -1
  81. package/lib/components/NavItem/index.js +1 -1
  82. package/lib/components/NavItem/index.js.map +1 -1
  83. package/lib/components/NavItem/useNavItem.js +16 -3
  84. package/lib/components/NavItem/useNavItem.js.map +1 -1
  85. package/lib/components/NavItem/useNavItemStyles.styles.js +2 -0
  86. package/lib/components/NavItem/useNavItemStyles.styles.js.map +1 -1
  87. package/lib/components/NavItem/useNavItemStyles.styles.raw.js +2 -0
  88. package/lib/components/NavItem/useNavItemStyles.styles.raw.js.map +1 -1
  89. package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js +1 -0
  90. package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js.map +1 -1
  91. package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js +1 -0
  92. package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js.map +1 -1
  93. package/lib/components/NavSubItem/NavSubItem.types.js +1 -3
  94. package/lib/components/NavSubItem/NavSubItem.types.js.map +1 -1
  95. package/lib/components/NavSubItem/index.js +1 -1
  96. package/lib/components/NavSubItem/index.js.map +1 -1
  97. package/lib/components/NavSubItem/useNavSubItem.js +16 -3
  98. package/lib/components/NavSubItem/useNavSubItem.js.map +1 -1
  99. package/lib/components/NavSubItem/useNavSubItemStyles.styles.js +1 -0
  100. package/lib/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
  101. package/lib/components/NavSubItem/useNavSubItemStyles.styles.raw.js +1 -0
  102. package/lib/components/NavSubItem/useNavSubItemStyles.styles.raw.js.map +1 -1
  103. package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js +1 -3
  104. package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
  105. package/lib/components/NavSubItemGroup/index.js +1 -1
  106. package/lib/components/NavSubItemGroup/index.js.map +1 -1
  107. package/lib/components/NavSubItemGroup/useNavSubItemGroup.js +25 -9
  108. package/lib/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
  109. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +1 -0
  110. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
  111. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js +1 -0
  112. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js.map +1 -1
  113. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js +5 -0
  114. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
  115. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js +5 -0
  116. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js.map +1 -1
  117. package/lib/index.js +7 -7
  118. package/lib/index.js.map +1 -1
  119. package/lib-commonjs/AppItem.js +3 -0
  120. package/lib-commonjs/AppItem.js.map +1 -1
  121. package/lib-commonjs/AppItemStatic.js +3 -0
  122. package/lib-commonjs/AppItemStatic.js.map +1 -1
  123. package/lib-commonjs/Nav.js +6 -0
  124. package/lib-commonjs/Nav.js.map +1 -1
  125. package/lib-commonjs/NavItem.js +3 -0
  126. package/lib-commonjs/NavItem.js.map +1 -1
  127. package/lib-commonjs/NavSubItem.js +3 -0
  128. package/lib-commonjs/NavSubItem.js.map +1 -1
  129. package/lib-commonjs/NavSubItemGroup.js +3 -0
  130. package/lib-commonjs/NavSubItemGroup.js.map +1 -1
  131. package/lib-commonjs/components/AppItem/AppItem.types.js +1 -3
  132. package/lib-commonjs/components/AppItem/AppItem.types.js.map +1 -1
  133. package/lib-commonjs/components/AppItem/index.js +3 -0
  134. package/lib-commonjs/components/AppItem/index.js.map +1 -1
  135. package/lib-commonjs/components/AppItem/useAppItem.js +20 -6
  136. package/lib-commonjs/components/AppItem/useAppItem.js.map +1 -1
  137. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.js +2 -0
  138. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.js.map +1 -1
  139. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.raw.js +2 -0
  140. package/lib-commonjs/components/AppItem/useAppItemStyles.styles.raw.js.map +1 -1
  141. package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.js +1 -3
  142. package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.js.map +1 -1
  143. package/lib-commonjs/components/AppItemStatic/index.js +3 -0
  144. package/lib-commonjs/components/AppItemStatic/index.js.map +1 -1
  145. package/lib-commonjs/components/AppItemStatic/useAppItemStatic.js +20 -6
  146. package/lib-commonjs/components/AppItemStatic/useAppItemStatic.js.map +1 -1
  147. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.js +2 -0
  148. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.js.map +1 -1
  149. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js +2 -0
  150. package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js.map +1 -1
  151. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.js +2 -0
  152. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.js.map +1 -1
  153. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.raw.js +2 -0
  154. package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.raw.js.map +1 -1
  155. package/lib-commonjs/components/Nav/Nav.types.js +1 -3
  156. package/lib-commonjs/components/Nav/Nav.types.js.map +1 -1
  157. package/lib-commonjs/components/Nav/index.js +3 -0
  158. package/lib-commonjs/components/Nav/index.js.map +1 -1
  159. package/lib-commonjs/components/Nav/useNav.js +28 -7
  160. package/lib-commonjs/components/Nav/useNav.js.map +1 -1
  161. package/lib-commonjs/components/Nav/useNavStyles.styles.js +1 -0
  162. package/lib-commonjs/components/Nav/useNavStyles.styles.js.map +1 -1
  163. package/lib-commonjs/components/Nav/useNavStyles.styles.raw.js +1 -0
  164. package/lib-commonjs/components/Nav/useNavStyles.styles.raw.js.map +1 -1
  165. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js +1 -1
  166. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
  167. package/lib-commonjs/components/NavCategoryItem/index.js +3 -0
  168. package/lib-commonjs/components/NavCategoryItem/index.js.map +1 -1
  169. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js +40 -15
  170. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
  171. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js +3 -0
  172. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
  173. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.raw.js +3 -0
  174. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.raw.js.map +1 -1
  175. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.js +2 -0
  176. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.js.map +1 -1
  177. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.raw.js +2 -0
  178. package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.raw.js.map +1 -1
  179. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.js +1 -0
  180. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.js.map +1 -1
  181. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.raw.js +1 -0
  182. package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.raw.js.map +1 -1
  183. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js +1 -0
  184. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js.map +1 -1
  185. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js +1 -0
  186. package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js.map +1 -1
  187. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js +1 -0
  188. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js.map +1 -1
  189. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js +1 -0
  190. package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js.map +1 -1
  191. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js +1 -0
  192. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js.map +1 -1
  193. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js +1 -0
  194. package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js.map +1 -1
  195. package/lib-commonjs/components/NavItem/NavItem.types.js +1 -3
  196. package/lib-commonjs/components/NavItem/NavItem.types.js.map +1 -1
  197. package/lib-commonjs/components/NavItem/index.js +3 -0
  198. package/lib-commonjs/components/NavItem/index.js.map +1 -1
  199. package/lib-commonjs/components/NavItem/useNavItem.js +21 -6
  200. package/lib-commonjs/components/NavItem/useNavItem.js.map +1 -1
  201. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.js +2 -0
  202. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.js.map +1 -1
  203. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.raw.js +2 -0
  204. package/lib-commonjs/components/NavItem/useNavItemStyles.styles.raw.js.map +1 -1
  205. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js +1 -0
  206. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js.map +1 -1
  207. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js +1 -0
  208. package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js.map +1 -1
  209. package/lib-commonjs/components/NavSubItem/NavSubItem.types.js +1 -3
  210. package/lib-commonjs/components/NavSubItem/NavSubItem.types.js.map +1 -1
  211. package/lib-commonjs/components/NavSubItem/index.js +3 -0
  212. package/lib-commonjs/components/NavSubItem/index.js.map +1 -1
  213. package/lib-commonjs/components/NavSubItem/useNavSubItem.js +21 -6
  214. package/lib-commonjs/components/NavSubItem/useNavSubItem.js.map +1 -1
  215. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js +1 -0
  216. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
  217. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.raw.js +1 -0
  218. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.raw.js.map +1 -1
  219. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js +1 -3
  220. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
  221. package/lib-commonjs/components/NavSubItemGroup/index.js +3 -0
  222. package/lib-commonjs/components/NavSubItemGroup/index.js.map +1 -1
  223. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js +30 -12
  224. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
  225. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +1 -0
  226. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
  227. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js +1 -0
  228. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js.map +1 -1
  229. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js +5 -0
  230. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
  231. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js +5 -0
  232. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js.map +1 -1
  233. package/lib-commonjs/index.js +21 -0
  234. package/lib-commonjs/index.js.map +1 -1
  235. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,27 +1,47 @@
1
1
  # Change Log - @fluentui/react-nav
2
2
 
3
- This log was last generated on Thu, 23 Apr 2026 11:59:27 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 26 May 2026 09:33:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.4.0)
8
+
9
+ Tue, 26 May 2026 09:33:49 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.3.24..@fluentui/react-nav_v9.4.0)
11
+
12
+ ### Minor changes
13
+
14
+ - feat: add base hooks and expose them ([PR #35812](https://github.com/microsoft/fluentui/pull/35812) by dmytrokirpa@microsoft.com)
15
+ - Bump @fluentui/react-aria to v9.17.12 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
16
+ - Bump @fluentui/react-button to v9.9.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
17
+ - Bump @fluentui/react-context-selector to v9.2.17 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
18
+ - Bump @fluentui/react-divider to v9.7.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
19
+ - Bump @fluentui/react-drawer to v9.13.0 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
20
+ - Bump @fluentui/react-jsx-runtime to v9.4.3 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
21
+ - Bump @fluentui/react-motion to v9.16.0 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
22
+ - Bump @fluentui/react-motion-components-preview to v0.15.5 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
23
+ - Bump @fluentui/react-tabster to v9.26.15 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
24
+ - Bump @fluentui/react-tooltip to v9.10.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
25
+ - Bump @fluentui/react-utilities to v9.26.4 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
26
+
7
27
  ## [9.3.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.3.24)
8
28
 
9
- Thu, 23 Apr 2026 11:59:27 GMT
29
+ Thu, 23 Apr 2026 14:21:14 GMT
10
30
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.3.23..@fluentui/react-nav_v9.3.24)
11
31
 
12
32
  ### Patches
13
33
 
14
- - Bump @fluentui/react-aria to v9.17.11 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
15
- - Bump @fluentui/react-button to v9.9.1 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
16
- - Bump @fluentui/react-context-selector to v9.2.16 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
17
- - Bump @fluentui/react-divider to v9.7.1 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
18
- - Bump @fluentui/react-drawer to v9.12.0 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
19
- - Bump @fluentui/react-jsx-runtime to v9.4.2 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
20
- - Bump @fluentui/react-motion to v9.15.0 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
21
- - Bump @fluentui/react-motion-components-preview to v0.15.4 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
22
- - Bump @fluentui/react-tabster to v9.26.14 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
23
- - Bump @fluentui/react-tooltip to v9.10.1 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
24
- - Bump @fluentui/react-utilities to v9.26.3 ([PR #35996](https://github.com/microsoft/fluentui/pull/35996) by beachball)
34
+ - Bump @fluentui/react-aria to v9.17.11 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
35
+ - Bump @fluentui/react-button to v9.9.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
36
+ - Bump @fluentui/react-context-selector to v9.2.16 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
37
+ - Bump @fluentui/react-divider to v9.7.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
38
+ - Bump @fluentui/react-drawer to v9.12.0 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
39
+ - Bump @fluentui/react-jsx-runtime to v9.4.2 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
40
+ - Bump @fluentui/react-motion to v9.15.0 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
41
+ - Bump @fluentui/react-motion-components-preview to v0.15.4 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
42
+ - Bump @fluentui/react-tabster to v9.26.14 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
43
+ - Bump @fluentui/react-tooltip to v9.10.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
44
+ - Bump @fluentui/react-utilities to v9.26.3 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
25
45
 
26
46
  ## [9.3.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.3.23)
27
47
 
package/dist/index.d.ts CHANGED
@@ -37,6 +37,10 @@ import type { TooltipProps } from '@fluentui/react-tooltip';
37
37
  */
38
38
  export declare const AppItem: ForwardRefComponent<AppItemProps>;
39
39
 
40
+ export declare type AppItemBaseProps = AppItemProps;
41
+
42
+ export declare type AppItemBaseState = Omit<AppItemState, 'density'>;
43
+
40
44
  export declare const appItemClassNames: SlotClassNames<AppItemSlots>;
41
45
 
42
46
  /**
@@ -74,12 +78,16 @@ export declare type AppItemState = ComponentState<AppItemSlots> & {
74
78
  */
75
79
  export declare const AppItemStatic: ForwardRefComponent<AppItemStaticProps>;
76
80
 
81
+ export declare type AppItemStaticBaseProps = AppItemStaticProps;
82
+
83
+ export declare type AppItemStaticBaseState = Omit<AppItemStaticState, 'density'>;
84
+
77
85
  export declare const appItemStaticClassNames: SlotClassNames<AppItemStaticSlots>;
78
86
 
79
87
  /**
80
88
  * AppItemStatic Props
81
89
  */
82
- export declare type AppItemStaticProps = ComponentProps<AppItemStaticSlots> & {};
90
+ export declare type AppItemStaticProps = ComponentProps<AppItemStaticSlots>;
83
91
 
84
92
  export declare type AppItemStaticSlots = {
85
93
  /**
@@ -126,6 +134,10 @@ export declare type HamburgerState = ButtonState;
126
134
  */
127
135
  export declare const Nav: ForwardRefComponent<NavProps>;
128
136
 
137
+ export declare type NavBaseProps = Omit<NavProps, 'density'>;
138
+
139
+ export declare type NavBaseState = Omit<NavState, 'density' | 'tabbable'>;
140
+
129
141
  /**
130
142
  * NavCategory component - a category in the navigation menu that can contain multiple items.
131
143
  */
@@ -146,6 +158,21 @@ export declare type NavCategoryContextValues = {
146
158
  */
147
159
  export declare const NavCategoryItem: ForwardRefComponent<NavCategoryItemProps>;
148
160
 
161
+ /**
162
+ * Base NavCategoryItemProps, excluding design/animation-specific props.
163
+ */
164
+ export declare type NavCategoryItemBaseProps = ComponentProps<Partial<NavCategoryItemBaseSlots>>;
165
+
166
+ /**
167
+ * Base slots for NavCategoryItem, excluding design/animation-specific slots.
168
+ */
169
+ export declare type NavCategoryItemBaseSlots = Omit<NavCategoryItemSlots, 'expandIconMotion'>;
170
+
171
+ /**
172
+ * State used in rendering NavCategoryItem, excluding design/animation-specific state.
173
+ */
174
+ export declare type NavCategoryItemBaseState = ComponentState<NavCategoryItemBaseSlots> & Pick<NavCategoryItemState, 'open' | 'value' | 'selected'>;
175
+
149
176
  export declare const navCategoryItemClassNames: SlotClassNames<NavCategoryItemSlots>;
150
177
 
151
178
  declare type NavCategoryItemContextValue = {
@@ -393,6 +420,10 @@ export declare type NavDrawerState = DrawerState & NavContextValue & {
393
420
  */
394
421
  export declare const NavItem: ForwardRefComponent<NavItemProps>;
395
422
 
423
+ export declare type NavItemBaseProps = NavItemProps;
424
+
425
+ export declare type NavItemBaseState = Omit<NavItemState, 'density'>;
426
+
396
427
  export declare const navItemClassNames: SlotClassNames<NavItemSlots>;
397
428
 
398
429
  /**
@@ -550,6 +581,10 @@ export declare type NavState = ComponentState<NavSlots> & NavContextValue;
550
581
  */
551
582
  export declare const NavSubItem: ForwardRefComponent<NavSubItemProps>;
552
583
 
584
+ export declare type NavSubItemBaseProps = NavSubItemProps;
585
+
586
+ export declare type NavSubItemBaseState = Omit<NavSubItemState, 'density'>;
587
+
553
588
  export declare const navSubItemClassNames: SlotClassNames<NavSubItemSlots>;
554
589
 
555
590
  /**
@@ -557,6 +592,12 @@ export declare const navSubItemClassNames: SlotClassNames<NavSubItemSlots>;
557
592
  */
558
593
  export declare const NavSubItemGroup: ForwardRefComponent<NavSubItemGroupProps>;
559
594
 
595
+ export declare type NavSubItemGroupBaseProps = ComponentProps<NavSubItemGroupBaseSlots>;
596
+
597
+ export declare type NavSubItemGroupBaseSlots = Omit<NavSubItemGroupSlots, 'collapseMotion'>;
598
+
599
+ export declare type NavSubItemGroupBaseState = ComponentState<NavSubItemGroupBaseSlots> & Pick<NavSubItemGroupState, 'open'>;
600
+
560
601
  export declare const navSubItemGroupClassNames: SlotClassNames<Omit<NavSubItemGroupSlots, 'collapseMotion'>>;
561
602
 
562
603
  /**
@@ -770,6 +811,18 @@ export declare type SplitNavItemState = ComponentState<SplitNavItemSlots> & {
770
811
  */
771
812
  export declare const useAppItem_unstable: (props: AppItemProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => AppItemState;
772
813
 
814
+ /**
815
+ * Create the base state required to render AppItem.
816
+ *
817
+ * The returned state can be modified with hooks such as useAppItemStyles_unstable,
818
+ * before being passed to renderAppItem_unstable.
819
+ *
820
+ * @param props - props from this instance of AppItem
821
+ * @param ref - reference to root HTMLDivElement of AppItem
822
+ * @returns The base state of AppItem
823
+ */
824
+ export declare const useAppItemBase_unstable: (props: AppItemBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => AppItemBaseState;
825
+
773
826
  /**
774
827
  * Create the state required to render AppItemStatic.
775
828
  *
@@ -781,6 +834,8 @@ export declare const useAppItem_unstable: (props: AppItemProps, ref: React_2.Ref
781
834
  */
782
835
  export declare const useAppItemStatic_unstable: (props: AppItemStaticProps, ref: React_2.Ref<HTMLDivElement>) => AppItemStaticState;
783
836
 
837
+ export declare const useAppItemStaticBase_unstable: (props: AppItemStaticBaseProps, ref: React_2.Ref<HTMLDivElement>) => AppItemStaticBaseState;
838
+
784
839
  /**
785
840
  * Apply styling to the AppItemStatic slots based on the state
786
841
  */
@@ -815,6 +870,8 @@ export declare const useHamburgerStyles_unstable: (state: HamburgerState) => Ham
815
870
  */
816
871
  export declare const useNav_unstable: (props: NavProps, ref: React_2.Ref<HTMLDivElement>) => NavState;
817
872
 
873
+ export declare const useNavBase_unstable: (props: NavBaseProps, ref: React_2.Ref<HTMLDivElement>) => NavBaseState;
874
+
818
875
  /**
819
876
  * Create the state required to render NavCategory.
820
877
  *
@@ -841,6 +898,14 @@ export declare function useNavCategoryContextValues_unstable(state: NavCategoryS
841
898
  */
842
899
  export declare const useNavCategoryItem_unstable: (props: NavCategoryItemProps, ref: React_2.Ref<HTMLButtonElement>) => NavCategoryItemState;
843
900
 
901
+ /**
902
+ * Create the base state required to render NavCategoryItem.
903
+ *
904
+ * @param props - props from this instance of NavCategoryItem
905
+ * @param ref - reference to root HTMLButtonElement of NavCategoryItem
906
+ */
907
+ export declare const useNavCategoryItemBase_unstable: (props: NavCategoryItemBaseProps, ref: React_2.Ref<HTMLButtonElement>) => NavCategoryItemBaseState;
908
+
844
909
  export declare const useNavCategoryItemContext_unstable: () => NavCategoryItemContextValue;
845
910
 
846
911
  export declare function useNavCategoryItemContextValues_unstable(state: NavCategoryItemState): NavCategoryItemContextValues;
@@ -945,6 +1010,15 @@ export declare const useNavDrawerStyles_unstable: (state: NavDrawerState) => Nav
945
1010
  */
946
1011
  export declare const useNavItem_unstable: (props: NavItemProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => NavItemState;
947
1012
 
1013
+ /**
1014
+ * NavItemBaseState is the base state used in rendering NavItem,
1015
+ * excluding any design-related properties such as `density`.
1016
+ *
1017
+ * @param props - props from this instance of NavItem
1018
+ * @param ref - reference to root HTMLAnchorElement of NavItem
1019
+ */
1020
+ export declare const useNavItemBase_unstable: (props: NavItemProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => NavItemBaseState;
1021
+
948
1022
  /**
949
1023
  * Apply styling to the NavItem slots based on the state
950
1024
  */
@@ -982,6 +1056,15 @@ export declare const useNavStyles_unstable: (state: NavState) => NavState;
982
1056
  */
983
1057
  export declare const useNavSubItem_unstable: (props: NavSubItemProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => NavSubItemState;
984
1058
 
1059
+ /**
1060
+ * Base state used in rendering NavSubItem, excluding any design-related properties such as `density`.
1061
+ *
1062
+ * @param props - props from this instance of NavSubItem
1063
+ * @param ref - reference to root HTMLButtonElement of NavSubItem
1064
+ * @returns - The base state of NavSubItem
1065
+ */
1066
+ export declare const useNavSubItemBase_unstable: (props: NavSubItemBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => NavSubItemBaseState;
1067
+
985
1068
  /**
986
1069
  * Create the state required to render NavSubItemGroup.
987
1070
  *
@@ -993,6 +1076,15 @@ export declare const useNavSubItem_unstable: (props: NavSubItemProps, ref: React
993
1076
  */
994
1077
  export declare const useNavSubItemGroup_unstable: (props: NavSubItemGroupProps, ref: React_2.Ref<HTMLDivElement>) => NavSubItemGroupState;
995
1078
 
1079
+ /**
1080
+ * The base state used in rendering NavSubItemGroup, excluding any design-related properties such as motion props.
1081
+ *
1082
+ * @param props - props from this instance of NavSubItemGroup
1083
+ * @param ref - reference to root HTMLDivElement of NavSubItemGroup
1084
+ * @returns - The base state of NavSubItemGroup
1085
+ */
1086
+ export declare const useNavSubItemGroupBase_unstable: (props: NavSubItemGroupBaseProps, ref: React_2.Ref<HTMLDivElement>) => NavSubItemGroupBaseState;
1087
+
996
1088
  /**
997
1089
  * Apply styling to the NavSubItemGroup slots based on the state
998
1090
  */
package/lib/AppItem.js CHANGED
@@ -1 +1 @@
1
- export { AppItem, appItemClassNames, renderAppItem_unstable, useAppItemStyles, useAppItemStyles_unstable, useAppItem_unstable } from './components/AppItem/index';
1
+ export { AppItem, appItemClassNames, renderAppItem_unstable, useAppItemStyles, useAppItemStyles_unstable, useAppItem_unstable, useAppItemBase_unstable } from './components/AppItem/index';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/AppItem.ts"],"sourcesContent":["export type { AppItemProps, AppItemSlots, AppItemState } from './components/AppItem/index';\nexport {\n AppItem,\n appItemClassNames,\n renderAppItem_unstable,\n useAppItemStyles,\n useAppItemStyles_unstable,\n useAppItem_unstable,\n} from './components/AppItem/index';\n"],"names":["AppItem","appItemClassNames","renderAppItem_unstable","useAppItemStyles","useAppItemStyles_unstable","useAppItem_unstable"],"mappings":"AACA,SACEA,OAAO,EACPC,iBAAiB,EACjBC,sBAAsB,EACtBC,gBAAgB,EAChBC,yBAAyB,EACzBC,mBAAmB,QACd,6BAA6B"}
1
+ {"version":3,"sources":["../src/AppItem.ts"],"sourcesContent":["export type {\n AppItemProps,\n AppItemSlots,\n AppItemState,\n AppItemBaseProps,\n AppItemBaseState,\n} from './components/AppItem/index';\nexport {\n AppItem,\n appItemClassNames,\n renderAppItem_unstable,\n useAppItemStyles,\n useAppItemStyles_unstable,\n useAppItem_unstable,\n useAppItemBase_unstable,\n} from './components/AppItem/index';\n"],"names":["AppItem","appItemClassNames","renderAppItem_unstable","useAppItemStyles","useAppItemStyles_unstable","useAppItem_unstable","useAppItemBase_unstable"],"mappings":"AAOA,SACEA,OAAO,EACPC,iBAAiB,EACjBC,sBAAsB,EACtBC,gBAAgB,EAChBC,yBAAyB,EACzBC,mBAAmB,EACnBC,uBAAuB,QAClB,6BAA6B"}
@@ -1 +1 @@
1
- export { AppItemStatic, appItemStaticClassNames, renderAppItemStatic_unstable, useAppItemStaticStyles_unstable, useAppItemStatic_unstable } from './components/AppItemStatic/index';
1
+ export { AppItemStatic, appItemStaticClassNames, renderAppItemStatic_unstable, useAppItemStaticStyles_unstable, useAppItemStatic_unstable, useAppItemStaticBase_unstable } from './components/AppItemStatic/index';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/AppItemStatic.ts"],"sourcesContent":["export type { AppItemStaticProps, AppItemStaticSlots, AppItemStaticState } from './components/AppItemStatic/index';\nexport {\n AppItemStatic,\n appItemStaticClassNames,\n renderAppItemStatic_unstable,\n useAppItemStaticStyles_unstable,\n useAppItemStatic_unstable,\n} from './components/AppItemStatic/index';\n"],"names":["AppItemStatic","appItemStaticClassNames","renderAppItemStatic_unstable","useAppItemStaticStyles_unstable","useAppItemStatic_unstable"],"mappings":"AACA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,mCAAmC"}
1
+ {"version":3,"sources":["../src/AppItemStatic.ts"],"sourcesContent":["export type {\n AppItemStaticProps,\n AppItemStaticSlots,\n AppItemStaticState,\n AppItemStaticBaseProps,\n AppItemStaticBaseState,\n} from './components/AppItemStatic/index';\nexport {\n AppItemStatic,\n appItemStaticClassNames,\n renderAppItemStatic_unstable,\n useAppItemStaticStyles_unstable,\n useAppItemStatic_unstable,\n useAppItemStaticBase_unstable,\n} from './components/AppItemStatic/index';\n"],"names":["AppItemStatic","appItemStaticClassNames","renderAppItemStatic_unstable","useAppItemStaticStyles_unstable","useAppItemStatic_unstable","useAppItemStaticBase_unstable"],"mappings":"AAOA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,EACzBC,6BAA6B,QACxB,mCAAmC"}
package/lib/Nav.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Nav, navClassNames, renderNav_unstable, useNavStyles_unstable, useNav_unstable } from './components/Nav/index';
2
- export { NavCategoryItem, navCategoryItemClassNames, renderNavCategoryItem_unstable, useNavCategoryItemStyles_unstable, useNavCategoryItem_unstable } from './components/NavCategoryItem/index';
1
+ export { Nav, navClassNames, renderNav_unstable, useNavStyles_unstable, useNav_unstable, useNavBase_unstable } from './components/Nav/index';
2
+ export { NavCategoryItem, navCategoryItemClassNames, renderNavCategoryItem_unstable, useNavCategoryItemStyles_unstable, useNavCategoryItem_unstable, useNavCategoryItemBase_unstable } from './components/NavCategoryItem/index';
3
3
  export { NavProvider, useNavContext_unstable } from './components/NavContext';
package/lib/Nav.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Nav.ts"],"sourcesContent":["export type { NavProps, NavDensity, NavSlots, NavState, OnNavItemSelectData } from './components/Nav/index';\nexport { Nav, navClassNames, renderNav_unstable, useNavStyles_unstable, useNav_unstable } from './components/Nav/index';\nexport type {\n NavCategoryItemProps,\n NavCategoryItemSlots,\n NavCategoryItemState,\n} from './components/NavCategoryItem/index';\nexport {\n NavCategoryItem,\n navCategoryItemClassNames,\n renderNavCategoryItem_unstable,\n useNavCategoryItemStyles_unstable,\n useNavCategoryItem_unstable,\n} from './components/NavCategoryItem/index';\nexport { NavProvider, useNavContext_unstable } from './components/NavContext';\nexport type {\n NavContextValue,\n NavContextValues,\n NavItemRegisterData,\n NavItemValue,\n RegisterNavItemEventHandler,\n} from './components/NavContext.types';\n"],"names":["Nav","navClassNames","renderNav_unstable","useNavStyles_unstable","useNav_unstable","NavCategoryItem","navCategoryItemClassNames","renderNavCategoryItem_unstable","useNavCategoryItemStyles_unstable","useNavCategoryItem_unstable","NavProvider","useNavContext_unstable"],"mappings":"AACA,SAASA,GAAG,EAAEC,aAAa,EAAEC,kBAAkB,EAAEC,qBAAqB,EAAEC,eAAe,QAAQ,yBAAyB;AAMxH,SACEC,eAAe,EACfC,yBAAyB,EACzBC,8BAA8B,EAC9BC,iCAAiC,EACjCC,2BAA2B,QACtB,qCAAqC;AAC5C,SAASC,WAAW,EAAEC,sBAAsB,QAAQ,0BAA0B"}
1
+ {"version":3,"sources":["../src/Nav.ts"],"sourcesContent":["export type {\n NavProps,\n NavDensity,\n NavSlots,\n NavState,\n OnNavItemSelectData,\n NavBaseProps,\n NavBaseState,\n} from './components/Nav/index';\nexport {\n Nav,\n navClassNames,\n renderNav_unstable,\n useNavStyles_unstable,\n useNav_unstable,\n useNavBase_unstable,\n} from './components/Nav/index';\nexport type {\n NavCategoryItemProps,\n NavCategoryItemSlots,\n NavCategoryItemState,\n NavCategoryItemBaseProps,\n NavCategoryItemBaseSlots,\n NavCategoryItemBaseState,\n} from './components/NavCategoryItem/index';\nexport {\n NavCategoryItem,\n navCategoryItemClassNames,\n renderNavCategoryItem_unstable,\n useNavCategoryItemStyles_unstable,\n useNavCategoryItem_unstable,\n useNavCategoryItemBase_unstable,\n} from './components/NavCategoryItem/index';\nexport { NavProvider, useNavContext_unstable } from './components/NavContext';\nexport type {\n NavContextValue,\n NavContextValues,\n NavItemRegisterData,\n NavItemValue,\n RegisterNavItemEventHandler,\n} from './components/NavContext.types';\n"],"names":["Nav","navClassNames","renderNav_unstable","useNavStyles_unstable","useNav_unstable","useNavBase_unstable","NavCategoryItem","navCategoryItemClassNames","renderNavCategoryItem_unstable","useNavCategoryItemStyles_unstable","useNavCategoryItem_unstable","useNavCategoryItemBase_unstable","NavProvider","useNavContext_unstable"],"mappings":"AASA,SACEA,GAAG,EACHC,aAAa,EACbC,kBAAkB,EAClBC,qBAAqB,EACrBC,eAAe,EACfC,mBAAmB,QACd,yBAAyB;AAShC,SACEC,eAAe,EACfC,yBAAyB,EACzBC,8BAA8B,EAC9BC,iCAAiC,EACjCC,2BAA2B,EAC3BC,+BAA+B,QAC1B,qCAAqC;AAC5C,SAASC,WAAW,EAAEC,sBAAsB,QAAQ,0BAA0B"}
package/lib/NavItem.js CHANGED
@@ -1 +1 @@
1
- export { NavItem, navItemClassNames, renderNavItem_unstable, useNavItemStyles_unstable, useNavItem_unstable } from './components/NavItem/index';
1
+ export { NavItem, navItemClassNames, renderNavItem_unstable, useNavItemStyles_unstable, useNavItem_unstable, useNavItemBase_unstable } from './components/NavItem/index';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/NavItem.ts"],"sourcesContent":["export type { NavItemProps, NavItemSlots, NavItemState } from './components/NavItem/index';\nexport {\n NavItem,\n navItemClassNames,\n renderNavItem_unstable,\n useNavItemStyles_unstable,\n useNavItem_unstable,\n} from './components/NavItem/index';\n"],"names":["NavItem","navItemClassNames","renderNavItem_unstable","useNavItemStyles_unstable","useNavItem_unstable"],"mappings":"AACA,SACEA,OAAO,EACPC,iBAAiB,EACjBC,sBAAsB,EACtBC,yBAAyB,EACzBC,mBAAmB,QACd,6BAA6B"}
1
+ {"version":3,"sources":["../src/NavItem.ts"],"sourcesContent":["export type {\n NavItemProps,\n NavItemSlots,\n NavItemState,\n NavItemBaseProps,\n NavItemBaseState,\n} from './components/NavItem/index';\nexport {\n NavItem,\n navItemClassNames,\n renderNavItem_unstable,\n useNavItemStyles_unstable,\n useNavItem_unstable,\n useNavItemBase_unstable,\n} from './components/NavItem/index';\n"],"names":["NavItem","navItemClassNames","renderNavItem_unstable","useNavItemStyles_unstable","useNavItem_unstable","useNavItemBase_unstable"],"mappings":"AAOA,SACEA,OAAO,EACPC,iBAAiB,EACjBC,sBAAsB,EACtBC,yBAAyB,EACzBC,mBAAmB,EACnBC,uBAAuB,QAClB,6BAA6B"}
package/lib/NavSubItem.js CHANGED
@@ -1 +1 @@
1
- export { NavSubItem, navSubItemClassNames, renderNavSubItem_unstable, useNavSubItemStyles_unstable, useNavSubItem_unstable } from './components/NavSubItem/index';
1
+ export { NavSubItem, navSubItemClassNames, renderNavSubItem_unstable, useNavSubItemStyles_unstable, useNavSubItem_unstable, useNavSubItemBase_unstable } from './components/NavSubItem/index';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/NavSubItem.ts"],"sourcesContent":["export type { NavSubItemProps, NavSubItemSlots, NavSubItemState } from './components/NavSubItem/index';\nexport {\n NavSubItem,\n navSubItemClassNames,\n renderNavSubItem_unstable,\n useNavSubItemStyles_unstable,\n useNavSubItem_unstable,\n} from './components/NavSubItem/index';\n"],"names":["NavSubItem","navSubItemClassNames","renderNavSubItem_unstable","useNavSubItemStyles_unstable","useNavSubItem_unstable"],"mappings":"AACA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,gCAAgC"}
1
+ {"version":3,"sources":["../src/NavSubItem.ts"],"sourcesContent":["export type {\n NavSubItemProps,\n NavSubItemSlots,\n NavSubItemState,\n NavSubItemBaseProps,\n NavSubItemBaseState,\n} from './components/NavSubItem/index';\nexport {\n NavSubItem,\n navSubItemClassNames,\n renderNavSubItem_unstable,\n useNavSubItemStyles_unstable,\n useNavSubItem_unstable,\n useNavSubItemBase_unstable,\n} from './components/NavSubItem/index';\n"],"names":["NavSubItem","navSubItemClassNames","renderNavSubItem_unstable","useNavSubItemStyles_unstable","useNavSubItem_unstable","useNavSubItemBase_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,0BAA0B,QACrB,gCAAgC"}
@@ -1 +1 @@
1
- export { NavSubItemGroup, navSubItemGroupClassNames, renderNavSubItemGroup_unstable, useNavSubItemGroupStyles_unstable, useNavSubItemGroup_unstable } from './components/NavSubItemGroup/index';
1
+ export { NavSubItemGroup, navSubItemGroupClassNames, renderNavSubItemGroup_unstable, useNavSubItemGroupStyles_unstable, useNavSubItemGroup_unstable, useNavSubItemGroupBase_unstable } from './components/NavSubItemGroup/index';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/NavSubItemGroup.ts"],"sourcesContent":["export type {\n NavSubItemGroupProps,\n NavSubItemGroupSlots,\n NavSubItemGroupState,\n} from './components/NavSubItemGroup/index';\nexport {\n NavSubItemGroup,\n navSubItemGroupClassNames,\n renderNavSubItemGroup_unstable,\n useNavSubItemGroupStyles_unstable,\n useNavSubItemGroup_unstable,\n} from './components/NavSubItemGroup/index';\n"],"names":["NavSubItemGroup","navSubItemGroupClassNames","renderNavSubItemGroup_unstable","useNavSubItemGroupStyles_unstable","useNavSubItemGroup_unstable"],"mappings":"AAKA,SACEA,eAAe,EACfC,yBAAyB,EACzBC,8BAA8B,EAC9BC,iCAAiC,EACjCC,2BAA2B,QACtB,qCAAqC"}
1
+ {"version":3,"sources":["../src/NavSubItemGroup.ts"],"sourcesContent":["export type {\n NavSubItemGroupProps,\n NavSubItemGroupSlots,\n NavSubItemGroupState,\n NavSubItemGroupBaseSlots,\n NavSubItemGroupBaseProps,\n NavSubItemGroupBaseState,\n} from './components/NavSubItemGroup/index';\nexport {\n NavSubItemGroup,\n navSubItemGroupClassNames,\n renderNavSubItemGroup_unstable,\n useNavSubItemGroupStyles_unstable,\n useNavSubItemGroup_unstable,\n useNavSubItemGroupBase_unstable,\n} from './components/NavSubItemGroup/index';\n"],"names":["NavSubItemGroup","navSubItemGroupClassNames","renderNavSubItemGroup_unstable","useNavSubItemGroupStyles_unstable","useNavSubItemGroup_unstable","useNavSubItemGroupBase_unstable"],"mappings":"AAQA,SACEA,eAAe,EACfC,yBAAyB,EACzBC,8BAA8B,EAC9BC,iCAAiC,EACjCC,2BAA2B,EAC3BC,+BAA+B,QAC1B,qCAAqC"}
@@ -1,3 +1 @@
1
- /**
2
- * State used in rendering AppItem
3
- */ export { };
1
+ export { };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItem/AppItem.types.ts"],"sourcesContent":["import type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { NavDensity } from '../Nav/Nav.types';\n\nexport type AppItemSlots = {\n /**\n * The root element of the AppItem.\n */\n root: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;\n\n /**\n * Icon that renders before the content.\n */\n icon?: Slot<'span'>;\n};\n\n/**\n * AppItem Props\n */\nexport type AppItemProps = ComponentProps<AppItemSlots> & { href?: string };\n\n/**\n * State used in rendering AppItem\n */\nexport type AppItemState = ComponentState<AppItemSlots> & {\n /**\n * The density of the NavItem\n *\n * @default 'medium'\n */\n density: NavDensity;\n};\n"],"names":[],"mappings":"AAqBA;;CAEC,GACD,WAOE"}
1
+ {"version":3,"sources":["../src/components/AppItem/AppItem.types.ts"],"sourcesContent":["import type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { NavDensity } from '../Nav/Nav.types';\n\nexport type AppItemSlots = {\n /**\n * The root element of the AppItem.\n */\n root: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;\n\n /**\n * Icon that renders before the content.\n */\n icon?: Slot<'span'>;\n};\n\n/**\n * AppItem Props\n */\nexport type AppItemProps = ComponentProps<AppItemSlots> & { href?: string };\n\nexport type AppItemBaseProps = AppItemProps;\n\n/**\n * State used in rendering AppItem\n */\nexport type AppItemState = ComponentState<AppItemSlots> & {\n /**\n * The density of the NavItem\n *\n * @default 'medium'\n */\n density: NavDensity;\n};\n\nexport type AppItemBaseState = Omit<AppItemState, 'density'>;\n"],"names":[],"mappings":"AAmCA,WAA6D"}
@@ -1,4 +1,4 @@
1
1
  export { AppItem } from './AppItem';
2
2
  export { renderAppItem_unstable } from './renderAppItem';
3
- export { useAppItem_unstable } from './useAppItem';
3
+ export { useAppItem_unstable, useAppItemBase_unstable } from './useAppItem';
4
4
  export { appItemClassNames, useAppItemStyles, useAppItemStyles_unstable } from './useAppItemStyles.styles';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItem/index.ts"],"sourcesContent":["export { AppItem } from './AppItem';\nexport type { AppItemProps, AppItemSlots, AppItemState } from './AppItem.types';\nexport { renderAppItem_unstable } from './renderAppItem';\nexport { useAppItem_unstable } from './useAppItem';\nexport { appItemClassNames, useAppItemStyles, useAppItemStyles_unstable } from './useAppItemStyles.styles';\n"],"names":["AppItem","renderAppItem_unstable","useAppItem_unstable","appItemClassNames","useAppItemStyles","useAppItemStyles_unstable"],"mappings":"AAAA,SAASA,OAAO,QAAQ,YAAY;AAEpC,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,iBAAiB,EAAEC,gBAAgB,EAAEC,yBAAyB,QAAQ,4BAA4B"}
1
+ {"version":3,"sources":["../src/components/AppItem/index.ts"],"sourcesContent":["export { AppItem } from './AppItem';\nexport type { AppItemProps, AppItemSlots, AppItemState, AppItemBaseProps, AppItemBaseState } from './AppItem.types';\nexport { renderAppItem_unstable } from './renderAppItem';\nexport { useAppItem_unstable, useAppItemBase_unstable } from './useAppItem';\nexport { appItemClassNames, useAppItemStyles, useAppItemStyles_unstable } from './useAppItemStyles.styles';\n"],"names":["AppItem","renderAppItem_unstable","useAppItem_unstable","useAppItemBase_unstable","appItemClassNames","useAppItemStyles","useAppItemStyles_unstable"],"mappings":"AAAA,SAASA,OAAO,QAAQ,YAAY;AAEpC,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,mBAAmB,EAAEC,uBAAuB,QAAQ,eAAe;AAC5E,SAASC,iBAAiB,EAAEC,gBAAgB,EAAEC,yBAAyB,QAAQ,4BAA4B"}
@@ -11,9 +11,25 @@ import { useNavContext_unstable } from '../NavContext';
11
11
  * @param props - props from this instance of AppItem
12
12
  * @param ref - reference to root HTMLDivElement of AppItem
13
13
  */ export const useAppItem_unstable = (props, ref)=>{
14
+ const { density = 'medium' } = useNavContext_unstable();
15
+ const state = useAppItemBase_unstable(props, ref);
16
+ return {
17
+ ...state,
18
+ density
19
+ };
20
+ };
21
+ /**
22
+ * Create the base state required to render AppItem.
23
+ *
24
+ * The returned state can be modified with hooks such as useAppItemStyles_unstable,
25
+ * before being passed to renderAppItem_unstable.
26
+ *
27
+ * @param props - props from this instance of AppItem
28
+ * @param ref - reference to root HTMLDivElement of AppItem
29
+ * @returns The base state of AppItem
30
+ */ export const useAppItemBase_unstable = (props, ref)=>{
14
31
  const { icon, as, href } = props;
15
32
  const rootElementType = as || (href ? 'a' : 'button');
16
- const { density = 'medium' } = useNavContext_unstable();
17
33
  const root = slot.always(getIntrinsicElementProps(rootElementType, useARIAButtonProps(rootElementType, {
18
34
  ...props
19
35
  })), {
@@ -31,7 +47,6 @@ import { useNavContext_unstable } from '../NavContext';
31
47
  root,
32
48
  icon: slot.optional(icon, {
33
49
  elementType: 'span'
34
- }),
35
- density
50
+ })
36
51
  };
37
52
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItem/useAppItem.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { AppItemProps, AppItemState } from './AppItem.types';\nimport type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { useNavContext_unstable } from '../NavContext';\n\n/**\n * Create the state required to render AppItem.\n *\n * The returned state can be modified with hooks such as useAppItemStyles_unstable,\n * before being passed to renderAppItem_unstable.\n *\n * @param props - props from this instance of AppItem\n * @param ref - reference to root HTMLDivElement of AppItem\n */\nexport const useAppItem_unstable = (\n props: AppItemProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): AppItemState => {\n const { icon, as, href } = props;\n const rootElementType = as || (href ? 'a' : 'button');\n\n const { density = 'medium' } = useNavContext_unstable();\n\n const root = slot.always<ARIAButtonSlotProps<'a'>>(\n getIntrinsicElementProps(\n rootElementType,\n useARIAButtonProps(rootElementType, {\n ...props,\n }),\n ),\n {\n elementType: rootElementType,\n defaultProps: {\n ref: ref as React.Ref<HTMLButtonElement & HTMLAnchorElement>,\n type: rootElementType,\n },\n },\n );\n\n return {\n components: {\n root: rootElementType,\n icon: 'span',\n },\n root,\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n density,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useARIAButtonProps","useNavContext_unstable","useAppItem_unstable","props","ref","icon","as","href","rootElementType","density","root","always","elementType","defaultProps","type","components","optional"],"mappings":"AAAA;AAGA,SAASA,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAG3E,SAASC,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD;;;;;;;;CAQC,GACD,OAAO,MAAMC,sBAAsB,CACjCC,OACAC;IAEA,MAAM,EAAEC,IAAI,EAAEC,EAAE,EAAEC,IAAI,EAAE,GAAGJ;IAC3B,MAAMK,kBAAkBF,MAAOC,CAAAA,OAAO,MAAM,QAAO;IAEnD,MAAM,EAAEE,UAAU,QAAQ,EAAE,GAAGR;IAE/B,MAAMS,OAAOX,KAAKY,MAAM,CACtBb,yBACEU,iBACAR,mBAAmBQ,iBAAiB;QAClC,GAAGL,KAAK;IACV,KAEF;QACES,aAAaJ;QACbK,cAAc;YACZT,KAAKA;YACLU,MAAMN;QACR;IACF;IAGF,OAAO;QACLO,YAAY;YACVL,MAAMF;YACNH,MAAM;QACR;QACAK;QACAL,MAAMN,KAAKiB,QAAQ,CAACX,MAAM;YACxBO,aAAa;QACf;QACAH;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/AppItem/useAppItem.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { AppItemBaseProps, AppItemBaseState, AppItemProps, AppItemState } from './AppItem.types';\nimport type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { useNavContext_unstable } from '../NavContext';\n\n/**\n * Create the state required to render AppItem.\n *\n * The returned state can be modified with hooks such as useAppItemStyles_unstable,\n * before being passed to renderAppItem_unstable.\n *\n * @param props - props from this instance of AppItem\n * @param ref - reference to root HTMLDivElement of AppItem\n */\nexport const useAppItem_unstable = (\n props: AppItemProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): AppItemState => {\n const { density = 'medium' } = useNavContext_unstable();\n const state = useAppItemBase_unstable(props, ref);\n\n return {\n ...state,\n density,\n };\n};\n\n/**\n * Create the base state required to render AppItem.\n *\n * The returned state can be modified with hooks such as useAppItemStyles_unstable,\n * before being passed to renderAppItem_unstable.\n *\n * @param props - props from this instance of AppItem\n * @param ref - reference to root HTMLDivElement of AppItem\n * @returns The base state of AppItem\n */\nexport const useAppItemBase_unstable = (\n props: AppItemBaseProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): AppItemBaseState => {\n const { icon, as, href } = props;\n const rootElementType = as || (href ? 'a' : 'button');\n\n const root = slot.always<ARIAButtonSlotProps<'a'>>(\n getIntrinsicElementProps(\n rootElementType,\n useARIAButtonProps(rootElementType, {\n ...props,\n }),\n ),\n {\n elementType: rootElementType,\n defaultProps: {\n ref: ref as React.Ref<HTMLButtonElement & HTMLAnchorElement>,\n type: rootElementType,\n },\n },\n );\n\n return {\n components: {\n root: rootElementType,\n icon: 'span',\n },\n root,\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useARIAButtonProps","useNavContext_unstable","useAppItem_unstable","props","ref","density","state","useAppItemBase_unstable","icon","as","href","rootElementType","root","always","elementType","defaultProps","type","components","optional"],"mappings":"AAAA;AAGA,SAASA,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAG3E,SAASC,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD;;;;;;;;CAQC,GACD,OAAO,MAAMC,sBAAsB,CACjCC,OACAC;IAEA,MAAM,EAAEC,UAAU,QAAQ,EAAE,GAAGJ;IAC/B,MAAMK,QAAQC,wBAAwBJ,OAAOC;IAE7C,OAAO;QACL,GAAGE,KAAK;QACRD;IACF;AACF,EAAE;AAEF;;;;;;;;;CASC,GACD,OAAO,MAAME,0BAA0B,CACrCJ,OACAC;IAEA,MAAM,EAAEI,IAAI,EAAEC,EAAE,EAAEC,IAAI,EAAE,GAAGP;IAC3B,MAAMQ,kBAAkBF,MAAOC,CAAAA,OAAO,MAAM,QAAO;IAEnD,MAAME,OAAOb,KAAKc,MAAM,CACtBf,yBACEa,iBACAX,mBAAmBW,iBAAiB;QAClC,GAAGR,KAAK;IACV,KAEF;QACEW,aAAaH;QACbI,cAAc;YACZX,KAAKA;YACLY,MAAML;QACR;IACF;IAGF,OAAO;QACLM,YAAY;YACVL,MAAMD;YACNH,MAAM;QACR;QACAI;QACAJ,MAAMT,KAAKmB,QAAQ,CAACV,MAAM;YACxBM,aAAa;QACf;IACF;AACF,EAAE"}
@@ -73,8 +73,10 @@ export const useAppItemStyles_unstable = state => {
73
73
  density,
74
74
  icon
75
75
  } = state;
76
+ // eslint-disable-next-line react-hooks/immutability
76
77
  state.root.className = mergeClasses(rootDefaultClassName, appItemClassNames.root, appItemSpecificStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);
77
78
  if (state.icon) {
79
+ // eslint-disable-next-line react-hooks/immutability
78
80
  state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);
79
81
  }
80
82
  return state;
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","tokens","typographyStyles","useIconStyles","useRootDefaultClassName","appItemClassNames","root","icon","useAppItemStyles","Bokbzmb","Jyy4pa","B1u1w3b","a9b677","Bt984gj","i8kkvl","Belr9w4","rmohyg","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","small","absentIconRootAdjustment","B1hrpyx","d","p","useAppItemStyles_unstable","state","rootDefaultClassName","iconStyles","appItemSpecificStyles","density","className","base"],"sources":["useAppItemStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useIconStyles, useRootDefaultClassName } from '../sharedNavStyles.styles';\nexport const appItemClassNames = {\n root: 'fui-AppItem',\n icon: 'fui-AppItem__icon'\n};\n/**\n * Styles for the root slot\n */ export const useAppItemStyles = makeStyles({\n root: {\n marginInline: '4px',\n width: 'revert',\n alignItems: 'center',\n gap: '10px',\n marginInlineStart: '-6px',\n marginInlineEnd: '0px',\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} ${tokens.spacingHorizontalMNudge}`,\n ...typographyStyles.subtitle2\n },\n small: {\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} 14px`,\n gap: '14px'\n },\n absentIconRootAdjustment: {\n paddingInlineStart: '16px'\n }\n});\n/**\n * Apply styling to the AppItem slots based on the state\n */ export const useAppItemStyles_unstable = (state)=>{\n 'use no memo';\n const rootDefaultClassName = useRootDefaultClassName();\n const iconStyles = useIconStyles();\n const appItemSpecificStyles = useAppItemStyles();\n const { density, icon } = state;\n state.root.className = mergeClasses(rootDefaultClassName, appItemClassNames.root, appItemSpecificStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);\n if (state.icon) {\n state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);\n }\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,uBAAuB;AAChE,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,2BAA2B;AAClF,OAAO,MAAMC,iBAAiB,GAAG;EAC7BC,IAAI,EAAE,aAAa;EACnBC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,gBAAgB,gBAAGT,QAAA;EAAAO,IAAA;IAAAG,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAC,KAAA;IAAAT,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAP,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAW,wBAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CAkBnC,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,yBAAyB,GAAIC,KAAK,IAAG;EAClD,aAAa;;EACb,MAAMC,oBAAoB,GAAG7B,uBAAuB,CAAC,CAAC;EACtD,MAAM8B,UAAU,GAAG/B,aAAa,CAAC,CAAC;EAClC,MAAMgC,qBAAqB,GAAG3B,gBAAgB,CAAC,CAAC;EAChD,MAAM;IAAE4B,OAAO;IAAE7B;EAAK,CAAC,GAAGyB,KAAK;EAC/BA,KAAK,CAAC1B,IAAI,CAAC+B,SAAS,GAAGrC,YAAY,CAACiC,oBAAoB,EAAE5B,iBAAiB,CAACC,IAAI,EAAE6B,qBAAqB,CAAC7B,IAAI,EAAE8B,OAAO,KAAK,OAAO,IAAID,qBAAqB,CAACT,KAAK,EAAE,CAACnB,IAAI,IAAI4B,qBAAqB,CAACR,wBAAwB,EAAEK,KAAK,CAAC1B,IAAI,CAAC+B,SAAS,CAAC;EAChP,IAAIL,KAAK,CAACzB,IAAI,EAAE;IACZyB,KAAK,CAACzB,IAAI,CAAC8B,SAAS,GAAGrC,YAAY,CAACK,iBAAiB,CAACE,IAAI,EAAE2B,UAAU,CAACI,IAAI,EAAEN,KAAK,CAACzB,IAAI,CAAC8B,SAAS,CAAC;EACtG;EACA,OAAOL,KAAK;AAChB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__styles","mergeClasses","tokens","typographyStyles","useIconStyles","useRootDefaultClassName","appItemClassNames","root","icon","useAppItemStyles","Bokbzmb","Jyy4pa","B1u1w3b","a9b677","Bt984gj","i8kkvl","Belr9w4","rmohyg","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","small","absentIconRootAdjustment","B1hrpyx","d","p","useAppItemStyles_unstable","state","rootDefaultClassName","iconStyles","appItemSpecificStyles","density","className","base"],"sources":["useAppItemStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useIconStyles, useRootDefaultClassName } from '../sharedNavStyles.styles';\nexport const appItemClassNames = {\n root: 'fui-AppItem',\n icon: 'fui-AppItem__icon'\n};\n/**\n * Styles for the root slot\n */ export const useAppItemStyles = makeStyles({\n root: {\n marginInline: '4px',\n width: 'revert',\n alignItems: 'center',\n gap: '10px',\n marginInlineStart: '-6px',\n marginInlineEnd: '0px',\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} ${tokens.spacingHorizontalMNudge}`,\n ...typographyStyles.subtitle2\n },\n small: {\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} 14px`,\n gap: '14px'\n },\n absentIconRootAdjustment: {\n paddingInlineStart: '16px'\n }\n});\n/**\n * Apply styling to the AppItem slots based on the state\n */ export const useAppItemStyles_unstable = (state)=>{\n 'use no memo';\n const rootDefaultClassName = useRootDefaultClassName();\n const iconStyles = useIconStyles();\n const appItemSpecificStyles = useAppItemStyles();\n const { density, icon } = state;\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(rootDefaultClassName, appItemClassNames.root, appItemSpecificStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);\n }\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,uBAAuB;AAChE,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,2BAA2B;AAClF,OAAO,MAAMC,iBAAiB,GAAG;EAC7BC,IAAI,EAAE,aAAa;EACnBC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,gBAAgB,gBAAGT,QAAA;EAAAO,IAAA;IAAAG,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAC,KAAA;IAAAT,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAP,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAW,wBAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CAkBnC,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,yBAAyB,GAAIC,KAAK,IAAG;EAClD,aAAa;;EACb,MAAMC,oBAAoB,GAAG7B,uBAAuB,CAAC,CAAC;EACtD,MAAM8B,UAAU,GAAG/B,aAAa,CAAC,CAAC;EAClC,MAAMgC,qBAAqB,GAAG3B,gBAAgB,CAAC,CAAC;EAChD,MAAM;IAAE4B,OAAO;IAAE7B;EAAK,CAAC,GAAGyB,KAAK;EAC/B;EACAA,KAAK,CAAC1B,IAAI,CAAC+B,SAAS,GAAGrC,YAAY,CAACiC,oBAAoB,EAAE5B,iBAAiB,CAACC,IAAI,EAAE6B,qBAAqB,CAAC7B,IAAI,EAAE8B,OAAO,KAAK,OAAO,IAAID,qBAAqB,CAACT,KAAK,EAAE,CAACnB,IAAI,IAAI4B,qBAAqB,CAACR,wBAAwB,EAAEK,KAAK,CAAC1B,IAAI,CAAC+B,SAAS,CAAC;EAChP,IAAIL,KAAK,CAACzB,IAAI,EAAE;IACZ;IACAyB,KAAK,CAACzB,IAAI,CAAC8B,SAAS,GAAGrC,YAAY,CAACK,iBAAiB,CAACE,IAAI,EAAE2B,UAAU,CAACI,IAAI,EAAEN,KAAK,CAACzB,IAAI,CAAC8B,SAAS,CAAC;EACtG;EACA,OAAOL,KAAK;AAChB,CAAC","ignoreList":[]}
@@ -35,8 +35,10 @@ export const appItemClassNames = {
35
35
  const iconStyles = useIconStyles();
36
36
  const appItemSpecificStyles = useAppItemStyles();
37
37
  const { density, icon } = state;
38
+ // eslint-disable-next-line react-hooks/immutability
38
39
  state.root.className = mergeClasses(rootDefaultClassName, appItemClassNames.root, appItemSpecificStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);
39
40
  if (state.icon) {
41
+ // eslint-disable-next-line react-hooks/immutability
40
42
  state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);
41
43
  }
42
44
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItem/useAppItemStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { AppItemSlots, AppItemState } from './AppItem.types';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useIconStyles, useRootDefaultClassName } from '../sharedNavStyles.styles';\n\nexport const appItemClassNames: SlotClassNames<AppItemSlots> = {\n root: 'fui-AppItem',\n icon: 'fui-AppItem__icon',\n};\n\n/**\n * Styles for the root slot\n */\nexport const useAppItemStyles = makeStyles({\n root: {\n marginInline: '4px',\n width: 'revert',\n alignItems: 'center',\n gap: '10px',\n marginInlineStart: '-6px',\n marginInlineEnd: '0px',\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} ${tokens.spacingHorizontalMNudge}`,\n ...typographyStyles.subtitle2,\n },\n small: {\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} 14px`,\n gap: '14px',\n },\n absentIconRootAdjustment: {\n paddingInlineStart: '16px',\n },\n});\n\n/**\n * Apply styling to the AppItem slots based on the state\n */\nexport const useAppItemStyles_unstable = (state: AppItemState): AppItemState => {\n 'use no memo';\n\n const rootDefaultClassName = useRootDefaultClassName();\n const iconStyles = useIconStyles();\n const appItemSpecificStyles = useAppItemStyles();\n\n const { density, icon } = state;\n\n state.root.className = mergeClasses(\n rootDefaultClassName,\n appItemClassNames.root,\n appItemSpecificStyles.root,\n density === 'small' && appItemSpecificStyles.small,\n !icon && appItemSpecificStyles.absentIconRootAdjustment,\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","useIconStyles","useRootDefaultClassName","appItemClassNames","root","icon","useAppItemStyles","marginInline","width","alignItems","gap","marginInlineStart","marginInlineEnd","padding","spacingVerticalS","spacingHorizontalS","spacingHorizontalMNudge","subtitle2","small","absentIconRootAdjustment","paddingInlineStart","useAppItemStyles_unstable","state","rootDefaultClassName","iconStyles","appItemSpecificStyles","density","className","base"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAG1D,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AACjE,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,4BAA4B;AAEnF,OAAO,MAAMC,oBAAkD;IAC7DC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,mBAAmBT,WAAW;IACzCO,MAAM;QACJG,cAAc;QACdC,OAAO;QACPC,YAAY;QACZC,KAAK;QACLC,mBAAmB;QACnBC,iBAAiB;QACjBC,SAAS,GAAGd,OAAOe,gBAAgB,CAAC,CAAC,EAAEf,OAAOgB,kBAAkB,CAAC,CAAC,EAAEhB,OAAOe,gBAAgB,CAAC,CAAC,EAAEf,OAAOiB,uBAAuB,EAAE;QAC/H,GAAGhB,iBAAiBiB,SAAS;IAC/B;IACAC,OAAO;QACLL,SAAS,GAAGd,OAAOe,gBAAgB,CAAC,CAAC,EAAEf,OAAOgB,kBAAkB,CAAC,CAAC,EAAEhB,OAAOe,gBAAgB,CAAC,KAAK,CAAC;QAClGJ,KAAK;IACP;IACAS,0BAA0B;QACxBC,oBAAoB;IACtB;AACF,GAAG;AAEH;;CAEC,GACD,OAAO,MAAMC,4BAA4B,CAACC;IACxC;IAEA,MAAMC,uBAAuBrB;IAC7B,MAAMsB,aAAavB;IACnB,MAAMwB,wBAAwBnB;IAE9B,MAAM,EAAEoB,OAAO,EAAErB,IAAI,EAAE,GAAGiB;IAE1BA,MAAMlB,IAAI,CAACuB,SAAS,GAAG7B,aACrByB,sBACApB,kBAAkBC,IAAI,EACtBqB,sBAAsBrB,IAAI,EAC1BsB,YAAY,WAAWD,sBAAsBP,KAAK,EAClD,CAACb,QAAQoB,sBAAsBN,wBAAwB,EACvDG,MAAMlB,IAAI,CAACuB,SAAS;IAGtB,IAAIL,MAAMjB,IAAI,EAAE;QACdiB,MAAMjB,IAAI,CAACsB,SAAS,GAAG7B,aAAaK,kBAAkBE,IAAI,EAAEmB,WAAWI,IAAI,EAAEN,MAAMjB,IAAI,CAACsB,SAAS;IACnG;IAEA,OAAOL;AACT,EAAE"}
1
+ {"version":3,"sources":["../src/components/AppItem/useAppItemStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { AppItemSlots, AppItemState } from './AppItem.types';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useIconStyles, useRootDefaultClassName } from '../sharedNavStyles.styles';\n\nexport const appItemClassNames: SlotClassNames<AppItemSlots> = {\n root: 'fui-AppItem',\n icon: 'fui-AppItem__icon',\n};\n\n/**\n * Styles for the root slot\n */\nexport const useAppItemStyles = makeStyles({\n root: {\n marginInline: '4px',\n width: 'revert',\n alignItems: 'center',\n gap: '10px',\n marginInlineStart: '-6px',\n marginInlineEnd: '0px',\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} ${tokens.spacingHorizontalMNudge}`,\n ...typographyStyles.subtitle2,\n },\n small: {\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalS} 14px`,\n gap: '14px',\n },\n absentIconRootAdjustment: {\n paddingInlineStart: '16px',\n },\n});\n\n/**\n * Apply styling to the AppItem slots based on the state\n */\nexport const useAppItemStyles_unstable = (state: AppItemState): AppItemState => {\n 'use no memo';\n\n const rootDefaultClassName = useRootDefaultClassName();\n const iconStyles = useIconStyles();\n const appItemSpecificStyles = useAppItemStyles();\n\n const { density, icon } = state;\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(\n rootDefaultClassName,\n appItemClassNames.root,\n appItemSpecificStyles.root,\n density === 'small' && appItemSpecificStyles.small,\n !icon && appItemSpecificStyles.absentIconRootAdjustment,\n state.root.className,\n );\n\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","useIconStyles","useRootDefaultClassName","appItemClassNames","root","icon","useAppItemStyles","marginInline","width","alignItems","gap","marginInlineStart","marginInlineEnd","padding","spacingVerticalS","spacingHorizontalS","spacingHorizontalMNudge","subtitle2","small","absentIconRootAdjustment","paddingInlineStart","useAppItemStyles_unstable","state","rootDefaultClassName","iconStyles","appItemSpecificStyles","density","className","base"],"mappings":"AAAA;AAEA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAG1D,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AACjE,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,4BAA4B;AAEnF,OAAO,MAAMC,oBAAkD;IAC7DC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,mBAAmBT,WAAW;IACzCO,MAAM;QACJG,cAAc;QACdC,OAAO;QACPC,YAAY;QACZC,KAAK;QACLC,mBAAmB;QACnBC,iBAAiB;QACjBC,SAAS,GAAGd,OAAOe,gBAAgB,CAAC,CAAC,EAAEf,OAAOgB,kBAAkB,CAAC,CAAC,EAAEhB,OAAOe,gBAAgB,CAAC,CAAC,EAAEf,OAAOiB,uBAAuB,EAAE;QAC/H,GAAGhB,iBAAiBiB,SAAS;IAC/B;IACAC,OAAO;QACLL,SAAS,GAAGd,OAAOe,gBAAgB,CAAC,CAAC,EAAEf,OAAOgB,kBAAkB,CAAC,CAAC,EAAEhB,OAAOe,gBAAgB,CAAC,KAAK,CAAC;QAClGJ,KAAK;IACP;IACAS,0BAA0B;QACxBC,oBAAoB;IACtB;AACF,GAAG;AAEH;;CAEC,GACD,OAAO,MAAMC,4BAA4B,CAACC;IACxC;IAEA,MAAMC,uBAAuBrB;IAC7B,MAAMsB,aAAavB;IACnB,MAAMwB,wBAAwBnB;IAE9B,MAAM,EAAEoB,OAAO,EAAErB,IAAI,EAAE,GAAGiB;IAE1B,oDAAoD;IACpDA,MAAMlB,IAAI,CAACuB,SAAS,GAAG7B,aACrByB,sBACApB,kBAAkBC,IAAI,EACtBqB,sBAAsBrB,IAAI,EAC1BsB,YAAY,WAAWD,sBAAsBP,KAAK,EAClD,CAACb,QAAQoB,sBAAsBN,wBAAwB,EACvDG,MAAMlB,IAAI,CAACuB,SAAS;IAGtB,IAAIL,MAAMjB,IAAI,EAAE;QACd,oDAAoD;QACpDiB,MAAMjB,IAAI,CAACsB,SAAS,GAAG7B,aAAaK,kBAAkBE,IAAI,EAAEmB,WAAWI,IAAI,EAAEN,MAAMjB,IAAI,CAACsB,SAAS;IACnG;IAEA,OAAOL;AACT,EAAE"}
@@ -1,3 +1 @@
1
- /**
2
- * State used in rendering AppItemStatic
3
- */ export { };
1
+ export { };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItemStatic/AppItemStatic.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { NavDensity } from '../Nav/Nav.types';\n\nexport type AppItemStaticSlots = {\n /**\n * The root element of the AppItemStatic.\n */\n root: Slot<'div'>;\n /**\n * Icon that renders before the content.\n */\n icon?: Slot<'span'>;\n};\n\n/**\n * AppItemStatic Props\n */\nexport type AppItemStaticProps = ComponentProps<AppItemStaticSlots> & {};\n\n/**\n * State used in rendering AppItemStatic\n */\nexport type AppItemStaticState = ComponentState<AppItemStaticSlots> & {\n /**\n * The density of the Nav\n *\n * @default 'medium'\n */\n density: NavDensity;\n};\n"],"names":[],"mappings":"AAmBA;;CAEC,GACD,WAOE"}
1
+ {"version":3,"sources":["../src/components/AppItemStatic/AppItemStatic.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { NavDensity } from '../Nav/Nav.types';\n\nexport type AppItemStaticSlots = {\n /**\n * The root element of the AppItemStatic.\n */\n root: Slot<'div'>;\n /**\n * Icon that renders before the content.\n */\n icon?: Slot<'span'>;\n};\n\n/**\n * AppItemStatic Props\n */\nexport type AppItemStaticProps = ComponentProps<AppItemStaticSlots>;\n\nexport type AppItemStaticBaseProps = AppItemStaticProps;\n\n/**\n * State used in rendering AppItemStatic\n */\nexport type AppItemStaticState = ComponentState<AppItemStaticSlots> & {\n /**\n * The density of the Nav\n *\n * @default 'medium'\n */\n density: NavDensity;\n};\n\nexport type AppItemStaticBaseState = Omit<AppItemStaticState, 'density'>;\n"],"names":[],"mappings":"AAiCA,WAAyE"}
@@ -1,4 +1,4 @@
1
1
  export { AppItemStatic } from './AppItemStatic';
2
2
  export { renderAppItemStatic_unstable } from './renderAppItemStatic';
3
- export { useAppItemStatic_unstable } from './useAppItemStatic';
3
+ export { useAppItemStatic_unstable, useAppItemStaticBase_unstable } from './useAppItemStatic';
4
4
  export { appItemStaticClassNames, useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItemStatic/index.ts"],"sourcesContent":["export { AppItemStatic } from './AppItemStatic';\nexport type { AppItemStaticProps, AppItemStaticSlots, AppItemStaticState } from './AppItemStatic.types';\nexport { renderAppItemStatic_unstable } from './renderAppItemStatic';\nexport { useAppItemStatic_unstable } from './useAppItemStatic';\nexport { appItemStaticClassNames, useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';\n"],"names":["AppItemStatic","renderAppItemStatic_unstable","useAppItemStatic_unstable","appItemStaticClassNames","useAppItemStaticStyles_unstable"],"mappings":"AAAA,SAASA,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,uBAAuB,EAAEC,+BAA+B,QAAQ,kCAAkC"}
1
+ {"version":3,"sources":["../src/components/AppItemStatic/index.ts"],"sourcesContent":["export { AppItemStatic } from './AppItemStatic';\nexport type {\n AppItemStaticProps,\n AppItemStaticSlots,\n AppItemStaticState,\n AppItemStaticBaseProps,\n AppItemStaticBaseState,\n} from './AppItemStatic.types';\nexport { renderAppItemStatic_unstable } from './renderAppItemStatic';\nexport { useAppItemStatic_unstable, useAppItemStaticBase_unstable } from './useAppItemStatic';\nexport { appItemStaticClassNames, useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';\n"],"names":["AppItemStatic","renderAppItemStatic_unstable","useAppItemStatic_unstable","useAppItemStaticBase_unstable","appItemStaticClassNames","useAppItemStaticStyles_unstable"],"mappings":"AAAA,SAASA,aAAa,QAAQ,kBAAkB;AAQhD,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,yBAAyB,EAAEC,6BAA6B,QAAQ,qBAAqB;AAC9F,SAASC,uBAAuB,EAAEC,+BAA+B,QAAQ,kCAAkC"}
@@ -10,8 +10,15 @@ import { useNavContext_unstable } from '../NavContext';
10
10
  * @param props - props from this instance of AppItemStatic
11
11
  * @param ref - reference to root HTMLDivElement of AppItemStatic
12
12
  */ export const useAppItemStatic_unstable = (props, ref)=>{
13
- const { icon } = props;
14
13
  const { density = 'medium' } = useNavContext_unstable();
14
+ const state = useAppItemStaticBase_unstable(props, ref);
15
+ return {
16
+ ...state,
17
+ density
18
+ };
19
+ };
20
+ export const useAppItemStaticBase_unstable = (props, ref)=>{
21
+ const { icon } = props;
15
22
  return {
16
23
  components: {
17
24
  root: 'div',
@@ -25,7 +32,6 @@ import { useNavContext_unstable } from '../NavContext';
25
32
  }),
26
33
  icon: slot.optional(icon, {
27
34
  elementType: 'span'
28
- }),
29
- density
35
+ })
30
36
  };
31
37
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItemStatic/useAppItemStatic.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { AppItemStaticProps, AppItemStaticState } from './AppItemStatic.types';\nimport { useNavContext_unstable } from '../NavContext';\n\n/**\n * Create the state required to render AppItemStatic.\n *\n * The returned state can be modified with hooks such as useAppItemStaticStyles_unstable,\n * before being passed to renderAppItemStatic_unstable.\n *\n * @param props - props from this instance of AppItemStatic\n * @param ref - reference to root HTMLDivElement of AppItemStatic\n */\nexport const useAppItemStatic_unstable = (\n props: AppItemStaticProps,\n ref: React.Ref<HTMLDivElement>,\n): AppItemStaticState => {\n const { icon } = props;\n\n const { density = 'medium' } = useNavContext_unstable();\n return {\n components: {\n root: 'div',\n icon: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n ...props,\n }),\n { elementType: 'div' },\n ),\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n density,\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useNavContext_unstable","useAppItemStatic_unstable","props","ref","icon","density","components","root","always","elementType","optional"],"mappings":"AAAA;AAGA,SAASA,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAE3E,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,MAAM,EAAEC,IAAI,EAAE,GAAGF;IAEjB,MAAM,EAAEG,UAAU,QAAQ,EAAE,GAAGL;IAC/B,OAAO;QACLM,YAAY;YACVC,MAAM;YACNH,MAAM;QACR;QACAG,MAAMR,KAAKS,MAAM,CACfV,yBAAyB,OAAO;YAC9BK;YACA,GAAGD,KAAK;QACV,IACA;YAAEO,aAAa;QAAM;QAEvBL,MAAML,KAAKW,QAAQ,CAACN,MAAM;YACxBK,aAAa;QACf;QACAJ;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/AppItemStatic/useAppItemStatic.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type {\n AppItemStaticBaseProps,\n AppItemStaticBaseState,\n AppItemStaticProps,\n AppItemStaticState,\n} from './AppItemStatic.types';\nimport { useNavContext_unstable } from '../NavContext';\n\n/**\n * Create the state required to render AppItemStatic.\n *\n * The returned state can be modified with hooks such as useAppItemStaticStyles_unstable,\n * before being passed to renderAppItemStatic_unstable.\n *\n * @param props - props from this instance of AppItemStatic\n * @param ref - reference to root HTMLDivElement of AppItemStatic\n */\nexport const useAppItemStatic_unstable = (\n props: AppItemStaticProps,\n ref: React.Ref<HTMLDivElement>,\n): AppItemStaticState => {\n const { density = 'medium' } = useNavContext_unstable();\n const state = useAppItemStaticBase_unstable(props, ref);\n\n return {\n ...state,\n density,\n };\n};\n\nexport const useAppItemStaticBase_unstable = (\n props: AppItemStaticBaseProps,\n ref: React.Ref<HTMLDivElement>,\n): AppItemStaticBaseState => {\n const { icon } = props;\n\n return {\n components: {\n root: 'div',\n icon: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n ...props,\n }),\n { elementType: 'div' },\n ),\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n };\n};\n"],"names":["getIntrinsicElementProps","slot","useNavContext_unstable","useAppItemStatic_unstable","props","ref","density","state","useAppItemStaticBase_unstable","icon","components","root","always","elementType","optional"],"mappings":"AAAA;AAGA,SAASA,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAO3E,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,MAAM,EAAEC,UAAU,QAAQ,EAAE,GAAGJ;IAC/B,MAAMK,QAAQC,8BAA8BJ,OAAOC;IAEnD,OAAO;QACL,GAAGE,KAAK;QACRD;IACF;AACF,EAAE;AAEF,OAAO,MAAME,gCAAgC,CAC3CJ,OACAC;IAEA,MAAM,EAAEI,IAAI,EAAE,GAAGL;IAEjB,OAAO;QACLM,YAAY;YACVC,MAAM;YACNF,MAAM;QACR;QACAE,MAAMV,KAAKW,MAAM,CACfZ,yBAAyB,OAAO;YAC9BK;YACA,GAAGD,KAAK;QACV,IACA;YAAES,aAAa;QAAM;QAEvBJ,MAAMR,KAAKa,QAAQ,CAACL,MAAM;YACxBI,aAAa;QACf;IACF;AACF,EAAE"}
@@ -32,8 +32,10 @@ export const useAppItemStaticStyles_unstable = state => {
32
32
  density,
33
33
  icon
34
34
  } = state;
35
+ // eslint-disable-next-line react-hooks/immutability
35
36
  state.root.className = mergeClasses(rootDefaultClassName, appItemStaticClassNames.root, appItemSpecificStyles.root, appItemStaticStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);
36
37
  if (state.icon) {
38
+ // eslint-disable-next-line react-hooks/immutability
37
39
  state.icon.className = mergeClasses(appItemStaticClassNames.icon, iconStyles.base, state.icon.className);
38
40
  }
39
41
  return state;
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","useAppItemStyles","useIconStyles","useRootDefaultClassName","appItemStaticClassNames","root","icon","useAppItemStaticStyles","Bceei9c","Jwef8y","ecr2s2","d","h","a","useAppItemStaticStyles_unstable","state","rootDefaultClassName","iconStyles","appItemSpecificStyles","appItemStaticStyles","density","className","small","absentIconRootAdjustment","base"],"sources":["useAppItemStaticStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { useAppItemStyles } from '../AppItem/useAppItemStyles.styles';\nimport { useIconStyles, useRootDefaultClassName } from '../sharedNavStyles.styles';\nexport const appItemStaticClassNames = {\n root: 'fui-AppItemStatic',\n icon: 'fui-AppItemStatic__icon'\n};\nconst useAppItemStaticStyles = makeStyles({\n root: {\n cursor: 'default',\n ':hover': {\n backgroundColor: 'unset'\n },\n ':active': {\n backgroundColor: 'unset'\n }\n }\n});\n/**\n * Apply styling to the AppItemStatic slots based on the state\n */ export const useAppItemStaticStyles_unstable = (state)=>{\n 'use no memo';\n const rootDefaultClassName = useRootDefaultClassName();\n const iconStyles = useIconStyles();\n const appItemSpecificStyles = useAppItemStyles();\n const appItemStaticStyles = useAppItemStaticStyles();\n const { density, icon } = state;\n state.root.className = mergeClasses(rootDefaultClassName, appItemStaticClassNames.root, appItemSpecificStyles.root, appItemStaticStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);\n if (state.icon) {\n state.icon.className = mergeClasses(appItemStaticClassNames.icon, iconStyles.base, state.icon.className);\n }\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,gBAAgB,QAAQ,oCAAoC;AACrE,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,2BAA2B;AAClF,OAAO,MAAMC,uBAAuB,GAAG;EACnCC,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,sBAAsB,gBAAGR,QAAA;EAAAM,IAAA;IAAAG,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;EAAAC,CAAA;EAAAC,CAAA;AAAA,CAU9B,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,+BAA+B,GAAIC,KAAK,IAAG;EACxD,aAAa;;EACb,MAAMC,oBAAoB,GAAGb,uBAAuB,CAAC,CAAC;EACtD,MAAMc,UAAU,GAAGf,aAAa,CAAC,CAAC;EAClC,MAAMgB,qBAAqB,GAAGjB,gBAAgB,CAAC,CAAC;EAChD,MAAMkB,mBAAmB,GAAGZ,sBAAsB,CAAC,CAAC;EACpD,MAAM;IAAEa,OAAO;IAAEd;EAAK,CAAC,GAAGS,KAAK;EAC/BA,KAAK,CAACV,IAAI,CAACgB,SAAS,GAAGrB,YAAY,CAACgB,oBAAoB,EAAEZ,uBAAuB,CAACC,IAAI,EAAEa,qBAAqB,CAACb,IAAI,EAAEc,mBAAmB,CAACd,IAAI,EAAEe,OAAO,KAAK,OAAO,IAAIF,qBAAqB,CAACI,KAAK,EAAE,CAAChB,IAAI,IAAIY,qBAAqB,CAACK,wBAAwB,EAAER,KAAK,CAACV,IAAI,CAACgB,SAAS,CAAC;EAChR,IAAIN,KAAK,CAACT,IAAI,EAAE;IACZS,KAAK,CAACT,IAAI,CAACe,SAAS,GAAGrB,YAAY,CAACI,uBAAuB,CAACE,IAAI,EAAEW,UAAU,CAACO,IAAI,EAAET,KAAK,CAACT,IAAI,CAACe,SAAS,CAAC;EAC5G;EACA,OAAON,KAAK;AAChB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__styles","mergeClasses","useAppItemStyles","useIconStyles","useRootDefaultClassName","appItemStaticClassNames","root","icon","useAppItemStaticStyles","Bceei9c","Jwef8y","ecr2s2","d","h","a","useAppItemStaticStyles_unstable","state","rootDefaultClassName","iconStyles","appItemSpecificStyles","appItemStaticStyles","density","className","small","absentIconRootAdjustment","base"],"sources":["useAppItemStaticStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { useAppItemStyles } from '../AppItem/useAppItemStyles.styles';\nimport { useIconStyles, useRootDefaultClassName } from '../sharedNavStyles.styles';\nexport const appItemStaticClassNames = {\n root: 'fui-AppItemStatic',\n icon: 'fui-AppItemStatic__icon'\n};\nconst useAppItemStaticStyles = makeStyles({\n root: {\n cursor: 'default',\n ':hover': {\n backgroundColor: 'unset'\n },\n ':active': {\n backgroundColor: 'unset'\n }\n }\n});\n/**\n * Apply styling to the AppItemStatic slots based on the state\n */ export const useAppItemStaticStyles_unstable = (state)=>{\n 'use no memo';\n const rootDefaultClassName = useRootDefaultClassName();\n const iconStyles = useIconStyles();\n const appItemSpecificStyles = useAppItemStyles();\n const appItemStaticStyles = useAppItemStaticStyles();\n const { density, icon } = state;\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(rootDefaultClassName, appItemStaticClassNames.root, appItemSpecificStyles.root, appItemStaticStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = mergeClasses(appItemStaticClassNames.icon, iconStyles.base, state.icon.className);\n }\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,gBAAgB,QAAQ,oCAAoC;AACrE,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,2BAA2B;AAClF,OAAO,MAAMC,uBAAuB,GAAG;EACnCC,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,sBAAsB,gBAAGR,QAAA;EAAAM,IAAA;IAAAG,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;AAAA;EAAAC,CAAA;EAAAC,CAAA;EAAAC,CAAA;AAAA,CAU9B,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,+BAA+B,GAAIC,KAAK,IAAG;EACxD,aAAa;;EACb,MAAMC,oBAAoB,GAAGb,uBAAuB,CAAC,CAAC;EACtD,MAAMc,UAAU,GAAGf,aAAa,CAAC,CAAC;EAClC,MAAMgB,qBAAqB,GAAGjB,gBAAgB,CAAC,CAAC;EAChD,MAAMkB,mBAAmB,GAAGZ,sBAAsB,CAAC,CAAC;EACpD,MAAM;IAAEa,OAAO;IAAEd;EAAK,CAAC,GAAGS,KAAK;EAC/B;EACAA,KAAK,CAACV,IAAI,CAACgB,SAAS,GAAGrB,YAAY,CAACgB,oBAAoB,EAAEZ,uBAAuB,CAACC,IAAI,EAAEa,qBAAqB,CAACb,IAAI,EAAEc,mBAAmB,CAACd,IAAI,EAAEe,OAAO,KAAK,OAAO,IAAIF,qBAAqB,CAACI,KAAK,EAAE,CAAChB,IAAI,IAAIY,qBAAqB,CAACK,wBAAwB,EAAER,KAAK,CAACV,IAAI,CAACgB,SAAS,CAAC;EAChR,IAAIN,KAAK,CAACT,IAAI,EAAE;IACZ;IACAS,KAAK,CAACT,IAAI,CAACe,SAAS,GAAGrB,YAAY,CAACI,uBAAuB,CAACE,IAAI,EAAEW,UAAU,CAACO,IAAI,EAAET,KAAK,CAACT,IAAI,CAACe,SAAS,CAAC;EAC5G;EACA,OAAON,KAAK;AAChB,CAAC","ignoreList":[]}