@fluentui/react-nav 0.0.0-nightly-20250704-0407.1 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/CHANGELOG.md +2 -101
  2. package/dist/index.d.ts +11 -37
  3. package/lib/components/AppItem/AppItem.js +9 -3
  4. package/lib/components/AppItem/AppItem.js.map +1 -1
  5. package/lib/components/AppItemStatic/AppItemStatic.js +9 -3
  6. package/lib/components/AppItemStatic/AppItemStatic.js.map +1 -1
  7. package/lib/components/Hamburger/Hamburger.js +5 -4
  8. package/lib/components/Hamburger/Hamburger.js.map +1 -1
  9. package/lib/components/Nav/Nav.js +0 -2
  10. package/lib/components/Nav/Nav.js.map +1 -1
  11. package/lib/components/NavCategory/NavCategory.js +1 -1
  12. package/lib/components/NavCategory/NavCategory.js.map +1 -1
  13. package/lib/components/NavCategory/renderNavCategory.js.map +1 -1
  14. package/lib/components/NavCategoryItem/NavCategoryItem.js +3 -2
  15. package/lib/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
  16. package/lib/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
  17. package/lib/components/NavCategoryItem/renderNavCategoryItem.js +1 -13
  18. package/lib/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -1
  19. package/lib/components/NavCategoryItem/useNavCategoryItem.js +3 -37
  20. package/lib/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
  21. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js +1 -2
  22. package/lib/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
  23. package/lib/components/NavDivider/NavDivider.js +5 -4
  24. package/lib/components/NavDivider/NavDivider.js.map +1 -1
  25. package/lib/components/NavDrawer/NavDrawer.js +5 -3
  26. package/lib/components/NavDrawer/NavDrawer.js.map +1 -1
  27. package/lib/components/NavDrawerBody/NavDrawerBody.js +3 -2
  28. package/lib/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
  29. package/lib/components/NavDrawerFooter/NavDrawerFooter.js +3 -2
  30. package/lib/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
  31. package/lib/components/NavDrawerHeader/NavDrawerHeader.js +5 -4
  32. package/lib/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
  33. package/lib/components/NavItem/NavItem.js +5 -3
  34. package/lib/components/NavItem/NavItem.js.map +1 -1
  35. package/lib/components/NavSectionHeader/NavSectionHeader.js +3 -2
  36. package/lib/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
  37. package/lib/components/NavSubItem/NavSubItem.js +5 -3
  38. package/lib/components/NavSubItem/NavSubItem.js.map +1 -1
  39. package/lib/components/NavSubItem/useNavSubItemStyles.styles.js +1 -2
  40. package/lib/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
  41. package/lib/components/NavSubItemGroup/NavSubItemGroup.js +5 -3
  42. package/lib/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
  43. package/lib/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
  44. package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js +3 -3
  45. package/lib/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -1
  46. package/lib/components/NavSubItemGroup/useNavSubItemGroup.js +4 -50
  47. package/lib/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
  48. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +4 -11
  49. package/lib/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
  50. package/lib/components/SplitNavItem/SplitNavItem.js +8 -2
  51. package/lib/components/SplitNavItem/SplitNavItem.js.map +1 -1
  52. package/lib/components/SplitNavItem/renderSplitNavItem.js +12 -19
  53. package/lib/components/SplitNavItem/renderSplitNavItem.js.map +1 -1
  54. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js +6 -41
  55. package/lib/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
  56. package/lib/components/useNavContextValues.js +3 -5
  57. package/lib/components/useNavContextValues.js.map +1 -1
  58. package/lib-commonjs/components/AppItem/AppItem.js +8 -2
  59. package/lib-commonjs/components/AppItem/AppItem.js.map +1 -1
  60. package/lib-commonjs/components/AppItemStatic/AppItemStatic.js +8 -2
  61. package/lib-commonjs/components/AppItemStatic/AppItemStatic.js.map +1 -1
  62. package/lib-commonjs/components/Hamburger/Hamburger.js +4 -3
  63. package/lib-commonjs/components/Hamburger/Hamburger.js.map +1 -1
  64. package/lib-commonjs/components/Nav/Nav.js +0 -2
  65. package/lib-commonjs/components/Nav/Nav.js.map +1 -1
  66. package/lib-commonjs/components/NavCategory/NavCategory.js.map +1 -1
  67. package/lib-commonjs/components/NavCategory/renderNavCategory.js.map +1 -1
  68. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js +2 -2
  69. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
  70. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.types.js.map +1 -1
  71. package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.js +1 -13
  72. package/lib-commonjs/components/NavCategoryItem/renderNavCategoryItem.js.map +1 -1
  73. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js +2 -36
  74. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.js.map +1 -1
  75. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js +1 -2
  76. package/lib-commonjs/components/NavCategoryItem/useNavCategoryItem.styles.js.map +1 -1
  77. package/lib-commonjs/components/NavDivider/NavDivider.js +4 -3
  78. package/lib-commonjs/components/NavDivider/NavDivider.js.map +1 -1
  79. package/lib-commonjs/components/NavDrawer/NavDrawer.js +3 -2
  80. package/lib-commonjs/components/NavDrawer/NavDrawer.js.map +1 -1
  81. package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js +3 -2
  82. package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
  83. package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js +3 -2
  84. package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
  85. package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js +5 -4
  86. package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
  87. package/lib-commonjs/components/NavItem/NavItem.js +3 -2
  88. package/lib-commonjs/components/NavItem/NavItem.js.map +1 -1
  89. package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js +3 -2
  90. package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
  91. package/lib-commonjs/components/NavSubItem/NavSubItem.js +3 -2
  92. package/lib-commonjs/components/NavSubItem/NavSubItem.js.map +1 -1
  93. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js +1 -2
  94. package/lib-commonjs/components/NavSubItem/useNavSubItemStyles.styles.js.map +1 -1
  95. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js +3 -2
  96. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
  97. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.types.js.map +1 -1
  98. package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.js +3 -3
  99. package/lib-commonjs/components/NavSubItemGroup/renderNavSubItemGroup.js.map +1 -1
  100. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js +4 -50
  101. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroup.js.map +1 -1
  102. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js +4 -17
  103. package/lib-commonjs/components/NavSubItemGroup/useNavSubItemGroupStyles.styles.js.map +1 -1
  104. package/lib-commonjs/components/SplitNavItem/SplitNavItem.js +8 -2
  105. package/lib-commonjs/components/SplitNavItem/SplitNavItem.js.map +1 -1
  106. package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.js +12 -20
  107. package/lib-commonjs/components/SplitNavItem/renderSplitNavItem.js.map +1 -1
  108. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js +5 -55
  109. package/lib-commonjs/components/SplitNavItem/useSplitNavItemStyles.styles.js.map +1 -1
  110. package/lib-commonjs/components/useNavContextValues.js +3 -5
  111. package/lib-commonjs/components/useNavContextValues.js.map +1 -1
  112. package/package.json +20 -16
