@fluentui/react-menu-grid-preview 0.0.0-nightly-20250822-0407.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +15 -0
  3. package/README.md +5 -0
  4. package/dist/index.d.ts +251 -0
  5. package/lib/MenuGrid.js +1 -0
  6. package/lib/MenuGrid.js.map +1 -0
  7. package/lib/MenuGridCell.js +1 -0
  8. package/lib/MenuGridCell.js.map +1 -0
  9. package/lib/MenuGridGroup.js +1 -0
  10. package/lib/MenuGridGroup.js.map +1 -0
  11. package/lib/MenuGridGroupHeader.js +1 -0
  12. package/lib/MenuGridGroupHeader.js.map +1 -0
  13. package/lib/MenuGridItem.js +1 -0
  14. package/lib/MenuGridItem.js.map +1 -0
  15. package/lib/MenuGridRow.js +1 -0
  16. package/lib/MenuGridRow.js.map +1 -0
  17. package/lib/components/MenuGrid/MenuGrid.js +16 -0
  18. package/lib/components/MenuGrid/MenuGrid.js.map +1 -0
  19. package/lib/components/MenuGrid/MenuGrid.types.js +1 -0
  20. package/lib/components/MenuGrid/MenuGrid.types.js.map +1 -0
  21. package/lib/components/MenuGrid/index.js +5 -0
  22. package/lib/components/MenuGrid/index.js.map +1 -0
  23. package/lib/components/MenuGrid/renderMenuGrid.js +12 -0
  24. package/lib/components/MenuGrid/renderMenuGrid.js.map +1 -0
  25. package/lib/components/MenuGrid/useMenuGrid.js +26 -0
  26. package/lib/components/MenuGrid/useMenuGrid.js.map +1 -0
  27. package/lib/components/MenuGrid/useMenuGridContextValues.js +12 -0
  28. package/lib/components/MenuGrid/useMenuGridContextValues.js.map +1 -0
  29. package/lib/components/MenuGrid/useMenuGridStyles.styles.js +30 -0
  30. package/lib/components/MenuGrid/useMenuGridStyles.styles.js.map +1 -0
  31. package/lib/components/MenuGrid/useMenuGridStyles.styles.raw.js +22 -0
  32. package/lib/components/MenuGrid/useMenuGridStyles.styles.raw.js.map +1 -0
  33. package/lib/components/MenuGridCell/MenuGridCell.js +14 -0
  34. package/lib/components/MenuGridCell/MenuGridCell.js.map +1 -0
  35. package/lib/components/MenuGridCell/MenuGridCell.types.js +1 -0
  36. package/lib/components/MenuGridCell/MenuGridCell.types.js.map +1 -0
  37. package/lib/components/MenuGridCell/index.js +4 -0
  38. package/lib/components/MenuGridCell/index.js.map +1 -0
  39. package/lib/components/MenuGridCell/renderMenuGridCell.js +8 -0
  40. package/lib/components/MenuGridCell/renderMenuGridCell.js.map +1 -0
  41. package/lib/components/MenuGridCell/useMenuGridCell.js +20 -0
  42. package/lib/components/MenuGridCell/useMenuGridCell.js.map +1 -0
  43. package/lib/components/MenuGridCell/useMenuGridCellStyles.styles.js +18 -0
  44. package/lib/components/MenuGridCell/useMenuGridCellStyles.styles.js.map +1 -0
  45. package/lib/components/MenuGridCell/useMenuGridCellStyles.styles.raw.js +15 -0
  46. package/lib/components/MenuGridCell/useMenuGridCellStyles.styles.raw.js.map +1 -0
  47. package/lib/components/MenuGridGroup/MenuGridGroup.js +16 -0
  48. package/lib/components/MenuGridGroup/MenuGridGroup.js.map +1 -0
  49. package/lib/components/MenuGridGroup/MenuGridGroup.types.js +1 -0
  50. package/lib/components/MenuGridGroup/MenuGridGroup.types.js.map +1 -0
  51. package/lib/components/MenuGridGroup/index.js +5 -0
  52. package/lib/components/MenuGridGroup/index.js.map +1 -0
  53. package/lib/components/MenuGridGroup/renderMenuGridGroup.js +12 -0
  54. package/lib/components/MenuGridGroup/renderMenuGridGroup.js.map +1 -0
  55. package/lib/components/MenuGridGroup/useMenuGridGroup.js +21 -0
  56. package/lib/components/MenuGridGroup/useMenuGridGroup.js.map +1 -0
  57. package/lib/components/MenuGridGroup/useMenuGridGroupContextValues.js +12 -0
  58. package/lib/components/MenuGridGroup/useMenuGridGroupContextValues.js.map +1 -0
  59. package/lib/components/MenuGridGroup/useMenuGridGroupStyles.styles.js +10 -0
  60. package/lib/components/MenuGridGroup/useMenuGridGroupStyles.styles.js.map +1 -0
  61. package/lib/components/MenuGridGroup/useMenuGridGroupStyles.styles.raw.js +9 -0
  62. package/lib/components/MenuGridGroup/useMenuGridGroupStyles.styles.raw.js.map +1 -0
  63. package/lib/components/MenuGridGroupHeader/MenuGridGroupHeader.js +14 -0
  64. package/lib/components/MenuGridGroupHeader/MenuGridGroupHeader.js.map +1 -0
  65. package/lib/components/MenuGridGroupHeader/MenuGridGroupHeader.types.js +1 -0
  66. package/lib/components/MenuGridGroupHeader/MenuGridGroupHeader.types.js.map +1 -0
  67. package/lib/components/MenuGridGroupHeader/index.js +4 -0
  68. package/lib/components/MenuGridGroupHeader/index.js.map +1 -0
  69. package/lib/components/MenuGridGroupHeader/renderMenuGridGroupHeader.js +8 -0
  70. package/lib/components/MenuGridGroupHeader/renderMenuGridGroupHeader.js.map +1 -0
  71. package/lib/components/MenuGridGroupHeader/useMenuGridGroupHeader.js +22 -0
  72. package/lib/components/MenuGridGroupHeader/useMenuGridGroupHeader.js.map +1 -0
  73. package/lib/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.js +10 -0
  74. package/lib/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.js.map +1 -0
  75. package/lib/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.raw.js +9 -0
  76. package/lib/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.raw.js.map +1 -0
  77. package/lib/components/MenuGridItem/MenuGridItem.js +14 -0
  78. package/lib/components/MenuGridItem/MenuGridItem.js.map +1 -0
  79. package/lib/components/MenuGridItem/MenuGridItem.types.js +1 -0
  80. package/lib/components/MenuGridItem/MenuGridItem.types.js.map +1 -0
  81. package/lib/components/MenuGridItem/index.js +4 -0
  82. package/lib/components/MenuGridItem/index.js.map +1 -0
  83. package/lib/components/MenuGridItem/renderMenuGridItem.js +20 -0
  84. package/lib/components/MenuGridItem/renderMenuGridItem.js.map +1 -0
  85. package/lib/components/MenuGridItem/useMenuGridItem.js +44 -0
  86. package/lib/components/MenuGridItem/useMenuGridItem.js.map +1 -0
  87. package/lib/components/MenuGridItem/useMenuGridItemStyles.styles.js +15 -0
  88. package/lib/components/MenuGridItem/useMenuGridItemStyles.styles.js.map +1 -0
  89. package/lib/components/MenuGridItem/useMenuGridItemStyles.styles.raw.js +14 -0
  90. package/lib/components/MenuGridItem/useMenuGridItemStyles.styles.raw.js.map +1 -0
  91. package/lib/components/MenuGridRow/MenuGridRow.js +14 -0
  92. package/lib/components/MenuGridRow/MenuGridRow.js.map +1 -0
  93. package/lib/components/MenuGridRow/MenuGridRow.types.js +1 -0
  94. package/lib/components/MenuGridRow/MenuGridRow.types.js.map +1 -0
  95. package/lib/components/MenuGridRow/index.js +4 -0
  96. package/lib/components/MenuGridRow/index.js.map +1 -0
  97. package/lib/components/MenuGridRow/renderMenuGridRow.js +8 -0
  98. package/lib/components/MenuGridRow/renderMenuGridRow.js.map +1 -0
  99. package/lib/components/MenuGridRow/useMenuGridRow.js +22 -0
  100. package/lib/components/MenuGridRow/useMenuGridRow.js.map +1 -0
  101. package/lib/components/MenuGridRow/useMenuGridRowStyles.styles.js +10 -0
  102. package/lib/components/MenuGridRow/useMenuGridRowStyles.styles.js.map +1 -0
  103. package/lib/components/MenuGridRow/useMenuGridRowStyles.styles.raw.js +9 -0
  104. package/lib/components/MenuGridRow/useMenuGridRowStyles.styles.raw.js.map +1 -0
  105. package/lib/components/index.js +1 -0
  106. package/lib/components/index.js.map +1 -0
  107. package/lib/contexts/menuGridContext.js +10 -0
  108. package/lib/contexts/menuGridContext.js.map +1 -0
  109. package/lib/contexts/menuGridGroupContext.js +10 -0
  110. package/lib/contexts/menuGridGroupContext.js.map +1 -0
  111. package/lib/index.js +8 -0
  112. package/lib/index.js.map +1 -0
  113. package/lib-commonjs/MenuGrid.js +31 -0
  114. package/lib-commonjs/MenuGrid.js.map +1 -0
  115. package/lib-commonjs/MenuGridCell.js +28 -0
  116. package/lib-commonjs/MenuGridCell.js.map +1 -0
  117. package/lib-commonjs/MenuGridGroup.js +31 -0
  118. package/lib-commonjs/MenuGridGroup.js.map +1 -0
  119. package/lib-commonjs/MenuGridGroupHeader.js +28 -0
  120. package/lib-commonjs/MenuGridGroupHeader.js.map +1 -0
  121. package/lib-commonjs/MenuGridItem.js +28 -0
  122. package/lib-commonjs/MenuGridItem.js.map +1 -0
  123. package/lib-commonjs/MenuGridRow.js +28 -0
  124. package/lib-commonjs/MenuGridRow.js.map +1 -0
  125. package/lib-commonjs/components/MenuGrid/MenuGrid.js +24 -0
  126. package/lib-commonjs/components/MenuGrid/MenuGrid.js.map +1 -0
  127. package/lib-commonjs/components/MenuGrid/MenuGrid.types.js +4 -0
  128. package/lib-commonjs/components/MenuGrid/MenuGrid.types.js.map +1 -0
  129. package/lib-commonjs/components/MenuGrid/index.js +35 -0
  130. package/lib-commonjs/components/MenuGrid/index.js.map +1 -0
  131. package/lib-commonjs/components/MenuGrid/renderMenuGrid.js +20 -0
  132. package/lib-commonjs/components/MenuGrid/renderMenuGrid.js.map +1 -0
  133. package/lib-commonjs/components/MenuGrid/useMenuGrid.js +35 -0
  134. package/lib-commonjs/components/MenuGrid/useMenuGrid.js.map +1 -0
  135. package/lib-commonjs/components/MenuGrid/useMenuGridContextValues.js +23 -0
  136. package/lib-commonjs/components/MenuGrid/useMenuGridContextValues.js.map +1 -0
  137. package/lib-commonjs/components/MenuGrid/useMenuGridStyles.styles.js +52 -0
  138. package/lib-commonjs/components/MenuGrid/useMenuGridStyles.styles.js.map +1 -0
  139. package/lib-commonjs/components/MenuGrid/useMenuGridStyles.styles.raw.js +38 -0
  140. package/lib-commonjs/components/MenuGrid/useMenuGridStyles.styles.raw.js.map +1 -0
  141. package/lib-commonjs/components/MenuGridCell/MenuGridCell.js +22 -0
  142. package/lib-commonjs/components/MenuGridCell/MenuGridCell.js.map +1 -0
  143. package/lib-commonjs/components/MenuGridCell/MenuGridCell.types.js +4 -0
  144. package/lib-commonjs/components/MenuGridCell/MenuGridCell.types.js.map +1 -0
  145. package/lib-commonjs/components/MenuGridCell/index.js +31 -0
  146. package/lib-commonjs/components/MenuGridCell/index.js.map +1 -0
  147. package/lib-commonjs/components/MenuGridCell/renderMenuGridCell.js +16 -0
  148. package/lib-commonjs/components/MenuGridCell/renderMenuGridCell.js.map +1 -0
  149. package/lib-commonjs/components/MenuGridCell/useMenuGridCell.js +29 -0
  150. package/lib-commonjs/components/MenuGridCell/useMenuGridCell.js.map +1 -0
  151. package/lib-commonjs/components/MenuGridCell/useMenuGridCellStyles.styles.js +37 -0
  152. package/lib-commonjs/components/MenuGridCell/useMenuGridCellStyles.styles.js.map +1 -0
  153. package/lib-commonjs/components/MenuGridCell/useMenuGridCellStyles.styles.raw.js +33 -0
  154. package/lib-commonjs/components/MenuGridCell/useMenuGridCellStyles.styles.raw.js.map +1 -0
  155. package/lib-commonjs/components/MenuGridGroup/MenuGridGroup.js +24 -0
  156. package/lib-commonjs/components/MenuGridGroup/MenuGridGroup.js.map +1 -0
  157. package/lib-commonjs/components/MenuGridGroup/MenuGridGroup.types.js +4 -0
  158. package/lib-commonjs/components/MenuGridGroup/MenuGridGroup.types.js.map +1 -0
  159. package/lib-commonjs/components/MenuGridGroup/index.js +35 -0
  160. package/lib-commonjs/components/MenuGridGroup/index.js.map +1 -0
  161. package/lib-commonjs/components/MenuGridGroup/renderMenuGridGroup.js +20 -0
  162. package/lib-commonjs/components/MenuGridGroup/renderMenuGridGroup.js.map +1 -0
  163. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroup.js +30 -0
  164. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroup.js.map +1 -0
  165. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroupContextValues.js +23 -0
  166. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroupContextValues.js.map +1 -0
  167. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroupStyles.styles.js +27 -0
  168. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroupStyles.styles.js.map +1 -0
  169. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroupStyles.styles.raw.js +27 -0
  170. package/lib-commonjs/components/MenuGridGroup/useMenuGridGroupStyles.styles.raw.js.map +1 -0
  171. package/lib-commonjs/components/MenuGridGroupHeader/MenuGridGroupHeader.js +22 -0
  172. package/lib-commonjs/components/MenuGridGroupHeader/MenuGridGroupHeader.js.map +1 -0
  173. package/lib-commonjs/components/MenuGridGroupHeader/MenuGridGroupHeader.types.js +4 -0
  174. package/lib-commonjs/components/MenuGridGroupHeader/MenuGridGroupHeader.types.js.map +1 -0
  175. package/lib-commonjs/components/MenuGridGroupHeader/index.js +31 -0
  176. package/lib-commonjs/components/MenuGridGroupHeader/index.js.map +1 -0
  177. package/lib-commonjs/components/MenuGridGroupHeader/renderMenuGridGroupHeader.js +16 -0
  178. package/lib-commonjs/components/MenuGridGroupHeader/renderMenuGridGroupHeader.js.map +1 -0
  179. package/lib-commonjs/components/MenuGridGroupHeader/useMenuGridGroupHeader.js +31 -0
  180. package/lib-commonjs/components/MenuGridGroupHeader/useMenuGridGroupHeader.js.map +1 -0
  181. package/lib-commonjs/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.js +27 -0
  182. package/lib-commonjs/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.js.map +1 -0
  183. package/lib-commonjs/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.raw.js +27 -0
  184. package/lib-commonjs/components/MenuGridGroupHeader/useMenuGridGroupHeaderStyles.styles.raw.js.map +1 -0
  185. package/lib-commonjs/components/MenuGridItem/MenuGridItem.js +22 -0
  186. package/lib-commonjs/components/MenuGridItem/MenuGridItem.js.map +1 -0
  187. package/lib-commonjs/components/MenuGridItem/MenuGridItem.types.js +4 -0
  188. package/lib-commonjs/components/MenuGridItem/MenuGridItem.types.js.map +1 -0
  189. package/lib-commonjs/components/MenuGridItem/index.js +31 -0
  190. package/lib-commonjs/components/MenuGridItem/index.js.map +1 -0
  191. package/lib-commonjs/components/MenuGridItem/renderMenuGridItem.js +28 -0
  192. package/lib-commonjs/components/MenuGridItem/renderMenuGridItem.js.map +1 -0
  193. package/lib-commonjs/components/MenuGridItem/useMenuGridItem.js +53 -0
  194. package/lib-commonjs/components/MenuGridItem/useMenuGridItem.js.map +1 -0
  195. package/lib-commonjs/components/MenuGridItem/useMenuGridItemStyles.styles.js +32 -0
  196. package/lib-commonjs/components/MenuGridItem/useMenuGridItemStyles.styles.js.map +1 -0
  197. package/lib-commonjs/components/MenuGridItem/useMenuGridItemStyles.styles.raw.js +32 -0
  198. package/lib-commonjs/components/MenuGridItem/useMenuGridItemStyles.styles.raw.js.map +1 -0
  199. package/lib-commonjs/components/MenuGridRow/MenuGridRow.js +22 -0
  200. package/lib-commonjs/components/MenuGridRow/MenuGridRow.js.map +1 -0
  201. package/lib-commonjs/components/MenuGridRow/MenuGridRow.types.js +4 -0
  202. package/lib-commonjs/components/MenuGridRow/MenuGridRow.types.js.map +1 -0
  203. package/lib-commonjs/components/MenuGridRow/index.js +31 -0
  204. package/lib-commonjs/components/MenuGridRow/index.js.map +1 -0
  205. package/lib-commonjs/components/MenuGridRow/renderMenuGridRow.js +16 -0
  206. package/lib-commonjs/components/MenuGridRow/renderMenuGridRow.js.map +1 -0
  207. package/lib-commonjs/components/MenuGridRow/useMenuGridRow.js +31 -0
  208. package/lib-commonjs/components/MenuGridRow/useMenuGridRow.js.map +1 -0
  209. package/lib-commonjs/components/MenuGridRow/useMenuGridRowStyles.styles.js +27 -0
  210. package/lib-commonjs/components/MenuGridRow/useMenuGridRowStyles.styles.js.map +1 -0
  211. package/lib-commonjs/components/MenuGridRow/useMenuGridRowStyles.styles.raw.js +27 -0
  212. package/lib-commonjs/components/MenuGridRow/useMenuGridRowStyles.styles.raw.js.map +1 -0
  213. package/lib-commonjs/components/index.js +31 -0
  214. package/lib-commonjs/components/index.js.map +1 -0
  215. package/lib-commonjs/contexts/menuGridContext.js +32 -0
  216. package/lib-commonjs/contexts/menuGridContext.js.map +1 -0
  217. package/lib-commonjs/contexts/menuGridGroupContext.js +29 -0
  218. package/lib-commonjs/contexts/menuGridGroupContext.js.map +1 -0
  219. package/lib-commonjs/index.js +128 -0
  220. package/lib-commonjs/index.js.map +1 -0
  221. package/package.json +53 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,31 @@
