@fluentui/react-nav 0.0.0-nightly-20250704-0407.1 → 9.0.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.
- package/CHANGELOG.md +2 -118
- package/dist/index.d.ts +11 -37
- package/lib/components/AppItem/AppItem.js +9 -3
- package/lib/components/AppItem/AppItem.js.map +1 -1
- package/lib/components/AppItemStatic/AppItemStatic.js +9 -3
- package/lib/components/AppItemStatic/AppItemStatic.js.map +1 -1
- package/lib/components/Hamburger/Hamburger.js +5 -4
- package/lib/components/Hamburger/Hamburger.js.map +1 -1
- package/lib/components/Nav/Nav.js +0 -2
- package/lib/components/Nav/Nav.js.map +1 -1
- package/lib/components/NavCategory/NavCategory.js +1 -1
- package/lib/components/NavCategory/NavCategory.js.map +1 -1
- package/lib/components/NavCategory/renderNavCategory.js.map +1 -1
- package/lib/components/NavCategoryItem/NavCategoryItem.js +3 -2
- package/lib/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
- package/lib/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
- package/lib/components/NavCategoryItem/renderNavCategoryItem.js +1 -13
- package/lib/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -1
- package/lib/components/NavCategoryItem/useNavCategoryItem.js +3 -37
- package/lib/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js +1 -2
- package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
- package/lib/components/NavDivider/NavDivider.js +5 -4
- package/lib/components/NavDivider/NavDivider.js.map +1 -1
- package/lib/components/NavDrawer/NavDrawer.js +5 -3
- package/lib/components/NavDrawer/NavDrawer.js.map +1 -1
- package/lib/components/NavDrawerBody/NavDrawerBody.js +3 -2
- package/lib/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
- package/lib/components/NavDrawerFooter/NavDrawerFooter.js +3 -2
- package/lib/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
- package/lib/components/NavDrawerHeader/NavDrawerHeader.js +5 -4
- package/lib/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
- package/lib/components/NavItem/NavItem.js +5 -3
- package/lib/components/NavItem/NavItem.js.map +1 -1
- package/lib/components/NavSectionHeader/NavSectionHeader.js +3 -2
- package/lib/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
- package/lib/components/NavSubItem/NavSubItem.js +5 -3
- package/lib/components/NavSubItem/NavSubItem.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/NavSubItemGroup/NavSubItemGroup.js +5 -3
- package/lib/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
- package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
- package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js +3 -3
- package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -1
- package/lib/components/NavSubItemGroup/useNavSubItemGroup.js +4 -50
- package/lib/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +4 -11
- package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
- package/lib/components/SplitNavItem/SplitNavItem.js +8 -2
- package/lib/components/SplitNavItem/SplitNavItem.js.map +1 -1
- package/lib/components/SplitNavItem/renderSplitNavItem.js +12 -19
- package/lib/components/SplitNavItem/renderSplitNavItem.js.map +1 -1
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js +6 -41
- package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
- package/lib/components/useNavContextValues.js +3 -5
- package/lib/components/useNavContextValues.js.map +1 -1
- package/lib-commonjs/components/AppItem/AppItem.js +8 -2
- package/lib-commonjs/components/AppItem/AppItem.js.map +1 -1
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.js +8 -2
- package/lib-commonjs/components/AppItemStatic/AppItemStatic.js.map +1 -1
- package/lib-commonjs/components/Hamburger/Hamburger.js +4 -3
- package/lib-commonjs/components/Hamburger/Hamburger.js.map +1 -1
- package/lib-commonjs/components/Nav/Nav.js +0 -2
- package/lib-commonjs/components/Nav/Nav.js.map +1 -1
- package/lib-commonjs/components/NavCategory/NavCategory.js.map +1 -1
- package/lib-commonjs/components/NavCategory/renderNavCategory.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js +2 -2
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.js +1 -13
- package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js +2 -36
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js +1 -2
- package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
- package/lib-commonjs/components/NavDivider/NavDivider.js +4 -3
- package/lib-commonjs/components/NavDivider/NavDivider.js.map +1 -1
- package/lib-commonjs/components/NavDrawer/NavDrawer.js +3 -2
- package/lib-commonjs/components/NavDrawer/NavDrawer.js.map +1 -1
- package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js +3 -2
- package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
- package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js +3 -2
- package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
- package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js +5 -4
- package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
- package/lib-commonjs/components/NavItem/NavItem.js +3 -2
- package/lib-commonjs/components/NavItem/NavItem.js.map +1 -1
- package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js +3 -2
- package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/NavSubItem.js +3 -2
- package/lib-commonjs/components/NavSubItem/NavSubItem.js.map +1 -1
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js +1 -2
- package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js +3 -2
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.js +3 -3
- package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js +4 -50
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +4 -17
- package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
- package/lib-commonjs/components/SplitNavItem/SplitNavItem.js +8 -2
- package/lib-commonjs/components/SplitNavItem/SplitNavItem.js.map +1 -1
- package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.js +12 -20
- package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.js.map +1 -1
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js +5 -55
- package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/useNavContextValues.js +3 -5
- package/lib-commonjs/components/useNavContextValues.js.map +1 -1
- package/package.json +20 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,128 +1,12 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-nav
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 11 Jun 2025 22:29:15 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-20250704-0407.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v0.0.0-nightly-20250704-0407.1)
|
|
8
|
-
|
|
9
|
-
Fri, 04 Jul 2025 04:23:43 GMT
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.2.1..@fluentui/react-nav_v0.0.0-nightly-20250704-0407.1)
|
|
11
|
-
|
|
12
|
-
### Changes
|
|
13
|
-
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
|
-
- Bump @fluentui/react-aria to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
16
|
-
- Bump @fluentui/react-button to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
17
|
-
- Bump @fluentui/react-context-selector to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
18
|
-
- Bump @fluentui/react-divider to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
19
|
-
- Bump @fluentui/react-drawer to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
20
|
-
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
21
|
-
- Bump @fluentui/react-motion to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
22
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
23
|
-
- Bump @fluentui/react-tabster to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
24
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
25
|
-
- Bump @fluentui/react-tooltip to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
26
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
27
|
-
- Bump @fluentui/react-conformance to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
28
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20250704-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/3c4698d79cc2b57bd02e8dadb393007150178c18) by beachball)
|
|
29
|
-
|
|
30
|
-
## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.2.1)
|
|
31
|
-
|
|
32
|
-
Fri, 27 Jun 2025 13:39:40 GMT
|
|
33
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.2.0..@fluentui/react-nav_v9.2.1)
|
|
34
|
-
|
|
35
|
-
### Patches
|
|
36
|
-
|
|
37
|
-
- fix: move action button to be the first button ([PR #34718](https://github.com/microsoft/fluentui/pull/34718) by marcosvmmoura@gmail.com)
|
|
38
|
-
- Bump @fluentui/react-aria to v9.15.3 ([PR #34734](https://github.com/microsoft/fluentui/pull/34734) by beachball)
|
|
39
|
-
- Bump @fluentui/react-button to v9.5.3 ([PR #34734](https://github.com/microsoft/fluentui/pull/34734) by beachball)
|
|
40
|
-
- Bump @fluentui/react-drawer to v9.8.5 ([PR #34734](https://github.com/microsoft/fluentui/pull/34734) by beachball)
|
|
41
|
-
- Bump @fluentui/react-tabster to v9.25.3 ([PR #34734](https://github.com/microsoft/fluentui/pull/34734) by beachball)
|
|
42
|
-
- Bump @fluentui/react-tooltip to v9.7.5 ([PR #34734](https://github.com/microsoft/fluentui/pull/34734) by beachball)
|
|
43
|
-
|
|
44
|
-
## [9.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.2.0)
|
|
45
|
-
|
|
46
|
-
Thu, 26 Jun 2025 14:11:54 GMT
|
|
47
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.1.3..@fluentui/react-nav_v9.2.0)
|
|
48
|
-
|
|
49
|
-
### Minor changes
|
|
50
|
-
|
|
51
|
-
- feat: add motion to nav components ([PR #34632](https://github.com/microsoft/fluentui/pull/34632) by marcosvmmoura@gmail.com)
|
|
52
|
-
- Bump @fluentui/react-aria to v9.15.2 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
53
|
-
- Bump @fluentui/react-button to v9.5.2 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
54
|
-
- Bump @fluentui/react-context-selector to v9.2.2 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
55
|
-
- Bump @fluentui/react-divider to v9.3.2 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
56
|
-
- Bump @fluentui/react-drawer to v9.8.4 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
57
|
-
- Bump @fluentui/react-jsx-runtime to v9.1.2 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
58
|
-
- Bump @fluentui/react-motion to v9.9.0 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
59
|
-
- Bump @fluentui/react-tabster to v9.25.2 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
60
|
-
- Bump @fluentui/react-tooltip to v9.7.4 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
61
|
-
- Bump @fluentui/react-utilities to v9.22.0 ([PR #34529](https://github.com/microsoft/fluentui/pull/34529) by beachball)
|
|
62
|
-
|
|
63
|
-
### Patches
|
|
64
|
-
|
|
65
|
-
- fix: only display actions on hover ([PR #34634](https://github.com/microsoft/fluentui/pull/34634) by marcosvmmoura@gmail.com)
|
|
66
|
-
|
|
67
|
-
## [9.1.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.1.3)
|
|
68
|
-
|
|
69
|
-
Mon, 23 Jun 2025 15:49:48 GMT
|
|
70
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.1.2..@fluentui/react-nav_v9.1.3)
|
|
71
|
-
|
|
72
|
-
### Patches
|
|
73
|
-
|
|
74
|
-
- Bump @fluentui/react-tooltip to v9.7.3 ([PR #34677](https://github.com/microsoft/fluentui/pull/34677) by beachball)
|
|
75
|
-
- Bump @fluentui/react-drawer to v9.8.3 ([PR #34677](https://github.com/microsoft/fluentui/pull/34677) by beachball)
|
|
76
|
-
|
|
77
|
-
## [9.1.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.1.2)
|
|
78
|
-
|
|
79
|
-
Wed, 18 Jun 2025 17:33:58 GMT
|
|
80
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.1.1..@fluentui/react-nav_v9.1.2)
|
|
81
|
-
|
|
82
|
-
### Patches
|
|
83
|
-
|
|
84
|
-
- feat: add support for custom style hooks ([PR #34633](https://github.com/microsoft/fluentui/pull/34633) by marcosvmmoura@gmail.com)
|
|
85
|
-
- Bump @fluentui/react-aria to v9.15.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
86
|
-
- Bump @fluentui/react-button to v9.5.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
87
|
-
- Bump @fluentui/react-tooltip to v9.7.2 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
88
|
-
- Bump @fluentui/react-context-selector to v9.2.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
89
|
-
- Bump @fluentui/react-divider to v9.3.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
90
|
-
- Bump @fluentui/react-drawer to v9.8.2 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
91
|
-
- Bump @fluentui/react-jsx-runtime to v9.1.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
92
|
-
- Bump @fluentui/react-shared-contexts to v9.24.0 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
93
|
-
- Bump @fluentui/react-tabster to v9.25.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
94
|
-
- Bump @fluentui/react-utilities to v9.21.1 ([PR #34675](https://github.com/microsoft/fluentui/pull/34675) by beachball)
|
|
95
|
-
|
|
96
|
-
## [9.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.1.1)
|
|
97
|
-
|
|
98
|
-
Fri, 13 Jun 2025 12:32:53 GMT
|
|
99
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.1.0..@fluentui/react-nav_v9.1.1)
|
|
100
|
-
|
|
101
|
-
### Patches
|
|
102
|
-
|
|
103
|
-
- Bump @fluentui/react-tooltip to v9.7.1 ([PR #34639](https://github.com/microsoft/fluentui/pull/34639) by beachball)
|
|
104
|
-
- Bump @fluentui/react-drawer to v9.8.1 ([PR #34639](https://github.com/microsoft/fluentui/pull/34639) by beachball)
|
|
105
|
-
|
|
106
|
-
## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.1.0)
|
|
107
|
-
|
|
108
|
-
Thu, 12 Jun 2025 09:43:33 GMT
|
|
109
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.0.0..@fluentui/react-nav_v9.1.0)
|
|
110
|
-
|
|
111
|
-
### Minor changes
|
|
112
|
-
|
|
113
|
-
- Bump @fluentui/react-aria to v9.15.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
114
|
-
- Bump @fluentui/react-button to v9.5.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
115
|
-
- Bump @fluentui/react-tooltip to v9.7.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
116
|
-
- Bump @fluentui/react-context-selector to v9.2.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
117
|
-
- Bump @fluentui/react-divider to v9.3.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
118
|
-
- Bump @fluentui/react-drawer to v9.8.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
119
|
-
- Bump @fluentui/react-jsx-runtime to v9.1.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
120
|
-
- Bump @fluentui/react-tabster to v9.25.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
121
|
-
- Bump @fluentui/react-utilities to v9.21.0 ([PR #34456](https://github.com/microsoft/fluentui/pull/34456) by beachball)
|
|
122
|
-
|
|
123
7
|
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.0.0)
|
|
124
8
|
|
|
125
|
-
Wed, 11 Jun 2025 22:
|
|
9
|
+
Wed, 11 Jun 2025 22:29:15 GMT
|
|
126
10
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav-preview_v0.13.9..@fluentui/react-nav_v9.0.0)
|
|
127
11
|
|
|
128
12
|
### Minor changes
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ import { EventHandler } from '@fluentui/react-utilities';
|
|
|
26
26
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
27
27
|
import type { InlineDrawerSlots } from '@fluentui/react-drawer';
|
|
28
28
|
import { MenuButtonProps } from '@fluentui/react-button';
|
|
29
|
-
import { PresenceMotionSlotProps } from '@fluentui/react-motion';
|
|
30
29
|
import * as React_2 from 'react';
|
|
31
30
|
import type { Slot } from '@fluentui/react-utilities';
|
|
32
31
|
import { SlotClassNames } from '@fluentui/react-utilities';
|
|
@@ -34,7 +33,7 @@ import { ToggleButtonProps } from '@fluentui/react-button';
|
|
|
34
33
|
import type { TooltipProps } from '@fluentui/react-tooltip';
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
|
-
* AppItem component -
|
|
36
|
+
* AppItem component - TODO: add more docs
|
|
38
37
|
*/
|
|
39
38
|
export declare const AppItem: ForwardRefComponent<AppItemProps>;
|
|
40
39
|
|
|
@@ -71,7 +70,7 @@ export declare type AppItemState = ComponentState<AppItemSlots> & {
|
|
|
71
70
|
};
|
|
72
71
|
|
|
73
72
|
/**
|
|
74
|
-
* AppItemStatic component -
|
|
73
|
+
* AppItemStatic component - TODO: add more docs
|
|
75
74
|
*/
|
|
76
75
|
export declare const AppItemStatic: ForwardRefComponent<AppItemStaticProps>;
|
|
77
76
|
|
|
@@ -106,7 +105,7 @@ export declare type AppItemStaticState = ComponentState<AppItemStaticSlots> & {
|
|
|
106
105
|
};
|
|
107
106
|
|
|
108
107
|
/**
|
|
109
|
-
* Hamburger component -
|
|
108
|
+
* Hamburger component - TODO: add more docs
|
|
110
109
|
*/
|
|
111
110
|
export declare const Hamburger: ForwardRefComponent<HamburgerProps>;
|
|
112
111
|
|
|
@@ -128,7 +127,7 @@ export declare type HamburgerState = ButtonState;
|
|
|
128
127
|
export declare const Nav: ForwardRefComponent<NavProps>;
|
|
129
128
|
|
|
130
129
|
/**
|
|
131
|
-
* NavCategory component -
|
|
130
|
+
* NavCategory component - TODO: add more docs
|
|
132
131
|
*/
|
|
133
132
|
export declare const NavCategory: ForwardRefComponent<NavCategoryProps>;
|
|
134
133
|
|
|
@@ -179,10 +178,6 @@ export declare type NavCategoryItemSlots = {
|
|
|
179
178
|
* Expand icon slot rendered after the content to indicate an open and closed state.
|
|
180
179
|
*/
|
|
181
180
|
expandIcon: NonNullable<Slot<'span'>>;
|
|
182
|
-
/**
|
|
183
|
-
* Expand icon motion slot.
|
|
184
|
-
*/
|
|
185
|
-
expandIconMotion?: Slot<PresenceMotionSlotProps>;
|
|
186
181
|
};
|
|
187
182
|
|
|
188
183
|
/**
|
|
@@ -275,7 +270,7 @@ export declare type NavContextValues = {
|
|
|
275
270
|
export declare type NavDensity = 'small' | 'medium';
|
|
276
271
|
|
|
277
272
|
/**
|
|
278
|
-
* NavDivider component -
|
|
273
|
+
* NavDivider component - TODO: add more docs
|
|
279
274
|
*/
|
|
280
275
|
export declare const NavDivider: ForwardRefComponent<NavDividerProps>;
|
|
281
276
|
|
|
@@ -292,7 +287,7 @@ export declare type NavDividerProps = DividerProps;
|
|
|
292
287
|
export declare type NavDividerState = DividerState;
|
|
293
288
|
|
|
294
289
|
/**
|
|
295
|
-
* NavDrawer component -
|
|
290
|
+
* NavDrawer component - TODO: add more docs
|
|
296
291
|
*/
|
|
297
292
|
export declare const NavDrawer: ForwardRefComponent<NavDrawerProps>;
|
|
298
293
|
|
|
@@ -385,7 +380,7 @@ export declare type NavDrawerState = DrawerState & NavContextValue & {
|
|
|
385
380
|
};
|
|
386
381
|
|
|
387
382
|
/**
|
|
388
|
-
* NavItem component -
|
|
383
|
+
* NavItem component - TODO: add more docs
|
|
389
384
|
*/
|
|
390
385
|
export declare const NavItem: ForwardRefComponent<NavItemProps>;
|
|
391
386
|
|
|
@@ -542,32 +537,18 @@ export declare type NavSlots = {
|
|
|
542
537
|
export declare type NavState = ComponentState<NavSlots> & NavContextValue;
|
|
543
538
|
|
|
544
539
|
/**
|
|
545
|
-
* NavSubItem component -
|
|
540
|
+
* NavSubItem component - TODO: add more docs
|
|
546
541
|
*/
|
|
547
542
|
export declare const NavSubItem: ForwardRefComponent<NavSubItemProps>;
|
|
548
543
|
|
|
549
544
|
export declare const navSubItemClassNames: SlotClassNames<NavSubItemSlots>;
|
|
550
545
|
|
|
551
546
|
/**
|
|
552
|
-
* NavSubItemGroup component -
|
|
547
|
+
* NavSubItemGroup component - TODO: add more docs
|
|
553
548
|
*/
|
|
554
549
|
export declare const NavSubItemGroup: ForwardRefComponent<NavSubItemGroupProps>;
|
|
555
550
|
|
|
556
|
-
export declare const navSubItemGroupClassNames: SlotClassNames<
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Context value for NavSubItemGroup
|
|
560
|
-
*/
|
|
561
|
-
declare type NavSubItemGroupCollapseMotionParams = {
|
|
562
|
-
/**
|
|
563
|
-
* The number of items in the NavSubItemGroup
|
|
564
|
-
*/
|
|
565
|
-
items?: number;
|
|
566
|
-
/**
|
|
567
|
-
* The density of the NavItem
|
|
568
|
-
*/
|
|
569
|
-
density?: NavDensity;
|
|
570
|
-
};
|
|
551
|
+
export declare const navSubItemGroupClassNames: SlotClassNames<NavSubItemGroupSlots>;
|
|
571
552
|
|
|
572
553
|
/**
|
|
573
554
|
* NavSubItemGroup Props
|
|
@@ -575,14 +556,7 @@ declare type NavSubItemGroupCollapseMotionParams = {
|
|
|
575
556
|
export declare type NavSubItemGroupProps = ComponentProps<NavSubItemGroupSlots>;
|
|
576
557
|
|
|
577
558
|
export declare type NavSubItemGroupSlots = {
|
|
578
|
-
/**
|
|
579
|
-
* The root element
|
|
580
|
-
*/
|
|
581
559
|
root: NonNullable<Slot<'div'>>;
|
|
582
|
-
/**
|
|
583
|
-
* Collapse motion slot
|
|
584
|
-
*/
|
|
585
|
-
collapseMotion?: Slot<PresenceMotionSlotProps<NavSubItemGroupCollapseMotionParams>>;
|
|
586
560
|
};
|
|
587
561
|
|
|
588
562
|
/**
|
|
@@ -683,7 +657,7 @@ export declare const renderNavSubItem_unstable: (state: NavSubItemState) => JSX.
|
|
|
683
657
|
/**
|
|
684
658
|
* Render the final JSX of NavSubItemGroup
|
|
685
659
|
*/
|
|
686
|
-
export declare const renderNavSubItemGroup_unstable: (state: NavSubItemGroupState) => JSX.Element;
|
|
660
|
+
export declare const renderNavSubItemGroup_unstable: (state: NavSubItemGroupState) => JSX.Element | null;
|
|
687
661
|
|
|
688
662
|
/**
|
|
689
663
|
* Render the final JSX of SplitNavItem
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
3
2
|
import { useAppItem_unstable } from './useAppItem';
|
|
4
3
|
import { renderAppItem_unstable } from './renderAppItem';
|
|
5
4
|
import { useAppItemStyles_unstable } from './useAppItemStyles.styles';
|
|
6
5
|
/**
|
|
7
|
-
* AppItem component -
|
|
6
|
+
* AppItem component - TODO: add more docs
|
|
8
7
|
*/ export const AppItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
9
8
|
const state = useAppItem_unstable(props, ref);
|
|
10
9
|
useAppItemStyles_unstable(state);
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
*
|
|
13
|
+
* TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
|
|
14
|
+
* - uncomment this line
|
|
15
|
+
* - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
|
|
16
|
+
* - verify that custom global style override works for your component
|
|
17
|
+
*/ // useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);
|
|
12
18
|
return renderAppItem_unstable(state);
|
|
13
19
|
});
|
|
14
20
|
AppItem.displayName = 'AppItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/AppItem/AppItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/components/AppItem/AppItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useAppItem_unstable } from './useAppItem';\nimport { renderAppItem_unstable } from './renderAppItem';\nimport { useAppItemStyles_unstable } from './useAppItemStyles.styles';\nimport type { AppItemProps } from './AppItem.types';\n\n/**\n * AppItem component - TODO: add more docs\n */\nexport const AppItem: ForwardRefComponent<AppItemProps> = React.forwardRef((props, ref) => {\n const state = useAppItem_unstable(props, ref);\n\n useAppItemStyles_unstable(state);\n\n /**\n * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md\n *\n * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),\n * - uncomment this line\n * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}\n * - verify that custom global style override works for your component\n */\n // useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);\n\n return renderAppItem_unstable(state);\n});\n\nAppItem.displayName = 'AppItem';\n"],"names":["React","useAppItem_unstable","renderAppItem_unstable","useAppItemStyles_unstable","AppItem","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,yBAAyB,QAAQ,4BAA4B;AAGtE;;CAEC,GACD,OAAO,MAAMC,wBAA6CJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQP,oBAAoBK,OAAOC;IAEzCJ,0BAA0BK;IAE1B;;;;;;;GAOC,GACD,mEAAmE;IAEnE,OAAON,uBAAuBM;AAChC,GAAG;AAEHJ,QAAQK,WAAW,GAAG"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
3
2
|
import { useAppItemStatic_unstable } from './useAppItemStatic';
|
|
4
3
|
import { renderAppItemStatic_unstable } from './renderAppItemStatic';
|
|
5
4
|
import { useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';
|
|
6
5
|
/**
|
|
7
|
-
* AppItemStatic component -
|
|
6
|
+
* AppItemStatic component - TODO: add more docs
|
|
8
7
|
*/ export const AppItemStatic = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
9
8
|
const state = useAppItemStatic_unstable(props, ref);
|
|
10
9
|
useAppItemStaticStyles_unstable(state);
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
*
|
|
13
|
+
* TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
|
|
14
|
+
* - uncomment this line
|
|
15
|
+
* - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
|
|
16
|
+
* - verify that custom global style override works for your component
|
|
17
|
+
*/ // useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);
|
|
12
18
|
return renderAppItemStatic_unstable(state);
|
|
13
19
|
});
|
|
14
20
|
AppItemStatic.displayName = 'AppItemStatic';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/AppItemStatic/AppItemStatic.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/components/AppItemStatic/AppItemStatic.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useAppItemStatic_unstable } from './useAppItemStatic';\nimport { renderAppItemStatic_unstable } from './renderAppItemStatic';\nimport { useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';\nimport type { AppItemStaticProps } from './AppItemStatic.types';\n\n/**\n * AppItemStatic component - TODO: add more docs\n */\nexport const AppItemStatic: ForwardRefComponent<AppItemStaticProps> = React.forwardRef((props, ref) => {\n const state = useAppItemStatic_unstable(props, ref);\n\n useAppItemStaticStyles_unstable(state);\n\n /**\n * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md\n *\n * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),\n * - uncomment this line\n * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}\n * - verify that custom global style override works for your component\n */\n // useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);\n\n return renderAppItemStatic_unstable(state);\n});\n\nAppItemStatic.displayName = 'AppItemStatic';\n"],"names":["React","useAppItemStatic_unstable","renderAppItemStatic_unstable","useAppItemStaticStyles_unstable","AppItemStatic","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,+BAA+B,QAAQ,kCAAkC;AAGlF;;CAEC,GACD,OAAO,MAAMC,8BAAyDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQP,0BAA0BK,OAAOC;IAE/CJ,gCAAgCK;IAEhC;;;;;;;GAOC,GACD,yEAAyE;IAEzE,OAAON,6BAA6BM;AACtC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { renderButton_unstable } from '@fluentui/react-button';
|
|
3
|
-
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
4
2
|
import { useHamburger_unstable } from './useHamburger';
|
|
3
|
+
import { renderButton_unstable } from '@fluentui/react-button';
|
|
5
4
|
import { useHamburgerStyles_unstable } from './useHamburgerStyles.styles';
|
|
6
5
|
/**
|
|
7
|
-
* Hamburger component -
|
|
6
|
+
* Hamburger component - TODO: add more docs
|
|
8
7
|
*/ export const Hamburger = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
9
8
|
const state = useHamburger_unstable(props, ref);
|
|
10
9
|
useHamburgerStyles_unstable(state);
|
|
11
|
-
|
|
10
|
+
// TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
|
|
11
|
+
// https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
|
|
12
|
+
// useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);
|
|
12
13
|
return renderButton_unstable(state);
|
|
13
14
|
});
|
|
14
15
|
Hamburger.displayName = 'Hamburger';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Hamburger/Hamburger.tsx"],"sourcesContent":["import * as React from 'react';\nimport
|
|
1
|
+
{"version":3,"sources":["../src/components/Hamburger/Hamburger.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useHamburger_unstable } from './useHamburger';\nimport { renderButton_unstable } from '@fluentui/react-button';\nimport { useHamburgerStyles_unstable } from './useHamburgerStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { HamburgerProps } from './Hamburger.types';\n\n/**\n * Hamburger component - TODO: add more docs\n */\nexport const Hamburger: ForwardRefComponent<HamburgerProps> = React.forwardRef((props, ref) => {\n const state = useHamburger_unstable(props, ref);\n\n useHamburgerStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);\n return renderButton_unstable(state);\n}) as ForwardRefComponent<HamburgerProps>;\n\nHamburger.displayName = 'Hamburger';\n"],"names":["React","useHamburger_unstable","renderButton_unstable","useHamburgerStyles_unstable","Hamburger","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,QAAQ,iBAAiB;AACvD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,2BAA2B,QAAQ,8BAA8B;AAI1E;;CAEC,GACD,OAAO,MAAMC,0BAAiDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQP,sBAAsBK,OAAOC;IAE3CJ,4BAA4BK;IAC5B,8HAA8H;IAC9H,wGAAwG;IACxG,qEAAqE;IACrE,OAAON,sBAAsBM;AAC/B,GAA0C;AAE1CJ,UAAUK,WAAW,GAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
3
2
|
import { useNav_unstable } from './useNav';
|
|
4
3
|
import { renderNav_unstable } from './renderNav';
|
|
5
4
|
import { useNavStyles_unstable } from './useNavStyles.styles';
|
|
@@ -10,7 +9,6 @@ import { useNavContextValues_unstable } from '../useNavContextValues';
|
|
|
10
9
|
const state = useNav_unstable(props, ref);
|
|
11
10
|
const contextValues = useNavContextValues_unstable(state);
|
|
12
11
|
useNavStyles_unstable(state);
|
|
13
|
-
useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);
|
|
14
12
|
return renderNav_unstable(state, contextValues);
|
|
15
13
|
});
|
|
16
14
|
Nav.displayName = 'Nav';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Nav/Nav.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/components/Nav/Nav.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useNav_unstable } from './useNav';\nimport { renderNav_unstable } from './renderNav';\nimport { useNavStyles_unstable } from './useNavStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport type { NavProps } from './Nav.types';\n\n/**\n * Nav - A component that provides up to two levels of nesting for navigation.\n */\nexport const Nav: ForwardRefComponent<NavProps> = React.forwardRef((props, ref) => {\n const state = useNav_unstable(props, ref);\n\n const contextValues = useNavContextValues_unstable(state);\n\n useNavStyles_unstable(state);\n return renderNav_unstable(state, contextValues);\n});\n\nNav.displayName = 'Nav';\n"],"names":["React","useNav_unstable","renderNav_unstable","useNavStyles_unstable","useNavContextValues_unstable","Nav","forwardRef","props","ref","state","contextValues","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,eAAe,QAAQ,WAAW;AAC3C,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,wBAAwB;AAC9D,SAASC,4BAA4B,QAAQ,yBAAyB;AAGtE;;CAEC,GACD,OAAO,MAAMC,oBAAqCL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACzE,MAAMC,QAAQR,gBAAgBM,OAAOC;IAErC,MAAME,gBAAgBN,6BAA6BK;IAEnDN,sBAAsBM;IACtB,OAAOP,mBAAmBO,OAAOC;AACnC,GAAG;AAEHL,IAAIM,WAAW,GAAG"}
|
|
@@ -3,7 +3,7 @@ import { useNavCategory_unstable } from './useNavCategory';
|
|
|
3
3
|
import { renderNavCategory_unstable } from './renderNavCategory';
|
|
4
4
|
import { useNavCategoryContextValues_unstable } from '../useNavCategoryContextValues_unstable';
|
|
5
5
|
/**
|
|
6
|
-
* NavCategory component -
|
|
6
|
+
* NavCategory component - TODO: add more docs
|
|
7
7
|
*/ export const NavCategory = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
8
|
const state = useNavCategory_unstable(props, ref);
|
|
9
9
|
const contextValues = useNavCategoryContextValues_unstable(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/NavCategory/NavCategory.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavCategoryProps } from './NavCategory.types';\n\nimport { useNavCategory_unstable } from './useNavCategory';\nimport { renderNavCategory_unstable } from './renderNavCategory';\nimport { useNavCategoryContextValues_unstable } from '../useNavCategoryContextValues_unstable';\n\n/**\n * NavCategory component -
|
|
1
|
+
{"version":3,"sources":["../src/components/NavCategory/NavCategory.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavCategoryProps } from './NavCategory.types';\n\nimport { useNavCategory_unstable } from './useNavCategory';\nimport { renderNavCategory_unstable } from './renderNavCategory';\nimport { useNavCategoryContextValues_unstable } from '../useNavCategoryContextValues_unstable';\n\n/**\n * NavCategory component - TODO: add more docs\n */\nexport const NavCategory: ForwardRefComponent<NavCategoryProps> = React.forwardRef((props, ref) => {\n const state = useNavCategory_unstable(props, ref);\n const contextValues = useNavCategoryContextValues_unstable(state);\n\n return renderNavCategory_unstable(state, contextValues);\n});\n\nNavCategory.displayName = 'NavCategory';\n"],"names":["React","useNavCategory_unstable","renderNavCategory_unstable","useNavCategoryContextValues_unstable","NavCategory","forwardRef","props","ref","state","contextValues","displayName"],"rangeMappings":";;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAK/B,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,oCAAoC,QAAQ,0CAA0C;AAE/F;;CAEC,GACD,OAAO,MAAMC,4BAAqDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACzF,MAAMC,QAAQP,wBAAwBK,OAAOC;IAC7C,MAAME,gBAAgBN,qCAAqCK;IAE3D,OAAON,2BAA2BM,OAAOC;AAC3C,GAAG;AAEHL,YAAYM,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/NavCategory/renderNavCategory.tsx"],"sourcesContent":["import * as React from 'react';\nimport { NavCategoryContextValues, NavCategoryProvider } from '../NavCategoryContext';\n\nimport type { NavCategoryState } from './NavCategory.types';\n\n/**\n * Render the final JSX of NavCategory\n */\nexport const renderNavCategory_unstable = (
|
|
1
|
+
{"version":3,"sources":["../src/components/NavCategory/renderNavCategory.tsx"],"sourcesContent":["import * as React from 'react';\nimport { NavCategoryContextValues, NavCategoryProvider } from '../NavCategoryContext';\n\nimport type { NavCategoryState } from './NavCategory.types';\n\n/**\n * Render the final JSX of NavCategory\n */\nexport const renderNavCategory_unstable = (state: NavCategoryState, contextValues: NavCategoryContextValues) => {\n return <NavCategoryProvider value={contextValues.categoryValue}>{state.children}</NavCategoryProvider>;\n};\n"],"names":["React","NavCategoryProvider","renderNavCategory_unstable","state","contextValues","value","categoryValue","children"],"rangeMappings":";;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAAmCC,mBAAmB,QAAQ,wBAAwB;AAItF;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CAACC,OAAyBC;IAClE,qBAAO,oBAACH;QAAoBI,OAAOD,cAAcE,aAAa;OAAGH,MAAMI,QAAQ;AACjF,EAAE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
3
2
|
import { useNavCategoryItem_unstable } from './useNavCategoryItem';
|
|
4
3
|
import { renderNavCategoryItem_unstable } from './renderNavCategoryItem';
|
|
5
4
|
import { useNavCategoryItemStyles_unstable } from './useNavCategoryItem.styles';
|
|
6
5
|
import { useNavCategoryItemContextValues_unstable } from '../useNavCategoryItemContextValues_unstable';
|
|
6
|
+
// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
7
7
|
/**
|
|
8
8
|
* A Nav Category Item provides provides a clickable accordion like header that exposes
|
|
9
9
|
* a list of NavSubItems to take users to a new destination.
|
|
@@ -11,7 +11,8 @@ import { useNavCategoryItemContextValues_unstable } from '../useNavCategoryItemC
|
|
|
11
11
|
const state = useNavCategoryItem_unstable(props, ref);
|
|
12
12
|
const contextValues = useNavCategoryItemContextValues_unstable(state);
|
|
13
13
|
useNavCategoryItemStyles_unstable(state);
|
|
14
|
-
|
|
14
|
+
// todo: add custom style hook
|
|
15
|
+
// useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);
|
|
15
16
|
return renderNavCategoryItem_unstable(state, contextValues);
|
|
16
17
|
});
|
|
17
18
|
NavCategoryItem.displayName = 'NavCategoryItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/NavCategoryItem/NavCategoryItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport
|
|
1
|
+
{"version":3,"sources":["../src/components/NavCategoryItem/NavCategoryItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useNavCategoryItem_unstable } from './useNavCategoryItem';\nimport { renderNavCategoryItem_unstable } from './renderNavCategoryItem';\nimport type { NavCategoryItemProps } from './NavCategoryItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useNavCategoryItemStyles_unstable } from './useNavCategoryItem.styles';\nimport { useNavCategoryItemContextValues_unstable } from '../useNavCategoryItemContextValues_unstable';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A Nav Category Item provides provides a clickable accordion like header that exposes\n * a list of NavSubItems to take users to a new destination.\n */\nexport const NavCategoryItem: ForwardRefComponent<NavCategoryItemProps> = React.forwardRef((props, ref) => {\n const state = useNavCategoryItem_unstable(props, ref);\n const contextValues = useNavCategoryItemContextValues_unstable(state);\n\n useNavCategoryItemStyles_unstable(state);\n\n // todo: add custom style hook\n // useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);\n\n return renderNavCategoryItem_unstable(state, contextValues);\n});\n\nNavCategoryItem.displayName = 'NavCategoryItem';\n"],"names":["React","useNavCategoryItem_unstable","renderNavCategoryItem_unstable","useNavCategoryItemStyles_unstable","useNavCategoryItemContextValues_unstable","NavCategoryItem","forwardRef","props","ref","state","contextValues","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,0BAA0B;AAGzE,SAASC,iCAAiC,QAAQ,8BAA8B;AAChF,SAASC,wCAAwC,QAAQ,8CAA8C;AACvG,iFAAiF;AAEjF;;;CAGC,GACD,OAAO,MAAMC,gCAA6DL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQR,4BAA4BM,OAAOC;IACjD,MAAME,gBAAgBN,yCAAyCK;IAE/DN,kCAAkCM;IAElC,8BAA8B;IAC9B,kEAAkE;IAElE,OAAOP,+BAA+BO,OAAOC;AAC/C,GAAG;AAEHL,gBAAgBM,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/NavCategoryItem/NavCategoryItem.types.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../src/components/NavCategoryItem/NavCategoryItem.types.ts"],"sourcesContent":["import { NavDensity } from '../Nav/Nav.types';\nimport { NavCategoryItemContextValue } from '../NavCategoryItemContext';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type NavCategoryItemContextValues = {\n navCategoryItem: NavCategoryItemContextValue;\n};\n\nexport type NavCategoryItemSlots = {\n /**\n * The root element\n */\n root: NonNullable<Slot<'button'>>;\n\n /**\n * Icon that renders before the content.\n * Should be specific to each Category\n */\n icon?: Slot<'span'>;\n\n /**\n * Expand icon slot rendered after the content to indicate an open and closed state.\n */\n expandIcon: NonNullable<Slot<'span'>>;\n};\n\n/**\n * navCategoryItem Props\n */\nexport type NavCategoryItemProps = ComponentProps<Partial<NavCategoryItemSlots>>;\n\n/**\n * State used in rendering NavCategoryItem\n */\nexport type NavCategoryItemState = ComponentState<NavCategoryItemSlots> &\n NavCategoryItemContextValue & {\n /**\n * If this navCategoryItem is selected\n */\n selected: boolean;\n /**\n * The density of the NavItem\n *\n * @default 'medium'\n */\n density: NavDensity;\n };\n"],"names":[],"rangeMappings":";;","mappings":"AA+BA;;CAEC,GACD,WAYI"}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
2
|
import { assertSlots } from '@fluentui/react-utilities';
|
|
3
3
|
import { NavCategoryItemProvider } from '../NavCategoryItemContext';
|
|
4
|
-
const getExpandIcon = (state)=>{
|
|
5
|
-
assertSlots(state);
|
|
6
|
-
if (!state.expandIcon) {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
if (!state.expandIconMotion) {
|
|
10
|
-
return /*#__PURE__*/ _jsx(state.expandIcon, {});
|
|
11
|
-
}
|
|
12
|
-
return /*#__PURE__*/ _jsx(state.expandIconMotion, {
|
|
13
|
-
children: /*#__PURE__*/ _jsx(state.expandIcon, {})
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
4
|
/**
|
|
17
5
|
* Render the final JSX of NavCategoryItem
|
|
18
6
|
*/ export const renderNavCategoryItem_unstable = (state, contextValues)=>{
|
|
@@ -23,7 +11,7 @@ const getExpandIcon = (state)=>{
|
|
|
23
11
|
children: [
|
|
24
12
|
state.icon && /*#__PURE__*/ _jsx(state.icon, {}),
|
|
25
13
|
state.root.children,
|
|
26
|
-
|
|
14
|
+
state.expandIcon && /*#__PURE__*/ _jsx(state.expandIcon, {})
|
|
27
15
|
]
|
|
28
16
|
})
|
|
29
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/NavCategoryItem/renderNavCategoryItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { NavCategoryItemState, NavCategoryItemSlots, NavCategoryItemContextValues } from './NavCategoryItem.types';\nimport { NavCategoryItemProvider } from '../NavCategoryItemContext';\n\
|
|
1
|
+
{"version":3,"sources":["../src/components/NavCategoryItem/renderNavCategoryItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { NavCategoryItemState, NavCategoryItemSlots, NavCategoryItemContextValues } from './NavCategoryItem.types';\nimport { NavCategoryItemProvider } from '../NavCategoryItemContext';\n\n/**\n * Render the final JSX of NavCategoryItem\n */\nexport const renderNavCategoryItem_unstable = (\n state: NavCategoryItemState,\n contextValues: NavCategoryItemContextValues,\n) => {\n assertSlots<NavCategoryItemSlots>(state);\n\n return (\n <NavCategoryItemProvider value={contextValues.navCategoryItem}>\n <state.root>\n {state.icon && <state.icon />}\n {state.root.children}\n {state.expandIcon && <state.expandIcon />}\n </state.root>\n </NavCategoryItemProvider>\n );\n};\n"],"names":["assertSlots","NavCategoryItemProvider","renderNavCategoryItem_unstable","state","contextValues","value","navCategoryItem","root","icon","children","expandIcon"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD,SAASC,uBAAuB,QAAQ,4BAA4B;AAEpE;;CAEC,GACD,OAAO,MAAMC,iCAAiC,CAC5CC,OACAC;IAEAJ,YAAkCG;IAElC,qBACE,KAACF;QAAwBI,OAAOD,cAAcE,eAAe;kBAC3D,cAAA,MAACH,MAAMI,IAAI;;gBACRJ,MAAMK,IAAI,kBAAI,KAACL,MAAMK,IAAI;gBACzBL,MAAMI,IAAI,CAACE,QAAQ;gBACnBN,MAAMO,UAAU,kBAAI,KAACP,MAAMO,UAAU;;;;AAI9C,EAAE"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getIntrinsicElementProps, mergeCallbacks, slot, useEventCallback } from '@fluentui/react-utilities';
|
|
3
|
-
import {
|
|
4
|
-
import { createPresenceComponent, motionTokens, presenceMotionSlot } from '@fluentui/react-motion';
|
|
3
|
+
import { ChevronRight20Regular } from '@fluentui/react-icons';
|
|
5
4
|
import { useNavCategoryContext_unstable } from '../NavCategoryContext';
|
|
6
5
|
import { useNavContext_unstable } from '../NavContext';
|
|
7
|
-
const ExpandIconMotion = createPresenceComponent(()=>{
|
|
8
|
-
const keyframes = [
|
|
9
|
-
{
|
|
10
|
-
transform: 'rotate(0deg) translate3D(0, 0, 0)'
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
transform: 'rotate(180deg) translate3D(0, 0, 0)'
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
const duration = motionTokens.durationFast;
|
|
17
|
-
const easing = motionTokens.curveEasyEase;
|
|
18
|
-
return {
|
|
19
|
-
enter: {
|
|
20
|
-
keyframes,
|
|
21
|
-
duration,
|
|
22
|
-
easing
|
|
23
|
-
},
|
|
24
|
-
exit: {
|
|
25
|
-
keyframes: [
|
|
26
|
-
...keyframes
|
|
27
|
-
].reverse(),
|
|
28
|
-
duration,
|
|
29
|
-
easing
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
6
|
/**
|
|
34
7
|
* Create the state required to render NavCategoryItem.
|
|
35
8
|
*
|
|
@@ -59,8 +32,7 @@ const ExpandIconMotion = createPresenceComponent(()=>{
|
|
|
59
32
|
components: {
|
|
60
33
|
root: 'button',
|
|
61
34
|
icon: 'span',
|
|
62
|
-
expandIcon: 'span'
|
|
63
|
-
expandIconMotion: ExpandIconMotion
|
|
35
|
+
expandIcon: 'span'
|
|
64
36
|
},
|
|
65
37
|
root: slot.always(getIntrinsicElementProps('button', {
|
|
66
38
|
ref,
|
|
@@ -73,17 +45,11 @@ const ExpandIconMotion = createPresenceComponent(()=>{
|
|
|
73
45
|
}),
|
|
74
46
|
expandIcon: slot.always(expandIcon, {
|
|
75
47
|
defaultProps: {
|
|
76
|
-
children: /*#__PURE__*/ React.createElement(
|
|
48
|
+
children: /*#__PURE__*/ React.createElement(ChevronRight20Regular, null),
|
|
77
49
|
'aria-hidden': true
|
|
78
50
|
},
|
|
79
51
|
elementType: 'span'
|
|
80
52
|
}),
|
|
81
|
-
expandIconMotion: presenceMotionSlot(props.expandIconMotion, {
|
|
82
|
-
elementType: ExpandIconMotion,
|
|
83
|
-
defaultProps: {
|
|
84
|
-
visible: open
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
53
|
icon: slot.optional(icon, {
|
|
88
54
|
elementType: 'span'
|
|
89
55
|
}),
|