@fluentui/react-nav 9.3.24 → 9.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -13
- package/dist/index.d.ts +93 -1
- package/lib/AppItem.js +1 -1
- package/lib/AppItem.js.map +1 -1
- package/lib/AppItemStatic.js +1 -1
- package/lib/AppItemStatic.js.map +1 -1
- package/lib/Nav.js +2 -2
- package/lib/Nav.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/NavSubItem.js +1 -1
- package/lib/NavSubItem.js.map +1 -1
- package/lib/NavSubItemGroup.js +1 -1
- package/lib/NavSubItemGroup.js.map +1 -1
- package/lib/components/AppItem/AppItem.types.js +1 -3
- package/lib/components/AppItem/AppItem.types.js.map +1 -1
- package/lib/components/AppItem/index.js +1 -1
- package/lib/components/AppItem/index.js.map +1 -1
- package/lib/components/AppItem/useAppItem.js +18 -3
- package/lib/components/AppItem/useAppItem.js.map +1 -1
- package/lib/components/AppItem/useAppItemStyles.styles.js +2 -2
- package/lib/components/AppItem/useAppItemStyles.styles.js.map +1 -1
- package/lib/components/AppItem/useAppItemStyles.styles.raw.js +2 -1
- package/lib/components/AppItem/useAppItemStyles.styles.raw.js.map +1 -1
- package/lib/components/AppItemStatic/AppItemStatic.types.js +1 -3
- package/lib/components/AppItemStatic/AppItemStatic.types.js.map +1 -1
- package/lib/components/AppItemStatic/index.js +1 -1
- package/lib/components/AppItemStatic/index.js.map +1 -1
- package/lib/components/AppItemStatic/useAppItemStatic.js +9 -3
- package/lib/components/AppItemStatic/useAppItemStatic.js.map +1 -1
- package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.js +2 -2
- package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.js.map +1 -1
- package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js +2 -1
- package/lib/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js.map +1 -1
- package/lib/components/Hamburger/useHamburgerStyles.styles.js +2 -2
- package/lib/components/Hamburger/useHamburgerStyles.styles.js.map +1 -1
- package/lib/components/Hamburger/useHamburgerStyles.styles.raw.js +2 -1
- package/lib/components/Hamburger/useHamburgerStyles.styles.raw.js.map +1 -1
- package/lib/components/Nav/Nav.types.js +1 -3
- package/lib/components/Nav/Nav.types.js.map +1 -1
- package/lib/components/Nav/index.js +1 -1
- package/lib/components/Nav/index.js.map +1 -1
- package/lib/components/Nav/useNav.js +17 -4
- package/lib/components/Nav/useNav.js.map +1 -1
- package/lib/components/Nav/useNavStyles.styles.js +1 -2
- package/lib/components/Nav/useNavStyles.styles.js.map +1 -1
- package/lib/components/Nav/useNavStyles.styles.raw.js +1 -1
- package/lib/components/Nav/useNavStyles.styles.raw.js.map +1 -1
- package/lib/components/NavCategoryItem/NavCategoryItem.types.js +1 -1
- package/lib/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
- package/lib/components/NavCategoryItem/index.js +1 -1
- package/lib/components/NavCategoryItem/index.js.map +1 -1
- package/lib/components/NavCategoryItem/useNavCategoryItem.js +34 -12
- package/lib/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js +3 -2
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.raw.js +3 -1
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.raw.js.map +1 -1
- package/lib/components/NavDivider/useNavDividerStyles.styles.js +2 -2
- package/lib/components/NavDivider/useNavDividerStyles.styles.js.map +1 -1
- package/lib/components/NavDivider/useNavDividerStyles.styles.raw.js +2 -1
- package/lib/components/NavDivider/useNavDividerStyles.styles.raw.js.map +1 -1
- package/lib/components/NavDrawer/useNavDrawerStyles.styles.js +1 -2
- package/lib/components/NavDrawer/useNavDrawerStyles.styles.js.map +1 -1
- package/lib/components/NavDrawer/useNavDrawerStyles.styles.raw.js +1 -1
- package/lib/components/NavDrawer/useNavDrawerStyles.styles.raw.js.map +1 -1
- package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js +1 -2
- package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js.map +1 -1
- package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js +1 -1
- package/lib/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js.map +1 -1
- package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js +1 -2
- package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js.map +1 -1
- package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js +1 -1
- package/lib/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js.map +1 -1
- package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js +1 -2
- package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js.map +1 -1
- package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js +1 -1
- package/lib/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js.map +1 -1
- package/lib/components/NavItem/NavItem.types.js +1 -3
- package/lib/components/NavItem/NavItem.types.js.map +1 -1
- package/lib/components/NavItem/index.js +1 -1
- package/lib/components/NavItem/index.js.map +1 -1
- package/lib/components/NavItem/useNavItem.js +16 -3
- package/lib/components/NavItem/useNavItem.js.map +1 -1
- package/lib/components/NavItem/useNavItemStyles.styles.js +2 -2
- package/lib/components/NavItem/useNavItemStyles.styles.js.map +1 -1
- package/lib/components/NavItem/useNavItemStyles.styles.raw.js +2 -1
- package/lib/components/NavItem/useNavItemStyles.styles.raw.js.map +1 -1
- package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js +1 -2
- package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js.map +1 -1
- package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js +1 -1
- package/lib/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js.map +1 -1
- package/lib/components/NavSubItem/NavSubItem.types.js +1 -3
- package/lib/components/NavSubItem/NavSubItem.types.js.map +1 -1
- package/lib/components/NavSubItem/index.js +1 -1
- package/lib/components/NavSubItem/index.js.map +1 -1
- package/lib/components/NavSubItem/useNavSubItem.js +16 -3
- package/lib/components/NavSubItem/useNavSubItem.js.map +1 -1
- package/lib/components/NavSubItem/useNavSubItemStyles.styles.js +1 -2
- package/lib/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
- package/lib/components/NavSubItem/useNavSubItemStyles.styles.raw.js +1 -1
- package/lib/components/NavSubItem/useNavSubItemStyles.styles.raw.js.map +1 -1
- package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js +1 -3
- package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
- package/lib/components/NavSubItemGroup/index.js +1 -1
- package/lib/components/NavSubItemGroup/index.js.map +1 -1
- package/lib/components/NavSubItemGroup/useNavSubItemGroup.js +25 -9
- package/lib/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +1 -2
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js +1 -1
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js.map +1 -1
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js +5 -2
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js +5 -1
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js.map +1 -1
- package/lib/index.js +7 -7
- package/lib/index.js.map +1 -1
- package/lib-commonjs/AppItem.js +3 -0
- package/lib-commonjs/AppItem.js.map +1 -1
- package/lib-commonjs/AppItemStatic.js +3 -0
- package/lib-commonjs/AppItemStatic.js.map +1 -1
- package/lib-commonjs/Nav.js +6 -0
- package/lib-commonjs/Nav.js.map +1 -1
- package/lib-commonjs/NavItem.js +3 -0
- package/lib-commonjs/NavItem.js.map +1 -1
- package/lib-commonjs/NavSubItem.js +3 -0
- package/lib-commonjs/NavSubItem.js.map +1 -1
- package/lib-commonjs/NavSubItemGroup.js +3 -0
- package/lib-commonjs/NavSubItemGroup.js.map +1 -1
- package/lib-commonjs/components/AppItem/AppItem.types.js +1 -3
- package/lib-commonjs/components/AppItem/AppItem.types.js.map +1 -1
- package/lib-commonjs/components/AppItem/index.js +3 -0
- package/lib-commonjs/components/AppItem/index.js.map +1 -1
- package/lib-commonjs/components/AppItem/useAppItem.js +20 -6
- package/lib-commonjs/components/AppItem/useAppItem.js.map +1 -1
- package/lib-commonjs/components/AppItem/useAppItemStyles.styles.js +2 -1
- package/lib-commonjs/components/AppItem/useAppItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AppItem/useAppItemStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/AppItem/useAppItemStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.js +1 -3
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.types.js.map +1 -1
- package/lib-commonjs/components/AppItemStatic/index.js +3 -0
- package/lib-commonjs/components/AppItemStatic/index.js.map +1 -1
- package/lib-commonjs/components/AppItemStatic/useAppItemStatic.js +20 -6
- package/lib-commonjs/components/AppItemStatic/useAppItemStatic.js.map +1 -1
- package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.js +2 -1
- package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/AppItemStatic/useAppItemStaticStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.js +2 -1
- package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.js.map +1 -1
- package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/Hamburger/useHamburgerStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/Nav/Nav.types.js +1 -3
- package/lib-commonjs/components/Nav/Nav.types.js.map +1 -1
- package/lib-commonjs/components/Nav/index.js +3 -0
- package/lib-commonjs/components/Nav/index.js.map +1 -1
- package/lib-commonjs/components/Nav/useNav.js +28 -7
- package/lib-commonjs/components/Nav/useNav.js.map +1 -1
- package/lib-commonjs/components/Nav/useNavStyles.styles.js +1 -1
- package/lib-commonjs/components/Nav/useNavStyles.styles.js.map +1 -1
- package/lib-commonjs/components/Nav/useNavStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/Nav/useNavStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js +1 -1
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/index.js +3 -0
- package/lib-commonjs/components/NavCategoryItem/index.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js +40 -15
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js +3 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.raw.js +3 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.js +2 -1
- package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/NavDivider/useNavDividerStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.js +1 -1
- package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavDrawer/useNavDrawerStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js +1 -1
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavDrawerBody/useNavDrawerBodyStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js +1 -1
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavDrawerFooter/useNavDrawerFooterStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js +1 -1
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavDrawerHeader/useNavDrawerHeaderStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavItem/NavItem.types.js +1 -3
- package/lib-commonjs/components/NavItem/NavItem.types.js.map +1 -1
- package/lib-commonjs/components/NavItem/index.js +3 -0
- package/lib-commonjs/components/NavItem/index.js.map +1 -1
- package/lib-commonjs/components/NavItem/useNavItem.js +21 -6
- package/lib-commonjs/components/NavItem/useNavItem.js.map +1 -1
- package/lib-commonjs/components/NavItem/useNavItemStyles.styles.js +2 -1
- package/lib-commonjs/components/NavItem/useNavItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavItem/useNavItemStyles.styles.raw.js +2 -1
- package/lib-commonjs/components/NavItem/useNavItemStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js +1 -1
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavSectionHeader/useNavSectionHeaderStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/NavSubItem.types.js +1 -3
- package/lib-commonjs/components/NavSubItem/NavSubItem.types.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/index.js +3 -0
- package/lib-commonjs/components/NavSubItem/index.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/useNavSubItem.js +21 -6
- package/lib-commonjs/components/NavSubItem/useNavSubItem.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js +1 -1
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js +1 -3
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/index.js +3 -0
- package/lib-commonjs/components/NavSubItemGroup/index.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js +30 -12
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js +5 -1
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js +5 -1
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/index.js +21 -0
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,67 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-nav
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 24 Jun 2026 11:03:38 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.4.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.4.1)
|
|
8
|
+
|
|
9
|
+
Wed, 24 Jun 2026 11:03:38 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.4.0..@fluentui/react-nav_v9.4.1)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- fix: remove redundant use no memo directives, and add justification to valid ones ([PR #36224](https://github.com/microsoft/fluentui/pull/36224) by martinhochel@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-aria to v9.17.13 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
16
|
+
- Bump @fluentui/react-button to v9.10.0 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
17
|
+
- Bump @fluentui/react-context-selector to v9.2.18 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
18
|
+
- Bump @fluentui/react-divider to v9.7.3 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
19
|
+
- Bump @fluentui/react-drawer to v9.13.1 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
20
|
+
- Bump @fluentui/react-jsx-runtime to v9.4.4 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
21
|
+
- Bump @fluentui/react-motion to v9.16.1 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
22
|
+
- Bump @fluentui/react-motion-components-preview to v0.15.6 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
23
|
+
- Bump @fluentui/react-tabster to v9.26.16 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
24
|
+
- Bump @fluentui/react-tooltip to v9.10.3 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
25
|
+
- Bump @fluentui/react-utilities to v9.26.5 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
|
|
26
|
+
|
|
27
|
+
## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.4.0)
|
|
28
|
+
|
|
29
|
+
Tue, 26 May 2026 09:39:27 GMT
|
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.3.24..@fluentui/react-nav_v9.4.0)
|
|
31
|
+
|
|
32
|
+
### Minor changes
|
|
33
|
+
|
|
34
|
+
- feat: add base hooks and expose them ([PR #35812](https://github.com/microsoft/fluentui/pull/35812) by dmytrokirpa@microsoft.com)
|
|
35
|
+
- Bump @fluentui/react-aria to v9.17.12 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
36
|
+
- Bump @fluentui/react-button to v9.9.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
37
|
+
- Bump @fluentui/react-context-selector to v9.2.17 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
38
|
+
- Bump @fluentui/react-divider to v9.7.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
39
|
+
- Bump @fluentui/react-drawer to v9.13.0 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
40
|
+
- Bump @fluentui/react-jsx-runtime to v9.4.3 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
41
|
+
- Bump @fluentui/react-motion to v9.16.0 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
42
|
+
- Bump @fluentui/react-motion-components-preview to v0.15.5 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
43
|
+
- Bump @fluentui/react-tabster to v9.26.15 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
44
|
+
- Bump @fluentui/react-tooltip to v9.10.2 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
45
|
+
- Bump @fluentui/react-utilities to v9.26.4 ([PR #36246](https://github.com/microsoft/fluentui/pull/36246) by beachball)
|
|
46
|
+
|
|
7
47
|
## [9.3.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.3.24)
|
|
8
48
|
|
|
9
|
-
Thu, 23 Apr 2026
|
|
49
|
+
Thu, 23 Apr 2026 14:21:14 GMT
|
|
10
50
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.3.23..@fluentui/react-nav_v9.3.24)
|
|
11
51
|
|
|
12
52
|
### Patches
|
|
13
53
|
|
|
14
|
-
- Bump @fluentui/react-aria to v9.17.11 ([PR #
|
|
15
|
-
- Bump @fluentui/react-button to v9.9.1 ([PR #
|
|
16
|
-
- Bump @fluentui/react-context-selector to v9.2.16 ([PR #
|
|
17
|
-
- Bump @fluentui/react-divider to v9.7.1 ([PR #
|
|
18
|
-
- Bump @fluentui/react-drawer to v9.12.0 ([PR #
|
|
19
|
-
- Bump @fluentui/react-jsx-runtime to v9.4.2 ([PR #
|
|
20
|
-
- Bump @fluentui/react-motion to v9.15.0 ([PR #
|
|
21
|
-
- Bump @fluentui/react-motion-components-preview to v0.15.4 ([PR #
|
|
22
|
-
- Bump @fluentui/react-tabster to v9.26.14 ([PR #
|
|
23
|
-
- Bump @fluentui/react-tooltip to v9.10.1 ([PR #
|
|
24
|
-
- Bump @fluentui/react-utilities to v9.26.3 ([PR #
|
|
54
|
+
- Bump @fluentui/react-aria to v9.17.11 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
55
|
+
- Bump @fluentui/react-button to v9.9.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
56
|
+
- Bump @fluentui/react-context-selector to v9.2.16 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
57
|
+
- Bump @fluentui/react-divider to v9.7.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
58
|
+
- Bump @fluentui/react-drawer to v9.12.0 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
59
|
+
- Bump @fluentui/react-jsx-runtime to v9.4.2 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
60
|
+
- Bump @fluentui/react-motion to v9.15.0 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
61
|
+
- Bump @fluentui/react-motion-components-preview to v0.15.4 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
62
|
+
- Bump @fluentui/react-tabster to v9.26.14 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
63
|
+
- Bump @fluentui/react-tooltip to v9.10.1 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
64
|
+
- Bump @fluentui/react-utilities to v9.26.3 ([PR #36035](https://github.com/microsoft/fluentui/pull/36035) by beachball)
|
|
25
65
|
|
|
26
66
|
## [9.3.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.3.23)
|
|
27
67
|
|
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';
|
package/lib/AppItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AppItem.ts"],"sourcesContent":["export type {
|
|
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"}
|
package/lib/AppItemStatic.js
CHANGED
|
@@ -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';
|
package/lib/AppItemStatic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AppItemStatic.ts"],"sourcesContent":["export type {
|
|
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 {
|
|
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';
|
package/lib/NavItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/NavItem.ts"],"sourcesContent":["export type {
|
|
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';
|
package/lib/NavSubItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/NavSubItem.ts"],"sourcesContent":["export type {
|
|
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"}
|
package/lib/NavSubItemGroup.js
CHANGED
|
@@ -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":"
|
|
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 +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":"
|
|
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;
|
|
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
|
|
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"}
|
|
@@ -64,8 +64,6 @@ export const useAppItemStyles = /*#__PURE__*/__styles({
|
|
|
64
64
|
* Apply styling to the AppItem slots based on the state
|
|
65
65
|
*/
|
|
66
66
|
export const useAppItemStyles_unstable = state => {
|
|
67
|
-
'use no memo';
|
|
68
|
-
|
|
69
67
|
const rootDefaultClassName = useRootDefaultClassName();
|
|
70
68
|
const iconStyles = useIconStyles();
|
|
71
69
|
const appItemSpecificStyles = useAppItemStyles();
|
|
@@ -73,8 +71,10 @@ export const useAppItemStyles_unstable = state => {
|
|
|
73
71
|
density,
|
|
74
72
|
icon
|
|
75
73
|
} = state;
|
|
74
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
76
75
|
state.root.className = mergeClasses(rootDefaultClassName, appItemClassNames.root, appItemSpecificStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);
|
|
77
76
|
if (state.icon) {
|
|
77
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
78
78
|
state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);
|
|
79
79
|
}
|
|
80
80
|
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
|
|
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 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,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":[]}
|
|
@@ -30,13 +30,14 @@ export const appItemClassNames = {
|
|
|
30
30
|
/**
|
|
31
31
|
* Apply styling to the AppItem slots based on the state
|
|
32
32
|
*/ export const useAppItemStyles_unstable = (state)=>{
|
|
33
|
-
'use no memo';
|
|
34
33
|
const rootDefaultClassName = useRootDefaultClassName();
|
|
35
34
|
const iconStyles = useIconStyles();
|
|
36
35
|
const appItemSpecificStyles = useAppItemStyles();
|
|
37
36
|
const { density, icon } = state;
|
|
37
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
38
38
|
state.root.className = mergeClasses(rootDefaultClassName, appItemClassNames.root, appItemSpecificStyles.root, density === 'small' && appItemSpecificStyles.small, !icon && appItemSpecificStyles.absentIconRootAdjustment, state.root.className);
|
|
39
39
|
if (state.icon) {
|
|
40
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
40
41
|
state.icon.className = mergeClasses(appItemClassNames.icon, iconStyles.base, state.icon.className);
|
|
41
42
|
}
|
|
42
43
|
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
|
|
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 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,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 +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
|
|
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 {
|
|
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 {
|
|
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"}
|