package/CHANGELOG.md CHANGED
@@ -1,111 +1,12 @@
1
1
  # Change Log - @fluentui/react-nav
2
2
 
3
- This log was last generated on Fri, 04 Jul 2025 04:23:43 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 12 Jun 2025 09:39:14 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
7
  ## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-nav_v9.1.0)
107
8
 
108
- Thu, 12 Jun 2025 09:43:33 GMT
9
+ Thu, 12 Jun 2025 09:39:14 GMT
109
10
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-nav_v9.0.0..@fluentui/react-nav_v9.1.0)
110
11
 
111
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 - Application item in the navigation menu.
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 - Static application item in the navigation menu.
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 - a button that toggles a menu or navigation drawer.
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 - a category in the navigation menu that can contain multiple items.
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 - a divider used within navigation components to separate items.
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 - a component that provides a drawer for navigation items.
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 - a single item in the navigation menu.
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 - a sub-item within a navigation structure.
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 - a group of sub-items within a navigation structure.
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<Omit<NavSubItemGroupSlots, 'collapseMotion'>>;
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 - Application item in the navigation menu.
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
- useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);
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 { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\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 - Application item in the navigation menu.\n */\nexport const AppItem: ForwardRefComponent<AppItemProps> = React.forwardRef((props, ref) => {\n const state = useAppItem_unstable(props, ref);\n\n useAppItemStyles_unstable(state);\n useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);\n\n return renderAppItem_unstable(state);\n});\n\nAppItem.displayName = 'AppItem';\n"],"names":["React","useCustomStyleHook_unstable","useAppItem_unstable","renderAppItem_unstable","useAppItemStyles_unstable","AppItem","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,yBAAyB,QAAQ,4BAA4B;AAGtE;;CAEC,GACD,OAAO,MAAMC,wBAA6CL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQP,oBAAoBK,OAAOC;IAEzCJ,0BAA0BK;IAC1BR,4BAA4B,6BAA6BQ;IAEzD,OAAON,uBAAuBM;AAChC,GAAG;AAEHJ,QAAQK,WAAW,GAAG"}
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 - Static application item in the navigation menu.
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
- useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);
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 { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\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 - Static application item in the navigation menu.\n */\nexport const AppItemStatic: ForwardRefComponent<AppItemStaticProps> = React.forwardRef((props, ref) => {\n const state = useAppItemStatic_unstable(props, ref);\n\n useAppItemStaticStyles_unstable(state);\n useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);\n\n return renderAppItemStatic_unstable(state);\n});\n\nAppItemStatic.displayName = 'AppItemStatic';\n"],"names":["React","useCustomStyleHook_unstable","useAppItemStatic_unstable","renderAppItemStatic_unstable","useAppItemStaticStyles_unstable","AppItemStatic","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,+BAA+B,QAAQ,kCAAkC;AAGlF;;CAEC,GACD,OAAO,MAAMC,8BAAyDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQP,0BAA0BK,OAAOC;IAE/CJ,gCAAgCK;IAChCR,4BAA4B,mCAAmCQ;IAE/D,OAAON,6BAA6BM;AACtC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
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 - a button that toggles a menu or navigation drawer.
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
- useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);
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 type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { renderButton_unstable } from '@fluentui/react-button';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useHamburger_unstable } from './useHamburger';\nimport { useHamburgerStyles_unstable } from './useHamburgerStyles.styles';\nimport type { HamburgerProps } from './Hamburger.types';\n\n/**\n * Hamburger component - a button that toggles a menu or navigation drawer.\n */\nexport const Hamburger: ForwardRefComponent<HamburgerProps> = React.forwardRef((props, ref) => {\n const state = useHamburger_unstable(props, ref);\n\n useHamburgerStyles_unstable(state);\n useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);\n\n return renderButton_unstable(state);\n}) as ForwardRefComponent<HamburgerProps>;\n\nHamburger.displayName = 'Hamburger';\n"],"names":["React","renderButton_unstable","useCustomStyleHook_unstable","useHamburger_unstable","useHamburgerStyles_unstable","Hamburger","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,qBAAqB,QAAQ,iBAAiB;AACvD,SAASC,2BAA2B,QAAQ,8BAA8B;AAG1E;;CAEC,GACD,OAAO,MAAMC,0BAAiDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQN,sBAAsBI,OAAOC;IAE3CJ,4BAA4BK;IAC5BP,4BAA4B,+BAA+BO;IAE3D,OAAOR,sBAAsBQ;AAC/B,GAA0C;AAE1CJ,UAAUK,WAAW,GAAG"}
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 { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\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 useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);\n\n return renderNav_unstable(state, contextValues);\n});\n\nNav.displayName = 'Nav';\n"],"names":["React","useCustomStyleHook_unstable","useNav_unstable","renderNav_unstable","useNavStyles_unstable","useNavContextValues_unstable","Nav","forwardRef","props","ref","state","contextValues","displayName"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,eAAe,QAAQ,WAAW;AAC3C,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,wBAAwB;AAC9D,SAASC,4BAA4B,QAAQ,yBAAyB;AAGtE;;CAEC,GACD,OAAO,MAAMC,oBAAqCN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IACzE,MAAMC,QAAQR,gBAAgBM,OAAOC;IAErC,MAAME,gBAAgBN,6BAA6BK;IAEnDN,sBAAsBM;IACtBT,4BAA4B,+BAA+BS;IAE3D,OAAOP,mBAAmBO,OAAOC;AACnC,GAAG;AAEHL,IAAIM,WAAW,GAAG"}
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 - a category in the navigation menu that can contain multiple items.
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 - a category in the navigation menu that can contain multiple items.\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
+ {"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 = (\n state: NavCategoryState,\n contextValues: NavCategoryContextValues,\n): // eslint-disable-next-line @typescript-eslint/no-deprecated\nJSX.Element => {\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,CACxCC,OACAC;IAGA,qBAAO,oBAACH;QAAoBI,OAAOD,cAAcE,aAAa;OAAGH,MAAMI,QAAQ;AACjF,EAAE"}
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
- useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);
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 type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavCategoryItem_unstable } from './useNavCategoryItem';\nimport { renderNavCategoryItem_unstable } from './renderNavCategoryItem';\nimport type { NavCategoryItemProps } from './NavCategoryItem.types';\nimport { useNavCategoryItemStyles_unstable } from './useNavCategoryItem.styles';\nimport { useNavCategoryItemContextValues_unstable } from '../useNavCategoryItemContextValues_unstable';\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 useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);\n\n return renderNavCategoryItem_unstable(state, contextValues);\n});\n\nNavCategoryItem.displayName = 'NavCategoryItem';\n"],"names":["React","useCustomStyleHook_unstable","useNavCategoryItem_unstable","renderNavCategoryItem_unstable","useNavCategoryItemStyles_unstable","useNavCategoryItemContextValues_unstable","NavCategoryItem","forwardRef","props","ref","state","contextValues","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,0BAA0B;AAEzE,SAASC,iCAAiC,QAAQ,8BAA8B;AAChF,SAASC,wCAAwC,QAAQ,8CAA8C;AAEvG;;;CAGC,GACD,OAAO,MAAMC,gCAA6DN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQR,4BAA4BM,OAAOC;IACjD,MAAME,gBAAgBN,yCAAyCK;IAE/DN,kCAAkCM;IAClCT,4BAA4B,4BAA4BS;IAExD,OAAOP,+BAA+BO,OAAOC;AAC/C,GAAG;AAEHL,gBAAgBM,WAAW,GAAG"}
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 type { PresenceMotionSlotProps } from '@fluentui/react-motion';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { NavDensity } from '../Nav/Nav.types';\nimport type { NavCategoryItemContextValue } from '../NavCategoryItemContext';\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 * Expand icon motion slot.\n */\n expandIconMotion?: Slot<PresenceMotionSlotProps>;\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":"AAqCA;;CAEC,GACD,WAYI"}
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
- getExpandIcon(state)
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\nconst getExpandIcon = (state: NavCategoryItemState) => {\n assertSlots<NavCategoryItemSlots>(state);\n\n if (!state.expandIcon) {\n return null;\n }\n\n if (!state.expandIconMotion) {\n return <state.expandIcon />;\n }\n\n return (\n <state.expandIconMotion>\n <state.expandIcon />\n </state.expandIconMotion>\n );\n};\n\n/**\n * Render the final JSX of NavCategoryItem\n */\nexport const renderNavCategoryItem_unstable = (\n state: NavCategoryItemState,\n contextValues: NavCategoryItemContextValues,\n) => {\n assertSlots<NavCategoryItemSlots>(state);\n\n return (\n <NavCategoryItemProvider value={contextValues.navCategoryItem}>\n <state.root>\n {state.icon && <state.icon />}\n {state.root.children}\n {getExpandIcon(state)}\n </state.root>\n </NavCategoryItemProvider>\n );\n};\n"],"names":["assertSlots","NavCategoryItemProvider","getExpandIcon","state","expandIcon","expandIconMotion","renderNavCategoryItem_unstable","contextValues","value","navCategoryItem","root","icon","children"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD,SAASC,uBAAuB,QAAQ,4BAA4B;AAEpE,MAAMC,gBAAgB,CAACC;IACrBH,YAAkCG;IAElC,IAAI,CAACA,MAAMC,UAAU,EAAE;QACrB,OAAO;IACT;IAEA,IAAI,CAACD,MAAME,gBAAgB,EAAE;QAC3B,qBAAO,KAACF,MAAMC,UAAU;IAC1B;IAEA,qBACE,KAACD,MAAME,gBAAgB;kBACrB,cAAA,KAACF,MAAMC,UAAU;;AAGvB;AAEA;;CAEC,GACD,OAAO,MAAME,iCAAiC,CAC5CH,OACAI;IAEAP,YAAkCG;IAElC,qBACE,KAACF;QAAwBO,OAAOD,cAAcE,eAAe;kBAC3D,cAAA,MAACN,MAAMO,IAAI;;gBACRP,MAAMQ,IAAI,kBAAI,KAACR,MAAMQ,IAAI;gBACzBR,MAAMO,IAAI,CAACE,QAAQ;gBACnBV,cAAcC;;;;AAIvB,EAAE"}
1
+ {"version":3,"sources":["../src/components/NavCategoryItem/renderNavCategoryItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { 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 { ChevronDown20Regular } from '@fluentui/react-icons';
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(ChevronDown20Regular, null),
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
  }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItem/useNavCategoryItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot, useEventCallback } from '@fluentui/react-utilities';\nimport { ChevronDown20Regular } from '@fluentui/react-icons';\nimport { createPresenceComponent, motionTokens, presenceMotionSlot } from '@fluentui/react-motion';\n\nimport type { NavCategoryItemProps, NavCategoryItemState } from './NavCategoryItem.types';\nimport { useNavCategoryContext_unstable } from '../NavCategoryContext';\nimport { useNavContext_unstable } from '../NavContext';\n\nconst ExpandIconMotion = createPresenceComponent(() => {\n const keyframes: Keyframe[] = [\n {\n transform: 'rotate(0deg) translate3D(0, 0, 0)',\n },\n {\n transform: 'rotate(180deg) translate3D(0, 0, 0)',\n },\n ];\n const duration = motionTokens.durationFast;\n const easing = motionTokens.curveEasyEase;\n\n return {\n enter: {\n keyframes,\n duration,\n easing,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n duration,\n easing,\n },\n };\n});\n\n/**\n * Create the state required to render NavCategoryItem.\n *\n * The returned state can be modified with hooks such as useNavCategoryItemStyles,\n * before being passed to renderNavCategoryItem.\n *\n * @param props - props from this instance of NavCategoryItem\n * @param ref - reference to root HTMLButtonElement of NavCategoryItem\n */\nexport const useNavCategoryItem_unstable = (\n props: NavCategoryItemProps,\n ref: React.Ref<HTMLButtonElement>,\n): NavCategoryItemState => {\n const { onClick, expandIcon, icon } = props;\n\n const { open, value } = useNavCategoryContext_unstable();\n\n const { onRequestNavCategoryItemToggle, selectedCategoryValue, density = 'medium' } = useNavContext_unstable();\n\n const onNavCategoryItemClick = useEventCallback(\n mergeCallbacks(onClick, event =>\n onRequestNavCategoryItemToggle(event, { type: 'click', event, value: '', categoryValue: value }),\n ),\n );\n\n // don't fill the icon when it's open\n const selected = selectedCategoryValue === value && !open;\n // there's more than 2 possible values for aria-current, but this is the only one that's used in this component\n const validAriaCurrent: 'page' | 'false' = selected && !open ? 'page' : 'false';\n\n return {\n open,\n value,\n selected,\n components: {\n root: 'button',\n icon: 'span',\n expandIcon: 'span',\n expandIconMotion: ExpandIconMotion,\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n 'aria-current': validAriaCurrent,\n 'aria-expanded': open,\n ...props,\n onClick: onNavCategoryItemClick,\n }),\n { elementType: 'button' },\n ),\n expandIcon: slot.always(expandIcon, {\n defaultProps: {\n children: <ChevronDown20Regular />,\n 'aria-hidden': true,\n },\n elementType: 'span',\n }),\n expandIconMotion: presenceMotionSlot(props.expandIconMotion, {\n elementType: ExpandIconMotion,\n defaultProps: {\n visible: open,\n },\n }),\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n density,\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","useEventCallback","ChevronDown20Regular","createPresenceComponent","motionTokens","presenceMotionSlot","useNavCategoryContext_unstable","useNavContext_unstable","ExpandIconMotion","keyframes","transform","duration","durationFast","easing","curveEasyEase","enter","exit","reverse","useNavCategoryItem_unstable","props","ref","onClick","expandIcon","icon","open","value","onRequestNavCategoryItemToggle","selectedCategoryValue","density","onNavCategoryItemClick","event","type","categoryValue","selected","validAriaCurrent","components","root","expandIconMotion","always","elementType","defaultProps","children","visible","optional"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,cAAc,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,4BAA4B;AAC7G,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB,EAAEC,YAAY,EAAEC,kBAAkB,QAAQ,yBAAyB;AAGnG,SAASC,8BAA8B,QAAQ,wBAAwB;AACvE,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD,MAAMC,mBAAmBL,wBAAwB;IAC/C,MAAMM,YAAwB;QAC5B;YACEC,WAAW;QACb;QACA;YACEA,WAAW;QACb;KACD;IACD,MAAMC,WAAWP,aAAaQ,YAAY;IAC1C,MAAMC,SAAST,aAAaU,aAAa;IAEzC,OAAO;QACLC,OAAO;YACLN;YACAE;YACAE;QACF;QACAG,MAAM;YACJP,WAAW;mBAAIA;aAAU,CAACQ,OAAO;YACjCN;YACAE;QACF;IACF;AACF;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMK,8BAA8B,CACzCC,OACAC;IAEA,MAAM,EAAEC,OAAO,EAAEC,UAAU,EAAEC,IAAI,EAAE,GAAGJ;IAEtC,MAAM,EAAEK,IAAI,EAAEC,KAAK,EAAE,GAAGnB;IAExB,MAAM,EAAEoB,8BAA8B,EAAEC,qBAAqB,EAAEC,UAAU,QAAQ,EAAE,GAAGrB;IAEtF,MAAMsB,yBAAyB5B,iBAC7BF,eAAesB,SAASS,CAAAA,QACtBJ,+BAA+BI,OAAO;YAAEC,MAAM;YAASD;YAAOL,OAAO;YAAIO,eAAeP;QAAM;IAIlG,qCAAqC;IACrC,MAAMQ,WAAWN,0BAA0BF,SAAS,CAACD;IACrD,+GAA+G;IAC/G,MAAMU,mBAAqCD,YAAY,CAACT,OAAO,SAAS;IAExE,OAAO;QACLA;QACAC;QACAQ;QACAE,YAAY;YACVC,MAAM;YACNb,MAAM;YACND,YAAY;YACZe,kBAAkB7B;QACpB;QACA4B,MAAMpC,KAAKsC,MAAM,CACfxC,yBAAyB,UAAU;YACjCsB;YACA,gBAAgBc;YAChB,iBAAiBV;YACjB,GAAGL,KAAK;YACRE,SAASQ;QACX,IACA;YAAEU,aAAa;QAAS;QAE1BjB,YAAYtB,KAAKsC,MAAM,CAAChB,YAAY;YAClCkB,cAAc;gBACZC,wBAAU,oBAACvC;gBACX,eAAe;YACjB;YACAqC,aAAa;QACf;QACAF,kBAAkBhC,mBAAmBc,MAAMkB,gBAAgB,EAAE;YAC3DE,aAAa/B;YACbgC,cAAc;gBACZE,SAASlB;YACX;QACF;QACAD,MAAMvB,KAAK2C,QAAQ,CAACpB,MAAM;YACxBgB,aAAa;QACf;QACAX;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/NavCategoryItem/useNavCategoryItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, mergeCallbacks, slot, useEventCallback } from '@fluentui/react-utilities';\nimport { ChevronRight20Regular } from '@fluentui/react-icons';\nimport { NavCategoryItemProps, NavCategoryItemState } from './NavCategoryItem.types';\nimport { useNavCategoryContext_unstable } from '../NavCategoryContext';\nimport { useNavContext_unstable } from '../NavContext';\n\n/**\n * Create the state required to render NavCategoryItem.\n *\n * The returned state can be modified with hooks such as useNavCategoryItemStyles,\n * before being passed to renderNavCategoryItem.\n *\n * @param props - props from this instance of NavCategoryItem\n * @param ref - reference to root HTMLButtonElement of NavCategoryItem\n */\nexport const useNavCategoryItem_unstable = (\n props: NavCategoryItemProps,\n ref: React.Ref<HTMLButtonElement>,\n): NavCategoryItemState => {\n const { onClick, expandIcon, icon } = props;\n\n const { open, value } = useNavCategoryContext_unstable();\n\n const { onRequestNavCategoryItemToggle, selectedCategoryValue, density = 'medium' } = useNavContext_unstable();\n\n const onNavCategoryItemClick = useEventCallback(\n mergeCallbacks(onClick, event =>\n onRequestNavCategoryItemToggle(event, { type: 'click', event, value: '', categoryValue: value }),\n ),\n );\n\n // don't fill the icon when it's open\n const selected = selectedCategoryValue === value && !open;\n // there's more than 2 possible values for aria-current, but this is the only one that's used in this component\n const validAriaCurrent: 'page' | 'false' = selected && !open ? 'page' : 'false';\n\n return {\n open,\n value,\n selected,\n components: {\n root: 'button',\n icon: 'span',\n expandIcon: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n 'aria-current': validAriaCurrent,\n 'aria-expanded': open,\n ...props,\n onClick: onNavCategoryItemClick,\n }),\n { elementType: 'button' },\n ),\n expandIcon: slot.always(expandIcon, {\n defaultProps: {\n children: <ChevronRight20Regular />,\n 'aria-hidden': true,\n },\n elementType: 'span',\n }),\n icon: slot.optional(icon, {\n elementType: 'span',\n }),\n density,\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","slot","useEventCallback","ChevronRight20Regular","useNavCategoryContext_unstable","useNavContext_unstable","useNavCategoryItem_unstable","props","ref","onClick","expandIcon","icon","open","value","onRequestNavCategoryItemToggle","selectedCategoryValue","density","onNavCategoryItemClick","event","type","categoryValue","selected","validAriaCurrent","components","root","always","elementType","defaultProps","children","optional"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,cAAc,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,4BAA4B;AAC7G,SAASC,qBAAqB,QAAQ,wBAAwB;AAE9D,SAASC,8BAA8B,QAAQ,wBAAwB;AACvE,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD;;;;;;;;CAQC,GACD,OAAO,MAAMC,8BAA8B,CACzCC,OACAC;IAEA,MAAM,EAAEC,OAAO,EAAEC,UAAU,EAAEC,IAAI,EAAE,GAAGJ;IAEtC,MAAM,EAAEK,IAAI,EAAEC,KAAK,EAAE,GAAGT;IAExB,MAAM,EAAEU,8BAA8B,EAAEC,qBAAqB,EAAEC,UAAU,QAAQ,EAAE,GAAGX;IAEtF,MAAMY,yBAAyBf,iBAC7BF,eAAeS,SAASS,CAAAA,QACtBJ,+BAA+BI,OAAO;YAAEC,MAAM;YAASD;YAAOL,OAAO;YAAIO,eAAeP;QAAM;IAIlG,qCAAqC;IACrC,MAAMQ,WAAWN,0BAA0BF,SAAS,CAACD;IACrD,+GAA+G;IAC/G,MAAMU,mBAAqCD,YAAY,CAACT,OAAO,SAAS;IAExE,OAAO;QACLA;QACAC;QACAQ;QACAE,YAAY;YACVC,MAAM;YACNb,MAAM;YACND,YAAY;QACd;QACAc,MAAMvB,KAAKwB,MAAM,CACf1B,yBAAyB,UAAU;YACjCS;YACA,gBAAgBc;YAChB,iBAAiBV;YACjB,GAAGL,KAAK;YACRE,SAASQ;QACX,IACA;YAAES,aAAa;QAAS;QAE1BhB,YAAYT,KAAKwB,MAAM,CAACf,YAAY;YAClCiB,cAAc;gBACZC,wBAAU,oBAACzB;gBACX,eAAe;YACjB;YACAuB,aAAa;QACf;QACAf,MAAMV,KAAK4B,QAAQ,CAAClB,MAAM;YACxBe,aAAa;QACf;QACAV;IACF;AACF,EAAE"}