1
+ # Change Log - @fluentui/react-menu-grid-preview
2
+
3
+ This log was last generated on Fri, 22 Aug 2025 04:21:53 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## [0.0.0-nightly-20250822-0407.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu-grid-preview_v0.0.0-nightly-20250822-0407.1)
8
+
9
+ Fri, 22 Aug 2025 04:21:53 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu-grid-preview_v0.1.0..@fluentui/react-menu-grid-preview_v0.0.0-nightly-20250822-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-menu to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
16
+ - Bump @fluentui/react-table to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
17
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
18
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
19
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
20
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
21
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
22
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
23
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20250822-0407.1 ([commit](https://github.com/microsoft/fluentui/commit/9214ada4ffc741f67015ead61a4ac0b9a7f2d2a1) by beachball)
24
+
25
+ ## [0.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu-grid-preview_v0.1.0)
26
+
27
+ Thu, 21 Aug 2025 13:38:51 GMT
28
+
29
+ ### Minor changes
30
+
31
+ - 'feat: ([PR #35064](https://github.com/microsoft/fluentui/pull/35064) by adam.samec@gmail.com)
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ @fluentui/react-menu-grid-preview
2
+
3
+ Copyright (c) Microsoft Corporation
4
+
5
+ All rights reserved.
6
+
7
+ MIT License
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+
15
+ Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @fluentui/react-menu-grid-preview
2
+
3
+ **React Menu Grid components for [Fluent UI React](https://react.fluentui.dev/)**
4
+
5
+ These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
@@ -0,0 +1,251 @@
1
+ import type { ComponentProps } from '@fluentui/react-utilities';
2
+ import type { ComponentState } from '@fluentui/react-utilities';
3
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
+ import * as React_2 from 'react';
5
+ import type { Slot } from '@fluentui/react-utilities';
6
+ import type { SlotClassNames } from '@fluentui/react-utilities';
7
+ import { TabsterDOMAttribute } from '@fluentui/react-tabster';
8
+
9
+ /**
10
+ * Define a styled MenuGrid, using the `useMenuGrid_unstable` hook.
11
+ */
12
+ export declare const MenuGrid: ForwardRefComponent<MenuGridProps>;
13
+
14
+ /**
15
+ * Define a MenuGridCell, using the `useMenuGridCell_unstable` hook.
16
+ */
17
+ export declare const MenuGridCell: ForwardRefComponent<MenuGridCellProps>;
18
+
19
+ export declare const menuGridCellClassNames: SlotClassNames<MenuGridCellSlots>;
20
+
21
+ export declare type MenuGridCellProps = ComponentProps<MenuGridCellSlots> & {
22
+ /**
23
+ * A MenuGridCell can be visually hidden, which is used for asymmetric grids
24
+ * @defaultvalue false
25
+ */
26
+ visuallyHidden?: boolean;
27
+ };
28
+
29
+ export declare type MenuGridCellSlots = {
30
+ root: Slot<'div'>;
31
+ };
32
+
33
+ export declare type MenuGridCellState = ComponentState<MenuGridCellSlots> & Pick<MenuGridCellProps, 'visuallyHidden'>;
34
+
35
+ export declare const menuGridClassNames: SlotClassNames<MenuGridSlots>;
36
+
37
+ export declare const MenuGridContextProvider: React_2.Provider<MenuGridContextValue>;
38
+
39
+ /**
40
+ * Context shared between MenuGrid and its children components
41
+ */
42
+ export declare type MenuGridContextValue = {
43
+ /**
44
+ * Tabster row attributes applied to the `MenuGridRow` components
45
+ */
46
+ tableRowTabsterAttribute: TabsterDOMAttribute | null;
47
+ };
48
+
49
+ export declare type MenuGridContextValues = {
50
+ menuGrid: MenuGridContextValue;
51
+ };
52
+
53
+ /**
54
+ * Define a MenuGridGroup, using the `useMenuGridGroup_unstable` hook.
55
+ */
56
+ export declare const MenuGridGroup: ForwardRefComponent<MenuGridGroupProps>;
57
+
58
+ export declare const MenuGridGroupClassNames: SlotClassNames<MenuGridGroupSlots>;
59
+
60
+ export declare const MenuGridGroupContextProvider: React_2.Provider<MenuGridGroupContextValue>;
61
+
62
+ /**
63
+ * Context used to guarantee correct aria-relationship between row group and header
64
+ */
65
+ export declare type MenuGridGroupContextValue = {
66
+ /**
67
+ * Element id applied to the `MenuGridGroupHeader` component
68
+ */
69
+ headerId: string;
70
+ };
71
+
72
+ export declare type MenuGridGroupContextValues = {
73
+ MenuGridGroup: MenuGridGroupContextValue;
74
+ };
75
+
76
+ /**
77
+ * Define a MenuGridGroupHeader, using the `useMenuGridGroupHeader_unstable` hook.
78
+ */
79
+ export declare const MenuGridGroupHeader: ForwardRefComponent<MenuGridGroupHeaderProps>;
80
+
81
+ export declare const MenuGridGroupHeaderClassNames: SlotClassNames<MenuGridGroupHeaderSlots>;
82
+
83
+ export declare type MenuGridGroupHeaderProps = ComponentProps<MenuGridGroupHeaderSlots>;
84
+
85
+ export declare type MenuGridGroupHeaderSlots = {
86
+ root: Slot<'div'>;
87
+ };
88
+
89
+ export declare type MenuGridGroupHeaderState = ComponentState<MenuGridGroupHeaderSlots>;
90
+
91
+ export declare type MenuGridGroupProps = ComponentProps<MenuGridGroupSlots>;
92
+
93
+ export declare type MenuGridGroupSlots = {
94
+ root: Slot<'div'>;
95
+ };
96
+
97
+ export declare type MenuGridGroupState = ComponentState<MenuGridGroupSlots> & {
98
+ /**
99
+ * id applied to the DOM element of `MenuGridGroupHeader`
100
+ */
101
+ headerId: string;
102
+ };
103
+
104
+ /**
105
+ * Define a MenuGridItem, using the `useMenuGridItem_unstable` hook.
106
+ */
107
+ export declare const MenuGridItem: ForwardRefComponent<MenuGridItemProps>;
108
+
109
+ export declare const menuGridItemClassNames: SlotClassNames<MenuGridItemSlots>;
110
+
111
+ export declare type MenuGridItemProps = ComponentProps<Partial<MenuGridItemSlots>>;
112
+
113
+ export declare type MenuGridItemSlots = {
114
+ root: Slot<MenuGridRowProps>;
115
+ /**
116
+ * Icon slot rendered as cell before content cell
117
+ */
118
+ icon?: Slot<MenuGridCellProps>;
119
+ /**
120
+ * Component children are placed in this slot
121
+ * Avoid using the `children` property in this slot in favour of Component children whenever possible
122
+ */
123
+ content?: Slot<MenuGridCellProps>;
124
+ /**
125
+ * Additional descriptor to main content that creates a multiline layout
126
+ */
127
+ subText?: Slot<'span'>;
128
+ /**
129
+ * Firstd sub-action slot rendered as cell after content cell
130
+ */
131
+ firstSubAction?: Slot<MenuGridCellProps>;
132
+ /**
133
+ * Second sub-action slot rendered as cell after first sub-action cell
134
+ */
135
+ secondSubAction?: Slot<MenuGridCellProps>;
136
+ };
137
+
138
+ export declare type MenuGridItemState = ComponentState<MenuGridItemSlots>;
139
+
140
+ export declare type MenuGridProps = ComponentProps<MenuGridSlots> & {};
141
+
142
+ /**
143
+ * Define a MenuGridRow, using the `useMenuGridRow_unstable` hook.
144
+ */
145
+ export declare const MenuGridRow: ForwardRefComponent<MenuGridRowProps>;
146
+
147
+ export declare const menuGridRowClassNames: SlotClassNames<MenuGridRowSlots>;
148
+
149
+ export declare type MenuGridRowProps = ComponentProps<Partial<MenuGridRowSlots>>;
150
+
151
+ export declare type MenuGridRowSlots = {
152
+ root: Slot<'div'>;
153
+ };
154
+
155
+ export declare type MenuGridRowState = ComponentState<MenuGridRowSlots>;
156
+
157
+ export declare type MenuGridSlots = {
158
+ root: Slot<'div'>;
159
+ };
160
+
161
+ export declare type MenuGridState = ComponentState<MenuGridSlots> & {
162
+ /**
163
+ * Tabster row attributes applied to the `MenuGridRow` components
164
+ */
165
+ tableRowTabsterAttribute: TabsterDOMAttribute | null;
166
+ };
167
+
168
+ /**
169
+ * Function that renders the final JSX of the component
170
+ */
171
+ export declare const renderMenuGrid_unstable: (state: MenuGridState, contextValues: MenuGridContextValues) => JSX.Element;
172
+
173
+ /**
174
+ * Function that renders the final JSX of the component
175
+ */
176
+ export declare const renderMenuGridCell_unstable: (state: MenuGridCellState) => JSX.Element;
177
+
178
+ /**
179
+ * Function that renders the final JSX of the component
180
+ */
181
+ export declare const renderMenuGridGroup_unstable: (state: MenuGridGroupState, contextValues: MenuGridGroupContextValues) => JSX.Element;
182
+
183
+ /**
184
+ * Function that renders the final JSX of the component
185
+ */
186
+ export declare const renderMenuGridGroupHeader_unstable: (state: MenuGridGroupHeaderState) => JSX.Element;
187
+
188
+ /**
189
+ * Function that renders the final JSX of the component
190
+ */
191
+ export declare const renderMenuGridItem_unstable: (state: MenuGridItemState) => JSX.Element;
192
+
193
+ /**
194
+ * Function that renders the final JSX of the component
195
+ */
196
+ export declare const renderMenuGridRow_unstable: (state: MenuGridRowState) => JSX.Element;
197
+
198
+ /**
199
+ * Returns the props and state required to render the component
200
+ */
201
+ export declare const useMenuGrid_unstable: (props: MenuGridProps, ref: React_2.Ref<HTMLDivElement>) => MenuGridState;
202
+
203
+ /**
204
+ * Given user props, returns state and render function for a MenuGridCell.
205
+ */
206
+ export declare function useMenuGridCell_unstable(props: MenuGridCellProps, ref: React_2.Ref<HTMLDivElement>): MenuGridCellState;
207
+
208
+ export declare const useMenuGridCellStyles_unstable: (state: MenuGridCellState) => MenuGridCellState;
209
+
210
+ export declare const useMenuGridContext_unstable: () => MenuGridContextValue;
211
+
212
+ export declare function useMenuGridContextValues_unstable(state: MenuGridState): MenuGridContextValues;
213
+
214
+ /**
215
+ * Given user props, returns state and render function for a MenuGridGroup.
216
+ */
217
+ export declare function useMenuGridGroup_unstable(props: MenuGridGroupProps, ref: React_2.Ref<HTMLDivElement>): MenuGridGroupState;
218
+
219
+ export declare const useMenuGridGroupContext_unstable: () => MenuGridGroupContextValue;
220
+
221
+ export declare function useMenuGridGroupContextValues_unstable(state: MenuGridGroupState): MenuGridGroupContextValues;
222
+
223
+ /**
224
+ * Given user props, returns state and render function for a MenuGridGroupHeader.
225
+ */
226
+ export declare function useMenuGridGroupHeader_unstable(props: MenuGridGroupHeaderProps, ref: React_2.Ref<HTMLDivElement>): MenuGridGroupHeaderState;
227
+
228
+ export declare const useMenuGridGroupHeaderStyles_unstable: (state: MenuGridGroupHeaderState) => MenuGridGroupHeaderState;
229
+
230
+ export declare const useMenuGridGroupStyles_unstable: (state: MenuGridGroupState) => MenuGridGroupState;
231
+
232
+ /**
233
+ * Given user props, returns state and render function for a MenuGridItem.
234
+ */
235
+ export declare function useMenuGridItem_unstable(props: MenuGridItemProps, ref: React_2.Ref<HTMLDivElement>): MenuGridItemState;
236
+
237
+ export declare const useMenuGridItemStyles_unstable: (state: MenuGridItemState) => MenuGridItemState;
238
+
239
+ /**
240
+ * Given user props, returns state and render function for a MenuGridRow.
241
+ */
242
+ export declare function useMenuGridRow_unstable(props: MenuGridRowProps, ref: React_2.Ref<HTMLDivElement>): MenuGridRowState;
243
+
244
+ export declare const useMenuGridRowStyles_unstable: (state: MenuGridRowState) => MenuGridRowState;
245
+
246
+ /**
247
+ * Apply styling to the Menu slots based on the state
248
+ */
249
+ export declare const useMenuGridStyles_unstable: (state: MenuGridState) => MenuGridState;
250
+
251
+ export { }
@@ -0,0 +1 @@
1
+ export { MenuGrid, menuGridClassNames, renderMenuGrid_unstable, useMenuGridContextValues_unstable, useMenuGridStyles_unstable, useMenuGrid_unstable } from './components/MenuGrid/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/MenuGrid.ts"],"sourcesContent":["export type { MenuGridContextValues, MenuGridProps, MenuGridSlots, MenuGridState } from './components/MenuGrid/index';\nexport {\n MenuGrid,\n menuGridClassNames,\n renderMenuGrid_unstable,\n useMenuGridContextValues_unstable,\n useMenuGridStyles_unstable,\n useMenuGrid_unstable,\n} from './components/MenuGrid/index';\n"],"names":["MenuGrid","menuGridClassNames","renderMenuGrid_unstable","useMenuGridContextValues_unstable","useMenuGridStyles_unstable","useMenuGrid_unstable"],"mappings":"AACA,SACEA,QAAQ,EACRC,kBAAkB,EAClBC,uBAAuB,EACvBC,iCAAiC,EACjCC,0BAA0B,EAC1BC,oBAAoB,QACf,8BAA8B"}
@@ -0,0 +1 @@
1
+ export { MenuGridCell, menuGridCellClassNames, renderMenuGridCell_unstable, useMenuGridCellStyles_unstable, useMenuGridCell_unstable } from './components/MenuGridCell/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/MenuGridCell.ts"],"sourcesContent":["export type { MenuGridCellProps, MenuGridCellSlots, MenuGridCellState } from './components/MenuGridCell/index';\nexport {\n MenuGridCell,\n menuGridCellClassNames,\n renderMenuGridCell_unstable,\n useMenuGridCellStyles_unstable,\n useMenuGridCell_unstable,\n} from './components/MenuGridCell/index';\n"],"names":["MenuGridCell","menuGridCellClassNames","renderMenuGridCell_unstable","useMenuGridCellStyles_unstable","useMenuGridCell_unstable"],"mappings":"AACA,SACEA,YAAY,EACZC,sBAAsB,EACtBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,wBAAwB,QACnB,kCAAkC"}
@@ -0,0 +1 @@
1
+ export { MenuGridGroup, MenuGridGroupClassNames, renderMenuGridGroup_unstable, useMenuGridGroupContextValues_unstable, useMenuGridGroupStyles_unstable, useMenuGridGroup_unstable } from './components/MenuGridGroup/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/MenuGridGroup.ts"],"sourcesContent":["export type {\n MenuGridGroupContextValues,\n MenuGridGroupProps,\n MenuGridGroupSlots,\n MenuGridGroupState,\n} from './components/MenuGridGroup/index';\nexport {\n MenuGridGroup,\n MenuGridGroupClassNames,\n renderMenuGridGroup_unstable,\n useMenuGridGroupContextValues_unstable,\n useMenuGridGroupStyles_unstable,\n useMenuGridGroup_unstable,\n} from './components/MenuGridGroup/index';\n"],"names":["MenuGridGroup","MenuGridGroupClassNames","renderMenuGridGroup_unstable","useMenuGridGroupContextValues_unstable","useMenuGridGroupStyles_unstable","useMenuGridGroup_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,sCAAsC,EACtCC,+BAA+B,EAC/BC,yBAAyB,QACpB,mCAAmC"}
@@ -0,0 +1 @@
1
+ export { MenuGridGroupHeader, MenuGridGroupHeaderClassNames, renderMenuGridGroupHeader_unstable, useMenuGridGroupHeaderStyles_unstable, useMenuGridGroupHeader_unstable } from './components/MenuGridGroupHeader/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/MenuGridGroupHeader.ts"],"sourcesContent":["export type {\n MenuGridGroupHeaderProps,\n MenuGridGroupHeaderSlots,\n MenuGridGroupHeaderState,\n} from './components/MenuGridGroupHeader/index';\nexport {\n MenuGridGroupHeader,\n MenuGridGroupHeaderClassNames,\n renderMenuGridGroupHeader_unstable,\n useMenuGridGroupHeaderStyles_unstable,\n useMenuGridGroupHeader_unstable,\n} from './components/MenuGridGroupHeader/index';\n"],"names":["MenuGridGroupHeader","MenuGridGroupHeaderClassNames","renderMenuGridGroupHeader_unstable","useMenuGridGroupHeaderStyles_unstable","useMenuGridGroupHeader_unstable"],"mappings":"AAKA,SACEA,mBAAmB,EACnBC,6BAA6B,EAC7BC,kCAAkC,EAClCC,qCAAqC,EACrCC,+BAA+B,QAC1B,yCAAyC"}
@@ -0,0 +1 @@
1
+ export { MenuGridItem, menuGridItemClassNames, renderMenuGridItem_unstable, useMenuGridItemStyles_unstable, useMenuGridItem_unstable } from './components/MenuGridItem/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/MenuGridItem.ts"],"sourcesContent":["export type { MenuGridItemProps, MenuGridItemSlots, MenuGridItemState } from './components/MenuGridItem/index';\nexport {\n MenuGridItem,\n menuGridItemClassNames,\n renderMenuGridItem_unstable,\n useMenuGridItemStyles_unstable,\n useMenuGridItem_unstable,\n} from './components/MenuGridItem/index';\n"],"names":["MenuGridItem","menuGridItemClassNames","renderMenuGridItem_unstable","useMenuGridItemStyles_unstable","useMenuGridItem_unstable"],"mappings":"AACA,SACEA,YAAY,EACZC,sBAAsB,EACtBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,wBAAwB,QACnB,kCAAkC"}
@@ -0,0 +1 @@
1
+ export { MenuGridRow, menuGridRowClassNames, renderMenuGridRow_unstable, useMenuGridRowStyles_unstable, useMenuGridRow_unstable } from './components/MenuGridRow/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/MenuGridRow.ts"],"sourcesContent":["export type { MenuGridRowProps, MenuGridRowSlots, MenuGridRowState } from './components/MenuGridRow/index';\nexport {\n MenuGridRow,\n menuGridRowClassNames,\n renderMenuGridRow_unstable,\n useMenuGridRowStyles_unstable,\n useMenuGridRow_unstable,\n} from './components/MenuGridRow/index';\n"],"names":["MenuGridRow","menuGridRowClassNames","renderMenuGridRow_unstable","useMenuGridRowStyles_unstable","useMenuGridRow_unstable"],"mappings":"AACA,SACEA,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,uBAAuB,QAClB,iCAAiC"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { useMenuGrid_unstable } from './useMenuGrid';
3
+ import { renderMenuGrid_unstable } from './renderMenuGrid';
4
+ import { useMenuGridContextValues_unstable } from './useMenuGridContextValues';
5
+ import { useMenuGridStyles_unstable } from './useMenuGridStyles.styles';
6
+ // import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
7
+ /**
8
+ * Define a styled MenuGrid, using the `useMenuGrid_unstable` hook.
9
+ */ export const MenuGrid = /*#__PURE__*/ React.forwardRef((props, ref)=>{
10
+ const state = useMenuGrid_unstable(props, ref);
11
+ const contextValues = useMenuGridContextValues_unstable(state);
12
+ useMenuGridStyles_unstable(state);
13
+ // useCustomStyleHook_unstable('useMenuGridStyles_unstable')(state);
14
+ return renderMenuGrid_unstable(state, contextValues);
15
+ });
16
+ MenuGrid.displayName = 'MenuGrid';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/MenuGrid.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useMenuGrid_unstable } from './useMenuGrid';\nimport { renderMenuGrid_unstable } from './renderMenuGrid';\nimport { useMenuGridContextValues_unstable } from './useMenuGridContextValues';\nimport { useMenuGridStyles_unstable } from './useMenuGridStyles.styles';\nimport type { MenuGridProps } from './MenuGrid.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Define a styled MenuGrid, using the `useMenuGrid_unstable` hook.\n */\nexport const MenuGrid: ForwardRefComponent<MenuGridProps> = React.forwardRef((props, ref) => {\n const state = useMenuGrid_unstable(props, ref);\n const contextValues = useMenuGridContextValues_unstable(state);\n\n useMenuGridStyles_unstable(state);\n\n // useCustomStyleHook_unstable('useMenuGridStyles_unstable')(state);\n\n return renderMenuGrid_unstable(state, contextValues);\n});\n\nMenuGrid.displayName = 'MenuGrid';\n"],"names":["React","useMenuGrid_unstable","renderMenuGrid_unstable","useMenuGridContextValues_unstable","useMenuGridStyles_unstable","MenuGrid","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,iCAAiC,QAAQ,6BAA6B;AAC/E,SAASC,0BAA0B,QAAQ,6BAA6B;AAGxE,iFAAiF;AAEjF;;CAEC,GACD,OAAO,MAAMC,yBAA+CL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACnF,MAAMC,QAAQR,qBAAqBM,OAAOC;IAC1C,MAAME,gBAAgBP,kCAAkCM;IAExDL,2BAA2BK;IAE3B,oEAAoE;IAEpE,OAAOP,wBAAwBO,OAAOC;AACxC,GAAG;AAEHL,SAASM,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/MenuGrid.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { TabsterDOMAttribute } from '@fluentui/react-tabster';\n\nimport type { MenuGridContextValue } from '../../contexts/menuGridContext';\n\nexport type MenuGridSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuGridProps = ComponentProps<MenuGridSlots> & {};\n\nexport type MenuGridState = ComponentState<MenuGridSlots> & {\n /**\n * Tabster row attributes applied to the `MenuGridRow` components\n */\n tableRowTabsterAttribute: TabsterDOMAttribute | null;\n};\n\nexport type MenuGridContextValues = {\n menuGrid: MenuGridContextValue;\n};\n"],"names":[],"mappings":"AAkBA,WAEE"}
@@ -0,0 +1,5 @@
1
+ export { MenuGrid } from './MenuGrid';
2
+ export { renderMenuGrid_unstable } from './renderMenuGrid';
3
+ export { useMenuGrid_unstable } from './useMenuGrid';
4
+ export { menuGridClassNames, useMenuGridStyles_unstable } from './useMenuGridStyles.styles';
5
+ export { useMenuGridContextValues_unstable } from './useMenuGridContextValues';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/index.ts"],"sourcesContent":["export { MenuGrid } from './MenuGrid';\nexport type { MenuGridContextValues, MenuGridProps, MenuGridSlots, MenuGridState } from './MenuGrid.types';\nexport { renderMenuGrid_unstable } from './renderMenuGrid';\nexport { useMenuGrid_unstable } from './useMenuGrid';\nexport { menuGridClassNames, useMenuGridStyles_unstable } from './useMenuGridStyles.styles';\nexport { useMenuGridContextValues_unstable } from './useMenuGridContextValues';\n"],"names":["MenuGrid","renderMenuGrid_unstable","useMenuGrid_unstable","menuGridClassNames","useMenuGridStyles_unstable","useMenuGridContextValues_unstable"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,aAAa;AAEtC,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,6BAA6B;AAC5F,SAASC,iCAAiC,QAAQ,6BAA6B"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-utilities';
3
+ import { MenuGridContextProvider } from '../../contexts/menuGridContext';
4
+ /**
5
+ * Function that renders the final JSX of the component
6
+ */ export const renderMenuGrid_unstable = (state, contextValues)=>{
7
+ assertSlots(state);
8
+ return /*#__PURE__*/ _jsx(MenuGridContextProvider, {
9
+ value: contextValues.menuGrid,
10
+ children: /*#__PURE__*/ _jsx(state.root, {})
11
+ });
12
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/renderMenuGrid.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { MenuGridContextValues, MenuGridSlots, MenuGridState } from './MenuGrid.types';\nimport { MenuGridContextProvider } from '../../contexts/menuGridContext';\n\n/**\n * Function that renders the final JSX of the component\n */\nexport const renderMenuGrid_unstable = (state: MenuGridState, contextValues: MenuGridContextValues) => {\n assertSlots<MenuGridSlots>(state);\n\n return (\n <MenuGridContextProvider value={contextValues.menuGrid}>\n <state.root />\n </MenuGridContextProvider>\n );\n};\n"],"names":["assertSlots","MenuGridContextProvider","renderMenuGrid_unstable","state","contextValues","value","menuGrid","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD,SAASC,uBAAuB,QAAQ,iCAAiC;AAEzE;;CAEC,GACD,OAAO,MAAMC,0BAA0B,CAACC,OAAsBC;IAC5DJ,YAA2BG;IAE3B,qBACE,KAACF;QAAwBI,OAAOD,cAAcE,QAAQ;kBACpD,cAAA,KAACH,MAAMI,IAAI;;AAGjB,EAAE"}
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
3
+ import { useTableCompositeNavigation } from '@fluentui/react-table';
4
+ import { useMenuContext_unstable } from '@fluentui/react-menu';
5
+ /**
6
+ * Returns the props and state required to render the component
7
+ */ export const useMenuGrid_unstable = (props, ref)=>{
8
+ const triggerId = useMenuContext_unstable((context)=>context.triggerId);
9
+ const { tableRowTabsterAttribute, tableTabsterAttribute, onTableKeyDown } = useTableCompositeNavigation();
10
+ return {
11
+ components: {
12
+ root: 'div'
13
+ },
14
+ root: slot.always(getIntrinsicElementProps('div', {
15
+ ref,
16
+ role: 'grid',
17
+ 'aria-labelledby': triggerId,
18
+ onKeyDown: onTableKeyDown,
19
+ ...tableTabsterAttribute,
20
+ ...props
21
+ }), {
22
+ elementType: 'div'
23
+ }),
24
+ tableRowTabsterAttribute
25
+ };
26
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/useMenuGrid.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport { useTableCompositeNavigation } from '@fluentui/react-table';\nimport type { MenuGridProps, MenuGridState } from './MenuGrid.types';\nimport { useMenuContext_unstable } from '@fluentui/react-menu';\n\n/**\n * Returns the props and state required to render the component\n */\nexport const useMenuGrid_unstable = (props: MenuGridProps, ref: React.Ref<HTMLDivElement>): MenuGridState => {\n const triggerId = useMenuContext_unstable(context => context.triggerId);\n const { tableRowTabsterAttribute, tableTabsterAttribute, onTableKeyDown } = useTableCompositeNavigation();\n\n return {\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'grid',\n 'aria-labelledby': triggerId,\n onKeyDown: onTableKeyDown,\n ...tableTabsterAttribute,\n ...props,\n }),\n { elementType: 'div' },\n ),\n tableRowTabsterAttribute,\n };\n};\n"],"names":["React","getIntrinsicElementProps","slot","useTableCompositeNavigation","useMenuContext_unstable","useMenuGrid_unstable","props","ref","triggerId","context","tableRowTabsterAttribute","tableTabsterAttribute","onTableKeyDown","components","root","always","role","onKeyDown","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAC3E,SAASC,2BAA2B,QAAQ,wBAAwB;AAEpE,SAASC,uBAAuB,QAAQ,uBAAuB;AAE/D;;CAEC,GACD,OAAO,MAAMC,uBAAuB,CAACC,OAAsBC;IACzD,MAAMC,YAAYJ,wBAAwBK,CAAAA,UAAWA,QAAQD,SAAS;IACtE,MAAM,EAAEE,wBAAwB,EAAEC,qBAAqB,EAAEC,cAAc,EAAE,GAAGT;IAE5E,OAAO;QACLU,YAAY;YACVC,MAAM;QACR;QACAA,MAAMZ,KAAKa,MAAM,CACfd,yBAAyB,OAAO;YAC9BM;YACAS,MAAM;YACN,mBAAmBR;YACnBS,WAAWL;YACX,GAAGD,qBAAqB;YACxB,GAAGL,KAAK;QACV,IACA;YAAEY,aAAa;QAAM;QAEvBR;IACF;AACF,EAAE"}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ export function useMenuGridContextValues_unstable(state) {
3
+ const { tableRowTabsterAttribute } = state;
4
+ const menuGrid = React.useMemo(()=>({
5
+ tableRowTabsterAttribute
6
+ }), [
7
+ tableRowTabsterAttribute
8
+ ]);
9
+ return {
10
+ menuGrid
11
+ };
12
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/useMenuGridContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { MenuGridContextValues, MenuGridState } from './MenuGrid.types';\n\nexport function useMenuGridContextValues_unstable(state: MenuGridState): MenuGridContextValues {\n const { tableRowTabsterAttribute } = state;\n const menuGrid = React.useMemo(() => ({ tableRowTabsterAttribute }), [tableRowTabsterAttribute]);\n\n return { menuGrid };\n}\n"],"names":["React","useMenuGridContextValues_unstable","state","tableRowTabsterAttribute","menuGrid","useMemo"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,OAAO,SAASC,kCAAkCC,KAAoB;IACpE,MAAM,EAAEC,wBAAwB,EAAE,GAAGD;IACrC,MAAME,WAAWJ,MAAMK,OAAO,CAAC,IAAO,CAAA;YAAEF;QAAyB,CAAA,GAAI;QAACA;KAAyB;IAE/F,OAAO;QAAEC;IAAS;AACpB"}
@@ -0,0 +1,30 @@
1
+ import { mergeClasses, __styles } from '@griffel/react';
2
+ export const menuGridClassNames = {
3
+ root: 'fui-MenuGrid'
4
+ };
5
+ const useStyles = /*#__PURE__*/__styles({
6
+ root: {
7
+ mc9l5x: "f22iagw",
8
+ Beiy3e4: "f1vx9l62",
9
+ i8kkvl: 0,
10
+ Belr9w4: 0,
11
+ rmohyg: "f1t6b6ee"
12
+ },
13
+ hasMenuContext: {
14
+ Bqenvij: "f1l02sjl"
15
+ }
16
+ }, {
17
+ d: [".f22iagw{display:flex;}", ".f1vx9l62{flex-direction:column;}", [".f1t6b6ee{gap:2px;}", {
18
+ p: -1
19
+ }], ".f1l02sjl{height:100%;}"]
20
+ });
21
+ /**
22
+ * Apply styling to the Menu slots based on the state
23
+ */
24
+ export const useMenuGridStyles_unstable = state => {
25
+ 'use no memo';
26
+
27
+ const styles = useStyles();
28
+ state.root.className = mergeClasses(menuGridClassNames.root, styles.root, state.root.className);
29
+ return state;
30
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"names":["mergeClasses","__styles","menuGridClassNames","root","useStyles","mc9l5x","Beiy3e4","i8kkvl","Belr9w4","rmohyg","hasMenuContext","Bqenvij","d","p","useMenuGridStyles_unstable","state","styles","className"],"sources":["useMenuGridStyles.styles.js"],"sourcesContent":["import { mergeClasses, makeStyles } from '@griffel/react';\nexport const menuGridClassNames = {\n root: 'fui-MenuGrid'\n};\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: '2px'\n },\n hasMenuContext: {\n height: '100%'\n }\n});\n/**\n * Apply styling to the Menu slots based on the state\n */ export const useMenuGridStyles_unstable = (state)=>{\n 'use no memo';\n const styles = useStyles();\n state.root.className = mergeClasses(menuGridClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,EAAAC,QAAA,QAAoB,gBAAgB;AACzD,OAAO,MAAMC,kBAAkB,GAAG;EAC9BC,IAAI,EAAE;AACV,CAAC;AACD,MAAMC,SAAS,gBAAGH,QAAA;EAAAE,IAAA;IAAAE,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,cAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;IAAAC,CAAA;EAAA;AAAA,CASjB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,0BAA0B,GAAIC,KAAK,IAAG;EACnD,aAAa;;EACb,MAAMC,MAAM,GAAGZ,SAAS,CAAC,CAAC;EAC1BW,KAAK,CAACZ,IAAI,CAACc,SAAS,GAAGjB,YAAY,CAACE,kBAAkB,CAACC,IAAI,EAAEa,MAAM,CAACb,IAAI,EAAEY,KAAK,CAACZ,IAAI,CAACc,SAAS,CAAC;EAC/F,OAAOF,KAAK;AAChB,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ import { mergeClasses, makeStyles } from '@griffel/react';
2
+ export const menuGridClassNames = {
3
+ root: 'fui-MenuGrid'
4
+ };
5
+ const useStyles = makeStyles({
6
+ root: {
7
+ display: 'flex',
8
+ flexDirection: 'column',
9
+ gap: '2px'
10
+ },
11
+ hasMenuContext: {
12
+ height: '100%'
13
+ }
14
+ });
15
+ /**
16
+ * Apply styling to the Menu slots based on the state
17
+ */ export const useMenuGridStyles_unstable = (state)=>{
18
+ 'use no memo';
19
+ const styles = useStyles();
20
+ state.root.className = mergeClasses(menuGridClassNames.root, styles.root, state.root.className);
21
+ return state;
22
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGrid/useMenuGridStyles.styles.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses, makeStyles } from '@griffel/react';\nimport type { MenuGridSlots, MenuGridState } from './MenuGrid.types';\n\nexport const menuGridClassNames: SlotClassNames<MenuGridSlots> = {\n root: 'fui-MenuGrid',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: '2px',\n },\n hasMenuContext: {\n height: '100%',\n },\n});\n\n/**\n * Apply styling to the Menu slots based on the state\n */\nexport const useMenuGridStyles_unstable = (state: MenuGridState): MenuGridState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(menuGridClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["mergeClasses","makeStyles","menuGridClassNames","root","useStyles","display","flexDirection","gap","hasMenuContext","height","useMenuGridStyles_unstable","state","styles","className"],"mappings":"AACA,SAASA,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AAG1D,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;AACR,EAAE;AAEF,MAAMC,YAAYH,WAAW;IAC3BE,MAAM;QACJE,SAAS;QACTC,eAAe;QACfC,KAAK;IACP;IACAC,gBAAgB;QACdC,QAAQ;IACV;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CAACC;IACzC;IAEA,MAAMC,SAASR;IACfO,MAAMR,IAAI,CAACU,SAAS,GAAGb,aAAaE,mBAAmBC,IAAI,EAAES,OAAOT,IAAI,EAAEQ,MAAMR,IAAI,CAACU,SAAS;IAC9F,OAAOF;AACT,EAAE"}
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { useMenuGridCell_unstable } from './useMenuGridCell';
3
+ import { renderMenuGridCell_unstable } from './renderMenuGridCell';
4
+ import { useMenuGridCellStyles_unstable } from './useMenuGridCellStyles.styles';
5
+ // import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
6
+ /**
7
+ * Define a MenuGridCell, using the `useMenuGridCell_unstable` hook.
8
+ */ export const MenuGridCell = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
+ const state = useMenuGridCell_unstable(props, ref);
10
+ useMenuGridCellStyles_unstable(state);
11
+ // useCustomStyleHook_unstable('useMenuGridCellStyles_unstable')(state);
12
+ return renderMenuGridCell_unstable(state);
13
+ });
14
+ MenuGridCell.displayName = 'MenuGridCell';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGridCell/MenuGridCell.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useMenuGridCell_unstable } from './useMenuGridCell';\nimport { renderMenuGridCell_unstable } from './renderMenuGridCell';\nimport type { MenuGridCellProps } from './MenuGridCell.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useMenuGridCellStyles_unstable } from './useMenuGridCellStyles.styles';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Define a MenuGridCell, using the `useMenuGridCell_unstable` hook.\n */\nexport const MenuGridCell: ForwardRefComponent<MenuGridCellProps> = React.forwardRef((props, ref) => {\n const state = useMenuGridCell_unstable(props, ref);\n\n useMenuGridCellStyles_unstable(state);\n\n // useCustomStyleHook_unstable('useMenuGridCellStyles_unstable')(state);\n\n return renderMenuGridCell_unstable(state);\n});\n\nMenuGridCell.displayName = 'MenuGridCell';\n"],"names":["React","useMenuGridCell_unstable","renderMenuGridCell_unstable","useMenuGridCellStyles_unstable","MenuGridCell","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,uBAAuB;AAGnE,SAASC,8BAA8B,QAAQ,iCAAiC;AAChF,iFAAiF;AAEjF;;CAEC,GACD,OAAO,MAAMC,6BAAuDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,QAAQP,yBAAyBK,OAAOC;IAE9CJ,+BAA+BK;IAE/B,wEAAwE;IAExE,OAAON,4BAA4BM;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGridCell/MenuGridCell.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuGridCellSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuGridCellProps = ComponentProps<MenuGridCellSlots> & {\n /**\n * A MenuGridCell can be visually hidden, which is used for asymmetric grids\n * @defaultvalue false\n */\n visuallyHidden?: boolean;\n};\n\nexport type MenuGridCellState = ComponentState<MenuGridCellSlots> & Pick<MenuGridCellProps, 'visuallyHidden'>;\n"],"names":[],"mappings":"AAcA,WAA8G"}
@@ -0,0 +1,4 @@
1
+ export { MenuGridCell } from './MenuGridCell';
2
+ export { renderMenuGridCell_unstable } from './renderMenuGridCell';
3
+ export { useMenuGridCell_unstable } from './useMenuGridCell';
4
+ export { menuGridCellClassNames, useMenuGridCellStyles_unstable } from './useMenuGridCellStyles.styles';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGridCell/index.ts"],"sourcesContent":["export type { MenuGridCellProps, MenuGridCellSlots, MenuGridCellState } from './MenuGridCell.types';\nexport { MenuGridCell } from './MenuGridCell';\nexport { renderMenuGridCell_unstable } from './renderMenuGridCell';\nexport { useMenuGridCell_unstable } from './useMenuGridCell';\nexport { menuGridCellClassNames, useMenuGridCellStyles_unstable } from './useMenuGridCellStyles.styles';\n"],"names":["MenuGridCell","renderMenuGridCell_unstable","useMenuGridCell_unstable","menuGridCellClassNames","useMenuGridCellStyles_unstable"],"mappings":"AACA,SAASA,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,sBAAsB,EAAEC,8BAA8B,QAAQ,iCAAiC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-utilities';
3
+ /**
4
+ * Function that renders the final JSX of the component
5
+ */ export const renderMenuGridCell_unstable = (state)=>{
6
+ assertSlots(state);
7
+ return /*#__PURE__*/ _jsx(state.root, {});
8
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGridCell/renderMenuGridCell.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { MenuGridCellSlots, MenuGridCellState } from './MenuGridCell.types';\n\n/**\n * Function that renders the final JSX of the component\n */\nexport const renderMenuGridCell_unstable = (state: MenuGridCellState) => {\n assertSlots<MenuGridCellSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderMenuGridCell_unstable","state","root"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,8BAA8B,CAACC;IAC1CF,YAA+BE;IAE/B,qBAAO,KAACA,MAAMC,IAAI;AACpB,EAAE"}
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
3
+ /**
4
+ * Given user props, returns state and render function for a MenuGridCell.
5
+ */ export function useMenuGridCell_unstable(props, ref) {
6
+ const { visuallyHidden } = props;
7
+ return {
8
+ visuallyHidden,
9
+ components: {
10
+ root: 'div'
11
+ },
12
+ root: slot.always(getIntrinsicElementProps('div', {
13
+ ref,
14
+ role: 'gridcell',
15
+ ...props
16
+ }), {
17
+ elementType: 'div'
18
+ })
19
+ };
20
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/MenuGridCell/useMenuGridCell.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport { MenuGridCellProps, MenuGridCellState } from './MenuGridCell.types';\n\n/**\n * Given user props, returns state and render function for a MenuGridCell.\n */\nexport function useMenuGridCell_unstable(props: MenuGridCellProps, ref: React.Ref<HTMLDivElement>): MenuGridCellState {\n const { visuallyHidden } = props;\n\n return {\n visuallyHidden,\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'gridcell',\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n}\n"],"names":["React","getIntrinsicElementProps","slot","useMenuGridCell_unstable","props","ref","visuallyHidden","components","root","always","role","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAG3E;;CAEC,GACD,OAAO,SAASC,yBAAyBC,KAAwB,EAAEC,GAA8B;IAC/F,MAAM,EAAEC,cAAc,EAAE,GAAGF;IAE3B,OAAO;QACLE;QACAC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMN,KAAKO,MAAM,CACfR,yBAAyB,OAAO;YAC9BI;YACAK,MAAM;YACN,GAAGN,KAAK;QACV,IACA;YAAEO,aAAa;QAAM;IAEzB;AACF"}